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
6670 localedir=`eval echo ${datadir}/locale`
6671 cat >>confdefs.h <<_ACEOF
6672 #define LOCALEDIR "$localedir"
6676 # ------------------------------------------------------------------
6677 # If the user has not set --prefix, we set our default to nothing.
6678 # In this case, if the user has not set --sysconfdir, we set it
6679 # to the package default of /etc/bacula. If either --prefix or
6680 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6681 # ------------------------------------------------------------------
6682 if test x${prefix} = xNONE ; then
6683 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6684 sysconfdir=/etc/bacula
6688 sysconfdir=`eval echo ${sysconfdir}`
6690 # -------------------------------------------------------------------------
6691 # If the user has not set --exec-prefix, we default to ${prefix}
6692 # -------------------------------------------------------------------------
6693 if test x${exec_prefix} = xNONE ; then
6694 exec_prefix=${prefix}
6697 # ------------------------------------------------------------------
6698 # If the user has not set --sbindir, we set our default as /sbin
6699 # ------------------------------------------------------------------
6700 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6701 sbindir=${exec_prefix}/sbin
6703 sbindir=`eval echo ${sbindir}`
6705 # -------------------------------------------------------------------------
6706 # If the user has not set --mandir, we default to /usr/share/man
6707 # -------------------------------------------------------------------------
6708 if test x$mandir = x'${prefix}/man' ; then
6709 mandir=/usr/share/man
6713 # ------------------------------------------------------------------
6714 # All list of languages for which a translation exist. Each
6715 # language is separated by a space.
6716 # ------------------------------------------------------------------
6719 for ac_prog in msgfmt
6721 # Extract the first word of "$ac_prog", so it can be a program name with args.
6722 set dummy $ac_prog; ac_word=$2
6723 echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6725 if test "${ac_cv_path_MSGFMT+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 MSGFMT=$ac_cv_path_MSGFMT
6752 if test -n "$MSGFMT"; then
6753 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6754 echo "${ECHO_T}$MSGFMT" >&6
6756 echo "$as_me:$LINENO: result: no" >&5
6757 echo "${ECHO_T}no" >&6
6760 test -n "$MSGFMT" && break
6762 test -n "$MSGFMT" || MSGFMT="no"
6764 if test "$MSGFMT" = "no"
6766 echo 'msgfmt program not found, disabling NLS !'
6768 USE_INCLUDED_LIBINTL=no
6777 support_postgresql=no
6778 support_smartalloc=yes
6779 support_readline=yes
6782 support_wx_console=no
6786 support_static_tools=no
6787 support_static_fd=no
6788 support_static_sd=no
6789 support_static_dir=no
6790 support_static_cons=no
6792 build_client_only=no
6798 # -------------------------------------------
6799 # gnome (default off)
6800 # -------------------------------------------
6801 # Check whether --enable-gnome or --disable-gnome was given.
6802 if test "${enable_gnome+set}" = set; then
6803 enableval="$enable_gnome"
6804 if test x$enableval = xyes; then
6810 if test x$support_gnome = xyes; then
6811 abc=`$PKGCONFIG --exists libgnomeui-2.0`
6813 if test $pkg = 0; then
6814 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6815 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6816 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6817 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6822 GNOME_DIR=src/gnome2-console
6823 gnome_version="Version 2.x"
6825 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6826 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6827 { (exit 1); exit 1; }; }
6833 # -------------------------------------------
6834 # wx-console (default off)
6835 # -------------------------------------------
6836 # Check whether --enable-wx-console or --disable-wx-console was given.
6837 if test "${enable_wx_console+set}" = set; then
6838 enableval="$enable_wx_console"
6839 if test x$enableval = xyes; then
6840 support_wx_console=yes
6845 if test x$support_wx_console = xyes; then
6846 abc=`$WXCONFIG $WXFLAGS --cppflags`
6848 if test $pkg = 0; then
6849 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6850 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6851 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6855 WX_DIR=src/wx-console
6858 echo "wx-config program not found. wx-console disabled."
6860 support_wx_console=no
6866 # -------------------------------------------
6867 # tray-monitor (default off)
6868 # -------------------------------------------
6869 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6870 if test "${enable_tray_monitor+set}" = set; then
6871 enableval="$enable_tray_monitor"
6872 if test x$enableval = xyes; then
6873 support_tray_monitor=yes
6878 if test x$support_tray_monitor = xyes; then
6879 abc=`$PKGCONFIG --exists gtk+-2.0`
6881 if test $pkg = 0; then
6882 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6883 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6886 TRAY_MONITOR_DIR=src/tray-monitor
6887 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6889 if test $pkg = 0; then
6890 cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_GTK_2_4 1
6899 # -------------------------------------------
6900 # smartalloc (default off)
6901 # -------------------------------------------
6902 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6903 if test "${enable_smartalloc+set}" = set; then
6904 enableval="$enable_smartalloc"
6905 if test x$enableval = xno; then
6906 support_smartalloc=no
6910 if test x$support_smartalloc = xyes; then
6911 cat >>confdefs.h <<\_ACEOF
6912 #define SMARTALLOC 1
6917 # -------------------------------------------
6918 # static-tools (default off)
6919 # -------------------------------------------
6920 # Check whether --enable-static-tools or --disable-static-tools was given.
6921 if test "${enable_static_tools+set}" = set; then
6922 enableval="$enable_static_tools"
6923 if test x$enableval = xyes; then
6924 support_static_tools=yes
6929 if test x$support_static_tools = xyes; then
6930 TTOOL_LDFLAGS="-static"
6934 # -------------------------------------------
6935 # static-fd (default off)
6936 # -------------------------------------------
6937 # Check whether --enable-static-fd or --disable-static-fd was given.
6938 if test "${enable_static_fd+set}" = set; then
6939 enableval="$enable_static_fd"
6940 if test x$enableval = xyes; then
6941 support_static_fd=yes
6946 if test x$support_static_fd = xyes; then
6947 STATIC_FD="static-bacula-fd"
6951 # -------------------------------------------
6952 # static-sd (default off)
6953 # -------------------------------------------
6954 # Check whether --enable-static-sd or --disable-static-sd was given.
6955 if test "${enable_static_sd+set}" = set; then
6956 enableval="$enable_static_sd"
6957 if test x$enableval = xyes; then
6958 support_static_sd=yes
6963 if test x$support_static_sd = xyes; then
6964 STATIC_SD="static-bacula-sd"
6968 # -------------------------------------------
6969 # static-dir (default off)
6970 # -------------------------------------------
6971 # Check whether --enable-static-dir or --disable-static-dir was given.
6972 if test "${enable_static_dir+set}" = set; then
6973 enableval="$enable_static_dir"
6974 if test x$enableval = xyes; then
6975 support_static_dir=yes
6980 if test x$support_static_dir = xyes; then
6981 STATIC_DIR="static-bacula-dir"
6985 # -------------------------------------------
6986 # static-cons (default off)
6987 # -------------------------------------------
6988 # Check whether --enable-static-cons or --disable-static-cons was given.
6989 if test "${enable_static_cons+set}" = set; then
6990 enableval="$enable_static_cons"
6991 if test x$enableval = xyes; then
6992 support_static_cons=yes
6999 if test x$support_static_cons = xyes; then
7000 STATIC_CONS="static-bconsole"
7001 STATIC_GNOME_CONS="static-gnome-console"
7002 STATIC_WX_CONS="static-wx-console"
7008 # -------------------------------------------
7009 # client_only (default off)
7010 # -------------------------------------------
7011 # Check whether --enable-client-only or --disable-client-only was given.
7012 if test "${enable_client_only+set}" = set; then
7013 enableval="$enable_client_only"
7014 if test x$enableval = xyes; then
7015 build_client_only=yes
7020 if test x$build_client_only = xno; then
7027 # ---------------------------------------------------
7028 # Check for conio (Bacula readline substitute)(
7029 # ---------------------------------------------------
7030 # this allows you to turn it completely off
7031 # Check whether --enable-conio or --disable-conio was given.
7032 if test "${enable_conio+set}" = set; then
7033 enableval="$enable_conio"
7034 if test x$enableval = xno; then
7040 if test x$support_conio = xyes; then
7041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7043 if test "${ac_cv_header_stdc+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1 >conftest.err
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 ac_cv_header_stdc=yes
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ac_cv_header_stdc=no
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7096 if test $ac_cv_header_stdc = yes; then
7097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7098 cat >conftest.$ac_ext <<_ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7108 $EGREP "memchr" >/dev/null 2>&1; then
7111 ac_cv_header_stdc=no
7117 if test $ac_cv_header_stdc = yes; then
7118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7119 cat >conftest.$ac_ext <<_ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7129 $EGREP "free" >/dev/null 2>&1; then
7132 ac_cv_header_stdc=no
7138 if test $ac_cv_header_stdc = yes; then
7139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7140 if test "$cross_compiling" = yes; then
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7150 #if ((' ' & 0x0FF) == 0x020)
7151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7154 # define ISLOWER(c) \
7155 (('a' <= (c) && (c) <= 'i') \
7156 || ('j' <= (c) && (c) <= 'r') \
7157 || ('s' <= (c) && (c) <= 'z'))
7158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7166 for (i = 0; i < 256; i++)
7167 if (XOR (islower (i), ISLOWER (i))
7168 || toupper (i) != TOUPPER (i))
7173 rm -f conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7186 echo "$as_me: program exited with status $ac_status" >&5
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7191 ac_cv_header_stdc=no
7193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7199 if test $ac_cv_header_stdc = yes; then
7201 cat >>confdefs.h <<\_ACEOF
7202 #define STDC_HEADERS 1
7207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7218 inttypes.h stdint.h unistd.h
7220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7221 echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 cat >conftest.$ac_ext <<_ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7232 $ac_includes_default
7234 #include <$ac_header>
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
7240 grep -v '^ *+' conftest.er1 >conftest.err
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag"
7246 || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest.$ac_objext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 eval "$as_ac_Header=yes"
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 eval "$as_ac_Header=no"
7265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7270 cat >>confdefs.h <<_ACEOF
7271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7279 if test "${ac_cv_header_termcap_h+set}" = set; then
7280 echo "$as_me:$LINENO: checking for termcap.h" >&5
7281 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7282 if test "${ac_cv_header_termcap_h+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7286 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7288 # Is the header compilable?
7289 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7290 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7291 cat >conftest.$ac_ext <<_ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7298 #include <termcap.h>
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_header_compiler=yes
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7327 ac_header_compiler=no
7329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7331 echo "${ECHO_T}$ac_header_compiler" >&6
7333 # Is the header present?
7334 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7335 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #include <termcap.h>
7344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7347 grep -v '^ *+' conftest.er1 >conftest.err
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } >/dev/null; then
7352 if test -s conftest.err; then
7353 ac_cpp_err=$ac_c_preproc_warn_flag
7354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7361 if test -z "$ac_cpp_err"; then
7362 ac_header_preproc=yes
7364 echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7367 ac_header_preproc=no
7369 rm -f conftest.err conftest.$ac_ext
7370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7371 echo "${ECHO_T}$ac_header_preproc" >&6
7373 # So? What about this header?
7374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7376 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7377 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7378 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7379 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7380 ac_header_preproc=yes
7383 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7384 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
7386 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7388 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
7390 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7392 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7394 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7397 ## ------------------------------------------ ##
7398 ## Report this to the AC_PACKAGE_NAME lists. ##
7399 ## ------------------------------------------ ##
7402 sed "s/^/$as_me: WARNING: /" >&2
7405 echo "$as_me:$LINENO: checking for termcap.h" >&5
7406 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7407 if test "${ac_cv_header_termcap_h+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_cv_header_termcap_h=$ac_header_preproc
7412 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7413 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7416 if test $ac_cv_header_termcap_h = yes; then
7417 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7418 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7419 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 ac_check_lib_save_LIBS=$LIBS
7423 LIBS="-ltermcap $LIBS"
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7431 /* Override any gcc2 internal prototype to avoid an error. */
7435 /* We use char because int might match the return type of a gcc2
7436 builtin and then its argument prototype would still apply. */
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>conftest.er1
7450 grep -v '^ *+' conftest.er1 >conftest.err
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag"
7456 || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest$ac_exeext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_cv_lib_termcap_tgetent=yes
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 ac_cv_lib_termcap_tgetent=no
7475 rm -f conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
7477 LIBS=$ac_check_lib_save_LIBS
7479 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7480 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7481 if test $ac_cv_lib_termcap_tgetent = yes; then
7482 CONS_LIBS="-ltermcap"
7488 cat >>confdefs.h <<\_ACEOF
7489 #define HAVE_CONIO 1
7494 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7495 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7496 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_check_lib_save_LIBS=$LIBS
7500 LIBS="-lncurses $LIBS"
7501 cat >conftest.$ac_ext <<_ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7508 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7523 rm -f conftest.$ac_objext conftest$ac_exeext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525 (eval $ac_link) 2>conftest.er1
7527 grep -v '^ *+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest$ac_exeext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_cv_lib_ncurses_tgetent=yes
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 ac_cv_lib_ncurses_tgetent=no
7552 rm -f conftest.err conftest.$ac_objext \
7553 conftest$ac_exeext conftest.$ac_ext
7554 LIBS=$ac_check_lib_save_LIBS
7556 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7557 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7558 if test $ac_cv_lib_ncurses_tgetent = yes; then
7559 CONS_LIBS="-lncurses"
7565 cat >>confdefs.h <<\_ACEOF
7566 #define HAVE_CONIO 1
7579 for ac_header in curses.h
7581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7583 echo "$as_me:$LINENO: checking for $ac_header" >&5
7584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7591 # Is the header compilable?
7592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7594 cat >conftest.$ac_ext <<_ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 $ac_includes_default
7601 #include <$ac_header>
7603 rm -f conftest.$ac_objext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605 (eval $ac_compile) 2>conftest.er1
7607 grep -v '^ *+' conftest.er1 >conftest.err
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try='test -s conftest.$ac_objext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_header_compiler=yes
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ac_header_compiler=no
7632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7634 echo "${ECHO_T}$ac_header_compiler" >&6
7636 # Is the header present?
7637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7639 cat >conftest.$ac_ext <<_ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 #include <$ac_header>
7647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7650 grep -v '^ *+' conftest.er1 >conftest.err
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } >/dev/null; then
7655 if test -s conftest.err; then
7656 ac_cpp_err=$ac_c_preproc_warn_flag
7657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7664 if test -z "$ac_cpp_err"; then
7665 ac_header_preproc=yes
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_header_preproc=no
7672 rm -f conftest.err conftest.$ac_ext
7673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7674 echo "${ECHO_T}$ac_header_preproc" >&6
7676 # So? What about this header?
7677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7683 ac_header_preproc=yes
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7700 ## ------------------------------------------ ##
7701 ## Report this to the AC_PACKAGE_NAME lists. ##
7702 ## ------------------------------------------ ##
7705 sed "s/^/$as_me: WARNING: /" >&2
7708 echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 eval "$as_ac_Header=\$ac_header_preproc"
7715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7720 cat >>confdefs.h <<_ACEOF
7721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728 echo "$as_me:$LINENO: checking for term.h" >&5
7729 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7730 if test "${ac_cv_header_term_h+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7746 rm -f conftest.$ac_objext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7748 (eval $ac_compile) 2>conftest.er1
7750 grep -v '^ *+' conftest.er1 >conftest.err
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest.$ac_objext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_header_term_h=yes
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_cv_header_term_h=no
7775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7778 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7779 if test $ac_cv_header_term_h = yes; then
7780 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7781 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7782 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 ac_check_lib_save_LIBS=$LIBS
7786 LIBS="-lcurses $LIBS"
7787 cat >conftest.$ac_ext <<_ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7794 /* Override any gcc2 internal prototype to avoid an error. */
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811 (eval $ac_link) 2>conftest.er1
7813 grep -v '^ *+' conftest.er1 >conftest.err
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -z "$ac_c_werror_flag"
7819 || test ! -s conftest.err'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; } &&
7825 { ac_try='test -s conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_cv_lib_curses_tgetent=yes
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 ac_cv_lib_curses_tgetent=no
7838 rm -f conftest.err conftest.$ac_objext \
7839 conftest$ac_exeext conftest.$ac_ext
7840 LIBS=$ac_check_lib_save_LIBS
7842 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7843 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7844 if test $ac_cv_lib_curses_tgetent = yes; then
7845 CONS_LIBS="-lcurses"
7851 cat >>confdefs.h <<\_ACEOF
7852 #define HAVE_CONIO 1
7860 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7871 # ---------------------------------------------------
7872 # Check for readline support/directory (default off)
7873 # ---------------------------------------------------
7874 # this allows you to turn it completely off
7875 # Check whether --enable-readline or --disable-readline was given.
7876 if test "${enable_readline+set}" = set; then
7877 enableval="$enable_readline"
7878 if test x$enableval = xno; then
7885 if test x$support_readline = xyes; then
7887 # Check whether --with-readline or --without-readline was given.
7888 if test "${with_readline+set}" = set; then
7889 withval="$with_readline"
7891 case "$with_readline" in
7894 if test -f ${with_readline}/readline.h; then
7895 CONS_INC="-I${with_readline}"
7896 CONS_LDFLAGS="-L$with_readline"
7897 elif test -f ${with_readline}/include/readline/readline.h; then
7898 CONS_INC="-I${with_readline}/include/readline"
7899 CONS_LDFLAGS="-L${with_readline}/lib"
7900 with_readline="${with_readline}/include/readline"
7902 with_readline="/usr/include/readline"
7904 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7906 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7907 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7914 # Is the header compilable?
7915 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7916 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7917 cat >conftest.$ac_ext <<_ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 $ac_includes_default
7924 #include <${with_readline}/readline.h>
7926 rm -f conftest.$ac_objext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7928 (eval $ac_compile) 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_c_werror_flag"
7936 || test ! -s conftest.err'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; } &&
7942 { ac_try='test -s conftest.$ac_objext'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 ac_header_compiler=yes
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_header_compiler=no
7955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7957 echo "${ECHO_T}$ac_header_compiler" >&6
7959 # Is the header present?
7960 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
7961 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 #include <${with_readline}/readline.h>
7970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } >/dev/null; then
7978 if test -s conftest.err; then
7979 ac_cpp_err=$ac_c_preproc_warn_flag
7980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7987 if test -z "$ac_cpp_err"; then
7988 ac_header_preproc=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_header_preproc=no
7995 rm -f conftest.err conftest.$ac_ext
7996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7997 echo "${ECHO_T}$ac_header_preproc" >&6
7999 # So? What about this header?
8000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8002 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8003 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8004 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
8005 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
8006 ac_header_preproc=yes
8009 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8010 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
8012 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
8013 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8014 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8016 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8017 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8018 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8019 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8020 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8023 ## ------------------------------------------ ##
8024 ## Report this to the AC_PACKAGE_NAME lists. ##
8025 ## ------------------------------------------ ##
8028 sed "s/^/$as_me: WARNING: /" >&2
8031 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8032 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 eval "$as_ac_Header=\$ac_header_preproc"
8038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8043 cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_READLINE 1
8047 CONS_LIBS="-lreadline -lhistory -ltermcap"
8052 echo "readline.h not found. readline turned off ..."
8064 # check for standard readline library
8065 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8066 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8067 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8068 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8072 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8074 # Is the header compilable?
8075 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8076 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8077 cat >conftest.$ac_ext <<_ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 $ac_includes_default
8084 #include </usr/include/readline/readline.h>
8086 rm -f conftest.$ac_objext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8088 (eval $ac_compile) 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest.$ac_objext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_header_compiler=yes
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ac_header_compiler=no
8115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8117 echo "${ECHO_T}$ac_header_compiler" >&6
8119 # Is the header present?
8120 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8121 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 #include </usr/include/readline/readline.h>
8130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8133 grep -v '^ *+' conftest.er1 >conftest.err
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } >/dev/null; then
8138 if test -s conftest.err; then
8139 ac_cpp_err=$ac_c_preproc_warn_flag
8140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8147 if test -z "$ac_cpp_err"; then
8148 ac_header_preproc=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_header_preproc=no
8155 rm -f conftest.err conftest.$ac_ext
8156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8157 echo "${ECHO_T}$ac_header_preproc" >&6
8159 # So? What about this header?
8160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8162 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8163 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8165 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8166 ac_header_preproc=yes
8169 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8170 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8171 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
8172 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
8173 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8174 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8176 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8178 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8180 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8183 ## ------------------------------------------ ##
8184 ## Report this to the AC_PACKAGE_NAME lists. ##
8185 ## ------------------------------------------ ##
8188 sed "s/^/$as_me: WARNING: /" >&2
8191 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8192 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8193 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8198 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8199 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8202 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8203 cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_READLINE 1
8208 CONS_INC="-I/usr/include/readline"
8209 CONS_LIBS="-lreadline -ltermcap"
8213 # Did not find standard library, so try Bacula's default
8214 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8216 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8217 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8224 # Is the header compilable?
8225 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8226 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8233 $ac_includes_default
8234 #include <${TOP_DIR}/depkgs/readline/readline.h>
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_header_compiler=yes
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ac_header_compiler=no
8265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8267 echo "${ECHO_T}$ac_header_compiler" >&6
8269 # Is the header present?
8270 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8271 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 #include <${TOP_DIR}/depkgs/readline/readline.h>
8280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } >/dev/null; then
8288 if test -s conftest.err; then
8289 ac_cpp_err=$ac_c_preproc_warn_flag
8290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8297 if test -z "$ac_cpp_err"; then
8298 ac_header_preproc=yes
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8303 ac_header_preproc=no
8305 rm -f conftest.err conftest.$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8307 echo "${ECHO_T}$ac_header_preproc" >&6
8309 # So? What about this header?
8310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8312 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8313 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8314 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8315 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8316 ac_header_preproc=yes
8319 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8320 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8321 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
8322 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
8323 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8324 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8325 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8326 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8328 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8330 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8333 ## ------------------------------------------ ##
8334 ## Report this to the AC_PACKAGE_NAME lists. ##
8335 ## ------------------------------------------ ##
8338 sed "s/^/$as_me: WARNING: /" >&2
8341 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8342 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 eval "$as_ac_Header=\$ac_header_preproc"
8348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8353 cat >>confdefs.h <<\_ACEOF
8354 #define HAVE_READLINE 1
8358 CONS_INC="-I${TOP_DIR}/depkgs/readline"
8359 CONS_LIBS="-lreadline -lhistory -ltermcap"
8360 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8361 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8365 echo "readline.h not found. readline turned off ..."
8391 # Minimal stuff for readline Makefile configuration
8394 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8395 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8396 if test "${ac_cv_header_stat_broken+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 #include <sys/types.h>
8406 #include <sys/stat.h>
8408 #if defined(S_ISBLK) && defined(S_IFDIR)
8409 # if S_ISBLK (S_IFDIR)
8414 #if defined(S_ISBLK) && defined(S_IFCHR)
8415 # if S_ISBLK (S_IFCHR)
8420 #if defined(S_ISLNK) && defined(S_IFREG)
8421 # if S_ISLNK (S_IFREG)
8426 #if defined(S_ISSOCK) && defined(S_IFREG)
8427 # if S_ISSOCK (S_IFREG)
8433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434 $EGREP "You lose" >/dev/null 2>&1; then
8435 ac_cv_header_stat_broken=yes
8437 ac_cv_header_stat_broken=no
8442 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8443 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8444 if test $ac_cv_header_stat_broken = yes; then
8446 cat >>confdefs.h <<\_ACEOF
8447 #define STAT_MACROS_BROKEN 1
8458 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8459 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8460 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8461 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 #include <sys/types.h>
8483 rm -f conftest.$ac_objext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8485 (eval $ac_compile) 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag"
8493 || test ! -s conftest.err'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest.$ac_objext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 eval "$as_ac_Header=yes"
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 eval "$as_ac_Header=no"
8512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8517 cat >>confdefs.h <<_ACEOF
8518 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8521 ac_header_dirent=$ac_hdr; break
8525 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8526 if test $ac_header_dirent = dirent.h; then
8527 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8528 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8529 if test "${ac_cv_search_opendir+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 ac_func_search_save_LIBS=$LIBS
8533 ac_cv_search_opendir=no
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8560 grep -v '^ *+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_c_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_search_opendir="none required"
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8584 rm -f conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8586 if test "$ac_cv_search_opendir" = no; then
8587 for ac_lib in dir; do
8588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8596 /* Override any gcc2 internal prototype to avoid an error. */
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8615 grep -v '^ *+' conftest.er1 >conftest.err
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag"
8621 || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_search_opendir="-l$ac_lib"
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8640 rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_func_search_save_LIBS
8646 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8647 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8648 if test "$ac_cv_search_opendir" != no; then
8649 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8654 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8655 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8656 if test "${ac_cv_search_opendir+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 ac_func_search_save_LIBS=$LIBS
8660 ac_cv_search_opendir=no
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8668 /* Override any gcc2 internal prototype to avoid an error. */
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -z "$ac_c_werror_flag"
8693 || test ! -s conftest.err'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest$ac_exeext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_search_opendir="none required"
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8711 rm -f conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 if test "$ac_cv_search_opendir" = no; then
8715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8723 /* Override any gcc2 internal prototype to avoid an error. */
8727 /* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>conftest.er1
8742 grep -v '^ *+' conftest.er1 >conftest.err
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag"
8748 || test ! -s conftest.err'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; } &&
8754 { ac_try='test -s conftest$ac_exeext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_search_opendir="-l$ac_lib"
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8767 rm -f conftest.err conftest.$ac_objext \
8768 conftest$ac_exeext conftest.$ac_ext
8771 LIBS=$ac_func_search_save_LIBS
8773 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8774 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8775 if test "$ac_cv_search_opendir" != no; then
8776 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8789 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
8791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8792 echo "$as_me:$LINENO: checking for $ac_func" >&5
8793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_var+set}\" = set"; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8805 #define $ac_func innocuous_$ac_func
8807 /* System header to define __stub macros and hopefully few prototypes,
8808 which can conflict with char $ac_func (); below.
8809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8810 <limits.h> exists even on freestanding compilers. */
8813 # include <limits.h>
8815 # include <assert.h>
8820 /* Override any gcc2 internal prototype to avoid an error. */
8825 /* We use char because int might match the return type of a gcc2
8826 builtin and then its argument prototype would still apply. */
8828 /* The GNU C library defines this for functions which it implements
8829 to always fail with ENOSYS. Some functions are actually named
8830 something starting with __ and the normal name is an alias. */
8831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8834 char (*f) () = $ac_func;
8843 return f != $ac_func;
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>conftest.er1
8852 grep -v '^ *+' conftest.er1 >conftest.err
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -z "$ac_c_werror_flag"
8858 || test ! -s conftest.err'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest$ac_exeext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 eval "$as_ac_var=yes"
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8875 eval "$as_ac_var=no"
8877 rm -f conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8882 if test `eval echo '${'$as_ac_var'}'` = yes; then
8883 cat >>confdefs.h <<_ACEOF
8884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8892 for ac_func in nanosleep nl_langinfo
8894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8895 echo "$as_me:$LINENO: checking for $ac_func" >&5
8896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8897 if eval "test \"\${$as_ac_var+set}\" = set"; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 cat >conftest.$ac_ext <<_ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8908 #define $ac_func innocuous_$ac_func
8910 /* System header to define __stub macros and hopefully few prototypes,
8911 which can conflict with char $ac_func (); below.
8912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8913 <limits.h> exists even on freestanding compilers. */
8916 # include <limits.h>
8918 # include <assert.h>
8923 /* Override any gcc2 internal prototype to avoid an error. */
8928 /* We use char because int might match the return type of a gcc2
8929 builtin and then its argument prototype would still apply. */
8931 /* The GNU C library defines this for functions which it implements
8932 to always fail with ENOSYS. Some functions are actually named
8933 something starting with __ and the normal name is an alias. */
8934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8937 char (*f) () = $ac_func;
8946 return f != $ac_func;
8951 rm -f conftest.$ac_objext conftest$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>conftest.er1
8955 grep -v '^ *+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag"
8961 || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try='test -s conftest$ac_exeext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 eval "$as_ac_var=yes"
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 eval "$as_ac_var=no"
8980 rm -f conftest.err conftest.$ac_objext \
8981 conftest$ac_exeext conftest.$ac_ext
8983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8985 if test `eval echo '${'$as_ac_var'}'` = yes; then
8986 cat >>confdefs.h <<_ACEOF
8987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8994 for ac_header in varargs.h
8996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8998 echo "$as_me:$LINENO: checking for $ac_header" >&5
8999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9001 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9006 # Is the header compilable?
9007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9009 cat >conftest.$ac_ext <<_ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 $ac_includes_default
9016 #include <$ac_header>
9018 rm -f conftest.$ac_objext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } &&
9027 { ac_try='test -z "$ac_c_werror_flag"
9028 || test ! -s conftest.err'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest.$ac_objext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_header_compiler=yes
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_header_compiler=no
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9049 echo "${ECHO_T}$ac_header_compiler" >&6
9051 # Is the header present?
9052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 #include <$ac_header>
9062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9065 grep -v '^ *+' conftest.er1 >conftest.err
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } >/dev/null; then
9070 if test -s conftest.err; then
9071 ac_cpp_err=$ac_c_preproc_warn_flag
9072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9079 if test -z "$ac_cpp_err"; then
9080 ac_header_preproc=yes
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ac_header_preproc=no
9087 rm -f conftest.err conftest.$ac_ext
9088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9089 echo "${ECHO_T}$ac_header_preproc" >&6
9091 # So? What about this header?
9092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9098 ac_header_preproc=yes
9101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9115 ## ------------------------------------------ ##
9116 ## Report this to the AC_PACKAGE_NAME lists. ##
9117 ## ------------------------------------------ ##
9120 sed "s/^/$as_me: WARNING: /" >&2
9123 echo "$as_me:$LINENO: checking for $ac_header" >&5
9124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 eval "$as_ac_Header=\$ac_header_preproc"
9130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9135 cat >>confdefs.h <<_ACEOF
9136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9144 # End of readline/conio stuff
9145 # -----------------------------------------------------------------------
9147 # -----------------------------------------------------------------------
9148 # Check for Python support
9150 echo "$as_me:$LINENO: checking for Python support" >&5
9151 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9153 # Check whether --with-python or --without-python was given.
9154 if test "${with_python+set}" = set; then
9155 withval="$with_python"
9159 if test "$withval" != "no"; then
9160 if test "$withval" = "yes"; then
9161 for python_root in /usr /usr/local; do
9162 if test -f $python_root/include/python2.2/Python.h; then
9163 PYTHON_INCDIR=-I$python_root/include/python2.2
9164 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9166 elif test -f $python_root/include/python2.3/Python.h; then
9167 PYTHON_INCDIR=-I$python_root/include/python2.3
9168 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9170 elif test -f $python_root/include/python2.4/Python.h; then
9171 PYTHON_INCDIR=-I$python_root/include/python2.4
9172 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9176 if test x$PYTHON_INCDIR = x; then
9177 if test -f $prefix/include/Python.h; then
9178 PYTHON_INCDIR=-I$prefix/include
9179 PYTHON_LIBS="-L$prefix/lib/config -lpython"
9181 echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6
9183 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9184 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9185 { (exit 1); exit 1; }; }
9189 if test -f $withval/Python.h; then
9190 PYTHON_INCDIR=-I$withval
9191 PYTHON_LIBS="-L$withval/config -lpython"
9192 elif test -f $withval/include/Python.h; then
9193 PYTHON_INCDIR=-I$withval/include
9194 PYTHON_LIBS="-L$withval/lib/config -lpython"
9195 elif test -f $withval/include/python/Python.h; then
9196 PYTHON_INCDIR=-I$withval/include/python
9197 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9199 echo "$as_me:$LINENO: result: no" >&5
9200 echo "${ECHO_T}no" >&6
9201 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9202 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9203 { (exit 1); exit 1; }; }
9206 cat >>confdefs.h <<\_ACEOF
9207 #define HAVE_PYTHON 1
9210 echo "$as_me:$LINENO: result: yes" >&5
9211 echo "${ECHO_T}yes" >&6
9213 { echo "$as_me:$LINENO: checking for more Python libs" >&5
9214 echo "$as_me: checking for more Python libs" >&6;}
9215 saved_LIBS="$LIBS"; LIBS=
9216 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9217 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9218 if test "${ac_cv_search_shm_open+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 ac_func_search_save_LIBS=$LIBS
9222 ac_cv_search_shm_open=no
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9230 /* Override any gcc2 internal prototype to avoid an error. */
9234 /* We use char because int might match the return type of a gcc2
9235 builtin and then its argument prototype would still apply. */
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9247 (eval $ac_link) 2>conftest.er1
9249 grep -v '^ *+' conftest.er1 >conftest.err
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag"
9255 || test ! -s conftest.err'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; } &&
9261 { ac_try='test -s conftest$ac_exeext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 ac_cv_search_shm_open="none required"
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9273 rm -f conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
9275 if test "$ac_cv_search_shm_open" = no; then
9276 for ac_lib in rt; do
9277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 /* Override any gcc2 internal prototype to avoid an error. */
9289 /* We use char because int might match the return type of a gcc2
9290 builtin and then its argument prototype would still apply. */
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag"
9310 || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_search_shm_open="-l$ac_lib"
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9329 rm -f conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_func_search_save_LIBS
9335 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9336 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9337 if test "$ac_cv_search_shm_open" != no; then
9338 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9343 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9344 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9345 if test "${ac_cv_lib_util_openpty+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 ac_check_lib_save_LIBS=$LIBS
9350 cat >conftest.$ac_ext <<_ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9357 /* Override any gcc2 internal prototype to avoid an error. */
9361 /* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374 (eval $ac_link) 2>conftest.er1
9376 grep -v '^ *+' conftest.er1 >conftest.err
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_cv_lib_util_openpty=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ac_cv_lib_util_openpty=no
9401 rm -f conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9405 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9406 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9407 if test $ac_cv_lib_util_openpty = yes; then
9408 cat >>confdefs.h <<_ACEOF
9409 #define HAVE_LIBUTIL 1
9416 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9419 echo "$as_me:$LINENO: result: no" >&5
9420 echo "${ECHO_T}no" >&6
9425 echo "$as_me:$LINENO: result: no" >&5
9426 echo "${ECHO_T}no" >&6
9434 # Find where sockets are (especially for Solaris)
9435 # Do this before the TCP Wrappers test since tcp wrappers
9436 # uses the socket library and some linkers are stupid.
9438 echo "$as_me:$LINENO: checking for socket" >&5
9439 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9440 if test "${ac_cv_func_socket+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 cat >conftest.$ac_ext <<_ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9451 #define socket innocuous_socket
9453 /* System header to define __stub macros and hopefully few prototypes,
9454 which can conflict with char socket (); below.
9455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9456 <limits.h> exists even on freestanding compilers. */
9459 # include <limits.h>
9461 # include <assert.h>
9466 /* Override any gcc2 internal prototype to avoid an error. */
9471 /* We use char because int might match the return type of a gcc2
9472 builtin and then its argument prototype would still apply. */
9474 /* The GNU C library defines this for functions which it implements
9475 to always fail with ENOSYS. Some functions are actually named
9476 something starting with __ and the normal name is an alias. */
9477 #if defined (__stub_socket) || defined (__stub___socket)
9480 char (*f) () = socket;
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496 (eval $ac_link) 2>conftest.er1
9498 grep -v '^ *+' conftest.er1 >conftest.err
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -z "$ac_c_werror_flag"
9504 || test ! -s conftest.err'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; } &&
9510 { ac_try='test -s conftest$ac_exeext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_cv_func_socket=yes
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_cv_func_socket=no
9523 rm -f conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9526 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9527 echo "${ECHO_T}$ac_cv_func_socket" >&6
9528 if test $ac_cv_func_socket = yes; then
9529 echo "$as_me:$LINENO: result: using libc's socket" >&5
9530 echo "${ECHO_T}using libc's socket" >&6
9533 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9534 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9535 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 ac_check_lib_save_LIBS=$LIBS
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9547 /* Override any gcc2 internal prototype to avoid an error. */
9551 /* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>conftest.er1
9566 grep -v '^ *+' conftest.er1 >conftest.err
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_lib_xnet_socket=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_cv_lib_xnet_socket=no
9591 rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9595 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9596 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9597 if test $ac_cv_lib_xnet_socket = yes; then
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE_LIBXNET 1
9607 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9608 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9609 if test "${ac_cv_lib_socket_socket+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 ac_check_lib_save_LIBS=$LIBS
9613 LIBS="-lsocket $LIBS"
9614 cat >conftest.$ac_ext <<_ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9621 /* Override any gcc2 internal prototype to avoid an error. */
9625 /* We use char because int might match the return type of a gcc2
9626 builtin and then its argument prototype would still apply. */
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 ac_cv_lib_socket_socket=yes
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 ac_cv_lib_socket_socket=no
9665 rm -f conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667 LIBS=$ac_check_lib_save_LIBS
9669 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9670 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9671 if test $ac_cv_lib_socket_socket = yes; then
9672 cat >>confdefs.h <<_ACEOF
9673 #define HAVE_LIBSOCKET 1
9676 LIBS="-lsocket $LIBS"
9681 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9682 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9683 if test "${ac_cv_lib_inet_socket+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 ac_check_lib_save_LIBS=$LIBS
9688 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9695 /* Override any gcc2 internal prototype to avoid an error. */
9699 /* We use char because int might match the return type of a gcc2
9700 builtin and then its argument prototype would still apply. */
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag"
9720 || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_lib_inet_socket=yes
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9737 ac_cv_lib_inet_socket=no
9739 rm -f conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9743 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9744 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9745 if test $ac_cv_lib_inet_socket = yes; then
9746 cat >>confdefs.h <<_ACEOF
9747 #define HAVE_LIBINET 1
9758 # -----------------------------------------------------------
9759 # Check whether user wants TCP wrappers support (default off)
9760 # -----------------------------------------------------------
9763 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9764 if test "${with_tcp_wrappers+set}" = set; then
9765 withval="$with_tcp_wrappers"
9767 if test "x$withval" != "xno" ; then
9769 LIBS="$saved_LIBS -lwrap"
9770 echo "$as_me:$LINENO: checking for libwrap" >&5
9771 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 int deny_severity = 0;
9780 int allow_severity = 0;
9781 struct request_info *req;
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792 (eval $ac_link) 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -z "$ac_c_werror_flag"
9800 || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9813 echo "$as_me:$LINENO: result: yes" >&5
9814 echo "${ECHO_T}yes" >&6
9815 cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_LIBWRAP 1
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9826 LIBS="$saved_LIBS -lwrap -lnsl"
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9834 int deny_severity = 0;
9835 int allow_severity = 0;
9836 struct request_info *req;
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9849 grep -v '^ *+' conftest.er1 >conftest.err
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag"
9855 || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9868 echo "$as_me:$LINENO: result: yes" >&5
9869 echo "${ECHO_T}yes" >&6
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_LIBWRAP 1
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9881 echo "$as_me: error: *** libwrap missing" >&2;}
9882 { (exit 1); exit 1; }; }
9885 rm -f conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9889 rm -f conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9896 # -----------------------------------------------------------
9897 # Check whether OpenSSL is available
9898 # -----------------------------------------------------------
9899 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9900 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9902 # Check whether --with-openssl or --without-openssl was given.
9903 if test "${with_openssl+set}" = set; then
9904 withval="$with_openssl"
9905 with_openssl_directory=${withval}
9908 if test "x$with_openssl_directory" != "x"; then
9909 OPENSSL_LIBS="-lssl -lcrypto"
9912 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
9913 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
9914 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
9918 saved_CFLAGS="$CFLAGS"
9919 LIBS="$saved_LIBS $OPENSSL_LIBS"
9920 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9928 #include <openssl/ssl.h>
9932 CRYPTO_set_id_callback(NULL);
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag"
9947 || test ! -s conftest.err'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9967 rm -f conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9971 CFLAGS="$saved_CFLAGS"
9973 if test "$support_tls" = "yes"; then
9975 cat >>confdefs.h <<\_ACEOF
9976 #define HAVE_OPENSSL 1
9980 cat >>confdefs.h <<\_ACEOF
9991 echo "$as_me:$LINENO: result: $support_tls" >&5
9992 echo "${ECHO_T}$support_tls" >&6
9997 # -----------------------------------------------------------
9998 # Python and OpenSSL are using dlopen
9999 # -----------------------------------------------------------
10001 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
10002 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10003 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10004 if test "${ac_cv_search_dlopen+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 ac_func_search_save_LIBS=$LIBS
10008 ac_cv_search_dlopen=no
10009 cat >conftest.$ac_ext <<_ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10016 /* Override any gcc2 internal prototype to avoid an error. */
10020 /* We use char because int might match the return type of a gcc2
10021 builtin and then its argument prototype would still apply. */
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033 (eval $ac_link) 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag"
10041 || test ! -s conftest.err'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_search_dlopen="none required"
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10059 rm -f conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 if test "$ac_cv_search_dlopen" = no; then
10062 for ac_lib in dl; do
10063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10071 /* Override any gcc2 internal prototype to avoid an error. */
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10090 grep -v '^ *+' conftest.er1 >conftest.err
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_cv_search_dlopen="-l$ac_lib"
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10115 rm -f conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_func_search_save_LIBS
10121 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10123 if test "$ac_cv_search_dlopen" != no; then
10124 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10130 # ------------------------------------------
10131 # Where to place working dir
10132 # ------------------------------------------
10133 working_dir=`eval echo ${prefix}/var/bacula/working`
10135 # Check whether --with-working-dir or --without-working-dir was given.
10136 if test "${with_working_dir+set}" = set; then
10137 withval="$with_working_dir"
10139 if test "x$withval" != "xno" ; then
10140 working_dir=$withval
10149 # ------------------------------------------
10150 # Where to place scriptdir (script files)
10151 # ------------------------------------------
10152 scriptdir=`eval echo ${sysconfdir}`
10154 # Check whether --with-scriptdir or --without-scriptdir was given.
10155 if test "${with_scriptdir+set}" = set; then
10156 withval="$with_scriptdir"
10158 if test "x$withval" != "xno" ; then
10168 # ------------------------------------------
10169 # Where to send dump email
10170 # ------------------------------------------
10171 dump_email=root@localhost
10173 # Check whether --with-dump-email or --without-dump-email was given.
10174 if test "${with_dump_email+set}" = set; then
10175 withval="$with_dump_email"
10177 if test "x$withval" != "xno" ; then
10178 dump_email=$withval
10186 # ------------------------------------------
10187 # Where to send job email
10188 # ------------------------------------------
10189 job_email=root@localhost
10191 # Check whether --with-job-email or --without-job-email was given.
10192 if test "${with_job_email+set}" = set; then
10193 withval="$with_job_email"
10195 if test "x$withval" != "xno" ; then
10204 # ------------------------------------------
10205 # Where to find smtp host
10206 # ------------------------------------------
10207 smtp_host=localhost
10209 # Check whether --with-smtp_host or --without-smtp_host was given.
10210 if test "${with_smtp_host+set}" = set; then
10211 withval="$with_smtp_host"
10213 if test "x$withval" != "xno" ; then
10223 # ------------------------------------
10224 # Where to place pid files
10225 # ------------------------------------
10228 # Check whether --with-pid-dir or --without-pid-dir was given.
10229 if test "${with_pid_dir+set}" = set; then
10230 withval="$with_pid_dir"
10232 if test "x$withval" != "xno" ; then
10239 cat >>confdefs.h <<_ACEOF
10240 #define _PATH_BACULA_PIDDIR "$piddir"
10246 # ------------------------------------
10247 # Where to place subsys "lock file"
10248 # ------------------------------------
10249 subsysdir=/var/run/subsys
10251 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10252 if test "${with_subsys_dir+set}" = set; then
10253 withval="$with_subsys_dir"
10255 if test "x$withval" != "xno" ; then
10266 # ------------------------------------
10267 # Where to start assigning ports
10268 # ------------------------------------
10271 # Check whether --with-baseport or --without-baseport was given.
10272 if test "${with_baseport+set}" = set; then
10273 withval="$with_baseport"
10275 if test "x$withval" != "xno" ; then
10283 dir_port=`expr $baseport`
10284 fd_port=`expr $baseport + 1`
10285 sd_port=`expr $fd_port + 1`
10292 # ------------------------------------------
10293 # Generate passwords
10294 # ------------------------------------------
10297 # Check whether --with-dir-password or --without-dir-password was given.
10298 if test "${with_dir_password+set}" = set; then
10299 withval="$with_dir_password"
10301 if test "x$withval" != "xno" ; then
10302 dir_password=$withval
10308 if test "x$dir_password" = "x" ; then
10309 if test "x$OPENSSL" = "xnone" ; then
10310 key=`autoconf/randpass 33`
10312 key=`openssl rand -base64 33`
10319 # Check whether --with-fd-password or --without-fd-password was given.
10320 if test "${with_fd_password+set}" = set; then
10321 withval="$with_fd_password"
10323 if test "x$withval" != "xno" ; then
10324 fd_password=$withval
10330 if test "x$fd_password" = "x" ; then
10331 if test "x$OPENSSL" = "xnone" ; then
10332 key=`autoconf/randpass 37`
10334 key=`openssl rand -base64 33`
10341 # Check whether --with-sd-password or --without-sd-password was given.
10342 if test "${with_sd_password+set}" = set; then
10343 withval="$with_sd_password"
10345 if test "x$withval" != "xno" ; then
10346 sd_password=$withval
10352 if test "x$sd_password" = "x" ; then
10353 if test "x$OPENSSL" = "xnone" ; then
10354 key=`autoconf/randpass 41`
10356 key=`openssl rand -base64 33`
10363 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10364 if test "${with_mon_dir_password+set}" = set; then
10365 withval="$with_mon_dir_password"
10367 if test "x$withval" != "xno" ; then
10368 mon_dir_password=$withval
10374 if test "x$mon_dir_password" = "x" ; then
10375 if test "x$OPENSSL" = "xnone" ; then
10376 key=`autoconf/randpass 33`
10378 key=`openssl rand -base64 33`
10380 mon_dir_password=$key
10385 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10386 if test "${with_mon_fd_password+set}" = set; then
10387 withval="$with_mon_fd_password"
10389 if test "x$withval" != "xno" ; then
10390 mon_fd_password=$withval
10396 if test "x$mon_fd_password" = "x" ; then
10397 if test "x$OPENSSL" = "xnone" ; then
10398 key=`autoconf/randpass 37`
10400 key=`openssl rand -base64 33`
10402 mon_fd_password=$key
10407 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10408 if test "${with_mon_sd_password+set}" = set; then
10409 withval="$with_mon_sd_password"
10411 if test "x$withval" != "xno" ; then
10412 mon_sd_password=$withval
10418 if test "x$mon_sd_password" = "x" ; then
10419 if test "x$OPENSSL" = "xnone" ; then
10420 key=`autoconf/randpass 41`
10422 key=`openssl rand -base64 33`
10424 mon_sd_password=$key
10436 # Handle users and groups for each daemon
10440 # Check whether --with-dir_user or --without-dir_user was given.
10441 if test "${with_dir_user+set}" = set; then
10442 withval="$with_dir_user"
10444 if test "x$withval" != "x" ; then
10453 # Check whether --with-dir_group or --without-dir_group was given.
10454 if test "${with_dir_group+set}" = set; then
10455 withval="$with_dir_group"
10457 if test "x$withval" != "x" ; then
10466 # Check whether --with-sd_user or --without-sd_user was given.
10467 if test "${with_sd_user+set}" = set; then
10468 withval="$with_sd_user"
10470 if test "x$withval" != "x" ; then
10479 # Check whether --with-sd_group or --without-sd_group was given.
10480 if test "${with_sd_group+set}" = set; then
10481 withval="$with_sd_group"
10483 if test "x$withval" != "x" ; then
10492 # Check whether --with-fd_user or --without-fd_user was given.
10493 if test "${with_fd_user+set}" = set; then
10494 withval="$with_fd_user"
10496 if test "x$withval" != "x" ; then
10505 # Check whether --with-fd_group or --without-fd_group was given.
10506 if test "${with_fd_group+set}" = set; then
10507 withval="$with_fd_group"
10509 if test "x$withval" != "x" ; then
10527 # allow setting default executable permissions
10531 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10532 if test "${with_sbin_perm+set}" = set; then
10533 withval="$with_sbin_perm"
10535 if test "x$withval" != "x" ; then
10544 # ------------------------------------------------
10545 # Bacula check for various SQL database engines
10546 # ------------------------------------------------
10549 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10550 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10552 # Check whether --with-postgresql or --without-postgresql was given.
10553 if test "${with_postgresql+set}" = set; then
10554 withval="$with_postgresql"
10556 if test "$withval" != "no"; then
10557 if test "$db_found" = "yes"; then
10558 echo "$as_me:$LINENO: result: error" >&5
10559 echo "${ECHO_T}error" >&6
10560 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10561 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10562 { (exit 1); exit 1; }; };
10564 if test "$withval" = "yes"; then
10565 if test -f /usr/local/include/libpq-fe.h; then
10566 POSTGRESQL_INCDIR=/usr/local/include
10567 POSTGRESQL_LIBDIR=/usr/local/lib
10568 POSTGRESQL_BINDIR=/usr/local/bin
10569 elif test -f /usr/include/libpq-fe.h; then
10570 POSTGRESQL_INCDIR=/usr/include
10571 POSTGRESQL_LIBDIR=/usr/lib
10572 POSTGRESQL_BINDIR=/usr/bin
10573 elif test -f /usr/include/pgsql/libpq-fe.h; then
10574 POSTGRESQL_INCDIR=/usr/include/pgsql
10575 POSTGRESQL_LIBDIR=/usr/lib/pgsql
10576 POSTGRESQL_BINDIR=/usr/bin
10577 elif test -f /usr/include/postgresql/libpq-fe.h; then
10578 POSTGRESQL_INCDIR=/usr/include/postgresql
10579 POSTGRESQL_LIBDIR=/usr/lib/postgresql
10580 POSTGRESQL_BINDIR=/usr/bin
10582 echo "$as_me:$LINENO: result: no" >&5
10583 echo "${ECHO_T}no" >&6
10584 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10585 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10586 { (exit 1); exit 1; }; }
10588 elif test -f $withval/include/libpq-fe.h; then
10589 POSTGRESQL_INCDIR=$withval/include
10590 POSTGRESQL_LIBDIR=$withval/lib
10591 POSTGRESQL_BINDIR=$withval/bin
10592 elif test -f $withval/include/postgresql/libpq-fe.h; then
10593 POSTGRESQL_INCDIR=$withval/include/postgresql
10594 POSTGRESQL_LIBDIR=$withval/lib
10595 POSTGRESQL_BINDIR=$withval/bin
10597 echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6
10599 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10600 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10601 { (exit 1); exit 1; }; }
10603 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10604 echo "$as_me:$LINENO: checking for crypt" >&5
10605 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10606 if test "${ac_cv_func_crypt+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10617 #define crypt innocuous_crypt
10619 /* System header to define __stub macros and hopefully few prototypes,
10620 which can conflict with char crypt (); below.
10621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10622 <limits.h> exists even on freestanding compilers. */
10625 # include <limits.h>
10627 # include <assert.h>
10632 /* Override any gcc2 internal prototype to avoid an error. */
10637 /* We use char because int might match the return type of a gcc2
10638 builtin and then its argument prototype would still apply. */
10640 /* The GNU C library defines this for functions which it implements
10641 to always fail with ENOSYS. Some functions are actually named
10642 something starting with __ and the normal name is an alias. */
10643 #if defined (__stub_crypt) || defined (__stub___crypt)
10646 char (*f) () = crypt;
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>conftest.er1
10664 grep -v '^ *+' conftest.er1 >conftest.err
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag"
10670 || test ! -s conftest.err'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; } &&
10676 { ac_try='test -s conftest$ac_exeext'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_cv_func_crypt=yes
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_cv_func_crypt=no
10689 rm -f conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10692 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10693 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10694 if test $ac_cv_func_crypt = yes; then
10697 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10698 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10699 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 ac_check_lib_save_LIBS=$LIBS
10703 LIBS="-lcrypt $LIBS"
10704 cat >conftest.$ac_ext <<_ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h. */
10711 /* Override any gcc2 internal prototype to avoid an error. */
10715 /* We use char because int might match the return type of a gcc2
10716 builtin and then its argument prototype would still apply. */
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag"
10736 || test ! -s conftest.err'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest$ac_exeext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_cv_lib_crypt_crypt=yes
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 ac_cv_lib_crypt_crypt=no
10755 rm -f conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10759 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10760 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10761 if test $ac_cv_lib_crypt_crypt = yes; then
10762 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10767 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10768 SQL_LFLAGS=$POSTGRESQL_LFLAGS
10769 SQL_BINDIR=$POSTGRESQL_BINDIR
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_POSTGRESQL 1
10774 echo "$as_me:$LINENO: result: yes" >&5
10775 echo "${ECHO_T}yes" >&6
10777 support_postgresql=yes
10781 echo "$as_me:$LINENO: result: no" >&5
10782 echo "${ECHO_T}no" >&6
10787 echo "$as_me:$LINENO: result: no" >&5
10788 echo "${ECHO_T}no" >&6
10799 echo "$as_me:$LINENO: checking for MySQL support" >&5
10800 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10802 # Check whether --with-mysql or --without-mysql was given.
10803 if test "${with_mysql+set}" = set; then
10804 withval="$with_mysql"
10806 if test "$withval" != "no"; then
10807 if test "$withval" = "yes"; then
10808 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10809 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10810 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10811 MYSQL_BINDIR=/usr/local/mysql/bin
10812 elif test -f /usr/include/mysql/mysql.h; then
10813 MYSQL_INCDIR=/usr/include/mysql
10814 MYSQL_LIBDIR=/usr/lib/mysql
10815 MYSQL_BINDIR=/usr/bin
10816 elif test -f /usr/include/mysql.h; then
10817 MYSQL_INCDIR=/usr/include
10818 MYSQL_LIBDIR=/usr/lib
10819 MYSQL_BINDIR=/usr/bin
10820 elif test -f /usr/local/include/mysql/mysql.h; then
10821 MYSQL_INCDIR=/usr/local/include/mysql
10822 MYSQL_LIBDIR=/usr/local/lib/mysql
10823 MYSQL_BINDIR=/usr/local/bin
10824 elif test -f /usr/local/include/mysql.h; then
10825 MYSQL_INCDIR=/usr/local/include
10826 MYSQL_LIBDIR=/usr/local/lib
10827 MYSQL_BINDIR=/usr/local/bin
10829 echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6
10831 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10832 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10833 { (exit 1); exit 1; }; }
10836 if test -f $withval/include/mysql/mysql.h; then
10837 MYSQL_INCDIR=$withval/include/mysql
10838 MYSQL_LIBDIR=$withval/lib/mysql
10839 MYSQL_BINDIR=$withval/bin
10840 elif test -f $withval/include/mysql.h; then
10841 MYSQL_INCDIR=$withval/include
10842 MYSQL_LIBDIR=$withval/lib
10843 MYSQL_BINDIR=$withval/bin
10845 echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6
10847 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10848 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10849 { (exit 1); exit 1; }; }
10852 SQL_INCLUDE=-I$MYSQL_INCDIR
10853 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
10854 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
10855 cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_THREAD_SAFE_MYSQL 1
10860 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
10862 SQL_BINDIR=$MYSQL_BINDIR
10864 cat >>confdefs.h <<\_ACEOF
10865 #define HAVE_MYSQL 1
10868 echo "$as_me:$LINENO: result: yes" >&5
10869 echo "${ECHO_T}yes" >&6
10876 echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6
10884 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
10885 if test "${with_embedded_mysql+set}" = set; then
10886 withval="$with_embedded_mysql"
10888 if test "$withval" != "no"; then
10889 if test "$withval" = "yes"; then
10890 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10891 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10892 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10893 MYSQL_BINDIR=/usr/local/mysql/bin
10894 elif test -f /usr/include/mysql/mysql.h; then
10895 MYSQL_INCDIR=/usr/include/mysql
10896 MYSQL_LIBDIR=/usr/lib/mysql
10897 MYSQL_BINDIR=/usr/bin
10898 elif test -f /usr/include/mysql.h; then
10899 MYSQL_INCDIR=/usr/include
10900 MYSQL_LIBDIR=/usr/lib
10901 MYSQL_BINDIR=/usr/bin
10902 elif test -f /usr/local/include/mysql/mysql.h; then
10903 MYSQL_INCDIR=/usr/local/include/mysql
10904 MYSQL_LIBDIR=/usr/local/lib/mysql
10905 MYSQL_BINDIR=/usr/local/bin
10906 elif test -f /usr/local/include/mysql.h; then
10907 MYSQL_INCDIR=/usr/local/include
10908 MYSQL_LIBDIR=/usr/local/lib
10909 MYSQL_BINDIR=/usr/local/bin
10911 echo "$as_me:$LINENO: result: no" >&5
10912 echo "${ECHO_T}no" >&6
10913 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10914 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10915 { (exit 1); exit 1; }; }
10918 if test -f $withval/include/mysql/mysql.h; then
10919 MYSQL_INCDIR=$withval/include/mysql
10920 MYSQL_LIBDIR=$withval/lib/mysql
10921 MYSQL_BINDIR=$withval/bin
10922 elif test -f $withval/include/mysql.h; then
10923 MYSQL_INCDIR=$withval/include
10924 MYSQL_LIBDIR=$withval/lib
10925 MYSQL_BINDIR=$withval/bin
10927 echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6
10929 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10930 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10931 { (exit 1); exit 1; }; }
10934 SQL_INCLUDE=-I$MYSQL_INCDIR
10935 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
10936 SQL_BINDIR=$MYSQL_BINDIR
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_MYSQL 1
10942 cat >>confdefs.h <<\_ACEOF
10943 #define HAVE_EMBEDDED_MYSQL 1
10946 echo "$as_me:$LINENO: result: yes" >&5
10947 echo "${ECHO_T}yes" >&6
10954 echo "$as_me:$LINENO: result: no" >&5
10955 echo "${ECHO_T}no" >&6
10970 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
10971 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
10973 # Check whether --with-sqlite3 or --without-sqlite3 was given.
10974 if test "${with_sqlite3+set}" = set; then
10975 withval="$with_sqlite3"
10977 if test "$withval" != "no"; then
10978 if test "$withval" = "yes"; then
10979 if test -f /usr/local/include/sqlite3.h; then
10980 SQLITE_INCDIR=/usr/local/include
10981 SQLITE_LIBDIR=/usr/local/lib
10982 SQLITE_BINDIR=/usr/local/bin
10983 elif test -f /usr/include/sqlite3.h; then
10984 SQLITE_INCDIR=/usr/include
10985 SQLITE_LIBDIR=/usr/lib
10986 SQLITE_BINDIR=/usr/bin
10987 elif test -f $prefix/include/sqlite3.h; then
10988 SQLITE_INCDIR=$prefix/include
10989 SQLITE_LIBDIR=$prefix/lib
10990 SQLITE_BINDIR=$prefix/bin
10992 echo "$as_me:$LINENO: result: no" >&5
10993 echo "${ECHO_T}no" >&6
10994 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
10995 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
10996 { (exit 1); exit 1; }; }
10999 if test -f $withval/sqlite3.h; then
11000 SQLITE_INCDIR=$withval
11001 SQLITE_LIBDIR=$withval
11002 SQLITE_BINDIR=$withval
11003 elif test -f $withval/include/sqlite3.h; then
11004 SQLITE_INCDIR=$withval/include
11005 SQLITE_LIBDIR=$withval/lib
11006 SQLITE_BINDIR=$withval/bin
11008 echo "$as_me:$LINENO: result: no" >&5
11009 echo "${ECHO_T}no" >&6
11010 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11011 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11012 { (exit 1); exit 1; }; }
11015 SQL_INCLUDE=-I$SQLITE_INCDIR
11016 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11017 SQL_BINDIR=$SQLITE_BINDIR
11019 cat >>confdefs.h <<\_ACEOF
11020 #define HAVE_SQLITE3 1
11023 echo "$as_me:$LINENO: result: yes" >&5
11024 echo "${ECHO_T}yes" >&6
11026 support_sqlite3=yes
11031 echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11037 echo "$as_me:$LINENO: result: no" >&5
11038 echo "${ECHO_T}no" >&6
11049 echo "$as_me:$LINENO: checking for SQLite support" >&5
11050 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11052 # Check whether --with-sqlite or --without-sqlite was given.
11053 if test "${with_sqlite+set}" = set; then
11054 withval="$with_sqlite"
11056 if test "$withval" != "no"; then
11057 if test "$withval" = "yes"; then
11058 if test -f /usr/local/include/sqlite.h; then
11059 SQLITE_INCDIR=/usr/local/include
11060 SQLITE_LIBDIR=/usr/local/lib
11061 SQLITE_BINDIR=/usr/local/bin
11062 elif test -f /usr/include/sqlite.h; then
11063 SQLITE_INCDIR=/usr/include
11064 SQLITE_LIBDIR=/usr/lib
11065 SQLITE_BINDIR=/usr/bin
11066 elif test -f $prefix/include/sqlite.h; then
11067 SQLITE_INCDIR=$prefix/include
11068 SQLITE_LIBDIR=$prefix/lib
11069 SQLITE_BINDIR=$prefix/bin
11071 echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6
11073 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11074 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11075 { (exit 1); exit 1; }; }
11078 if test -f $withval/sqlite.h; then
11079 SQLITE_INCDIR=$withval
11080 SQLITE_LIBDIR=$withval
11081 SQLITE_BINDIR=$withval
11082 elif test -f $withval/include/sqlite.h; then
11083 SQLITE_INCDIR=$withval/include
11084 SQLITE_LIBDIR=$withval/lib
11085 SQLITE_BINDIR=$withval/bin
11087 echo "$as_me:$LINENO: result: no" >&5
11088 echo "${ECHO_T}no" >&6
11089 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11090 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11091 { (exit 1); exit 1; }; }
11094 SQL_INCLUDE=-I$SQLITE_INCDIR
11095 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11096 SQL_BINDIR=$SQLITE_BINDIR
11098 cat >>confdefs.h <<\_ACEOF
11099 #define HAVE_SQLITE 1
11102 echo "$as_me:$LINENO: result: yes" >&5
11103 echo "${ECHO_T}yes" >&6
11110 echo "$as_me:$LINENO: result: no" >&5
11111 echo "${ECHO_T}no" >&6
11116 echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6
11129 cat >>confdefs.h <<\_ACEOF
11130 #define PROTOTYPES 1
11134 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11135 if test -z "$CCOPTS"; then
11136 CCOPTS='-g -O2 -Wall'
11144 largefile_support="no"
11146 # Check whether --enable-largefile or --disable-largefile was given.
11147 if test "${enable_largefile+set}" = set; then
11148 enableval="$enable_largefile"
11151 if test "$enable_largefile" != no; then
11152 if test -n "$ac_tool_prefix"; then
11153 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11154 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11155 echo "$as_me:$LINENO: checking for $ac_word" >&5
11156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11157 if test "${ac_cv_prog_GETCONF+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 if test -n "$GETCONF"; then
11161 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 GETCONF=$ac_cv_prog_GETCONF
11180 if test -n "$GETCONF"; then
11181 echo "$as_me:$LINENO: result: $GETCONF" >&5
11182 echo "${ECHO_T}$GETCONF" >&6
11184 echo "$as_me:$LINENO: result: no" >&5
11185 echo "${ECHO_T}no" >&6
11189 if test -z "$ac_cv_prog_GETCONF"; then
11190 ac_ct_GETCONF=$GETCONF
11191 # Extract the first word of "getconf", so it can be a program name with args.
11192 set dummy getconf; ac_word=$2
11193 echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11195 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 if test -n "$ac_ct_GETCONF"; then
11199 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208 ac_cv_prog_ac_ct_GETCONF="getconf"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11218 if test -n "$ac_ct_GETCONF"; then
11219 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11220 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11222 echo "$as_me:$LINENO: result: no" >&5
11223 echo "${ECHO_T}no" >&6
11226 GETCONF=$ac_ct_GETCONF
11228 GETCONF="$ac_cv_prog_GETCONF"
11231 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11232 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11233 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11237 ac_cv_sys_largefile_CFLAGS=no
11239 # IRIX 6.2 and later require cc -n32.
11240 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11241 if test "$GCC" != yes; then
11242 ac_cv_sys_largefile_CFLAGS=-n32
11245 CC="$CC $ac_cv_sys_largefile_CFLAGS"
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11263 (eval $ac_link) 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
11270 { ac_try='test -z "$ac_c_werror_flag"
11271 || test ! -s conftest.err'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest$ac_exeext'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_cv_sys_largefile_CFLAGS=no
11290 rm -f conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11296 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11297 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11298 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11299 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11300 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11304 ac_cv_sys_largefile_LDFLAGS=no
11308 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11309 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11310 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11311 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11312 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11316 ac_cv_sys_largefile_LIBS=no
11320 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11321 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11323 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11326 -D_FILE_OFFSET_BITS=*) ;;
11327 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11328 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11333 case "$CPPFLAGS" in
11334 '') CPPFLAGS="$ac_flag" ;;
11335 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11343 '') CFLAGS="$ac_flag" ;;
11344 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11349 case "$ac_cv_sys_largefile_LDFLAGS" in
11353 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11354 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11357 case "$ac_cv_sys_largefile_LIBS" in
11361 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11362 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11365 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11366 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11367 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 ac_cv_sys_file_offset_bits=no
11371 ac_cv_sys_file_offset_bits=64
11372 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11374 -D_FILE_OFFSET_BITS)
11375 ac_cv_sys_file_offset_bits=1 ;;
11376 -D_FILE_OFFSET_BITS=*)
11377 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11382 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11383 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11384 if test "$ac_cv_sys_file_offset_bits" != no; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11391 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11392 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11393 if test "${ac_cv_sys_largefile_source+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 ac_cv_sys_largefile_source=no
11397 ac_cv_sys_largefile_source=1
11398 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11400 -D_LARGEFILE_SOURCE)
11401 ac_cv_sys_largefile_source=1 ;;
11402 -D_LARGEFILE_SOURCE=*)
11403 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11408 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11409 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11410 if test "$ac_cv_sys_largefile_source" != no; then
11412 cat >>confdefs.h <<_ACEOF
11413 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11417 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11418 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11419 if test "${ac_cv_sys_large_files+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 ac_cv_sys_large_files=no
11423 ac_cv_sys_large_files=1
11424 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11427 ac_cv_sys_large_files=1 ;;
11429 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11434 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11435 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11436 if test "$ac_cv_sys_large_files" != no; then
11438 cat >>confdefs.h <<_ACEOF
11439 #define _LARGE_FILES $ac_cv_sys_large_files
11447 echo "$as_me:$LINENO: checking for X" >&5
11448 echo $ECHO_N "checking for X... $ECHO_C" >&6
11451 # Check whether --with-x or --without-x was given.
11452 if test "${with_x+set}" = set; then
11456 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11457 if test "x$with_x" = xno; then
11458 # The user explicitly disabled X.
11461 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11462 # Both variables are already set.
11465 if test "${ac_cv_have_x+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 # One or both of the vars are not set, and there is no cached value.
11469 ac_x_includes=no ac_x_libraries=no
11470 rm -fr conftest.dir
11471 if mkdir conftest.dir; then
11473 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11474 cat >Imakefile <<'_ACEOF'
11476 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11478 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11480 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11481 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11482 for ac_extension in a so sl; do
11483 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11484 test -f $ac_im_libdir/libX11.$ac_extension; then
11485 ac_im_usrlibdir=$ac_im_libdir; break
11488 # Screen out bogus values from the imake configuration. They are
11489 # bogus both because they are the default anyway, and because
11490 # using them would break gcc on systems where it needs fixed includes.
11491 case $ac_im_incroot in
11493 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11495 case $ac_im_usrlibdir in
11496 /usr/lib | /lib) ;;
11497 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11501 rm -fr conftest.dir
11504 # Standard set of common directories for X headers.
11505 # Check X11 before X11Rn because it is often a symlink to the current release.
11517 /usr/local/X11/include
11518 /usr/local/X11R6/include
11519 /usr/local/X11R5/include
11520 /usr/local/X11R4/include
11522 /usr/local/include/X11
11523 /usr/local/include/X11R6
11524 /usr/local/include/X11R5
11525 /usr/local/include/X11R4
11529 /usr/XFree86/include/X11
11533 /usr/unsupported/include
11534 /usr/athena/include
11535 /usr/local/x11r5/include
11536 /usr/lpp/Xamples/include
11538 /usr/openwin/include
11539 /usr/openwin/share/include'
11541 if test "$ac_x_includes" = no; then
11542 # Guess where to find include files, by looking for Intrinsic.h.
11543 # First, try using that file with no special directory specified.
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <X11/Intrinsic.h>
11552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11555 grep -v '^ *+' conftest.er1 >conftest.err
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } >/dev/null; then
11560 if test -s conftest.err; then
11561 ac_cpp_err=$ac_c_preproc_warn_flag
11562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11569 if test -z "$ac_cpp_err"; then
11570 # We can compile using X headers with no special include directory.
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 for ac_dir in $ac_x_header_dirs; do
11577 if test -r "$ac_dir/X11/Intrinsic.h"; then
11578 ac_x_includes=$ac_dir
11583 rm -f conftest.err conftest.$ac_ext
11584 fi # $ac_x_includes = no
11586 if test "$ac_x_libraries" = no; then
11587 # Check for the libraries.
11588 # See if we find them without any special options.
11589 # Don't add to $LIBS permanently.
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 #include <X11/Intrinsic.h>
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11609 (eval $ac_link) 2>conftest.er1
11611 grep -v '^ *+' conftest.er1 >conftest.err
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag"
11617 || test ! -s conftest.err'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try='test -s conftest$ac_exeext'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11630 # We can link X programs with no special library path.
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11637 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11639 # Don't even attempt the hair of trying to link an X program!
11640 for ac_extension in a so sl; do
11641 if test -r $ac_dir/libXt.$ac_extension; then
11642 ac_x_libraries=$ac_dir
11648 rm -f conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 fi # $ac_x_libraries = no
11652 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11653 # Didn't find X anywhere. Cache the known absence of X.
11654 ac_cv_have_x="have_x=no"
11656 # Record where we found X for the cache.
11657 ac_cv_have_x="have_x=yes \
11658 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11663 eval "$ac_cv_have_x"
11666 if test "$have_x" != yes; then
11667 echo "$as_me:$LINENO: result: $have_x" >&5
11668 echo "${ECHO_T}$have_x" >&6
11671 # If each of the values was on the command line, it overrides each guess.
11672 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11673 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11674 # Update the cache value to reflect the command line values.
11675 ac_cv_have_x="have_x=yes \
11676 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11677 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11678 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11681 if test "$no_x" = yes; then
11682 # Not all programs may use this symbol, but it does not hurt to define it.
11684 cat >>confdefs.h <<\_ACEOF
11685 #define X_DISPLAY_MISSING 1
11688 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11690 if test -n "$x_includes"; then
11691 X_CFLAGS="$X_CFLAGS -I$x_includes"
11694 # It would also be nice to do this for all -L options, not just this one.
11695 if test -n "$x_libraries"; then
11696 X_LIBS="$X_LIBS -L$x_libraries"
11697 # For Solaris; some versions of Sun CC require a space after -R and
11698 # others require no space. Words are not sufficient . . . .
11699 case `(uname -sr) 2>/dev/null` in
11701 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11702 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11703 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11704 cat >conftest.$ac_ext <<_ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>conftest.er1
11723 grep -v '^ *+' conftest.er1 >conftest.err
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -z "$ac_c_werror_flag"
11729 || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11748 rm -f conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750 if test $ac_R_nospace = yes; then
11751 echo "$as_me:$LINENO: result: no" >&5
11752 echo "${ECHO_T}no" >&6
11753 X_LIBS="$X_LIBS -R$x_libraries"
11755 LIBS="$ac_xsave_LIBS -R $x_libraries"
11756 cat >conftest.$ac_ext <<_ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773 (eval $ac_link) 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_c_werror_flag"
11781 || test ! -s conftest.err'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest$ac_exeext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11800 rm -f conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext conftest.$ac_ext
11802 if test $ac_R_space = yes; then
11803 echo "$as_me:$LINENO: result: yes" >&5
11804 echo "${ECHO_T}yes" >&6
11805 X_LIBS="$X_LIBS -R $x_libraries"
11807 echo "$as_me:$LINENO: result: neither works" >&5
11808 echo "${ECHO_T}neither works" >&6
11811 LIBS=$ac_xsave_LIBS
11815 # Check for system-dependent libraries X programs must link with.
11816 # Do this before checking for the system-independent R6 libraries
11817 # (-lICE), since we may need -lsocket or whatever for X linking.
11819 if test "$ISC" = yes; then
11820 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11822 # Martyn Johnson says this is needed for Ultrix, if the X
11823 # libraries were built with DECnet support. And Karl Berry says
11824 # the Alpha needs dnet_stub (dnet does not exist).
11825 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11833 /* Override any gcc2 internal prototype to avoid an error. */
11837 /* We use char because int might match the return type of a gcc2
11838 builtin and then its argument prototype would still apply. */
11839 char XOpenDisplay ();
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11850 (eval $ac_link) 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag"
11858 || test ! -s conftest.err'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest$ac_exeext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11876 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11877 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-ldnet $LIBS"
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11889 /* Override any gcc2 internal prototype to avoid an error. */
11893 /* We use char because int might match the return type of a gcc2
11894 builtin and then its argument prototype would still apply. */
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest$ac_exeext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 ac_cv_lib_dnet_dnet_ntoa=yes
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_cv_lib_dnet_dnet_ntoa=no
11933 rm -f conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11937 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11938 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11939 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11940 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11943 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11944 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11945 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11946 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-ldnet_stub $LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 /* Override any gcc2 internal prototype to avoid an error. */
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>conftest.er1
11977 grep -v '^ *+' conftest.er1 >conftest.err
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest$ac_exeext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_lib_dnet_stub_dnet_ntoa=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_cv_lib_dnet_stub_dnet_ntoa=no
12002 rm -f conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12007 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12008 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12009 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12014 rm -f conftest.err conftest.$ac_objext \
12015 conftest$ac_exeext conftest.$ac_ext
12016 LIBS="$ac_xsave_LIBS"
12018 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12019 # to get the SysV transport functions.
12020 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12022 # The nsl library prevents programs from opening the X display
12023 # on Irix 5.2, according to T.E. Dickey.
12024 # The functions gethostbyname, getservbyname, and inet_addr are
12025 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12026 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12027 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12028 if test "${ac_cv_func_gethostbyname+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 cat >conftest.$ac_ext <<_ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12039 #define gethostbyname innocuous_gethostbyname
12041 /* System header to define __stub macros and hopefully few prototypes,
12042 which can conflict with char gethostbyname (); below.
12043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12044 <limits.h> exists even on freestanding compilers. */
12047 # include <limits.h>
12049 # include <assert.h>
12052 #undef gethostbyname
12054 /* Override any gcc2 internal prototype to avoid an error. */
12059 /* We use char because int might match the return type of a gcc2
12060 builtin and then its argument prototype would still apply. */
12061 char gethostbyname ();
12062 /* The GNU C library defines this for functions which it implements
12063 to always fail with ENOSYS. Some functions are actually named
12064 something starting with __ and the normal name is an alias. */
12065 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12068 char (*f) () = gethostbyname;
12077 return f != gethostbyname;
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12084 (eval $ac_link) 2>conftest.er1
12086 grep -v '^ *+' conftest.er1 >conftest.err
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag"
12092 || test ! -s conftest.err'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_cv_func_gethostbyname=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_cv_func_gethostbyname=no
12111 rm -f conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12114 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12115 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12117 if test $ac_cv_func_gethostbyname = no; then
12118 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12119 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12120 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 ac_check_lib_save_LIBS=$LIBS
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12132 /* Override any gcc2 internal prototype to avoid an error. */
12136 /* We use char because int might match the return type of a gcc2
12137 builtin and then its argument prototype would still apply. */
12138 char gethostbyname ();
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149 (eval $ac_link) 2>conftest.er1
12151 grep -v '^ *+' conftest.er1 >conftest.err
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -z "$ac_c_werror_flag"
12157 || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_lib_nsl_gethostbyname=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_cv_lib_nsl_gethostbyname=no
12176 rm -f conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12180 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12181 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12182 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12183 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12186 if test $ac_cv_lib_nsl_gethostbyname = no; then
12187 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12188 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12189 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 ac_check_lib_save_LIBS=$LIBS
12194 cat >conftest.$ac_ext <<_ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12201 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char gethostbyname ();
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>conftest.er1
12220 grep -v '^ *+' conftest.er1 >conftest.err
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -z "$ac_c_werror_flag"
12226 || test ! -s conftest.err'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } &&
12232 { ac_try='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_lib_bsd_gethostbyname=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_cv_lib_bsd_gethostbyname=no
12245 rm -f conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12247 LIBS=$ac_check_lib_save_LIBS
12249 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12250 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12251 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12258 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12259 # socket/setsockopt and other routines are undefined under SCO ODT
12260 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12261 # on later versions), says Simon Leinen: it contains gethostby*
12262 # variants that don't use the name server (or something). -lsocket
12263 # must be given before -lnsl if both are needed. We assume that
12264 # if connect needs -lnsl, so does gethostbyname.
12265 echo "$as_me:$LINENO: checking for connect" >&5
12266 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12267 if test "${ac_cv_func_connect+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12278 #define connect innocuous_connect
12280 /* System header to define __stub macros and hopefully few prototypes,
12281 which can conflict with char connect (); below.
12282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12283 <limits.h> exists even on freestanding compilers. */
12286 # include <limits.h>
12288 # include <assert.h>
12293 /* Override any gcc2 internal prototype to avoid an error. */
12298 /* We use char because int might match the return type of a gcc2
12299 builtin and then its argument prototype would still apply. */
12301 /* The GNU C library defines this for functions which it implements
12302 to always fail with ENOSYS. Some functions are actually named
12303 something starting with __ and the normal name is an alias. */
12304 #if defined (__stub_connect) || defined (__stub___connect)
12307 char (*f) () = connect;
12316 return f != connect;
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12323 (eval $ac_link) 2>conftest.er1
12325 grep -v '^ *+' conftest.er1 >conftest.err
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_c_werror_flag"
12331 || test ! -s conftest.err'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_func_connect=yes
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_cv_func_connect=no
12350 rm -f conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12353 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12354 echo "${ECHO_T}$ac_cv_func_connect" >&6
12356 if test $ac_cv_func_connect = no; then
12357 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12358 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12359 if test "${ac_cv_lib_socket_connect+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12371 /* Override any gcc2 internal prototype to avoid an error. */
12375 /* We use char because int might match the return type of a gcc2
12376 builtin and then its argument prototype would still apply. */
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12388 (eval $ac_link) 2>conftest.er1
12390 grep -v '^ *+' conftest.er1 >conftest.err
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag"
12396 || test ! -s conftest.err'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; } &&
12402 { ac_try='test -s conftest$ac_exeext'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 ac_cv_lib_socket_connect=yes
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12413 ac_cv_lib_socket_connect=no
12415 rm -f conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12419 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12420 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12421 if test $ac_cv_lib_socket_connect = yes; then
12422 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12427 # Guillermo Gomez says -lposix is necessary on A/UX.
12428 echo "$as_me:$LINENO: checking for remove" >&5
12429 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12430 if test "${ac_cv_func_remove+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 cat >conftest.$ac_ext <<_ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12441 #define remove innocuous_remove
12443 /* System header to define __stub macros and hopefully few prototypes,
12444 which can conflict with char remove (); below.
12445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12446 <limits.h> exists even on freestanding compilers. */
12449 # include <limits.h>
12451 # include <assert.h>
12456 /* Override any gcc2 internal prototype to avoid an error. */
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12464 /* The GNU C library defines this for functions which it implements
12465 to always fail with ENOSYS. Some functions are actually named
12466 something starting with __ and the normal name is an alias. */
12467 #if defined (__stub_remove) || defined (__stub___remove)
12470 char (*f) () = remove;
12479 return f != remove;
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12486 (eval $ac_link) 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -z "$ac_c_werror_flag"
12494 || test ! -s conftest.err'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest$ac_exeext'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; }; then
12506 ac_cv_func_remove=yes
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_cv_func_remove=no
12513 rm -f conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
12516 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12517 echo "${ECHO_T}$ac_cv_func_remove" >&6
12519 if test $ac_cv_func_remove = no; then
12520 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12521 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12522 if test "${ac_cv_lib_posix_remove+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lposix $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551 (eval $ac_link) 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag"
12559 || test ! -s conftest.err'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 ac_cv_lib_posix_remove=yes
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_cv_lib_posix_remove=no
12578 rm -f conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12582 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12583 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12584 if test $ac_cv_lib_posix_remove = yes; then
12585 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12590 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12591 echo "$as_me:$LINENO: checking for shmat" >&5
12592 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12593 if test "${ac_cv_func_shmat+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12604 #define shmat innocuous_shmat
12606 /* System header to define __stub macros and hopefully few prototypes,
12607 which can conflict with char shmat (); below.
12608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12609 <limits.h> exists even on freestanding compilers. */
12612 # include <limits.h>
12614 # include <assert.h>
12619 /* Override any gcc2 internal prototype to avoid an error. */
12624 /* We use char because int might match the return type of a gcc2
12625 builtin and then its argument prototype would still apply. */
12627 /* The GNU C library defines this for functions which it implements
12628 to always fail with ENOSYS. Some functions are actually named
12629 something starting with __ and the normal name is an alias. */
12630 #if defined (__stub_shmat) || defined (__stub___shmat)
12633 char (*f) () = shmat;
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649 (eval $ac_link) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest$ac_exeext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_cv_func_shmat=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_cv_func_shmat=no
12676 rm -f conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12679 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12680 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12682 if test $ac_cv_func_shmat = no; then
12683 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12684 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12685 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_check_lib_save_LIBS=$LIBS
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 /* Override any gcc2 internal prototype to avoid an error. */
12701 /* We use char because int might match the return type of a gcc2
12702 builtin and then its argument prototype would still apply. */
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>conftest.er1
12716 grep -v '^ *+' conftest.er1 >conftest.err
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -z "$ac_c_werror_flag"
12722 || test ! -s conftest.err'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest$ac_exeext'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_cv_lib_ipc_shmat=yes
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_cv_lib_ipc_shmat=no
12741 rm -f conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12745 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12746 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12747 if test $ac_cv_lib_ipc_shmat = yes; then
12748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12754 # Check for libraries that X11R6 Xt/Xaw programs need.
12755 ac_save_LDFLAGS=$LDFLAGS
12756 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12757 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12758 # check for ICE first), but we must link in the order -lSM -lICE or
12759 # we get undefined symbols. So assume we have SM if we have ICE.
12760 # These have to be linked with before -lX11, unlike the other
12761 # libraries we check for below, so use a different variable.
12762 # John Interrante, Karl Berry
12763 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12764 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12765 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 ac_check_lib_save_LIBS=$LIBS
12769 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12770 cat >conftest.$ac_ext <<_ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12777 /* Override any gcc2 internal prototype to avoid an error. */
12781 /* We use char because int might match the return type of a gcc2
12782 builtin and then its argument prototype would still apply. */
12783 char IceConnectionNumber ();
12787 IceConnectionNumber ();
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794 (eval $ac_link) 2>conftest.er1
12796 grep -v '^ *+' conftest.er1 >conftest.err
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -z "$ac_c_werror_flag"
12802 || test ! -s conftest.err'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest$ac_exeext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_cv_lib_ICE_IceConnectionNumber=yes
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_cv_lib_ICE_IceConnectionNumber=no
12821 rm -f conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12826 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12827 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12828 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12831 LDFLAGS=$ac_save_LDFLAGS
12893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12895 echo "$as_me:$LINENO: checking for $ac_header" >&5
12896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12903 # Is the header compilable?
12904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12906 cat >conftest.$ac_ext <<_ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912 $ac_includes_default
12913 #include <$ac_header>
12915 rm -f conftest.$ac_objext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917 (eval $ac_compile) 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag"
12925 || test ! -s conftest.err'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest.$ac_objext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12937 ac_header_compiler=yes
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 ac_header_compiler=no
12944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12946 echo "${ECHO_T}$ac_header_compiler" >&6
12948 # Is the header present?
12949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 #include <$ac_header>
12959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } >/dev/null; then
12967 if test -s conftest.err; then
12968 ac_cpp_err=$ac_c_preproc_warn_flag
12969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12976 if test -z "$ac_cpp_err"; then
12977 ac_header_preproc=yes
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_header_preproc=no
12984 rm -f conftest.err conftest.$ac_ext
12985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12986 echo "${ECHO_T}$ac_header_preproc" >&6
12988 # So? What about this header?
12989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12995 ac_header_preproc=yes
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13012 ## ------------------------------------------ ##
13013 ## Report this to the AC_PACKAGE_NAME lists. ##
13014 ## ------------------------------------------ ##
13017 sed "s/^/$as_me: WARNING: /" >&2
13020 echo "$as_me:$LINENO: checking for $ac_header" >&5
13021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 eval "$as_ac_Header=\$ac_header_preproc"
13027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13032 cat >>confdefs.h <<_ACEOF
13033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13040 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13042 if test "${ac_cv_header_stdc+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 cat >conftest.$ac_ext <<_ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 #include <stdlib.h>
13052 #include <stdarg.h>
13053 #include <string.h>
13064 rm -f conftest.$ac_objext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13066 (eval $ac_compile) 2>conftest.er1
13068 grep -v '^ *+' conftest.er1 >conftest.err
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -z "$ac_c_werror_flag"
13074 || test ! -s conftest.err'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest.$ac_objext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_header_stdc=yes
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13091 ac_cv_header_stdc=no
13093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13095 if test $ac_cv_header_stdc = yes; then
13096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13097 cat >conftest.$ac_ext <<_ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103 #include <string.h>
13106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13107 $EGREP "memchr" >/dev/null 2>&1; then
13110 ac_cv_header_stdc=no
13116 if test $ac_cv_header_stdc = yes; then
13117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <stdlib.h>
13127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13128 $EGREP "free" >/dev/null 2>&1; then
13131 ac_cv_header_stdc=no
13137 if test $ac_cv_header_stdc = yes; then
13138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13139 if test "$cross_compiling" = yes; then
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13149 #if ((' ' & 0x0FF) == 0x020)
13150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13153 # define ISLOWER(c) \
13154 (('a' <= (c) && (c) <= 'i') \
13155 || ('j' <= (c) && (c) <= 'r') \
13156 || ('s' <= (c) && (c) <= 'z'))
13157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13165 for (i = 0; i < 256; i++)
13166 if (XOR (islower (i), ISLOWER (i))
13167 || toupper (i) != TOUPPER (i))
13172 rm -f conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174 (eval $ac_link) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13185 echo "$as_me: program exited with status $ac_status" >&5
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ( exit $ac_status )
13190 ac_cv_header_stdc=no
13192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13198 if test $ac_cv_header_stdc = yes; then
13200 cat >>confdefs.h <<\_ACEOF
13201 #define STDC_HEADERS 1
13206 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13207 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13208 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 cat >conftest.$ac_ext <<_ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13217 #include <sys/types.h>
13221 return makedev(0, 0);
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13228 (eval $ac_link) 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
13235 { ac_try='test -z "$ac_c_werror_flag"
13236 || test ! -s conftest.err'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; } &&
13242 { ac_try='test -s conftest$ac_exeext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 ac_cv_header_sys_types_h_makedev=yes
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13253 ac_cv_header_sys_types_h_makedev=no
13255 rm -f conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13259 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13260 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13262 if test $ac_cv_header_sys_types_h_makedev = no; then
13263 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13264 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13265 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13266 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13270 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13272 # Is the header compilable?
13273 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13274 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13275 cat >conftest.$ac_ext <<_ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13281 $ac_includes_default
13282 #include <sys/mkdev.h>
13284 rm -f conftest.$ac_objext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286 (eval $ac_compile) 2>conftest.er1
13288 grep -v '^ *+' conftest.er1 >conftest.err
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
13293 { ac_try='test -z "$ac_c_werror_flag"
13294 || test ! -s conftest.err'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } &&
13300 { ac_try='test -s conftest.$ac_objext'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13306 ac_header_compiler=yes
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13311 ac_header_compiler=no
13313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13315 echo "${ECHO_T}$ac_header_compiler" >&6
13317 # Is the header present?
13318 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13319 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13320 cat >conftest.$ac_ext <<_ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13326 #include <sys/mkdev.h>
13328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13331 grep -v '^ *+' conftest.er1 >conftest.err
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } >/dev/null; then
13336 if test -s conftest.err; then
13337 ac_cpp_err=$ac_c_preproc_warn_flag
13338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13345 if test -z "$ac_cpp_err"; then
13346 ac_header_preproc=yes
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 ac_header_preproc=no
13353 rm -f conftest.err conftest.$ac_ext
13354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13355 echo "${ECHO_T}$ac_header_preproc" >&6
13357 # So? What about this header?
13358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13361 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13363 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13364 ac_header_preproc=yes
13367 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13368 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13369 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
13370 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
13371 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13372 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13373 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
13374 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
13375 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13376 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13377 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13378 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13381 ## ------------------------------------------ ##
13382 ## Report this to the AC_PACKAGE_NAME lists. ##
13383 ## ------------------------------------------ ##
13386 sed "s/^/$as_me: WARNING: /" >&2
13389 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13390 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13391 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 ac_cv_header_sys_mkdev_h=$ac_header_preproc
13396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13397 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13400 if test $ac_cv_header_sys_mkdev_h = yes; then
13402 cat >>confdefs.h <<\_ACEOF
13403 #define MAJOR_IN_MKDEV 1
13410 if test $ac_cv_header_sys_mkdev_h = no; then
13411 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13412 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13413 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13414 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13418 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13420 # Is the header compilable?
13421 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13422 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 $ac_includes_default
13430 #include <sys/sysmacros.h>
13432 rm -f conftest.$ac_objext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag"
13442 || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest.$ac_objext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_header_compiler=yes
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 ac_header_compiler=no
13461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13463 echo "${ECHO_T}$ac_header_compiler" >&6
13465 # Is the header present?
13466 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13467 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <sys/sysmacros.h>
13476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } >/dev/null; then
13484 if test -s conftest.err; then
13485 ac_cpp_err=$ac_c_preproc_warn_flag
13486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13493 if test -z "$ac_cpp_err"; then
13494 ac_header_preproc=yes
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ac_header_preproc=no
13501 rm -f conftest.err conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13503 echo "${ECHO_T}$ac_header_preproc" >&6
13505 # So? What about this header?
13506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13508 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13509 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13511 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13512 ac_header_preproc=yes
13515 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13516 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
13518 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13520 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
13522 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13524 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13525 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13526 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13529 ## ------------------------------------------ ##
13530 ## Report this to the AC_PACKAGE_NAME lists. ##
13531 ## ------------------------------------------ ##
13534 sed "s/^/$as_me: WARNING: /" >&2
13537 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13538 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13539 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13544 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13545 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13548 if test $ac_cv_header_sys_sysmacros_h = yes; then
13550 cat >>confdefs.h <<\_ACEOF
13551 #define MAJOR_IN_SYSMACROS 1
13565 ac_header_dirent=no
13566 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13567 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13568 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13569 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 cat >conftest.$ac_ext <<_ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 #include <sys/types.h>
13591 rm -f conftest.$ac_objext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593 (eval $ac_compile) 2>conftest.er1
13595 grep -v '^ *+' conftest.er1 >conftest.err
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } &&
13600 { ac_try='test -z "$ac_c_werror_flag"
13601 || test ! -s conftest.err'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; } &&
13607 { ac_try='test -s conftest.$ac_objext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 eval "$as_ac_Header=yes"
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 eval "$as_ac_Header=no"
13620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13625 cat >>confdefs.h <<_ACEOF
13626 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13629 ac_header_dirent=$ac_hdr; break
13633 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13634 if test $ac_header_dirent = dirent.h; then
13635 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13636 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13637 if test "${ac_cv_search_opendir+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 ac_func_search_save_LIBS=$LIBS
13641 ac_cv_search_opendir=no
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13649 /* Override any gcc2 internal prototype to avoid an error. */
13653 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_cv_search_opendir="none required"
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13692 rm -f conftest.err conftest.$ac_objext \
13693 conftest$ac_exeext conftest.$ac_ext
13694 if test "$ac_cv_search_opendir" = no; then
13695 for ac_lib in dir; do
13696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13697 cat >conftest.$ac_ext <<_ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13704 /* Override any gcc2 internal prototype to avoid an error. */
13708 /* We use char because int might match the return type of a gcc2
13709 builtin and then its argument prototype would still apply. */
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>conftest.er1
13723 grep -v '^ *+' conftest.er1 >conftest.err
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest$ac_exeext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_cv_search_opendir="-l$ac_lib"
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13748 rm -f conftest.err conftest.$ac_objext \
13749 conftest$ac_exeext conftest.$ac_ext
13752 LIBS=$ac_func_search_save_LIBS
13754 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13755 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13756 if test "$ac_cv_search_opendir" != no; then
13757 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13762 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13763 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13764 if test "${ac_cv_search_opendir+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 ac_func_search_save_LIBS=$LIBS
13768 ac_cv_search_opendir=no
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13776 /* Override any gcc2 internal prototype to avoid an error. */
13780 /* We use char because int might match the return type of a gcc2
13781 builtin and then its argument prototype would still apply. */
13791 rm -f conftest.$ac_objext conftest$ac_exeext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13793 (eval $ac_link) 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag"
13801 || test ! -s conftest.err'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest$ac_exeext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_search_opendir="none required"
13815 echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13819 rm -f conftest.err conftest.$ac_objext \
13820 conftest$ac_exeext conftest.$ac_ext
13821 if test "$ac_cv_search_opendir" = no; then
13822 for ac_lib in x; do
13823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13831 /* Override any gcc2 internal prototype to avoid an error. */
13835 /* We use char because int might match the return type of a gcc2
13836 builtin and then its argument prototype would still apply. */
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13848 (eval $ac_link) 2>conftest.er1
13850 grep -v '^ *+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag"
13856 || test ! -s conftest.err'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest$ac_exeext'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; }; then
13868 ac_cv_search_opendir="-l$ac_lib"
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13875 rm -f conftest.err conftest.$ac_objext \
13876 conftest$ac_exeext conftest.$ac_ext
13879 LIBS=$ac_func_search_save_LIBS
13881 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13882 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13883 if test "$ac_cv_search_opendir" != no; then
13884 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13890 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13891 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13892 if test "${ac_cv_header_stat_broken+set}" = set; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 cat >conftest.$ac_ext <<_ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901 #include <sys/types.h>
13902 #include <sys/stat.h>
13904 #if defined(S_ISBLK) && defined(S_IFDIR)
13905 # if S_ISBLK (S_IFDIR)
13910 #if defined(S_ISBLK) && defined(S_IFCHR)
13911 # if S_ISBLK (S_IFCHR)
13916 #if defined(S_ISLNK) && defined(S_IFREG)
13917 # if S_ISLNK (S_IFREG)
13922 #if defined(S_ISSOCK) && defined(S_IFREG)
13923 # if S_ISSOCK (S_IFREG)
13929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13930 $EGREP "You lose" >/dev/null 2>&1; then
13931 ac_cv_header_stat_broken=yes
13933 ac_cv_header_stat_broken=no
13938 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13939 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13940 if test $ac_cv_header_stat_broken = yes; then
13942 cat >>confdefs.h <<\_ACEOF
13943 #define STAT_MACROS_BROKEN 1
13948 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13949 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13950 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 #include <sys/types.h>
13960 #include <sys/wait.h>
13961 #ifndef WEXITSTATUS
13962 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13965 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13973 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13978 rm -f conftest.$ac_objext
13979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13980 (eval $ac_compile) 2>conftest.er1
13982 grep -v '^ *+' conftest.er1 >conftest.err
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -z "$ac_c_werror_flag"
13988 || test ! -s conftest.err'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; } &&
13994 { ac_try='test -s conftest.$ac_objext'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_header_sys_wait_h=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_header_sys_wait_h=no
14007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14010 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14011 if test $ac_cv_header_sys_wait_h = yes; then
14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_SYS_WAIT_H 1
14019 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14020 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14021 if test "${ac_cv_header_time+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 #include <sys/types.h>
14031 #include <sys/time.h>
14037 if ((struct tm *) 0)
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>conftest.er1
14047 grep -v '^ *+' conftest.er1 >conftest.err
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try='test -z "$ac_c_werror_flag"
14053 || test ! -s conftest.err'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest.$ac_objext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 ac_cv_header_time=yes
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14070 ac_cv_header_time=no
14072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14074 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14075 echo "${ECHO_T}$ac_cv_header_time" >&6
14076 if test $ac_cv_header_time = yes; then
14078 cat >>confdefs.h <<\_ACEOF
14079 #define TIME_WITH_SYS_TIME 1
14085 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14086 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14087 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 $ac_includes_default
14100 static struct stat ac_aggr;
14101 if (ac_aggr.st_blksize)
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>conftest.er1
14111 grep -v '^ *+' conftest.er1 >conftest.err
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
14116 { ac_try='test -z "$ac_c_werror_flag"
14117 || test ! -s conftest.err'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest.$ac_objext'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_member_struct_stat_st_blksize=yes
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 $ac_includes_default
14144 static struct stat ac_aggr;
14145 if (sizeof ac_aggr.st_blksize)
14151 rm -f conftest.$ac_objext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag"
14161 || test ! -s conftest.err'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 ac_cv_member_struct_stat_st_blksize=yes
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 ac_cv_member_struct_stat_st_blksize=no
14180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14184 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14185 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14186 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14188 cat >>confdefs.h <<_ACEOF
14189 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14193 cat >>confdefs.h <<\_ACEOF
14194 #define HAVE_ST_BLKSIZE 1
14200 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14201 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14202 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 $ac_includes_default
14215 static struct stat ac_aggr;
14216 if (ac_aggr.st_blocks)
14222 rm -f conftest.$ac_objext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14224 (eval $ac_compile) 2>conftest.er1
14226 grep -v '^ *+' conftest.er1 >conftest.err
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -z "$ac_c_werror_flag"
14232 || test ! -s conftest.err'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest.$ac_objext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_member_struct_stat_st_blocks=yes
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 cat >conftest.$ac_ext <<_ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14259 static struct stat ac_aggr;
14260 if (sizeof ac_aggr.st_blocks)
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -z "$ac_c_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest.$ac_objext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_cv_member_struct_stat_st_blocks=yes
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 ac_cv_member_struct_stat_st_blocks=no
14295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14299 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14300 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14301 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14308 cat >>confdefs.h <<\_ACEOF
14309 #define HAVE_ST_BLOCKS 1
14314 "fileblocks.$ac_objext" | \
14315 *" fileblocks.$ac_objext" | \
14316 "fileblocks.$ac_objext "* | \
14317 *" fileblocks.$ac_objext "* ) ;;
14318 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14324 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14325 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14326 if test "${ac_cv_struct_tm+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 cat >conftest.$ac_ext <<_ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14335 #include <sys/types.h>
14341 struct tm *tp; tp->tm_sec;
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348 (eval $ac_compile) 2>conftest.er1
14350 grep -v '^ *+' conftest.er1 >conftest.err
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -z "$ac_c_werror_flag"
14356 || test ! -s conftest.err'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try='test -s conftest.$ac_objext'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_struct_tm=time.h
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_cv_struct_tm=sys/time.h
14375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14377 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14378 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14379 if test $ac_cv_struct_tm = sys/time.h; then
14381 cat >>confdefs.h <<\_ACEOF
14382 #define TM_IN_SYS_TIME 1
14387 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14388 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14389 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 cat >conftest.$ac_ext <<_ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14398 #include <sys/types.h>
14399 #include <$ac_cv_struct_tm>
14405 static struct tm ac_aggr;
14406 if (ac_aggr.tm_zone)
14412 rm -f conftest.$ac_objext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414 (eval $ac_compile) 2>conftest.er1
14416 grep -v '^ *+' conftest.er1 >conftest.err
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_c_werror_flag"
14422 || test ! -s conftest.err'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest.$ac_objext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_cv_member_struct_tm_tm_zone=yes
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <sys/types.h>
14446 #include <$ac_cv_struct_tm>
14452 static struct tm ac_aggr;
14453 if (sizeof ac_aggr.tm_zone)
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>conftest.er1
14463 grep -v '^ *+' conftest.er1 >conftest.err
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try='test -z "$ac_c_werror_flag"
14469 || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_cv_member_struct_tm_tm_zone=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_cv_member_struct_tm_tm_zone=no
14488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14493 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14494 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14496 cat >>confdefs.h <<_ACEOF
14497 #define HAVE_STRUCT_TM_TM_ZONE 1
14503 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_TM_ZONE 1
14510 echo "$as_me:$LINENO: checking for tzname" >&5
14511 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14512 if test "${ac_cv_var_tzname+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14522 #ifndef tzname /* For SGI. */
14523 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>conftest.er1
14538 grep -v '^ *+' conftest.er1 >conftest.err
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -z "$ac_c_werror_flag"
14544 || test ! -s conftest.err'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } &&
14550 { ac_try='test -s conftest$ac_exeext'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_cv_var_tzname=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_cv_var_tzname=no
14563 rm -f conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14566 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14567 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14568 if test $ac_cv_var_tzname = yes; then
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_TZNAME 1
14578 echo "$as_me:$LINENO: checking for utime.h" >&5
14579 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14580 if test "${ba_cv_header_utime_h+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 cat >conftest.$ac_ext <<_ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14590 #include <sys/types.h>
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag"
14610 || test ! -s conftest.err'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest.$ac_objext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ba_cv_header_utime_h=yes
14624 echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14627 ba_cv_header_utime_h=no
14629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14631 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14632 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14633 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_UTIME_H 1
14638 echo "$as_me:$LINENO: checking for socklen_t" >&5
14639 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14640 if test "${ba_cv_header_socklen_t+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 cat >conftest.$ac_ext <<_ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14650 #include <sys/types.h>
14651 #include <sys/socket.h>
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>conftest.er1
14664 grep -v '^ *+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag"
14670 || test ! -s conftest.err'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest.$ac_objext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ba_cv_header_socklen_t=yes
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14687 ba_cv_header_socklen_t=no
14689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14691 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14692 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14693 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_SOCKLEN_T 1
14698 echo "$as_me:$LINENO: checking for bigendian" >&5
14699 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14700 if test "${ba_cv_bigendian+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 if test "$cross_compiling" = yes; then
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14714 rm -f conftest$ac_exeext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14716 (eval $ac_link) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 ba_cv_bigendian=yes
14727 echo "$as_me: program exited with status $ac_status" >&5
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 ( exit $ac_status )
14734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14737 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14738 echo "${ECHO_T}$ba_cv_bigendian" >&6
14739 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_BIGENDIAN 1
14745 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14746 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14747 if test "${ac_cv_c_const+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14760 /* FIXME: Include the comments suggested by Paul. */
14761 #ifndef __cplusplus
14762 /* Ultrix mips cc rejects this. */
14763 typedef int charset[2];
14765 /* SunOS 4.1.1 cc rejects this. */
14766 char const *const *ccp;
14768 /* NEC SVR4.0.2 mips cc rejects this. */
14769 struct point {int x, y;};
14770 static struct point const zero = {0,0};
14771 /* AIX XL C 1.02.0.0 rejects this.
14772 It does not let you subtract one const X* pointer from another in
14773 an arm of an if-expression whose if-part is not a constant
14775 const char *g = "string";
14776 ccp = &g + (g ? g-g : 0);
14777 /* HPUX 7.0 cc rejects these. */
14780 ccp = (char const *const *) p;
14781 { /* SCO 3.2v4 cc rejects this. */
14783 char const *s = 0 ? (char *) 0 : (char const *) 0;
14787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14788 int x[] = {25, 17};
14789 const int *foo = &x[0];
14792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14793 typedef const int *iptr;
14797 { /* AIX XL C 1.02.0.0 rejects this saying
14798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14799 struct s { int j; const int *ap[3]; };
14800 struct s *b; b->j = 5;
14802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14803 const int foo = 10;
14811 rm -f conftest.$ac_objext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14813 (eval $ac_compile) 2>conftest.er1
14815 grep -v '^ *+' conftest.er1 >conftest.err
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -z "$ac_c_werror_flag"
14821 || test ! -s conftest.err'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; } &&
14827 { ac_try='test -s conftest.$ac_objext'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14842 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14843 echo "${ECHO_T}$ac_cv_c_const" >&6
14844 if test $ac_cv_c_const = no; then
14846 cat >>confdefs.h <<\_ACEOF
14854 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14855 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14857 # The order of these tests is important.
14858 cat >conftest.$ac_ext <<_ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 #include <sys/statvfs.h>
14865 #include <sys/fstyp.h>
14867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14870 grep -v '^ *+' conftest.er1 >conftest.err
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } >/dev/null; then
14875 if test -s conftest.err; then
14876 ac_cpp_err=$ac_c_preproc_warn_flag
14877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14884 if test -z "$ac_cpp_err"; then
14885 cat >>confdefs.h <<\_ACEOF
14886 #define FSTYPE_STATVFS 1
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14895 rm -f conftest.err conftest.$ac_ext
14896 if test $fstype = no; then
14897 cat >conftest.$ac_ext <<_ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 #include <sys/statfs.h>
14904 #include <sys/fstyp.h>
14906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14909 grep -v '^ *+' conftest.er1 >conftest.err
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } >/dev/null; then
14914 if test -s conftest.err; then
14915 ac_cpp_err=$ac_c_preproc_warn_flag
14916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14923 if test -z "$ac_cpp_err"; then
14924 cat >>confdefs.h <<\_ACEOF
14925 #define FSTYPE_USG_STATFS 1
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14934 rm -f conftest.err conftest.$ac_ext
14936 if test $fstype = no; then
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 #include <sys/statfs.h>
14944 #include <sys/vmount.h>
14946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14949 grep -v '^ *+' conftest.er1 >conftest.err
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } >/dev/null; then
14954 if test -s conftest.err; then
14955 ac_cpp_err=$ac_c_preproc_warn_flag
14956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14963 if test -z "$ac_cpp_err"; then
14964 cat >>confdefs.h <<\_ACEOF
14965 #define FSTYPE_AIX_STATFS 1
14969 echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14974 rm -f conftest.err conftest.$ac_ext
14976 if test $fstype = no; then
14977 cat >conftest.$ac_ext <<_ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 #include <mntent.h>
14985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14988 grep -v '^ *+' conftest.er1 >conftest.err
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } >/dev/null; then
14993 if test -s conftest.err; then
14994 ac_cpp_err=$ac_c_preproc_warn_flag
14995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15002 if test -z "$ac_cpp_err"; then
15003 cat >>confdefs.h <<\_ACEOF
15004 #define FSTYPE_MNTENT 1
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15013 rm -f conftest.err conftest.$ac_ext
15015 if test $fstype = no; then
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 #include <sys/mount.h>
15025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15026 $EGREP "f_type;" >/dev/null 2>&1; then
15027 cat >>confdefs.h <<\_ACEOF
15028 #define FSTYPE_STATFS 1
15035 if test $fstype = no; then
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <sys/mount.h>
15043 #include <sys/fs_types.h>
15045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15048 grep -v '^ *+' conftest.er1 >conftest.err
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } >/dev/null; then
15053 if test -s conftest.err; then
15054 ac_cpp_err=$ac_c_preproc_warn_flag
15055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15062 if test -z "$ac_cpp_err"; then
15063 cat >>confdefs.h <<\_ACEOF
15064 #define FSTYPE_GETMNT 1
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15073 rm -f conftest.err conftest.$ac_ext
15075 echo "$as_me:$LINENO: result: $fstype" >&5
15076 echo "${ECHO_T}$fstype" >&6
15078 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15079 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15080 if test "${ac_cv_type_signal+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #include <sys/types.h>
15090 #include <signal.h>
15095 extern "C" void (*signal (int, void (*)(int)))(int);
15097 void (*signal ()) ();
15108 rm -f conftest.$ac_objext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110 (eval $ac_compile) 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag"
15118 || test ! -s conftest.err'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_cv_type_signal=void
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15135 ac_cv_type_signal=int
15137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15139 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15140 echo "${ECHO_T}$ac_cv_type_signal" >&6
15142 cat >>confdefs.h <<_ACEOF
15143 #define RETSIGTYPE $ac_cv_type_signal
15148 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15149 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15150 if test "${bash_cv_signal_vintage+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 #include <signal.h>
15166 struct sigaction sa;
15167 sigemptyset(&ss); sigsuspend(&ss);
15168 sigaction(SIGINT, &sa, (struct sigaction *) 0);
15169 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15175 rm -f conftest.$ac_objext conftest$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177 (eval $ac_link) 2>conftest.er1
15179 grep -v '^ *+' conftest.er1 >conftest.err
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -z "$ac_c_werror_flag"
15185 || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest$ac_exeext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 bash_cv_signal_vintage=posix
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #include <signal.h>
15214 int mask = sigmask(SIGINT);
15215 sigsetmask(mask); sigblock(mask); sigpause(mask);
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest$ac_exeext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 bash_cv_signal_vintage=4.2bsd
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15256 #include <signal.h>
15257 RETSIGTYPE foo() { }
15262 int mask = sigmask(SIGINT);
15263 sigset(SIGINT, foo); sigrelse(SIGINT);
15264 sighold(SIGINT); sigpause(SIGINT);
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15272 (eval $ac_link) 2>conftest.er1
15274 grep -v '^ *+' conftest.er1 >conftest.err
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
15279 { ac_try='test -z "$ac_c_werror_flag"
15280 || test ! -s conftest.err'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; } &&
15286 { ac_try='test -s conftest$ac_exeext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 bash_cv_signal_vintage=svr3
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 bash_cv_signal_vintage=v7
15300 rm -f conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15304 rm -f conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15308 rm -f conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15313 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15314 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15315 if test "$bash_cv_signal_vintage" = posix; then
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE_POSIX_SIGNALS 1
15320 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15321 cat >>confdefs.h <<\_ACEOF
15322 #define HAVE_BSD_SIGNALS 1
15325 elif test "$bash_cv_signal_vintage" = svr3; then
15326 cat >>confdefs.h <<\_ACEOF
15327 #define HAVE_USG_SIGHOLD 1
15332 echo "$as_me:$LINENO: checking for mode_t" >&5
15333 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15334 if test "${ac_cv_type_mode_t+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 $ac_includes_default
15349 if (sizeof (mode_t))
15355 rm -f conftest.$ac_objext
15356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15357 (eval $ac_compile) 2>conftest.er1
15359 grep -v '^ *+' conftest.er1 >conftest.err
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag"
15365 || test ! -s conftest.err'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; } &&
15371 { ac_try='test -s conftest.$ac_objext'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15377 ac_cv_type_mode_t=yes
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_cv_type_mode_t=no
15384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15386 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15387 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15388 if test $ac_cv_type_mode_t = yes; then
15392 cat >>confdefs.h <<_ACEOF
15398 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15399 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15400 if test "${ac_cv_type_uid_t+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 cat >conftest.$ac_ext <<_ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15409 #include <sys/types.h>
15412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15413 $EGREP "uid_t" >/dev/null 2>&1; then
15414 ac_cv_type_uid_t=yes
15416 ac_cv_type_uid_t=no
15421 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15422 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15423 if test $ac_cv_type_uid_t = no; then
15425 cat >>confdefs.h <<\_ACEOF
15430 cat >>confdefs.h <<\_ACEOF
15436 echo "$as_me:$LINENO: checking for size_t" >&5
15437 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15438 if test "${ac_cv_type_size_t+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 $ac_includes_default
15453 if (sizeof (size_t))
15459 rm -f conftest.$ac_objext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461 (eval $ac_compile) 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_type_size_t=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_cv_type_size_t=no
15488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15490 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15491 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15492 if test $ac_cv_type_size_t = yes; then
15496 cat >>confdefs.h <<_ACEOF
15497 #define size_t unsigned
15502 echo "$as_me:$LINENO: checking for pid_t" >&5
15503 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15504 if test "${ac_cv_type_pid_t+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 $ac_includes_default
15519 if (sizeof (pid_t))
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>conftest.er1
15529 grep -v '^ *+' conftest.er1 >conftest.err
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 ac_cv_type_pid_t=yes
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15552 ac_cv_type_pid_t=no
15554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15557 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15558 if test $ac_cv_type_pid_t = yes; then
15562 cat >>confdefs.h <<_ACEOF
15568 echo "$as_me:$LINENO: checking for off_t" >&5
15569 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15570 if test "${ac_cv_type_off_t+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 cat >conftest.$ac_ext <<_ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15579 $ac_includes_default
15585 if (sizeof (off_t))
15591 rm -f conftest.$ac_objext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15593 (eval $ac_compile) 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -z "$ac_c_werror_flag"
15601 || test ! -s conftest.err'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_cv_type_off_t=yes
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_cv_type_off_t=no
15620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15622 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15623 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15624 if test $ac_cv_type_off_t = yes; then
15628 cat >>confdefs.h <<_ACEOF
15634 echo "$as_me:$LINENO: checking for ino_t" >&5
15635 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15636 if test "${ac_cv_type_ino_t+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 cat >conftest.$ac_ext <<_ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 $ac_includes_default
15651 if (sizeof (ino_t))
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659 (eval $ac_compile) 2>conftest.er1
15661 grep -v '^ *+' conftest.er1 >conftest.err
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -z "$ac_c_werror_flag"
15667 || test ! -s conftest.err'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_cv_type_ino_t=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_cv_type_ino_t=no
15686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15688 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15689 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15690 if test $ac_cv_type_ino_t = yes; then
15694 cat >>confdefs.h <<_ACEOF
15695 #define ino_t unsigned long
15700 echo "$as_me:$LINENO: checking for dev_t" >&5
15701 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15702 if test "${ac_cv_type_dev_t+set}" = set; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 cat >conftest.$ac_ext <<_ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 $ac_includes_default
15717 if (sizeof (dev_t))
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_type_dev_t=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_cv_type_dev_t=no
15752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15755 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15756 if test $ac_cv_type_dev_t = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define dev_t unsigned long
15766 echo "$as_me:$LINENO: checking for daddr_t" >&5
15767 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15768 if test "${ac_cv_type_daddr_t+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 $ac_includes_default
15783 if (sizeof (daddr_t))
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>conftest.er1
15793 grep -v '^ *+' conftest.er1 >conftest.err
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
15798 { ac_try='test -z "$ac_c_werror_flag"
15799 || test ! -s conftest.err'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_cv_type_daddr_t=yes
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_cv_type_daddr_t=no
15818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15820 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15821 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15822 if test $ac_cv_type_daddr_t = yes; then
15826 cat >>confdefs.h <<_ACEOF
15827 #define daddr_t long
15832 echo "$as_me:$LINENO: checking for major_t" >&5
15833 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
15834 if test "${ac_cv_type_major_t+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 cat >conftest.$ac_ext <<_ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843 $ac_includes_default
15849 if (sizeof (major_t))
15855 rm -f conftest.$ac_objext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857 (eval $ac_compile) 2>conftest.er1
15859 grep -v '^ *+' conftest.er1 >conftest.err
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest.$ac_objext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_cv_type_major_t=yes
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_cv_type_major_t=no
15884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15886 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
15887 echo "${ECHO_T}$ac_cv_type_major_t" >&6
15888 if test $ac_cv_type_major_t = yes; then
15892 cat >>confdefs.h <<_ACEOF
15893 #define major_t int
15898 echo "$as_me:$LINENO: checking for minor_t" >&5
15899 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
15900 if test "${ac_cv_type_minor_t+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 cat >conftest.$ac_ext <<_ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 $ac_includes_default
15915 if (sizeof (minor_t))
15921 rm -f conftest.$ac_objext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15923 (eval $ac_compile) 2>conftest.er1
15925 grep -v '^ *+' conftest.er1 >conftest.err
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -z "$ac_c_werror_flag"
15931 || test ! -s conftest.err'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest.$ac_objext'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 ac_cv_type_minor_t=yes
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_cv_type_minor_t=no
15950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15952 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
15953 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
15954 if test $ac_cv_type_minor_t = yes; then
15958 cat >>confdefs.h <<_ACEOF
15959 #define minor_t int
15964 echo "$as_me:$LINENO: checking for ssize_t" >&5
15965 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15966 if test "${ac_cv_type_ssize_t+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 cat >conftest.$ac_ext <<_ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975 $ac_includes_default
15981 if (sizeof (ssize_t))
15987 rm -f conftest.$ac_objext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15989 (eval $ac_compile) 2>conftest.er1
15991 grep -v '^ *+' conftest.er1 >conftest.err
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } &&
15996 { ac_try='test -z "$ac_c_werror_flag"
15997 || test ! -s conftest.err'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } &&
16003 { ac_try='test -s conftest.$ac_objext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_cv_type_ssize_t=yes
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 ac_cv_type_ssize_t=no
16016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16018 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16019 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16020 if test $ac_cv_type_ssize_t = yes; then
16024 cat >>confdefs.h <<_ACEOF
16025 #define ssize_t int
16030 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16031 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16032 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 cat >conftest.$ac_ext <<_ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 $ac_includes_default
16045 static struct stat ac_aggr;
16046 if (ac_aggr.st_blocks)
16052 rm -f conftest.$ac_objext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16054 (eval $ac_compile) 2>conftest.er1
16056 grep -v '^ *+' conftest.er1 >conftest.err
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } &&
16061 { ac_try='test -z "$ac_c_werror_flag"
16062 || test ! -s conftest.err'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest.$ac_objext'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 ac_cv_member_struct_stat_st_blocks=yes
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 cat >conftest.$ac_ext <<_ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 $ac_includes_default
16089 static struct stat ac_aggr;
16090 if (sizeof ac_aggr.st_blocks)
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098 (eval $ac_compile) 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest.$ac_objext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 ac_cv_member_struct_stat_st_blocks=yes
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ac_cv_member_struct_stat_st_blocks=no
16125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16129 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16130 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16131 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16138 cat >>confdefs.h <<\_ACEOF
16139 #define HAVE_ST_BLOCKS 1
16144 "fileblocks.$ac_objext" | \
16145 *" fileblocks.$ac_objext" | \
16146 "fileblocks.$ac_objext "* | \
16147 *" fileblocks.$ac_objext "* ) ;;
16148 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16155 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16156 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16157 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 cat >conftest.$ac_ext <<_ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16170 static struct stat ac_aggr;
16171 if (ac_aggr.st_rdev)
16177 rm -f conftest.$ac_objext
16178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16179 (eval $ac_compile) 2>conftest.er1
16181 grep -v '^ *+' conftest.er1 >conftest.err
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag"
16187 || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_member_struct_stat_st_rdev=yes
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16214 static struct stat ac_aggr;
16215 if (sizeof ac_aggr.st_rdev)
16221 rm -f conftest.$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_member_struct_stat_st_rdev=yes
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 ac_cv_member_struct_stat_st_rdev=no
16250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16254 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16255 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16256 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16258 cat >>confdefs.h <<_ACEOF
16259 #define HAVE_STRUCT_STAT_ST_RDEV 1
16263 cat >>confdefs.h <<\_ACEOF
16264 #define HAVE_ST_RDEV 1
16270 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16271 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16272 if test "${ac_cv_struct_tm+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 #include <sys/types.h>
16287 struct tm *tp; tp->tm_sec;
16292 rm -f conftest.$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>conftest.er1
16296 grep -v '^ *+' conftest.er1 >conftest.err
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag"
16302 || test ! -s conftest.err'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try='test -s conftest.$ac_objext'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16314 ac_cv_struct_tm=time.h
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16319 ac_cv_struct_tm=sys/time.h
16321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16323 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16324 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16325 if test $ac_cv_struct_tm = sys/time.h; then
16327 cat >>confdefs.h <<\_ACEOF
16328 #define TM_IN_SYS_TIME 1
16333 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16334 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16335 if test "${ac_cv_c_const+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16348 /* FIXME: Include the comments suggested by Paul. */
16349 #ifndef __cplusplus
16350 /* Ultrix mips cc rejects this. */
16351 typedef int charset[2];
16353 /* SunOS 4.1.1 cc rejects this. */
16354 char const *const *ccp;
16356 /* NEC SVR4.0.2 mips cc rejects this. */
16357 struct point {int x, y;};
16358 static struct point const zero = {0,0};
16359 /* AIX XL C 1.02.0.0 rejects this.
16360 It does not let you subtract one const X* pointer from another in
16361 an arm of an if-expression whose if-part is not a constant
16363 const char *g = "string";
16364 ccp = &g + (g ? g-g : 0);
16365 /* HPUX 7.0 cc rejects these. */
16368 ccp = (char const *const *) p;
16369 { /* SCO 3.2v4 cc rejects this. */
16371 char const *s = 0 ? (char *) 0 : (char const *) 0;
16375 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16376 int x[] = {25, 17};
16377 const int *foo = &x[0];
16380 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16381 typedef const int *iptr;
16385 { /* AIX XL C 1.02.0.0 rejects this saying
16386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16387 struct s { int j; const int *ap[3]; };
16388 struct s *b; b->j = 5;
16390 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16391 const int foo = 10;
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401 (eval $ac_compile) 2>conftest.er1
16403 grep -v '^ *+' conftest.er1 >conftest.err
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try='test -z "$ac_c_werror_flag"
16409 || test ! -s conftest.err'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16430 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16431 echo "${ECHO_T}$ac_cv_c_const" >&6
16432 if test $ac_cv_c_const = no; then
16434 cat >>confdefs.h <<\_ACEOF
16442 echo "$as_me:$LINENO: checking for char" >&5
16443 echo $ECHO_N "checking for char... $ECHO_C" >&6
16444 if test "${ac_cv_type_char+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16465 rm -f conftest.$ac_objext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>conftest.er1
16469 grep -v '^ *+' conftest.er1 >conftest.err
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -z "$ac_c_werror_flag"
16475 || test ! -s conftest.err'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_type_char=yes
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16497 echo "${ECHO_T}$ac_cv_type_char" >&6
16499 echo "$as_me:$LINENO: checking size of char" >&5
16500 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16501 if test "${ac_cv_sizeof_char+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 if test "$ac_cv_type_char" = yes; then
16505 # The cast to unsigned long works around a bug in the HP C Compiler
16506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16508 # This bug is HP SR number 8606223364.
16509 if test "$cross_compiling" = yes; then
16510 # Depending upon the size, compute the lo and hi bounds.
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16521 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16562 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16569 rm -f conftest.$ac_objext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16571 (eval $ac_compile) 2>conftest.er1
16573 grep -v '^ *+' conftest.er1 >conftest.err
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -z "$ac_c_werror_flag"
16579 || test ! -s conftest.err'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest.$ac_objext'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_hi=$ac_mid; break
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_lo=`expr $ac_mid + 1`
16597 if test $ac_lo -le $ac_mid; then
16601 ac_mid=`expr 2 '*' $ac_mid + 1`
16603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 $ac_includes_default
16619 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag"
16636 || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16650 cat >conftest.$ac_ext <<_ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 $ac_includes_default
16660 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669 (eval $ac_compile) 2>conftest.er1
16671 grep -v '^ *+' conftest.er1 >conftest.err
16673 cat conftest.err >&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -z "$ac_c_werror_flag"
16677 || test ! -s conftest.err'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; } &&
16683 { ac_try='test -s conftest.$ac_objext'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
16689 ac_lo=$ac_mid; break
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ac_hi=`expr '(' $ac_mid ')' - 1`
16695 if test $ac_mid -le $ac_hi; then
16699 ac_mid=`expr 2 '*' $ac_mid`
16701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16712 # Binary search between lo and hi bounds.
16713 while test "x$ac_lo" != "x$ac_hi"; do
16714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16715 cat >conftest.$ac_ext <<_ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16721 $ac_includes_default
16725 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>conftest.er1
16736 grep -v '^ *+' conftest.er1 >conftest.err
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -z "$ac_c_werror_flag"
16742 || test ! -s conftest.err'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; } &&
16748 { ac_try='test -s conftest.$ac_objext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_lo=`expr '(' $ac_mid ')' + 1`
16761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16764 ?*) ac_cv_sizeof_char=$ac_lo;;
16765 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16766 See \`config.log' for more details." >&5
16767 echo "$as_me: error: cannot compute sizeof (char), 77
16768 See \`config.log' for more details." >&2;}
16769 { (exit 1); exit 1; }; } ;;
16772 if test "$cross_compiling" = yes; then
16773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16774 See \`config.log' for more details." >&5
16775 echo "$as_me: error: cannot run test program while cross compiling
16776 See \`config.log' for more details." >&2;}
16777 { (exit 1); exit 1; }; }
16779 cat >conftest.$ac_ext <<_ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 $ac_includes_default
16786 long longval () { return (long) (sizeof (char)); }
16787 unsigned long ulongval () { return (long) (sizeof (char)); }
16789 #include <stdlib.h>
16794 FILE *f = fopen ("conftest.val", "w");
16797 if (((long) (sizeof (char))) < 0)
16799 long i = longval ();
16800 if (i != ((long) (sizeof (char))))
16802 fprintf (f, "%ld\n", i);
16806 unsigned long i = ulongval ();
16807 if (i != ((long) (sizeof (char))))
16809 fprintf (f, "%lu\n", i);
16811 exit (ferror (f) || fclose (f) != 0);
16817 rm -f conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819 (eval $ac_link) 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_cv_sizeof_char=`cat conftest.val`
16830 echo "$as_me: program exited with status $ac_status" >&5
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ( exit $ac_status )
16835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16836 See \`config.log' for more details." >&5
16837 echo "$as_me: error: cannot compute sizeof (char), 77
16838 See \`config.log' for more details." >&2;}
16839 { (exit 1); exit 1; }; }
16841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16846 ac_cv_sizeof_char=0
16849 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16850 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16851 cat >>confdefs.h <<_ACEOF
16852 #define SIZEOF_CHAR $ac_cv_sizeof_char
16856 echo "$as_me:$LINENO: checking for short int" >&5
16857 echo $ECHO_N "checking for short int... $ECHO_C" >&6
16858 if test "${ac_cv_type_short_int+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 $ac_includes_default
16871 if ((short int *) 0)
16873 if (sizeof (short int))
16879 rm -f conftest.$ac_objext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881 (eval $ac_compile) 2>conftest.er1
16883 grep -v '^ *+' conftest.er1 >conftest.err
16885 cat conftest.err >&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } &&
16888 { ac_try='test -z "$ac_c_werror_flag"
16889 || test ! -s conftest.err'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; } &&
16895 { ac_try='test -s conftest.$ac_objext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 ac_cv_type_short_int=yes
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ac_cv_type_short_int=no
16908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16911 echo "${ECHO_T}$ac_cv_type_short_int" >&6
16913 echo "$as_me:$LINENO: checking size of short int" >&5
16914 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16915 if test "${ac_cv_sizeof_short_int+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 if test "$ac_cv_type_short_int" = yes; then
16919 # The cast to unsigned long works around a bug in the HP C Compiler
16920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16922 # This bug is HP SR number 8606223364.
16923 if test "$cross_compiling" = yes; then
16924 # Depending upon the size, compute the lo and hi bounds.
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 $ac_includes_default
16935 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16942 rm -f conftest.$ac_objext
16943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16944 (eval $ac_compile) 2>conftest.er1
16946 grep -v '^ *+' conftest.er1 >conftest.err
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
16951 { ac_try='test -z "$ac_c_werror_flag"
16952 || test ! -s conftest.err'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest.$ac_objext'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16966 cat >conftest.$ac_ext <<_ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 $ac_includes_default
16976 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
16983 rm -f conftest.$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985 (eval $ac_compile) 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
16992 { ac_try='test -z "$ac_c_werror_flag"
16993 || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest.$ac_objext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_hi=$ac_mid; break
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 ac_lo=`expr $ac_mid + 1`
17011 if test $ac_lo -le $ac_mid; then
17015 ac_mid=`expr 2 '*' $ac_mid + 1`
17017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 cat >conftest.$ac_ext <<_ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 $ac_includes_default
17033 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17040 rm -f conftest.$ac_objext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17042 (eval $ac_compile) 2>conftest.er1
17044 grep -v '^ *+' conftest.er1 >conftest.err
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -z "$ac_c_werror_flag"
17050 || test ! -s conftest.err'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; } &&
17056 { ac_try='test -s conftest.$ac_objext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17064 cat >conftest.$ac_ext <<_ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17070 $ac_includes_default
17074 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17081 rm -f conftest.$ac_objext
17082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17083 (eval $ac_compile) 2>conftest.er1
17085 grep -v '^ *+' conftest.er1 >conftest.err
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -z "$ac_c_werror_flag"
17091 || test ! -s conftest.err'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; } &&
17097 { ac_try='test -s conftest.$ac_objext'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_lo=$ac_mid; break
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ac_hi=`expr '(' $ac_mid ')' - 1`
17109 if test $ac_mid -le $ac_hi; then
17113 ac_mid=`expr 2 '*' $ac_mid`
17115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17126 # Binary search between lo and hi bounds.
17127 while test "x$ac_lo" != "x$ac_hi"; do
17128 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17129 cat >conftest.$ac_ext <<_ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17135 $ac_includes_default
17139 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17146 rm -f conftest.$ac_objext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ac_lo=`expr '(' $ac_mid ')' + 1`
17175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17178 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17179 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17180 See \`config.log' for more details." >&5
17181 echo "$as_me: error: cannot compute sizeof (short int), 77
17182 See \`config.log' for more details." >&2;}
17183 { (exit 1); exit 1; }; } ;;
17186 if test "$cross_compiling" = yes; then
17187 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17188 See \`config.log' for more details." >&5
17189 echo "$as_me: error: cannot run test program while cross compiling
17190 See \`config.log' for more details." >&2;}
17191 { (exit 1); exit 1; }; }
17193 cat >conftest.$ac_ext <<_ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 $ac_includes_default
17200 long longval () { return (long) (sizeof (short int)); }
17201 unsigned long ulongval () { return (long) (sizeof (short int)); }
17203 #include <stdlib.h>
17208 FILE *f = fopen ("conftest.val", "w");
17211 if (((long) (sizeof (short int))) < 0)
17213 long i = longval ();
17214 if (i != ((long) (sizeof (short int))))
17216 fprintf (f, "%ld\n", i);
17220 unsigned long i = ulongval ();
17221 if (i != ((long) (sizeof (short int))))
17223 fprintf (f, "%lu\n", i);
17225 exit (ferror (f) || fclose (f) != 0);
17231 rm -f conftest$ac_exeext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17233 (eval $ac_link) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_sizeof_short_int=`cat conftest.val`
17244 echo "$as_me: program exited with status $ac_status" >&5
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ( exit $ac_status )
17249 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17250 See \`config.log' for more details." >&5
17251 echo "$as_me: error: cannot compute sizeof (short int), 77
17252 See \`config.log' for more details." >&2;}
17253 { (exit 1); exit 1; }; }
17255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17260 ac_cv_sizeof_short_int=0
17263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17264 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17265 cat >>confdefs.h <<_ACEOF
17266 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17270 echo "$as_me:$LINENO: checking for int" >&5
17271 echo $ECHO_N "checking for int... $ECHO_C" >&6
17272 if test "${ac_cv_type_int+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 $ac_includes_default
17293 rm -f conftest.$ac_objext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17295 (eval $ac_compile) 2>conftest.er1
17297 grep -v '^ *+' conftest.er1 >conftest.err
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -z "$ac_c_werror_flag"
17303 || test ! -s conftest.err'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest.$ac_objext'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17325 echo "${ECHO_T}$ac_cv_type_int" >&6
17327 echo "$as_me:$LINENO: checking size of int" >&5
17328 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17329 if test "${ac_cv_sizeof_int+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 if test "$ac_cv_type_int" = yes; then
17333 # The cast to unsigned long works around a bug in the HP C Compiler
17334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17336 # This bug is HP SR number 8606223364.
17337 if test "$cross_compiling" = yes; then
17338 # Depending upon the size, compute the lo and hi bounds.
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 $ac_includes_default
17349 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358 (eval $ac_compile) 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag"
17366 || test ! -s conftest.err'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17380 cat >conftest.$ac_ext <<_ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17386 $ac_includes_default
17390 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17397 rm -f conftest.$ac_objext
17398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17399 (eval $ac_compile) 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
17406 { ac_try='test -z "$ac_c_werror_flag"
17407 || test ! -s conftest.err'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; } &&
17413 { ac_try='test -s conftest.$ac_objext'
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 ac_hi=$ac_mid; break
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 ac_lo=`expr $ac_mid + 1`
17425 if test $ac_lo -le $ac_mid; then
17429 ac_mid=`expr 2 '*' $ac_mid + 1`
17431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 cat >conftest.$ac_ext <<_ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 $ac_includes_default
17447 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17454 rm -f conftest.$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456 (eval $ac_compile) 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try='test -z "$ac_c_werror_flag"
17464 || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest.$ac_objext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17478 cat >conftest.$ac_ext <<_ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 $ac_includes_default
17488 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17495 rm -f conftest.$ac_objext
17496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17497 (eval $ac_compile) 2>conftest.er1
17499 grep -v '^ *+' conftest.er1 >conftest.err
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag"
17505 || test ! -s conftest.err'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest.$ac_objext'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_lo=$ac_mid; break
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_hi=`expr '(' $ac_mid ')' - 1`
17523 if test $ac_mid -le $ac_hi; then
17527 ac_mid=`expr 2 '*' $ac_mid`
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17540 # Binary search between lo and hi bounds.
17541 while test "x$ac_lo" != "x$ac_hi"; do
17542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 $ac_includes_default
17553 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17560 rm -f conftest.$ac_objext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17562 (eval $ac_compile) 2>conftest.er1
17564 grep -v '^ *+' conftest.er1 >conftest.err
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try='test -z "$ac_c_werror_flag"
17570 || test ! -s conftest.err'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try='test -s conftest.$ac_objext'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17587 ac_lo=`expr '(' $ac_mid ')' + 1`
17589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17592 ?*) ac_cv_sizeof_int=$ac_lo;;
17593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17594 See \`config.log' for more details." >&5
17595 echo "$as_me: error: cannot compute sizeof (int), 77
17596 See \`config.log' for more details." >&2;}
17597 { (exit 1); exit 1; }; } ;;
17600 if test "$cross_compiling" = yes; then
17601 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17602 See \`config.log' for more details." >&5
17603 echo "$as_me: error: cannot run test program while cross compiling
17604 See \`config.log' for more details." >&2;}
17605 { (exit 1); exit 1; }; }
17607 cat >conftest.$ac_ext <<_ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613 $ac_includes_default
17614 long longval () { return (long) (sizeof (int)); }
17615 unsigned long ulongval () { return (long) (sizeof (int)); }
17617 #include <stdlib.h>
17622 FILE *f = fopen ("conftest.val", "w");
17625 if (((long) (sizeof (int))) < 0)
17627 long i = longval ();
17628 if (i != ((long) (sizeof (int))))
17630 fprintf (f, "%ld\n", i);
17634 unsigned long i = ulongval ();
17635 if (i != ((long) (sizeof (int))))
17637 fprintf (f, "%lu\n", i);
17639 exit (ferror (f) || fclose (f) != 0);
17645 rm -f conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647 (eval $ac_link) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 ac_cv_sizeof_int=`cat conftest.val`
17658 echo "$as_me: program exited with status $ac_status" >&5
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ( exit $ac_status )
17663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17664 See \`config.log' for more details." >&5
17665 echo "$as_me: error: cannot compute sizeof (int), 77
17666 See \`config.log' for more details." >&2;}
17667 { (exit 1); exit 1; }; }
17669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17677 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17678 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17679 cat >>confdefs.h <<_ACEOF
17680 #define SIZEOF_INT $ac_cv_sizeof_int
17684 echo "$as_me:$LINENO: checking for long int" >&5
17685 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17686 if test "${ac_cv_type_long_int+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 $ac_includes_default
17699 if ((long int *) 0)
17701 if (sizeof (long int))
17707 rm -f conftest.$ac_objext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709 (eval $ac_compile) 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag"
17717 || test ! -s conftest.err'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest.$ac_objext'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_type_long_int=yes
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_cv_type_long_int=no
17736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17738 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17739 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17741 echo "$as_me:$LINENO: checking size of long int" >&5
17742 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17743 if test "${ac_cv_sizeof_long_int+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 if test "$ac_cv_type_long_int" = yes; then
17747 # The cast to unsigned long works around a bug in the HP C Compiler
17748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17750 # This bug is HP SR number 8606223364.
17751 if test "$cross_compiling" = yes; then
17752 # Depending upon the size, compute the lo and hi bounds.
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 $ac_includes_default
17763 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17770 rm -f conftest.$ac_objext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17772 (eval $ac_compile) 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag"
17780 || test ! -s conftest.err'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest.$ac_objext'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17794 cat >conftest.$ac_ext <<_ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 $ac_includes_default
17804 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17811 rm -f conftest.$ac_objext
17812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17813 (eval $ac_compile) 2>conftest.er1
17815 grep -v '^ *+' conftest.er1 >conftest.err
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag"
17821 || test ! -s conftest.err'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; } &&
17827 { ac_try='test -s conftest.$ac_objext'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_hi=$ac_mid; break
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_lo=`expr $ac_mid + 1`
17839 if test $ac_lo -le $ac_mid; then
17843 ac_mid=`expr 2 '*' $ac_mid + 1`
17845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 cat >conftest.$ac_ext <<_ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 $ac_includes_default
17861 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17868 rm -f conftest.$ac_objext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870 (eval $ac_compile) 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag"
17878 || test ! -s conftest.err'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest.$ac_objext'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17892 cat >conftest.$ac_ext <<_ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 $ac_includes_default
17902 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17909 rm -f conftest.$ac_objext
17910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17911 (eval $ac_compile) 2>conftest.er1
17913 grep -v '^ *+' conftest.er1 >conftest.err
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
17918 { ac_try='test -z "$ac_c_werror_flag"
17919 || test ! -s conftest.err'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest.$ac_objext'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 ac_lo=$ac_mid; break
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17936 ac_hi=`expr '(' $ac_mid ')' - 1`
17937 if test $ac_mid -le $ac_hi; then
17941 ac_mid=`expr 2 '*' $ac_mid`
17943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17954 # Binary search between lo and hi bounds.
17955 while test "x$ac_lo" != "x$ac_hi"; do
17956 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 $ac_includes_default
17967 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17974 rm -f conftest.$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest.$ac_objext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18001 ac_lo=`expr '(' $ac_mid ')' + 1`
18003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18006 ?*) ac_cv_sizeof_long_int=$ac_lo;;
18007 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18008 See \`config.log' for more details." >&5
18009 echo "$as_me: error: cannot compute sizeof (long int), 77
18010 See \`config.log' for more details." >&2;}
18011 { (exit 1); exit 1; }; } ;;
18014 if test "$cross_compiling" = yes; then
18015 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18016 See \`config.log' for more details." >&5
18017 echo "$as_me: error: cannot run test program while cross compiling
18018 See \`config.log' for more details." >&2;}
18019 { (exit 1); exit 1; }; }
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 $ac_includes_default
18028 long longval () { return (long) (sizeof (long int)); }
18029 unsigned long ulongval () { return (long) (sizeof (long int)); }
18031 #include <stdlib.h>
18036 FILE *f = fopen ("conftest.val", "w");
18039 if (((long) (sizeof (long int))) < 0)
18041 long i = longval ();
18042 if (i != ((long) (sizeof (long int))))
18044 fprintf (f, "%ld\n", i);
18048 unsigned long i = ulongval ();
18049 if (i != ((long) (sizeof (long int))))
18051 fprintf (f, "%lu\n", i);
18053 exit (ferror (f) || fclose (f) != 0);
18059 rm -f conftest$ac_exeext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18061 (eval $ac_link) 2>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_sizeof_long_int=`cat conftest.val`
18072 echo "$as_me: program exited with status $ac_status" >&5
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18076 ( exit $ac_status )
18077 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18078 See \`config.log' for more details." >&5
18079 echo "$as_me: error: cannot compute sizeof (long int), 77
18080 See \`config.log' for more details." >&2;}
18081 { (exit 1); exit 1; }; }
18083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18088 ac_cv_sizeof_long_int=0
18091 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18092 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18093 cat >>confdefs.h <<_ACEOF
18094 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18098 echo "$as_me:$LINENO: checking for long long int" >&5
18099 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18100 if test "${ac_cv_type_long_long_int+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 cat >conftest.$ac_ext <<_ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109 $ac_includes_default
18113 if ((long long int *) 0)
18115 if (sizeof (long long int))
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>conftest.er1
18125 grep -v '^ *+' conftest.er1 >conftest.err
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -z "$ac_c_werror_flag"
18131 || test ! -s conftest.err'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest.$ac_objext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_cv_type_long_long_int=yes
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 ac_cv_type_long_long_int=no
18150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18152 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18153 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18155 echo "$as_me:$LINENO: checking size of long long int" >&5
18156 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18157 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 if test "$ac_cv_type_long_long_int" = yes; then
18161 # The cast to unsigned long works around a bug in the HP C Compiler
18162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18164 # This bug is HP SR number 8606223364.
18165 if test "$cross_compiling" = yes; then
18166 # Depending upon the size, compute the lo and hi bounds.
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 $ac_includes_default
18177 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18184 rm -f conftest.$ac_objext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18186 (eval $ac_compile) 2>conftest.er1
18188 grep -v '^ *+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag"
18194 || test ! -s conftest.err'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest.$ac_objext'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18208 cat >conftest.$ac_ext <<_ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 $ac_includes_default
18218 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18225 rm -f conftest.$ac_objext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18227 (eval $ac_compile) 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest.$ac_objext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 ac_hi=$ac_mid; break
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ac_lo=`expr $ac_mid + 1`
18253 if test $ac_lo -le $ac_mid; then
18257 ac_mid=`expr 2 '*' $ac_mid + 1`
18259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 cat >conftest.$ac_ext <<_ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 $ac_includes_default
18275 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18282 rm -f conftest.$ac_objext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18284 (eval $ac_compile) 2>conftest.er1
18286 grep -v '^ *+' conftest.er1 >conftest.err
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -z "$ac_c_werror_flag"
18292 || test ! -s conftest.err'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest.$ac_objext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18306 cat >conftest.$ac_ext <<_ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18312 $ac_includes_default
18316 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18323 rm -f conftest.$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_lo=$ac_mid; break
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 ac_hi=`expr '(' $ac_mid ')' - 1`
18351 if test $ac_mid -le $ac_hi; then
18355 ac_mid=`expr 2 '*' $ac_mid`
18357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 # Binary search between lo and hi bounds.
18369 while test "x$ac_lo" != "x$ac_hi"; do
18370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 $ac_includes_default
18381 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18388 rm -f conftest.$ac_objext
18389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18390 (eval $ac_compile) 2>conftest.er1
18392 grep -v '^ *+' conftest.er1 >conftest.err
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } &&
18397 { ac_try='test -z "$ac_c_werror_flag"
18398 || test ! -s conftest.err'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; } &&
18404 { ac_try='test -s conftest.$ac_objext'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; }; then
18412 echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18415 ac_lo=`expr '(' $ac_mid ')' + 1`
18417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18420 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18421 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18422 See \`config.log' for more details." >&5
18423 echo "$as_me: error: cannot compute sizeof (long long int), 77
18424 See \`config.log' for more details." >&2;}
18425 { (exit 1); exit 1; }; } ;;
18428 if test "$cross_compiling" = yes; then
18429 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18430 See \`config.log' for more details." >&5
18431 echo "$as_me: error: cannot run test program while cross compiling
18432 See \`config.log' for more details." >&2;}
18433 { (exit 1); exit 1; }; }
18435 cat >conftest.$ac_ext <<_ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 $ac_includes_default
18442 long longval () { return (long) (sizeof (long long int)); }
18443 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18445 #include <stdlib.h>
18450 FILE *f = fopen ("conftest.val", "w");
18453 if (((long) (sizeof (long long int))) < 0)
18455 long i = longval ();
18456 if (i != ((long) (sizeof (long long int))))
18458 fprintf (f, "%ld\n", i);
18462 unsigned long i = ulongval ();
18463 if (i != ((long) (sizeof (long long int))))
18465 fprintf (f, "%lu\n", i);
18467 exit (ferror (f) || fclose (f) != 0);
18473 rm -f conftest$ac_exeext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475 (eval $ac_link) 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_sizeof_long_long_int=`cat conftest.val`
18486 echo "$as_me: program exited with status $ac_status" >&5
18487 echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18490 ( exit $ac_status )
18491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18492 See \`config.log' for more details." >&5
18493 echo "$as_me: error: cannot compute sizeof (long long int), 77
18494 See \`config.log' for more details." >&2;}
18495 { (exit 1); exit 1; }; }
18497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18502 ac_cv_sizeof_long_long_int=0
18505 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18506 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18507 cat >>confdefs.h <<_ACEOF
18508 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18512 echo "$as_me:$LINENO: checking for int *" >&5
18513 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18514 if test "${ac_cv_type_int_p+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 $ac_includes_default
18529 if (sizeof (int *))
18535 rm -f conftest.$ac_objext
18536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18537 (eval $ac_compile) 2>conftest.er1
18539 grep -v '^ *+' conftest.er1 >conftest.err
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -z "$ac_c_werror_flag"
18545 || test ! -s conftest.err'
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547 (eval $ac_try) 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; } &&
18551 { ac_try='test -s conftest.$ac_objext'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_type_int_p=yes
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 ac_cv_type_int_p=no
18564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18566 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18567 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18569 echo "$as_me:$LINENO: checking size of int *" >&5
18570 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18571 if test "${ac_cv_sizeof_int_p+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 if test "$ac_cv_type_int_p" = yes; then
18575 # The cast to unsigned long works around a bug in the HP C Compiler
18576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18578 # This bug is HP SR number 8606223364.
18579 if test "$cross_compiling" = yes; then
18580 # Depending upon the size, compute the lo and hi bounds.
18581 cat >conftest.$ac_ext <<_ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18587 $ac_includes_default
18591 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18598 rm -f conftest.$ac_objext
18599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18600 (eval $ac_compile) 2>conftest.er1
18602 grep -v '^ *+' conftest.er1 >conftest.err
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -z "$ac_c_werror_flag"
18608 || test ! -s conftest.err'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try='test -s conftest.$ac_objext'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18622 cat >conftest.$ac_ext <<_ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 $ac_includes_default
18632 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18639 rm -f conftest.$ac_objext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18641 (eval $ac_compile) 2>conftest.er1
18643 grep -v '^ *+' conftest.er1 >conftest.err
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -z "$ac_c_werror_flag"
18649 || test ! -s conftest.err'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; } &&
18655 { ac_try='test -s conftest.$ac_objext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 ac_hi=$ac_mid; break
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18666 ac_lo=`expr $ac_mid + 1`
18667 if test $ac_lo -le $ac_mid; then
18671 ac_mid=`expr 2 '*' $ac_mid + 1`
18673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18679 cat >conftest.$ac_ext <<_ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 $ac_includes_default
18689 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18696 rm -f conftest.$ac_objext
18697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18698 (eval $ac_compile) 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } &&
18705 { ac_try='test -z "$ac_c_werror_flag"
18706 || test ! -s conftest.err'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } &&
18712 { ac_try='test -s conftest.$ac_objext'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; }; then
18720 cat >conftest.$ac_ext <<_ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 $ac_includes_default
18730 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18737 rm -f conftest.$ac_objext
18738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18739 (eval $ac_compile) 2>conftest.er1
18741 grep -v '^ *+' conftest.er1 >conftest.err
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
18746 { ac_try='test -z "$ac_c_werror_flag"
18747 || test ! -s conftest.err'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; } &&
18753 { ac_try='test -s conftest.$ac_objext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_lo=$ac_mid; break
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_hi=`expr '(' $ac_mid ')' - 1`
18765 if test $ac_mid -le $ac_hi; then
18769 ac_mid=`expr 2 '*' $ac_mid`
18771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18782 # Binary search between lo and hi bounds.
18783 while test "x$ac_lo" != "x$ac_hi"; do
18784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18785 cat >conftest.$ac_ext <<_ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 $ac_includes_default
18795 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18802 rm -f conftest.$ac_objext
18803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18804 (eval $ac_compile) 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -z "$ac_c_werror_flag"
18812 || test ! -s conftest.err'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; } &&
18818 { ac_try='test -s conftest.$ac_objext'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18829 ac_lo=`expr '(' $ac_mid ')' + 1`
18831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18834 ?*) ac_cv_sizeof_int_p=$ac_lo;;
18835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18836 See \`config.log' for more details." >&5
18837 echo "$as_me: error: cannot compute sizeof (int *), 77
18838 See \`config.log' for more details." >&2;}
18839 { (exit 1); exit 1; }; } ;;
18842 if test "$cross_compiling" = yes; then
18843 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18844 See \`config.log' for more details." >&5
18845 echo "$as_me: error: cannot run test program while cross compiling
18846 See \`config.log' for more details." >&2;}
18847 { (exit 1); exit 1; }; }
18849 cat >conftest.$ac_ext <<_ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18855 $ac_includes_default
18856 long longval () { return (long) (sizeof (int *)); }
18857 unsigned long ulongval () { return (long) (sizeof (int *)); }
18859 #include <stdlib.h>
18864 FILE *f = fopen ("conftest.val", "w");
18867 if (((long) (sizeof (int *))) < 0)
18869 long i = longval ();
18870 if (i != ((long) (sizeof (int *))))
18872 fprintf (f, "%ld\n", i);
18876 unsigned long i = ulongval ();
18877 if (i != ((long) (sizeof (int *))))
18879 fprintf (f, "%lu\n", i);
18881 exit (ferror (f) || fclose (f) != 0);
18887 rm -f conftest$ac_exeext
18888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18889 (eval $ac_link) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_sizeof_int_p=`cat conftest.val`
18900 echo "$as_me: program exited with status $ac_status" >&5
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 ( exit $ac_status )
18905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18906 See \`config.log' for more details." >&5
18907 echo "$as_me: error: cannot compute sizeof (int *), 77
18908 See \`config.log' for more details." >&2;}
18909 { (exit 1); exit 1; }; }
18911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18916 ac_cv_sizeof_int_p=0
18919 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
18920 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
18921 cat >>confdefs.h <<_ACEOF
18922 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
18927 # Check for sys/types.h types
18928 echo "$as_me:$LINENO: checking for u_int type" >&5
18929 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18930 if test "${ac_cv_have_u_int+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 #include <sys/types.h>
18949 rm -f conftest.$ac_objext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951 (eval $ac_compile) 2>conftest.er1
18953 grep -v '^ *+' conftest.er1 >conftest.err
18955 cat conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
18958 { ac_try='test -z "$ac_c_werror_flag"
18959 || test ! -s conftest.err'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest.$ac_objext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_have_u_int="yes"
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ac_cv_have_u_int="no"
18979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18982 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
18983 echo "${ECHO_T}$ac_cv_have_u_int" >&6
18984 if test "x$ac_cv_have_u_int" = "xyes" ; then
18985 cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_U_INT 1
18992 echo "$as_me:$LINENO: checking for intmax_t type" >&5
18993 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
18994 if test "${ac_cv_have_intmax_t+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 cat >conftest.$ac_ext <<_ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 #include <sys/types.h>
19013 rm -f conftest.$ac_objext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015 (eval $ac_compile) 2>conftest.er1
19017 grep -v '^ *+' conftest.er1 >conftest.err
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag"
19023 || test ! -s conftest.err'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest.$ac_objext'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 ac_cv_have_intmax_t="yes"
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 #include <stdint.h>
19056 rm -f conftest.$ac_objext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058 (eval $ac_compile) 2>conftest.er1
19060 grep -v '^ *+' conftest.er1 >conftest.err
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -z "$ac_c_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest.$ac_objext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 ac_cv_have_intmax_t="yes"
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 ac_cv_have_intmax_t="no"
19086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19094 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19095 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19096 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19097 cat >>confdefs.h <<\_ACEOF
19098 #define HAVE_INTMAX_T 1
19105 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19106 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19107 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 #include <sys/types.h>
19121 u_intmax_t a; a = 1;
19126 rm -f conftest.$ac_objext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19128 (eval $ac_compile) 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag"
19136 || test ! -s conftest.err'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest.$ac_objext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_cv_have_u_intmax_t="yes"
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 #include <stdint.h>
19164 u_intmax_t a; a = 1;
19169 rm -f conftest.$ac_objext
19170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19171 (eval $ac_compile) 2>conftest.er1
19173 grep -v '^ *+' conftest.er1 >conftest.err
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
19178 { ac_try='test -z "$ac_c_werror_flag"
19179 || test ! -s conftest.err'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest.$ac_objext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_have_u_intmax_t="yes"
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_have_u_intmax_t="no"
19199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19206 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19207 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19208 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_U_INTMAX_T 1
19217 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19218 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19219 if test "${ac_cv_have_intxx_t+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19223 cat >conftest.$ac_ext <<_ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 #include <sys/types.h>
19233 int8_t a; int16_t b; int32_t c; a = b = c = 1;
19238 rm -f conftest.$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19242 grep -v '^ *+' conftest.er1 >conftest.err
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_have_intxx_t="yes"
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_cv_have_intxx_t="no"
19268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19271 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19272 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19273 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19274 cat >>confdefs.h <<\_ACEOF
19275 #define HAVE_INTXX_T 1
19281 echo "$as_me:$LINENO: checking for int64_t type" >&5
19282 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19283 if test "${ac_cv_have_int64_t+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 cat >conftest.$ac_ext <<_ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <sys/types.h>
19302 rm -f conftest.$ac_objext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19304 (eval $ac_compile) 2>conftest.er1
19306 grep -v '^ *+' conftest.er1 >conftest.err
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -z "$ac_c_werror_flag"
19312 || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest.$ac_objext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 ac_cv_have_int64_t="yes"
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 ac_cv_have_int64_t="no"
19332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19335 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19336 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19337 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_INT64_T 1
19345 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19346 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19347 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 cat >conftest.$ac_ext <<_ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 #include <sys/types.h>
19361 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19366 rm -f conftest.$ac_objext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368 (eval $ac_compile) 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_have_u_intxx_t="yes"
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_cv_have_u_intxx_t="no"
19396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19399 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19400 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19401 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19402 cat >>confdefs.h <<\_ACEOF
19403 #define HAVE_U_INTXX_T 1
19409 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19410 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19411 if test "${ac_cv_have_u_int64_t+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 cat >conftest.$ac_ext <<_ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 #include <sys/types.h>
19425 u_int64_t a; a = 1;
19430 rm -f conftest.$ac_objext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19432 (eval $ac_compile) 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest.$ac_objext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_have_u_int64_t="yes"
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_cv_have_u_int64_t="no"
19460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19463 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19464 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19465 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19466 cat >>confdefs.h <<\_ACEOF
19467 #define HAVE_U_INT64_T 1
19473 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19474 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19476 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19477 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19478 cat >conftest.$ac_ext <<_ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 #include <sys/bitypes.h>
19488 int8_t a; int16_t b; int32_t c;
19489 u_int8_t e; u_int16_t f; u_int32_t g;
19490 a = b = c = e = f = g = 1;
19495 rm -f conftest.$ac_objext
19496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19497 (eval $ac_compile) 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_c_werror_flag"
19505 || test ! -s conftest.err'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest.$ac_objext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_U_INTXX_T 1
19521 cat >>confdefs.h <<\_ACEOF
19522 #define HAVE_INTXX_T 1
19525 cat >>confdefs.h <<\_ACEOF
19526 #define HAVE_SYS_BITYPES_H 1
19529 echo "$as_me:$LINENO: result: yes" >&5
19530 echo "${ECHO_T}yes" >&6
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19535 echo "$as_me:$LINENO: result: no" >&5
19536 echo "${ECHO_T}no" >&6
19539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19542 if test -z "$have_u_intxx_t" ; then
19543 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19544 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19545 if test "${ac_cv_have_uintxx_t+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 #include <sys/types.h>
19559 uint8_t a; uint16_t b;
19560 uint32_t c; a = b = c = 1;
19565 rm -f conftest.$ac_objext
19566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567 (eval $ac_compile) 2>conftest.er1
19569 grep -v '^ *+' conftest.er1 >conftest.err
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try='test -z "$ac_c_werror_flag"
19575 || test ! -s conftest.err'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; } &&
19581 { ac_try='test -s conftest.$ac_objext'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 ac_cv_have_uintxx_t="yes"
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 ac_cv_have_uintxx_t="no"
19595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19598 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19599 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19600 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19601 cat >>confdefs.h <<\_ACEOF
19602 #define HAVE_UINTXX_T 1
19608 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19609 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19611 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19612 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 #include <sys/bitypes.h>
19623 int64_t a; u_int64_t b;
19629 rm -f conftest.$ac_objext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19631 (eval $ac_compile) 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 cat >>confdefs.h <<\_ACEOF
19652 #define HAVE_U_INT64_T 1
19655 cat >>confdefs.h <<\_ACEOF
19656 #define HAVE_INT64_T 1
19659 echo "$as_me:$LINENO: result: yes" >&5
19660 echo "${ECHO_T}yes" >&6
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 echo "$as_me:$LINENO: result: no" >&5
19666 echo "${ECHO_T}no" >&6
19669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19672 if (test -z "$have_uintxx_t" && \
19673 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19675 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19676 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19677 cat >conftest.$ac_ext <<_ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 #include <sys/bitypes.h>
19687 uint8_t a; uint16_t b;
19688 uint32_t c; a = b = c = 1;
19693 rm -f conftest.$ac_objext
19694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19695 (eval $ac_compile) 2>conftest.er1
19697 grep -v '^ *+' conftest.er1 >conftest.err
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -z "$ac_c_werror_flag"
19703 || test ! -s conftest.err'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } &&
19709 { ac_try='test -s conftest.$ac_objext'
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE_UINTXX_T 1
19719 echo "$as_me:$LINENO: result: yes" >&5
19720 echo "${ECHO_T}yes" >&6
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 echo "$as_me:$LINENO: result: no" >&5
19726 echo "${ECHO_T}no" >&6
19729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19766 echo "$as_me:$LINENO: checking for $ac_func" >&5
19767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19768 if eval "test \"\${$as_ac_var+set}\" = set"; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19779 #define $ac_func innocuous_$ac_func
19781 /* System header to define __stub macros and hopefully few prototypes,
19782 which can conflict with char $ac_func (); below.
19783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19784 <limits.h> exists even on freestanding compilers. */
19787 # include <limits.h>
19789 # include <assert.h>
19794 /* Override any gcc2 internal prototype to avoid an error. */
19799 /* We use char because int might match the return type of a gcc2
19800 builtin and then its argument prototype would still apply. */
19802 /* The GNU C library defines this for functions which it implements
19803 to always fail with ENOSYS. Some functions are actually named
19804 something starting with __ and the normal name is an alias. */
19805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19808 char (*f) () = $ac_func;
19817 return f != $ac_func;
19822 rm -f conftest.$ac_objext conftest$ac_exeext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824 (eval $ac_link) 2>conftest.er1
19826 grep -v '^ *+' conftest.er1 >conftest.err
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest$ac_exeext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 eval "$as_ac_var=yes"
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 eval "$as_ac_var=no"
19851 rm -f conftest.err conftest.$ac_objext \
19852 conftest$ac_exeext conftest.$ac_ext
19854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19856 if test `eval echo '${'$as_ac_var'}'` = yes; then
19857 cat >>confdefs.h <<_ACEOF
19858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19862 echo 'configure: cannot find needed function.'; exit 1
19869 for ac_func in fchdir
19871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19872 echo "$as_me:$LINENO: checking for $ac_func" >&5
19873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19874 if eval "test \"\${$as_ac_var+set}\" = set"; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19877 cat >conftest.$ac_ext <<_ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19885 #define $ac_func innocuous_$ac_func
19887 /* System header to define __stub macros and hopefully few prototypes,
19888 which can conflict with char $ac_func (); below.
19889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19890 <limits.h> exists even on freestanding compilers. */
19893 # include <limits.h>
19895 # include <assert.h>
19900 /* Override any gcc2 internal prototype to avoid an error. */
19905 /* We use char because int might match the return type of a gcc2
19906 builtin and then its argument prototype would still apply. */
19908 /* The GNU C library defines this for functions which it implements
19909 to always fail with ENOSYS. Some functions are actually named
19910 something starting with __ and the normal name is an alias. */
19911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19914 char (*f) () = $ac_func;
19923 return f != $ac_func;
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19930 (eval $ac_link) 2>conftest.er1
19932 grep -v '^ *+' conftest.er1 >conftest.err
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
19937 { ac_try='test -z "$ac_c_werror_flag"
19938 || test ! -s conftest.err'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 eval "$as_ac_var=yes"
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 eval "$as_ac_var=no"
19957 rm -f conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19962 if test `eval echo '${'$as_ac_var'}'` = yes; then
19963 cat >>confdefs.h <<_ACEOF
19964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_FCHDIR 1
19974 for ac_func in strtoll
19976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19977 echo "$as_me:$LINENO: checking for $ac_func" >&5
19978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19979 if eval "test \"\${$as_ac_var+set}\" = set"; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19990 #define $ac_func innocuous_$ac_func
19992 /* System header to define __stub macros and hopefully few prototypes,
19993 which can conflict with char $ac_func (); below.
19994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19995 <limits.h> exists even on freestanding compilers. */
19998 # include <limits.h>
20000 # include <assert.h>
20005 /* Override any gcc2 internal prototype to avoid an error. */
20010 /* We use char because int might match the return type of a gcc2
20011 builtin and then its argument prototype would still apply. */
20013 /* The GNU C library defines this for functions which it implements
20014 to always fail with ENOSYS. Some functions are actually named
20015 something starting with __ and the normal name is an alias. */
20016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20019 char (*f) () = $ac_func;
20028 return f != $ac_func;
20033 rm -f conftest.$ac_objext conftest$ac_exeext
20034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20035 (eval $ac_link) 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_c_werror_flag"
20043 || test ! -s conftest.err'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest$ac_exeext'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 eval "$as_ac_var=yes"
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 eval "$as_ac_var=no"
20062 rm -f conftest.err conftest.$ac_objext \
20063 conftest$ac_exeext conftest.$ac_ext
20065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20067 if test `eval echo '${'$as_ac_var'}'` = yes; then
20068 cat >>confdefs.h <<_ACEOF
20069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20071 cat >>confdefs.h <<\_ACEOF
20072 #define HAVE_STRTOLL 1
20080 for ac_func in chflags
20082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20083 echo "$as_me:$LINENO: checking for $ac_func" >&5
20084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20085 if eval "test \"\${$as_ac_var+set}\" = set"; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20096 #define $ac_func innocuous_$ac_func
20098 /* System header to define __stub macros and hopefully few prototypes,
20099 which can conflict with char $ac_func (); below.
20100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20101 <limits.h> exists even on freestanding compilers. */
20104 # include <limits.h>
20106 # include <assert.h>
20111 /* Override any gcc2 internal prototype to avoid an error. */
20116 /* We use char because int might match the return type of a gcc2
20117 builtin and then its argument prototype would still apply. */
20119 /* The GNU C library defines this for functions which it implements
20120 to always fail with ENOSYS. Some functions are actually named
20121 something starting with __ and the normal name is an alias. */
20122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20125 char (*f) () = $ac_func;
20134 return f != $ac_func;
20139 rm -f conftest.$ac_objext conftest$ac_exeext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20141 (eval $ac_link) 2>conftest.er1
20143 grep -v '^ *+' conftest.er1 >conftest.err
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
20148 { ac_try='test -z "$ac_c_werror_flag"
20149 || test ! -s conftest.err'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest$ac_exeext'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 eval "$as_ac_var=yes"
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 eval "$as_ac_var=no"
20168 rm -f conftest.err conftest.$ac_objext \
20169 conftest$ac_exeext conftest.$ac_ext
20171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20173 if test `eval echo '${'$as_ac_var'}'` = yes; then
20174 cat >>confdefs.h <<_ACEOF
20175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20186 for ac_func in snprintf vsnprintf gethostid fseeko
20188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20189 echo "$as_me:$LINENO: checking for $ac_func" >&5
20190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20191 if eval "test \"\${$as_ac_var+set}\" = set"; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 cat >conftest.$ac_ext <<_ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20202 #define $ac_func innocuous_$ac_func
20204 /* System header to define __stub macros and hopefully few prototypes,
20205 which can conflict with char $ac_func (); below.
20206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20207 <limits.h> exists even on freestanding compilers. */
20210 # include <limits.h>
20212 # include <assert.h>
20217 /* Override any gcc2 internal prototype to avoid an error. */
20222 /* We use char because int might match the return type of a gcc2
20223 builtin and then its argument prototype would still apply. */
20225 /* The GNU C library defines this for functions which it implements
20226 to always fail with ENOSYS. Some functions are actually named
20227 something starting with __ and the normal name is an alias. */
20228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20231 char (*f) () = $ac_func;
20240 return f != $ac_func;
20245 rm -f conftest.$ac_objext conftest$ac_exeext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20247 (eval $ac_link) 2>conftest.er1
20249 grep -v '^ *+' conftest.er1 >conftest.err
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -z "$ac_c_werror_flag"
20255 || test ! -s conftest.err'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
20261 { ac_try='test -s conftest$ac_exeext'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 eval "$as_ac_var=yes"
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 eval "$as_ac_var=no"
20274 rm -f conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
20277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20279 if test `eval echo '${'$as_ac_var'}'` = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20292 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20295 echo "$as_me:$LINENO: checking for $ac_func" >&5
20296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20297 if eval "test \"\${$as_ac_var+set}\" = set"; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20308 #define $ac_func innocuous_$ac_func
20310 /* System header to define __stub macros and hopefully few prototypes,
20311 which can conflict with char $ac_func (); below.
20312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20313 <limits.h> exists even on freestanding compilers. */
20316 # include <limits.h>
20318 # include <assert.h>
20323 /* Override any gcc2 internal prototype to avoid an error. */
20328 /* We use char because int might match the return type of a gcc2
20329 builtin and then its argument prototype would still apply. */
20331 /* The GNU C library defines this for functions which it implements
20332 to always fail with ENOSYS. Some functions are actually named
20333 something starting with __ and the normal name is an alias. */
20334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20337 char (*f) () = $ac_func;
20346 return f != $ac_func;
20351 rm -f conftest.$ac_objext conftest$ac_exeext
20352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20353 (eval $ac_link) 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -z "$ac_c_werror_flag"
20361 || test ! -s conftest.err'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; } &&
20367 { ac_try='test -s conftest$ac_exeext'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 eval "$as_ac_var=yes"
20375 echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20378 eval "$as_ac_var=no"
20380 rm -f conftest.err conftest.$ac_objext \
20381 conftest$ac_exeext conftest.$ac_ext
20383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20385 if test `eval echo '${'$as_ac_var'}'` = yes; then
20386 cat >>confdefs.h <<_ACEOF
20387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20394 # If resolver functions are not in libc check for -lnsl or -lresolv.
20395 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20396 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20397 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20400 cat >conftest.$ac_ext <<_ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20408 #define gethostbyname_r innocuous_gethostbyname_r
20410 /* System header to define __stub macros and hopefully few prototypes,
20411 which can conflict with char gethostbyname_r (); below.
20412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413 <limits.h> exists even on freestanding compilers. */
20416 # include <limits.h>
20418 # include <assert.h>
20421 #undef gethostbyname_r
20423 /* Override any gcc2 internal prototype to avoid an error. */
20428 /* We use char because int might match the return type of a gcc2
20429 builtin and then its argument prototype would still apply. */
20430 char gethostbyname_r ();
20431 /* The GNU C library defines this for functions which it implements
20432 to always fail with ENOSYS. Some functions are actually named
20433 something starting with __ and the normal name is an alias. */
20434 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20437 char (*f) () = gethostbyname_r;
20446 return f != gethostbyname_r;
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20453 (eval $ac_link) 2>conftest.er1
20455 grep -v '^ *+' conftest.er1 >conftest.err
20457 cat conftest.err >&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } &&
20460 { ac_try='test -z "$ac_c_werror_flag"
20461 || test ! -s conftest.err'
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; } &&
20467 { ac_try='test -s conftest$ac_exeext'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; }; then
20473 ac_cv_func_gethostbyname_r=yes
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_cv_func_gethostbyname_r=no
20480 rm -f conftest.err conftest.$ac_objext \
20481 conftest$ac_exeext conftest.$ac_ext
20483 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20484 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20485 if test $ac_cv_func_gethostbyname_r = yes; then
20486 echo "$as_me:$LINENO: result: using libc's resolver" >&5
20487 echo "${ECHO_T}using libc's resolver" >&6
20490 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20491 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20492 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 ac_check_lib_save_LIBS=$LIBS
20497 cat >conftest.$ac_ext <<_ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 /* Override any gcc2 internal prototype to avoid an error. */
20508 /* We use char because int might match the return type of a gcc2
20509 builtin and then its argument prototype would still apply. */
20510 char gethostbyname_r ();
20514 gethostbyname_r ();
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20521 (eval $ac_link) 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try='test -z "$ac_c_werror_flag"
20529 || test ! -s conftest.err'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; } &&
20535 { ac_try='test -s conftest$ac_exeext'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_cv_lib_nsl_gethostbyname_r=yes
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20546 ac_cv_lib_nsl_gethostbyname_r=no
20548 rm -f conftest.err conftest.$ac_objext \
20549 conftest$ac_exeext conftest.$ac_ext
20550 LIBS=$ac_check_lib_save_LIBS
20552 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20553 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20554 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define HAVE_LIBNSL 1
20564 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20565 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20566 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 ac_check_lib_save_LIBS=$LIBS
20570 LIBS="-lresolv $LIBS"
20571 cat >conftest.$ac_ext <<_ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20578 /* Override any gcc2 internal prototype to avoid an error. */
20582 /* We use char because int might match the return type of a gcc2
20583 builtin and then its argument prototype would still apply. */
20584 char gethostbyname_r ();
20588 gethostbyname_r ();
20593 rm -f conftest.$ac_objext conftest$ac_exeext
20594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20595 (eval $ac_link) 2>conftest.er1
20597 grep -v '^ *+' conftest.er1 >conftest.err
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } &&
20602 { ac_try='test -z "$ac_c_werror_flag"
20603 || test ! -s conftest.err'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; } &&
20609 { ac_try='test -s conftest$ac_exeext'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_cv_lib_resolv_gethostbyname_r=yes
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ac_cv_lib_resolv_gethostbyname_r=no
20622 rm -f conftest.err conftest.$ac_objext \
20623 conftest$ac_exeext conftest.$ac_ext
20624 LIBS=$ac_check_lib_save_LIBS
20626 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20627 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20628 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20629 cat >>confdefs.h <<_ACEOF
20630 #define HAVE_LIBRESOLV 1
20633 LIBS="-lresolv $LIBS"
20643 for ac_func in inet_pton
20645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20646 echo "$as_me:$LINENO: checking for $ac_func" >&5
20647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20648 if eval "test \"\${$as_ac_var+set}\" = set"; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20659 #define $ac_func innocuous_$ac_func
20661 /* System header to define __stub macros and hopefully few prototypes,
20662 which can conflict with char $ac_func (); below.
20663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20664 <limits.h> exists even on freestanding compilers. */
20667 # include <limits.h>
20669 # include <assert.h>
20674 /* Override any gcc2 internal prototype to avoid an error. */
20679 /* We use char because int might match the return type of a gcc2
20680 builtin and then its argument prototype would still apply. */
20682 /* The GNU C library defines this for functions which it implements
20683 to always fail with ENOSYS. Some functions are actually named
20684 something starting with __ and the normal name is an alias. */
20685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20688 char (*f) () = $ac_func;
20697 return f != $ac_func;
20702 rm -f conftest.$ac_objext conftest$ac_exeext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20704 (eval $ac_link) 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -z "$ac_c_werror_flag"
20712 || test ! -s conftest.err'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; } &&
20718 { ac_try='test -s conftest$ac_exeext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 eval "$as_ac_var=yes"
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 eval "$as_ac_var=no"
20731 rm -f conftest.err conftest.$ac_objext \
20732 conftest$ac_exeext conftest.$ac_ext
20734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20736 if test `eval echo '${'$as_ac_var'}'` = yes; then
20737 cat >>confdefs.h <<_ACEOF
20738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20740 cat >>confdefs.h <<\_ACEOF
20741 #define HAVE_INET_PTON 1
20748 for ac_func in inet_ntop
20750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20751 echo "$as_me:$LINENO: checking for $ac_func" >&5
20752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20753 if eval "test \"\${$as_ac_var+set}\" = set"; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 cat >conftest.$ac_ext <<_ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20764 #define $ac_func innocuous_$ac_func
20766 /* System header to define __stub macros and hopefully few prototypes,
20767 which can conflict with char $ac_func (); below.
20768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20769 <limits.h> exists even on freestanding compilers. */
20772 # include <limits.h>
20774 # include <assert.h>
20779 /* Override any gcc2 internal prototype to avoid an error. */
20784 /* We use char because int might match the return type of a gcc2
20785 builtin and then its argument prototype would still apply. */
20787 /* The GNU C library defines this for functions which it implements
20788 to always fail with ENOSYS. Some functions are actually named
20789 something starting with __ and the normal name is an alias. */
20790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20793 char (*f) () = $ac_func;
20802 return f != $ac_func;
20807 rm -f conftest.$ac_objext conftest$ac_exeext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20809 (eval $ac_link) 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try='test -z "$ac_c_werror_flag"
20817 || test ! -s conftest.err'
20818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; } &&
20823 { ac_try='test -s conftest$ac_exeext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 eval "$as_ac_var=yes"
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 eval "$as_ac_var=no"
20836 rm -f conftest.err conftest.$ac_objext \
20837 conftest$ac_exeext conftest.$ac_ext
20839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20841 if test `eval echo '${'$as_ac_var'}'` = yes; then
20842 cat >>confdefs.h <<_ACEOF
20843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20845 cat >>confdefs.h <<\_ACEOF
20846 #define HAVE_INET_NTOP 1
20853 for ac_func in gethostbyname2
20855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20856 echo "$as_me:$LINENO: checking for $ac_func" >&5
20857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20858 if eval "test \"\${$as_ac_var+set}\" = set"; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20869 #define $ac_func innocuous_$ac_func
20871 /* System header to define __stub macros and hopefully few prototypes,
20872 which can conflict with char $ac_func (); below.
20873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20874 <limits.h> exists even on freestanding compilers. */
20877 # include <limits.h>
20879 # include <assert.h>
20884 /* Override any gcc2 internal prototype to avoid an error. */
20889 /* We use char because int might match the return type of a gcc2
20890 builtin and then its argument prototype would still apply. */
20892 /* The GNU C library defines this for functions which it implements
20893 to always fail with ENOSYS. Some functions are actually named
20894 something starting with __ and the normal name is an alias. */
20895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20898 char (*f) () = $ac_func;
20907 return f != $ac_func;
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20914 (eval $ac_link) 2>conftest.er1
20916 grep -v '^ *+' conftest.er1 >conftest.err
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } &&
20921 { ac_try='test -z "$ac_c_werror_flag"
20922 || test ! -s conftest.err'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; } &&
20928 { ac_try='test -s conftest$ac_exeext'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; }; then
20934 eval "$as_ac_var=yes"
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 eval "$as_ac_var=no"
20941 rm -f conftest.err conftest.$ac_objext \
20942 conftest$ac_exeext conftest.$ac_ext
20944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20946 if test `eval echo '${'$as_ac_var'}'` = yes; then
20947 cat >>confdefs.h <<_ACEOF
20948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20950 cat >>confdefs.h <<\_ACEOF
20951 #define HAVE_GETHOSTBYNAME2 1
20958 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
20959 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
20960 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 cat >conftest.$ac_ext <<_ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 #include <sys/socket.h>
20973 struct sockaddr s; s.sa_len;
20978 rm -f conftest.$ac_objext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20980 (eval $ac_compile) 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_c_werror_flag"
20988 || test ! -s conftest.err'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest.$ac_objext'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 ac_cv_struct_sockaddr_sa_len=yes
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_cv_struct_sockaddr_sa_len=no
21007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21009 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21010 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21012 if test $ac_cv_struct_sockaddr_sa_len = yes; then
21014 cat >>confdefs.h <<\_ACEOF
21015 #define HAVE_SA_LEN 1
21021 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21022 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21023 if test "${ac_cv_ipv6_support+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 cat >conftest.$ac_ext <<_ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032 #include <sys/types.h>
21033 #include <sys/socket.h>
21034 #include <netinet/in.h>
21038 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21044 rm -f conftest.$ac_objext conftest$ac_exeext
21045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21046 (eval $ac_link) 2>conftest.er1
21048 grep -v '^ *+' conftest.er1 >conftest.err
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -z "$ac_c_werror_flag"
21054 || test ! -s conftest.err'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest$ac_exeext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_cv_ipv6_support=yes
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 ac_cv_ipv6_support=no
21073 rm -f conftest.err conftest.$ac_objext \
21074 conftest$ac_exeext conftest.$ac_ext
21076 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21077 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21079 if test "$ac_cv_ipv6_support" = yes; then
21081 cat >>confdefs.h <<\_ACEOF
21082 #define HAVE_IPV6 1
21090 for ac_func in strftime
21092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21093 echo "$as_me:$LINENO: checking for $ac_func" >&5
21094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21095 if eval "test \"\${$as_ac_var+set}\" = set"; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21098 cat >conftest.$ac_ext <<_ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21106 #define $ac_func innocuous_$ac_func
21108 /* System header to define __stub macros and hopefully few prototypes,
21109 which can conflict with char $ac_func (); below.
21110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21111 <limits.h> exists even on freestanding compilers. */
21114 # include <limits.h>
21116 # include <assert.h>
21121 /* Override any gcc2 internal prototype to avoid an error. */
21126 /* We use char because int might match the return type of a gcc2
21127 builtin and then its argument prototype would still apply. */
21129 /* The GNU C library defines this for functions which it implements
21130 to always fail with ENOSYS. Some functions are actually named
21131 something starting with __ and the normal name is an alias. */
21132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21135 char (*f) () = $ac_func;
21144 return f != $ac_func;
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21151 (eval $ac_link) 2>conftest.er1
21153 grep -v '^ *+' conftest.er1 >conftest.err
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
21158 { ac_try='test -z "$ac_c_werror_flag"
21159 || test ! -s conftest.err'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; } &&
21165 { ac_try='test -s conftest$ac_exeext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 eval "$as_ac_var=yes"
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21176 eval "$as_ac_var=no"
21178 rm -f conftest.err conftest.$ac_objext \
21179 conftest$ac_exeext conftest.$ac_ext
21181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21183 if test `eval echo '${'$as_ac_var'}'` = yes; then
21184 cat >>confdefs.h <<_ACEOF
21185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21189 # strftime is in -lintl on SCO UNIX.
21190 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21191 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21192 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 ac_check_lib_save_LIBS=$LIBS
21196 LIBS="-lintl $LIBS"
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21204 /* Override any gcc2 internal prototype to avoid an error. */
21208 /* We use char because int might match the return type of a gcc2
21209 builtin and then its argument prototype would still apply. */
21219 rm -f conftest.$ac_objext conftest$ac_exeext
21220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21221 (eval $ac_link) 2>conftest.er1
21223 grep -v '^ *+' conftest.er1 >conftest.err
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
21228 { ac_try='test -z "$ac_c_werror_flag"
21229 || test ! -s conftest.err'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest$ac_exeext'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_lib_intl_strftime=yes
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ac_cv_lib_intl_strftime=no
21248 rm -f conftest.err conftest.$ac_objext \
21249 conftest$ac_exeext conftest.$ac_ext
21250 LIBS=$ac_check_lib_save_LIBS
21252 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21253 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21254 if test $ac_cv_lib_intl_strftime = yes; then
21255 cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_STRFTIME 1
21259 LIBS="-lintl $LIBS"
21266 for ac_func in vprintf
21268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21269 echo "$as_me:$LINENO: checking for $ac_func" >&5
21270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21271 if eval "test \"\${$as_ac_var+set}\" = set"; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21282 #define $ac_func innocuous_$ac_func
21284 /* System header to define __stub macros and hopefully few prototypes,
21285 which can conflict with char $ac_func (); below.
21286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21287 <limits.h> exists even on freestanding compilers. */
21290 # include <limits.h>
21292 # include <assert.h>
21297 /* Override any gcc2 internal prototype to avoid an error. */
21302 /* We use char because int might match the return type of a gcc2
21303 builtin and then its argument prototype would still apply. */
21305 /* The GNU C library defines this for functions which it implements
21306 to always fail with ENOSYS. Some functions are actually named
21307 something starting with __ and the normal name is an alias. */
21308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21311 char (*f) () = $ac_func;
21320 return f != $ac_func;
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21327 (eval $ac_link) 2>conftest.er1
21329 grep -v '^ *+' conftest.er1 >conftest.err
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } &&
21334 { ac_try='test -z "$ac_c_werror_flag"
21335 || test ! -s conftest.err'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } &&
21341 { ac_try='test -s conftest$ac_exeext'
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 eval "$as_ac_var=yes"
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 eval "$as_ac_var=no"
21354 rm -f conftest.err conftest.$ac_objext \
21355 conftest$ac_exeext conftest.$ac_ext
21357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21359 if test `eval echo '${'$as_ac_var'}'` = yes; then
21360 cat >>confdefs.h <<_ACEOF
21361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21364 echo "$as_me:$LINENO: checking for _doprnt" >&5
21365 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21366 if test "${ac_cv_func__doprnt+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 cat >conftest.$ac_ext <<_ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21377 #define _doprnt innocuous__doprnt
21379 /* System header to define __stub macros and hopefully few prototypes,
21380 which can conflict with char _doprnt (); below.
21381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21382 <limits.h> exists even on freestanding compilers. */
21385 # include <limits.h>
21387 # include <assert.h>
21392 /* Override any gcc2 internal prototype to avoid an error. */
21397 /* We use char because int might match the return type of a gcc2
21398 builtin and then its argument prototype would still apply. */
21400 /* The GNU C library defines this for functions which it implements
21401 to always fail with ENOSYS. Some functions are actually named
21402 something starting with __ and the normal name is an alias. */
21403 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21406 char (*f) () = _doprnt;
21415 return f != _doprnt;
21420 rm -f conftest.$ac_objext conftest$ac_exeext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21422 (eval $ac_link) 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -z "$ac_c_werror_flag"
21430 || test ! -s conftest.err'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; } &&
21436 { ac_try='test -s conftest$ac_exeext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 ac_cv_func__doprnt=yes
21444 echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 ac_cv_func__doprnt=no
21449 rm -f conftest.err conftest.$ac_objext \
21450 conftest$ac_exeext conftest.$ac_ext
21452 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21453 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21454 if test $ac_cv_func__doprnt = yes; then
21456 cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_DOPRNT 1
21466 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21467 # for constant arguments. Useless!
21468 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21469 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21470 if test "${ac_cv_working_alloca_h+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21473 cat >conftest.$ac_ext <<_ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 #include <alloca.h>
21483 char *p = (char *) alloca (2 * sizeof (int));
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21490 (eval $ac_link) 2>conftest.er1
21492 grep -v '^ *+' conftest.er1 >conftest.err
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } &&
21497 { ac_try='test -z "$ac_c_werror_flag"
21498 || test ! -s conftest.err'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; } &&
21504 { ac_try='test -s conftest$ac_exeext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 ac_cv_working_alloca_h=yes
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21515 ac_cv_working_alloca_h=no
21517 rm -f conftest.err conftest.$ac_objext \
21518 conftest$ac_exeext conftest.$ac_ext
21520 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21521 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21522 if test $ac_cv_working_alloca_h = yes; then
21524 cat >>confdefs.h <<\_ACEOF
21525 #define HAVE_ALLOCA_H 1
21530 echo "$as_me:$LINENO: checking for alloca" >&5
21531 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21532 if test "${ac_cv_func_alloca_works+set}" = set; then
21533 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 cat >conftest.$ac_ext <<_ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h. */
21542 # define alloca __builtin_alloca
21545 # include <malloc.h>
21546 # define alloca _alloca
21549 # include <alloca.h>
21554 # ifndef alloca /* predefined by HP cc +Olibcalls */
21565 char *p = (char *) alloca (1);
21570 rm -f conftest.$ac_objext conftest$ac_exeext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21572 (eval $ac_link) 2>conftest.er1
21574 grep -v '^ *+' conftest.er1 >conftest.err
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
21579 { ac_try='test -z "$ac_c_werror_flag"
21580 || test ! -s conftest.err'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; } &&
21586 { ac_try='test -s conftest$ac_exeext'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_cv_func_alloca_works=yes
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ac_cv_func_alloca_works=no
21599 rm -f conftest.err conftest.$ac_objext \
21600 conftest$ac_exeext conftest.$ac_ext
21602 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21603 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21605 if test $ac_cv_func_alloca_works = yes; then
21607 cat >>confdefs.h <<\_ACEOF
21608 #define HAVE_ALLOCA 1
21612 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21613 # that cause trouble. Some versions do not even contain alloca or
21614 # contain a buggy version. If you still want to use their alloca,
21615 # use ar to extract alloca.o from them instead of compiling alloca.c.
21617 ALLOCA=alloca.$ac_objext
21619 cat >>confdefs.h <<\_ACEOF
21624 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21625 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21626 if test "${ac_cv_os_cray+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 #if defined(CRAY) && ! defined(CRAY2)
21642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21643 $EGREP "webecray" >/dev/null 2>&1; then
21651 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21652 echo "${ECHO_T}$ac_cv_os_cray" >&6
21653 if test $ac_cv_os_cray = yes; then
21654 for ac_func in _getb67 GETB67 getb67; do
21655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21656 echo "$as_me:$LINENO: checking for $ac_func" >&5
21657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21658 if eval "test \"\${$as_ac_var+set}\" = set"; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21669 #define $ac_func innocuous_$ac_func
21671 /* System header to define __stub macros and hopefully few prototypes,
21672 which can conflict with char $ac_func (); below.
21673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21674 <limits.h> exists even on freestanding compilers. */
21677 # include <limits.h>
21679 # include <assert.h>
21684 /* Override any gcc2 internal prototype to avoid an error. */
21689 /* We use char because int might match the return type of a gcc2
21690 builtin and then its argument prototype would still apply. */
21692 /* The GNU C library defines this for functions which it implements
21693 to always fail with ENOSYS. Some functions are actually named
21694 something starting with __ and the normal name is an alias. */
21695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21698 char (*f) () = $ac_func;
21707 return f != $ac_func;
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21714 (eval $ac_link) 2>conftest.er1
21716 grep -v '^ *+' conftest.er1 >conftest.err
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try='test -z "$ac_c_werror_flag"
21722 || test ! -s conftest.err'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest$ac_exeext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 eval "$as_ac_var=yes"
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 eval "$as_ac_var=no"
21741 rm -f conftest.err conftest.$ac_objext \
21742 conftest$ac_exeext conftest.$ac_ext
21744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21746 if test `eval echo '${'$as_ac_var'}'` = yes; then
21748 cat >>confdefs.h <<_ACEOF
21749 #define CRAY_STACKSEG_END $ac_func
21758 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21759 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21760 if test "${ac_cv_c_stack_direction+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 if test "$cross_compiling" = yes; then
21764 ac_cv_c_stack_direction=0
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21773 find_stack_direction ()
21775 static char *addr = 0;
21780 return find_stack_direction ();
21783 return (&dummy > addr) ? 1 : -1;
21789 exit (find_stack_direction () < 0);
21792 rm -f conftest$ac_exeext
21793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21794 (eval $ac_link) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 ac_cv_c_stack_direction=1
21805 echo "$as_me: program exited with status $ac_status" >&5
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ( exit $ac_status )
21810 ac_cv_c_stack_direction=-1
21812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21815 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21816 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21818 cat >>confdefs.h <<_ACEOF
21819 #define STACK_DIRECTION $ac_cv_c_stack_direction
21825 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21826 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21827 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21828 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 ac_check_lib_save_LIBS=$LIBS
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21840 /* Override any gcc2 internal prototype to avoid an error. */
21844 /* We use char because int might match the return type of a gcc2
21845 builtin and then its argument prototype would still apply. */
21855 rm -f conftest.$ac_objext conftest$ac_exeext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21857 (eval $ac_link) 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } &&
21864 { ac_try='test -z "$ac_c_werror_flag"
21865 || test ! -s conftest.err'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest$ac_exeext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 ac_cv_lib_sun_getmntent=yes
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 ac_cv_lib_sun_getmntent=no
21884 rm -f conftest.err conftest.$ac_objext \
21885 conftest$ac_exeext conftest.$ac_ext
21886 LIBS=$ac_check_lib_save_LIBS
21888 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
21889 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
21890 if test $ac_cv_lib_sun_getmntent = yes; then
21893 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
21894 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
21895 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 ac_check_lib_save_LIBS=$LIBS
21900 cat >conftest.$ac_ext <<_ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h. */
21907 /* Override any gcc2 internal prototype to avoid an error. */
21911 /* We use char because int might match the return type of a gcc2
21912 builtin and then its argument prototype would still apply. */
21922 rm -f conftest.$ac_objext conftest$ac_exeext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924 (eval $ac_link) 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } &&
21931 { ac_try='test -z "$ac_c_werror_flag"
21932 || test ! -s conftest.err'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; } &&
21938 { ac_try='test -s conftest$ac_exeext'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; }; then
21944 ac_cv_lib_seq_getmntent=yes
21946 echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21949 ac_cv_lib_seq_getmntent=no
21951 rm -f conftest.err conftest.$ac_objext \
21952 conftest$ac_exeext conftest.$ac_ext
21953 LIBS=$ac_check_lib_save_LIBS
21955 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
21956 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
21957 if test $ac_cv_lib_seq_getmntent = yes; then
21960 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
21961 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
21962 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 ac_check_lib_save_LIBS=$LIBS
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21974 /* Override any gcc2 internal prototype to avoid an error. */
21978 /* We use char because int might match the return type of a gcc2
21979 builtin and then its argument prototype would still apply. */
21989 rm -f conftest.$ac_objext conftest$ac_exeext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21991 (eval $ac_link) 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } &&
21998 { ac_try='test -z "$ac_c_werror_flag"
21999 || test ! -s conftest.err'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; } &&
22005 { ac_try='test -s conftest$ac_exeext'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22011 ac_cv_lib_gen_getmntent=yes
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_cv_lib_gen_getmntent=no
22018 rm -f conftest.err conftest.$ac_objext \
22019 conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22022 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22023 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22024 if test $ac_cv_lib_gen_getmntent = yes; then
22033 for ac_func in getmntent
22035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22036 echo "$as_me:$LINENO: checking for $ac_func" >&5
22037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22038 if eval "test \"\${$as_ac_var+set}\" = set"; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22041 cat >conftest.$ac_ext <<_ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22049 #define $ac_func innocuous_$ac_func
22051 /* System header to define __stub macros and hopefully few prototypes,
22052 which can conflict with char $ac_func (); below.
22053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22054 <limits.h> exists even on freestanding compilers. */
22057 # include <limits.h>
22059 # include <assert.h>
22064 /* Override any gcc2 internal prototype to avoid an error. */
22069 /* We use char because int might match the return type of a gcc2
22070 builtin and then its argument prototype would still apply. */
22072 /* The GNU C library defines this for functions which it implements
22073 to always fail with ENOSYS. Some functions are actually named
22074 something starting with __ and the normal name is an alias. */
22075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22078 char (*f) () = $ac_func;
22087 return f != $ac_func;
22092 rm -f conftest.$ac_objext conftest$ac_exeext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22094 (eval $ac_link) 2>conftest.er1
22096 grep -v '^ *+' conftest.er1 >conftest.err
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try='test -z "$ac_c_werror_flag"
22102 || test ! -s conftest.err'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; } &&
22108 { ac_try='test -s conftest$ac_exeext'
22109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; }; then
22114 eval "$as_ac_var=yes"
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 eval "$as_ac_var=no"
22121 rm -f conftest.err conftest.$ac_objext \
22122 conftest$ac_exeext conftest.$ac_ext
22124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22126 if test `eval echo '${'$as_ac_var'}'` = yes; then
22127 cat >>confdefs.h <<_ACEOF
22128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22135 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22136 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22137 if test "${ac_cv_func_closedir_void+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22140 if test "$cross_compiling" = yes; then
22141 ac_cv_func_closedir_void=yes
22143 cat >conftest.$ac_ext <<_ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 $ac_includes_default
22150 #include <$ac_header_dirent>
22151 #ifndef __cplusplus
22158 exit (closedir (opendir (".")) != 0);
22163 rm -f conftest$ac_exeext
22164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22165 (eval $ac_link) 2>&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_func_closedir_void=no
22176 echo "$as_me: program exited with status $ac_status" >&5
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 ( exit $ac_status )
22181 ac_cv_func_closedir_void=yes
22183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22186 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22187 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22188 if test $ac_cv_func_closedir_void = yes; then
22190 cat >>confdefs.h <<\_ACEOF
22191 #define CLOSEDIR_VOID 1
22196 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22197 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22198 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
22201 if test "$cross_compiling" = yes; then
22202 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22203 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22204 { (exit 1); exit 1; }; }
22206 cat >conftest.$ac_ext <<_ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22213 # include <unistd.h>
22219 /* If this system has a BSD-style setpgrp which takes arguments,
22220 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22221 exit successfully. */
22222 exit (setpgrp (1,1) == -1 ? 0 : 1);
22227 rm -f conftest$ac_exeext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229 (eval $ac_link) 2>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234 (eval $ac_try) 2>&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; }; then
22238 ac_cv_func_setpgrp_void=no
22240 echo "$as_me: program exited with status $ac_status" >&5
22241 echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22244 ( exit $ac_status )
22245 ac_cv_func_setpgrp_void=yes
22247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22250 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22251 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22252 if test $ac_cv_func_setpgrp_void = yes; then
22254 cat >>confdefs.h <<\_ACEOF
22255 #define SETPGRP_VOID 1
22259 # AC_FUNC_FNMATCH dnl use local version
22262 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22263 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22264 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 ac_check_lib_save_LIBS=$LIBS
22268 LIBS="-lxpg4 $LIBS"
22269 cat >conftest.$ac_ext <<_ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22276 /* Override any gcc2 internal prototype to avoid an error. */
22280 /* We use char because int might match the return type of a gcc2
22281 builtin and then its argument prototype would still apply. */
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22293 (eval $ac_link) 2>conftest.er1
22295 grep -v '^ *+' conftest.er1 >conftest.err
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } &&
22300 { ac_try='test -z "$ac_c_werror_flag"
22301 || test ! -s conftest.err'
22302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303 (eval $ac_try) 2>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }; } &&
22307 { ac_try='test -s conftest$ac_exeext'
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; }; then
22313 ac_cv_lib_xpg4_setlocale=yes
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ac_cv_lib_xpg4_setlocale=no
22320 rm -f conftest.err conftest.$ac_objext \
22321 conftest$ac_exeext conftest.$ac_ext
22322 LIBS=$ac_check_lib_save_LIBS
22324 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22325 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22326 if test $ac_cv_lib_xpg4_setlocale = yes; then
22327 LIBS="$LIBS -lxpg4"
22333 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22334 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22335 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 ac_check_lib_save_LIBS=$LIBS
22340 cat >conftest.$ac_ext <<_ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22347 /* Override any gcc2 internal prototype to avoid an error. */
22351 /* We use char because int might match the return type of a gcc2
22352 builtin and then its argument prototype would still apply. */
22362 rm -f conftest.$ac_objext conftest$ac_exeext
22363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22364 (eval $ac_link) 2>conftest.er1
22366 grep -v '^ *+' conftest.er1 >conftest.err
22368 cat conftest.err >&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } &&
22371 { ac_try='test -z "$ac_c_werror_flag"
22372 || test ! -s conftest.err'
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; } &&
22378 { ac_try='test -s conftest$ac_exeext'
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; }; then
22384 ac_cv_lib_sun_getpwnam=yes
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22389 ac_cv_lib_sun_getpwnam=no
22391 rm -f conftest.err conftest.$ac_objext \
22392 conftest$ac_exeext conftest.$ac_ext
22393 LIBS=$ac_check_lib_save_LIBS
22395 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22396 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22397 if test $ac_cv_lib_sun_getpwnam = yes; then
22398 cat >>confdefs.h <<_ACEOF
22399 #define HAVE_LIBSUN 1
22408 for ac_header in zlib.h
22410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22412 echo "$as_me:$LINENO: checking for $ac_header" >&5
22413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22420 # Is the header compilable?
22421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22423 cat >conftest.$ac_ext <<_ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22430 #include <$ac_header>
22432 rm -f conftest.$ac_objext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22434 (eval $ac_compile) 2>conftest.er1
22436 grep -v '^ *+' conftest.er1 >conftest.err
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
22441 { ac_try='test -z "$ac_c_werror_flag"
22442 || test ! -s conftest.err'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; } &&
22448 { ac_try='test -s conftest.$ac_objext'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 ac_header_compiler=yes
22456 echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22459 ac_header_compiler=no
22461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22463 echo "${ECHO_T}$ac_header_compiler" >&6
22465 # Is the header present?
22466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include <$ac_header>
22476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } >/dev/null; then
22484 if test -s conftest.err; then
22485 ac_cpp_err=$ac_c_preproc_warn_flag
22486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22493 if test -z "$ac_cpp_err"; then
22494 ac_header_preproc=yes
22496 echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22499 ac_header_preproc=no
22501 rm -f conftest.err conftest.$ac_ext
22502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22503 echo "${ECHO_T}$ac_header_preproc" >&6
22505 # So? What about this header?
22506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22512 ac_header_preproc=yes
22515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22529 ## ------------------------------------------ ##
22530 ## Report this to the AC_PACKAGE_NAME lists. ##
22531 ## ------------------------------------------ ##
22534 sed "s/^/$as_me: WARNING: /" >&2
22537 echo "$as_me:$LINENO: checking for $ac_header" >&5
22538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22542 eval "$as_ac_Header=\$ac_header_preproc"
22544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22549 cat >>confdefs.h <<_ACEOF
22550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22557 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22558 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22559 if test "${ac_cv_lib_z_deflate+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 ac_check_lib_save_LIBS=$LIBS
22564 cat >conftest.$ac_ext <<_ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22571 /* Override any gcc2 internal prototype to avoid an error. */
22575 /* We use char because int might match the return type of a gcc2
22576 builtin and then its argument prototype would still apply. */
22586 rm -f conftest.$ac_objext conftest$ac_exeext
22587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22588 (eval $ac_link) 2>conftest.er1
22590 grep -v '^ *+' conftest.er1 >conftest.err
22592 cat conftest.err >&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } &&
22595 { ac_try='test -z "$ac_c_werror_flag"
22596 || test ! -s conftest.err'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; } &&
22602 { ac_try='test -s conftest$ac_exeext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
22608 ac_cv_lib_z_deflate=yes
22610 echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22613 ac_cv_lib_z_deflate=no
22615 rm -f conftest.err conftest.$ac_objext \
22616 conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22619 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22620 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22621 if test $ac_cv_lib_z_deflate = yes; then
22626 if test x$FDLIBS = x-lz; then
22627 cat >>confdefs.h <<\_ACEOF
22628 #define HAVE_LIBZ 1
22635 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22636 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22637 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22638 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22642 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22644 # Is the header compilable?
22645 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22646 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22647 cat >conftest.$ac_ext <<_ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h. */
22653 $ac_includes_default
22654 #include <sys/acl.h>
22656 rm -f conftest.$ac_objext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22658 (eval $ac_compile) 2>conftest.er1
22660 grep -v '^ *+' conftest.er1 >conftest.err
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } &&
22665 { ac_try='test -z "$ac_c_werror_flag"
22666 || test ! -s conftest.err'
22667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 (eval $ac_try) 2>&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); }; } &&
22672 { ac_try='test -s conftest.$ac_objext'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 ac_header_compiler=yes
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_header_compiler=no
22685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22687 echo "${ECHO_T}$ac_header_compiler" >&6
22689 # Is the header present?
22690 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22691 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22692 cat >conftest.$ac_ext <<_ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h. */
22698 #include <sys/acl.h>
22700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22703 grep -v '^ *+' conftest.er1 >conftest.err
22705 cat conftest.err >&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } >/dev/null; then
22708 if test -s conftest.err; then
22709 ac_cpp_err=$ac_c_preproc_warn_flag
22710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22717 if test -z "$ac_cpp_err"; then
22718 ac_header_preproc=yes
22720 echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22723 ac_header_preproc=no
22725 rm -f conftest.err conftest.$ac_ext
22726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22727 echo "${ECHO_T}$ac_header_preproc" >&6
22729 # So? What about this header?
22730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22732 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22733 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22734 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22735 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22736 ac_header_preproc=yes
22739 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22740 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22741 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
22742 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
22743 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22744 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22745 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
22746 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22747 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22748 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22749 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22750 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22753 ## ------------------------------------------ ##
22754 ## Report this to the AC_PACKAGE_NAME lists. ##
22755 ## ------------------------------------------ ##
22758 sed "s/^/$as_me: WARNING: /" >&2
22761 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22762 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22763 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 ac_cv_header_sys_acl_h=$ac_header_preproc
22768 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22769 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22774 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22775 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22776 if test "${ac_cv_func_acl_get_file+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 cat >conftest.$ac_ext <<_ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22785 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22787 #define acl_get_file innocuous_acl_get_file
22789 /* System header to define __stub macros and hopefully few prototypes,
22790 which can conflict with char acl_get_file (); below.
22791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22792 <limits.h> exists even on freestanding compilers. */
22795 # include <limits.h>
22797 # include <assert.h>
22800 #undef acl_get_file
22802 /* Override any gcc2 internal prototype to avoid an error. */
22807 /* We use char because int might match the return type of a gcc2
22808 builtin and then its argument prototype would still apply. */
22809 char acl_get_file ();
22810 /* The GNU C library defines this for functions which it implements
22811 to always fail with ENOSYS. Some functions are actually named
22812 something starting with __ and the normal name is an alias. */
22813 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22816 char (*f) () = acl_get_file;
22825 return f != acl_get_file;
22830 rm -f conftest.$ac_objext conftest$ac_exeext
22831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22832 (eval $ac_link) 2>conftest.er1
22834 grep -v '^ *+' conftest.er1 >conftest.err
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } &&
22839 { ac_try='test -z "$ac_c_werror_flag"
22840 || test ! -s conftest.err'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; } &&
22846 { ac_try='test -s conftest$ac_exeext'
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; }; then
22852 ac_cv_func_acl_get_file=yes
22854 echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857 ac_cv_func_acl_get_file=no
22859 rm -f conftest.err conftest.$ac_objext \
22860 conftest$ac_exeext conftest.$ac_ext
22862 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
22863 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
22864 if test $ac_cv_func_acl_get_file = yes; then
22867 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22868 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22869 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22872 ac_check_lib_save_LIBS=$LIBS
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22881 /* Override any gcc2 internal prototype to avoid an error. */
22885 /* We use char because int might match the return type of a gcc2
22886 builtin and then its argument prototype would still apply. */
22887 char acl_get_file ();
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898 (eval $ac_link) 2>conftest.er1
22900 grep -v '^ *+' conftest.er1 >conftest.err
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } &&
22905 { ac_try='test -z "$ac_c_werror_flag"
22906 || test ! -s conftest.err'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; } &&
22912 { ac_try='test -s conftest$ac_exeext'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_lib_acl_acl_get_file=yes
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_cv_lib_acl_acl_get_file=no
22925 rm -f conftest.err conftest.$ac_objext \
22926 conftest$ac_exeext conftest.$ac_ext
22927 LIBS=$ac_check_lib_save_LIBS
22929 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22930 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22931 if test $ac_cv_lib_acl_acl_get_file = yes; then
22932 have_acl=yes; FDLIBS="-lacl $FDLIBS"
22938 if test $have_acl = yes; then
22939 cat >>confdefs.h <<\_ACEOF
22946 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22947 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22948 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 ac_check_lib_save_LIBS=$LIBS
22952 LIBS="-lpthread $LIBS"
22953 cat >conftest.$ac_ext <<_ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22960 /* Override any gcc2 internal prototype to avoid an error. */
22964 /* We use char because int might match the return type of a gcc2
22965 builtin and then its argument prototype would still apply. */
22966 char pthread_create ();
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22977 (eval $ac_link) 2>conftest.er1
22979 grep -v '^ *+' conftest.er1 >conftest.err
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
22984 { ac_try='test -z "$ac_c_werror_flag"
22985 || test ! -s conftest.err'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; } &&
22991 { ac_try='test -s conftest$ac_exeext'
22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993 (eval $ac_try) 2>&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); }; }; then
22997 ac_cv_lib_pthread_pthread_create=yes
22999 echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 ac_cv_lib_pthread_pthread_create=no
23004 rm -f conftest.err conftest.$ac_objext \
23005 conftest$ac_exeext conftest.$ac_ext
23006 LIBS=$ac_check_lib_save_LIBS
23008 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23009 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23010 if test $ac_cv_lib_pthread_pthread_create = yes; then
23011 PTHREAD_LIB="-lpthread"
23013 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23014 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23015 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23018 ac_check_lib_save_LIBS=$LIBS
23019 LIBS="-lpthreads $LIBS"
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23027 /* Override any gcc2 internal prototype to avoid an error. */
23031 /* We use char because int might match the return type of a gcc2
23032 builtin and then its argument prototype would still apply. */
23033 char pthread_create ();
23042 rm -f conftest.$ac_objext conftest$ac_exeext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23044 (eval $ac_link) 2>conftest.er1
23046 grep -v '^ *+' conftest.er1 >conftest.err
23048 cat conftest.err >&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } &&
23051 { ac_try='test -z "$ac_c_werror_flag"
23052 || test ! -s conftest.err'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest$ac_exeext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_lib_pthreads_pthread_create=yes
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_cv_lib_pthreads_pthread_create=no
23071 rm -f conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
23073 LIBS=$ac_check_lib_save_LIBS
23075 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23076 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23077 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23078 PTHREAD_LIB="-lpthreads"
23080 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23081 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23082 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23085 ac_check_lib_save_LIBS=$LIBS
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23094 /* Override any gcc2 internal prototype to avoid an error. */
23098 /* We use char because int might match the return type of a gcc2
23099 builtin and then its argument prototype would still apply. */
23100 char pthread_create ();
23109 rm -f conftest.$ac_objext conftest$ac_exeext
23110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23111 (eval $ac_link) 2>conftest.er1
23113 grep -v '^ *+' conftest.er1 >conftest.err
23115 cat conftest.err >&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } &&
23118 { ac_try='test -z "$ac_c_werror_flag"
23119 || test ! -s conftest.err'
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; } &&
23125 { ac_try='test -s conftest$ac_exeext'
23126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23127 (eval $ac_try) 2>&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); }; }; then
23131 ac_cv_lib_c_r_pthread_create=yes
23133 echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23136 ac_cv_lib_c_r_pthread_create=no
23138 rm -f conftest.err conftest.$ac_objext \
23139 conftest$ac_exeext conftest.$ac_ext
23140 LIBS=$ac_check_lib_save_LIBS
23142 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23143 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23144 if test $ac_cv_lib_c_r_pthread_create = yes; then
23145 PTHREAD_LIB="-lc_r"
23147 echo "$as_me:$LINENO: checking for pthread_create" >&5
23148 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23149 if test "${ac_cv_func_pthread_create+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23158 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23160 #define pthread_create innocuous_pthread_create
23162 /* System header to define __stub macros and hopefully few prototypes,
23163 which can conflict with char pthread_create (); below.
23164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23165 <limits.h> exists even on freestanding compilers. */
23168 # include <limits.h>
23170 # include <assert.h>
23173 #undef pthread_create
23175 /* Override any gcc2 internal prototype to avoid an error. */
23180 /* We use char because int might match the return type of a gcc2
23181 builtin and then its argument prototype would still apply. */
23182 char pthread_create ();
23183 /* The GNU C library defines this for functions which it implements
23184 to always fail with ENOSYS. Some functions are actually named
23185 something starting with __ and the normal name is an alias. */
23186 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23189 char (*f) () = pthread_create;
23198 return f != pthread_create;
23203 rm -f conftest.$ac_objext conftest$ac_exeext
23204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23205 (eval $ac_link) 2>conftest.er1
23207 grep -v '^ *+' conftest.er1 >conftest.err
23209 cat conftest.err >&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } &&
23212 { ac_try='test -z "$ac_c_werror_flag"
23213 || test ! -s conftest.err'
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215 (eval $ac_try) 2>&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); }; } &&
23219 { ac_try='test -s conftest$ac_exeext'
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; }; then
23225 ac_cv_func_pthread_create=yes
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ac_cv_func_pthread_create=no
23232 rm -f conftest.err conftest.$ac_objext \
23233 conftest$ac_exeext conftest.$ac_ext
23235 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23236 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23249 cat >>confdefs.h <<\_ACEOF
23255 CFLAGS=${CFLAGS--O}
23256 LDFLAGS=${LDFLAGS--O}
23257 DB_LIBS="${SQL_LFLAGS}"
23259 CPPFLAGS="$CPPFLAGS"
23285 # Finally we set appropriate distribution specific
23286 # variables and defaults
23288 # PFILES are platform specific files
23289 PFILES="platforms/Makefile"
23293 hostname=`uname -n | cut -d '.' -f 1`
23294 case "$DISTNAME" in
23297 PSCMD="ps -e -o pid,comm"
23298 PFILES="${PFILES} \
23299 platforms/aix/Makefile"
23300 TAPEDRIVE="/dev/rmt0.1"
23304 PTHREAD_LIB="-lpthread -lexc"
23305 if test "${CC}" = "gcc" ; then
23312 TAPEDRIVE="/dev/nrmt0"
23315 DISTVER=`uname -a |awk '{print $3}'`
23316 TAPEDRIVE="/dev/nrmt0"
23317 PTHREAD_LIB="-pthread"
23318 CFLAGS="${CFLAGS} -pthread"
23319 PSCMD="ps -ax -o pid,command"
23322 PFILES="${PFILES} \
23323 platforms/bsdi/Makefile \
23324 platforms/bsdi/bacula-fd \
23325 platforms/bsdi/bacula-sd \
23326 platforms/bsdi/bacula-dir"
23327 largefile_support="yes"
23330 DISTVER=`uname -a |awk '{print $3}'`
23331 TAPEDRIVE="/dev/nrst0"
23333 WCFLAGS="-mwindows"
23334 WLDFLAGS="-mwindows"
23338 TAPEDRIVE="/dev/nst0"
23339 PSCMD="ps -e -o pid,command"
23341 PFILES="${PFILES} \
23342 platforms/darwin/Makefile"
23345 DISTVER=`cat /etc/debian_version`
23346 TAPEDRIVE="/dev/nrst0"
23347 PSCMD="ps -e -o pid,command"
23350 DISTVER=`uname -a |awk '{print $3}'`
23351 VER=`echo $DISTVER | cut -c 1`
23352 if test x$VER = x4 ; then
23353 PTHREAD_LIB="-pthread"
23354 CFLAGS="${CFLAGS} -pthread"
23358 TAPEDRIVE="/dev/nrsa0"
23359 PSCMD="ps -ax -o pid,command"
23360 PFILES="${PFILES} \
23361 platforms/freebsd/Makefile \
23362 platforms/freebsd/bacula-fd \
23363 platforms/freebsd/bacula-sd \
23364 platforms/freebsd/bacula-dir"
23365 largefile_support="yes"
23368 PSCMD="UNIX95=1 ps -e -o pid,comm"
23369 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23371 TAPEDRIVE="/dev/rmt/0hnb"
23372 PTHREAD_LIB="-lpthread"
23373 cat >>confdefs.h <<\_ACEOF
23374 #define _INCLUDE_LONGLONG 1
23380 TAPEDRIVE="/dev/rmt/0cbn"
23381 PSCMD="ps -e -o pid,comm"
23382 PFILES="${PFILES} \
23383 platforms/irix/Makefile \
23384 platforms/irix/bacula-fd \
23385 platforms/irix/bacula-sd \
23386 platforms/irix/bacula-dir"
23389 DISTVER=`uname -a |awk '{print $3}'`
23392 TAPEDRIVE="/dev/nrst0"
23393 PSCMD="ps -ax -o pid,command"
23394 PTHREAD_LIB="-pthread"
23395 CFLAGS="${CFLAGS} -pthread"
23398 DISTVER=`uname -a |awk '{print $3}'`
23401 TAPEDRIVE="/dev/nrst0"
23402 PSCMD="ps -ax -o pid,command"
23403 PTHREAD_LIB="-pthread"
23404 CFLAGS="${CFLAGS} -pthread"
23405 PFILES="${PFILES} \
23406 platforms/openbsd/Makefile \
23407 platforms/openbsd/bacula-fd \
23408 platforms/openbsd/bacula-sd \
23409 platforms/openbsd/bacula-dir"
23412 if test -f /etc/whitebox-release ; then
23413 f=/etc/whitebox-release
23415 f=/etc/redhat-release
23417 if test `cat $f | grep release |\
23418 cut -f 3 -d ' '`x = "Enterprise"x ; then
23419 DISTVER="Enterprise "`cat $f | grep release |\
23422 DISTVER=`cat /etc/redhat-release | grep release |\
23425 TAPEDRIVE="/dev/nst0"
23426 PSCMD="ps -e -o pid,command"
23427 PFILES="${PFILES} \
23428 platforms/redhat/Makefile \
23429 platforms/redhat/bacula-fd \
23430 platforms/redhat/bacula-sd \
23431 platforms/redhat/bacula-dir \
23432 platforms/redhat/bacula.spec \
23434 hostname=`hostname -s`
23437 DISTVER=`cat /etc/mandrake-release | grep release |\
23439 TAPEDRIVE="/dev/nst0"
23440 PSCMD="ps -e -o pid,command"
23441 PFILES="${PFILES} \
23442 platforms/mandrake/Makefile \
23443 platforms/mandrake/bacula-fd \
23444 platforms/mandrake/bacula-sd \
23445 platforms/mandrake/bacula-dir \
23446 platforms/mandrake/bacula.spec \
23450 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23451 TAPEDRIVE="/dev/nst0"
23452 PSCMD="ps -e -o pid,command"
23453 PFILES="${PFILES} \
23454 platforms/gentoo/Makefile \
23455 platforms/gentoo/bacula-init \
23456 platforms/gentoo/bacula-fd \
23457 platforms/gentoo/bacula-sd \
23458 platforms/gentoo/bacula-dir"
23461 DISTVER=`cat /etc/slackware-version`
23462 TAPEDRIVE="/dev/nst0"
23463 PSCMD="ps -e -o pid,command"
23464 PFILES="${PFILES} \
23465 platforms/slackware/Makefile \
23466 platforms/slackware/rc.bacula-fd \
23467 platforms/slackware/rc.bacula-sd \
23468 platforms/slackware/rc.bacula-dir\
23469 platforms/slackware/functions.bacula"
23473 TAPEDRIVE="/dev/rmt/0cbn"
23474 PSCMD="ps -e -o pid,comm"
23475 PFILES="${PFILES} \
23476 platforms/solaris/Makefile \
23477 platforms/solaris/bacula-fd \
23478 platforms/solaris/bacula-sd \
23479 platforms/solaris/bacula-dir"
23480 if test x$DISTVER = x5.6 ; then
23481 cat >>confdefs.h <<\_ACEOF
23482 #define HAVE_OLD_SOCKOPT 1
23486 LIBS="$LIBS -lresolv"
23489 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23491 TAPEDRIVE="/dev/nst0"
23492 PSCMD="ps -e -o pid,command"
23493 PFILES="${PFILES} \
23494 platforms/suse/Makefile \
23495 platforms/suse/bacula-fd \
23496 platforms/suse/bacula-sd \
23497 platforms/suse/bacula-dir \
23498 platforms/suse/bacula \
23499 platforms/suse/bacula.spec"
23504 TAPEDRIVE="/dev/nst0"
23505 PSCMD="ps -e -o pid,command"
23506 PFILES="${PFILES} \
23507 platforms/suse/Makefile \
23508 platforms/suse/bacula-fd \
23509 platforms/suse/bacula-sd \
23510 platforms/suse/bacula-dir"
23514 TAPEDRIVE="/dev/nst0"
23517 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23523 LIBS="$PTHREAD_LIB $LIBS"
23525 cat >>confdefs.h <<_ACEOF
23529 cat >>confdefs.h <<_ACEOF
23540 MCOMMON=./autoconf/Make.common
23543 if test "x${subsysdir}" = "x${sbindir}" ; then
23546 echo "You have set both --sbindir and --with-subsys-dir"
23547 echo " equal to: ${subsysdir} "
23548 echo "This is not permitted. Please reconfigure."
23550 echo "Aborting configuration ..."
23556 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"
23557 ac_config_commands="$ac_config_commands default"
23558 cat >confcache <<\_ACEOF
23559 # This file is a shell script that caches the results of configure
23560 # tests run on this system so they can be shared between configure
23561 # scripts and configure runs, see configure's option --config-cache.
23562 # It is not useful on other systems. If it contains results you don't
23563 # want to keep, you may remove or edit it.
23565 # config.status only pays attention to the cache file if you give it
23566 # the --recheck option to rerun configure.
23568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23570 # following values.
23574 # The following way of writing the cache mishandles newlines in values,
23575 # but we know of no workaround that is simple, portable, and efficient.
23576 # So, don't put newlines in cache variables' values.
23577 # Ultrix sh set writes to stderr and can't be redirected directly,
23578 # and sets the high bit in the cache file unless we assign to the vars.
23581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23583 # `set' does not quote correctly, so add quotes (double-quote
23584 # substitution turns \\\\ into \\, and sed turns \\ into \).
23587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23590 # `set' quotes correctly as required by POSIX, so do not add quotes.
23592 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23601 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23603 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23604 if test -w $cache_file; then
23605 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23606 cat confcache >$cache_file
23608 echo "not updating unwritable cache $cache_file"
23613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23614 # Let make expand exec_prefix.
23615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23617 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23618 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23619 # trailing colons and then remove the whole line if VPATH becomes empty
23620 # (actually we leave an empty line to preserve line numbers).
23621 if test "x$srcdir" = x.; then
23622 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23623 s/:*\$(srcdir):*/:/;
23624 s/:*\${srcdir}:*/:/;
23626 s/^\([^=]*=[ ]*\):*/\1/;
23632 DEFS=-DHAVE_CONFIG_H
23636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23637 # 1. Remove the extension, and $U if already installed.
23638 ac_i=`echo "$ac_i" |
23639 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23641 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23642 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23644 LIBOBJS=$ac_libobjs
23646 LTLIBOBJS=$ac_ltlibobjs
23650 : ${CONFIG_STATUS=./config.status}
23651 ac_clean_files_save=$ac_clean_files
23652 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23653 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23654 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23655 cat >$CONFIG_STATUS <<_ACEOF
23657 # Generated by $as_me.
23658 # Run this file to recreate the current configuration.
23659 # Compiler output produced by configure, useful for debugging
23660 # configure, is in config.log if it exists.
23663 ac_cs_recheck=false
23665 SHELL=\${CONFIG_SHELL-$SHELL}
23668 cat >>$CONFIG_STATUS <<\_ACEOF
23669 ## --------------------- ##
23670 ## M4sh Initialization. ##
23671 ## --------------------- ##
23673 # Be Bourne compatible
23674 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23677 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23678 # is contrary to our usage. Disable this feature.
23679 alias -g '${1+"$@"}'='"$@"'
23680 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23683 DUALCASE=1; export DUALCASE # for MKS sh
23685 # Support unset when possible.
23686 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23693 # Work around bugs in pre-3.0 UWIN ksh.
23694 $as_unset ENV MAIL MAILPATH
23701 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23702 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23703 LC_TELEPHONE LC_TIME
23705 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23706 eval $as_var=C; export $as_var
23712 # Required to use basename.
23713 if expr a : '\(a\)' >/dev/null 2>&1; then
23719 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23720 as_basename=basename
23726 # Name of the executable.
23727 as_me=`$as_basename "$0" ||
23728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23729 X"$0" : 'X\(//\)$' \| \
23730 X"$0" : 'X\(/\)$' \| \
23731 . : '\(.\)' 2>/dev/null ||
23733 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23734 /^X\/\(\/\/\)$/{ s//\1/; q; }
23735 /^X\/\(\/\).*/{ s//\1/; q; }
23739 # PATH needs CR, and LINENO needs CR and PATH.
23740 # Avoid depending upon Character Ranges.
23741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23744 as_cr_digits='0123456789'
23745 as_cr_alnum=$as_cr_Letters$as_cr_digits
23747 # The user is always right.
23748 if test "${PATH_SEPARATOR+set}" != set; then
23749 echo "#! /bin/sh" >conf$$.sh
23750 echo "exit 0" >>conf$$.sh
23752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23761 as_lineno_1=$LINENO
23762 as_lineno_2=$LINENO
23763 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23764 test "x$as_lineno_1" != "x$as_lineno_2" &&
23765 test "x$as_lineno_3" = "x$as_lineno_2" || {
23766 # Find who we are. Look in the path if we contain no path at all
23769 *[\\/]* ) as_myself=$0 ;;
23770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23771 for as_dir in $PATH
23774 test -z "$as_dir" && as_dir=.
23775 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23780 # We did not find ourselves, most probably we were run as `sh COMMAND'
23781 # in which case we are not to be found in the path.
23782 if test "x$as_myself" = x; then
23785 if test ! -f "$as_myself"; then
23786 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23787 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23788 { (exit 1); exit 1; }; }
23790 case $CONFIG_SHELL in
23792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23793 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23796 test -z "$as_dir" && as_dir=.
23797 for as_base in sh bash ksh sh5; do
23800 if ("$as_dir/$as_base" -c '
23801 as_lineno_1=$LINENO
23802 as_lineno_2=$LINENO
23803 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23804 test "x$as_lineno_1" != "x$as_lineno_2" &&
23805 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23806 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23807 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23808 CONFIG_SHELL=$as_dir/$as_base
23809 export CONFIG_SHELL
23810 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23818 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23819 # uniformly replaced by the line number. The first 'sed' inserts a
23820 # line-number line before each line; the second 'sed' does the real
23821 # work. The second script uses 'N' to pair each line-number line
23822 # with the numbered line, and appends trailing '-' during
23823 # substitution so that $LINENO is not a special case at line end.
23824 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23825 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23826 sed '=' <$as_myself |
23831 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23834 s,^['$as_cr_digits']*\n,,
23835 ' >$as_me.lineno &&
23836 chmod +x $as_me.lineno ||
23837 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23838 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23839 { (exit 1); exit 1; }; }
23841 # Don't try to exec as it changes $[0], causing all sort of problems
23842 # (the dirname of $[0] is not the place where we might find the
23843 # original and so on. Autoconf is especially sensible to this).
23845 # Exit status is that of the last command.
23850 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23851 *c*,-n*) ECHO_N= ECHO_C='
23853 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23854 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23857 if expr a : '\(a\)' >/dev/null 2>&1; then
23863 rm -f conf$$ conf$$.exe conf$$.file
23865 if ln -s conf$$.file conf$$ 2>/dev/null; then
23866 # We could just check for DJGPP; but this test a) works b) is more generic
23867 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23868 if test -f conf$$.exe; then
23869 # Don't use ln at all; we don't have any links
23874 elif ln conf$$.file conf$$ 2>/dev/null; then
23879 rm -f conf$$ conf$$.exe conf$$.file
23881 if mkdir -p . 2>/dev/null; then
23884 test -d ./-p && rmdir ./-p
23888 as_executable_p="test -f"
23890 # Sed expression to map a string onto a valid CPP name.
23891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23893 # Sed expression to map a string onto a valid variable name.
23894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23898 # We need space, tab and new line, in precisely that order.
23908 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23909 # report actual input values of CONFIG_FILES etc. instead of their
23910 # values after options handling. Logging --version etc. is OK.
23914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23915 ## Running $as_me. ##
23920 This file was extended by $as_me, which was
23921 generated by GNU Autoconf 2.59. Invocation command line was
23923 CONFIG_FILES = $CONFIG_FILES
23924 CONFIG_HEADERS = $CONFIG_HEADERS
23925 CONFIG_LINKS = $CONFIG_LINKS
23926 CONFIG_COMMANDS = $CONFIG_COMMANDS
23930 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23934 # Files that config.status was made for.
23935 if test -n "$ac_config_files"; then
23936 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23939 if test -n "$ac_config_headers"; then
23940 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23943 if test -n "$ac_config_links"; then
23944 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23947 if test -n "$ac_config_commands"; then
23948 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23954 \`$as_me' instantiates files from templates according to the
23955 current configuration.
23957 Usage: $0 [OPTIONS] [FILE]...
23959 -h, --help print this help, then exit
23960 -V, --version print version number, then exit
23961 -q, --quiet do not print progress messages
23962 -d, --debug don't remove temporary files
23963 --recheck update $as_me by reconfiguring in the same conditions
23964 --file=FILE[:TEMPLATE]
23965 instantiate the configuration file FILE
23966 --header=FILE[:TEMPLATE]
23967 instantiate the configuration header FILE
23969 Configuration files:
23972 Configuration headers:
23975 Configuration commands:
23978 Report bugs to <bug-autoconf@gnu.org>."
23981 cat >>$CONFIG_STATUS <<_ACEOF
23984 configured by $0, generated by GNU Autoconf 2.59,
23985 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23987 Copyright (C) 2003 Free Software Foundation, Inc.
23988 This config.status script is free software; the Free Software Foundation
23989 gives unlimited permission to copy, distribute and modify it."
23994 cat >>$CONFIG_STATUS <<\_ACEOF
23995 # If no file are specified by the user, then we need to provide default
23996 # value. By we need to know if files were specified by the user.
24002 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24003 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24011 *) # This is not an option, so the user has probably given explicit
24014 ac_need_defaults=false;;
24018 # Handling of the options.
24020 cat >>$CONFIG_STATUS <<\_ACEOF
24021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24023 --version | --vers* | -V )
24024 echo "$ac_cs_version"; exit 0 ;;
24026 # Conflict between --help and --header
24027 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24028 Try \`$0 --help' for more information." >&5
24029 echo "$as_me: error: ambiguous option: $1
24030 Try \`$0 --help' for more information." >&2;}
24031 { (exit 1); exit 1; }; };;
24032 --help | --hel | -h )
24033 echo "$ac_cs_usage"; exit 0 ;;
24034 --debug | --d* | -d )
24036 --file | --fil | --fi | --f )
24038 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24039 ac_need_defaults=false;;
24040 --header | --heade | --head | --hea )
24042 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24043 ac_need_defaults=false;;
24044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24045 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24048 # This is an error.
24049 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24050 Try \`$0 --help' for more information." >&5
24051 echo "$as_me: error: unrecognized option: $1
24052 Try \`$0 --help' for more information." >&2;}
24053 { (exit 1); exit 1; }; } ;;
24055 *) ac_config_targets="$ac_config_targets $1" ;;
24061 ac_configure_extra_args=
24063 if $ac_cs_silent; then
24065 ac_configure_extra_args="$ac_configure_extra_args --silent"
24069 cat >>$CONFIG_STATUS <<_ACEOF
24070 if \$ac_cs_recheck; then
24071 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24072 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24077 cat >>$CONFIG_STATUS <<_ACEOF
24079 # INIT-COMMANDS section.
24082 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24083 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24085 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24086 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24087 LINGUAS="${LINGUAS-%UNSET%}"
24094 cat >>$CONFIG_STATUS <<\_ACEOF
24095 for ac_config_target in $ac_config_targets
24097 case "$ac_config_target" in
24098 # Handling of arguments.
24099 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24100 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24101 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24102 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24103 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24104 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24105 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24106 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24107 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24108 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24109 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24110 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24111 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24112 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24113 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24114 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24115 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24116 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24117 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24118 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24119 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24120 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24121 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24122 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24123 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24124 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24125 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24126 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24127 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24128 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24129 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24130 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24131 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24132 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24133 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24134 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24135 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24136 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24137 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24138 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24139 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24140 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24141 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24142 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24143 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24144 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24145 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24146 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24147 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24148 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24149 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24150 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24151 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24152 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24153 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24154 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24155 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24156 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24157 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24158 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24159 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24160 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24161 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24162 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24163 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24164 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24165 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24166 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24167 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24168 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24169 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24170 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24171 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24172 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24173 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24174 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24175 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24176 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24177 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24178 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24179 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24180 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24181 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24182 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24183 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24184 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24185 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24186 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24187 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24188 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24189 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24190 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24191 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24192 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24193 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24194 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24195 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24196 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24197 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24198 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24199 { (exit 1); exit 1; }; };;
24203 # If the user did not use the arguments to specify the items to instantiate,
24204 # then the envvar interface is used. Set only those that are not.
24205 # We use the long form for the default assignment because of an extremely
24206 # bizarre bug on SunOS 4.1.3.
24207 if $ac_need_defaults; then
24208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24213 # Have a temporary directory for convenience. Make it in the build tree
24214 # simply because there is no reason to put it here, and in addition,
24215 # creating and moving files from /tmp can sometimes cause problems.
24216 # Create a temporary directory, and hook for its removal unless debugging.
24219 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24220 trap '{ (exit 1); exit 1; }' 1 2 13 15
24223 # Create a (secure) tmp directory for tmp files.
24226 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24227 test -n "$tmp" && test -d "$tmp"
24230 tmp=./confstat$$-$RANDOM
24231 (umask 077 && mkdir $tmp)
24234 echo "$me: cannot create a temporary directory in ." >&2
24235 { (exit 1); exit 1; }
24240 cat >>$CONFIG_STATUS <<_ACEOF
24243 # CONFIG_FILES section.
24246 # No need to generate the scripts if there are no CONFIG_FILES.
24247 # This happens for instance when ./config.status config.h
24248 if test -n "\$CONFIG_FILES"; then
24249 # Protect against being on the right side of a sed subst in config.status.
24250 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24251 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24252 s,@SHELL@,$SHELL,;t t
24253 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24254 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24255 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24256 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24257 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24258 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24259 s,@exec_prefix@,$exec_prefix,;t t
24260 s,@prefix@,$prefix,;t t
24261 s,@program_transform_name@,$program_transform_name,;t t
24262 s,@bindir@,$bindir,;t t
24263 s,@sbindir@,$sbindir,;t t
24264 s,@libexecdir@,$libexecdir,;t t
24265 s,@datadir@,$datadir,;t t
24266 s,@sysconfdir@,$sysconfdir,;t t
24267 s,@sharedstatedir@,$sharedstatedir,;t t
24268 s,@localstatedir@,$localstatedir,;t t
24269 s,@libdir@,$libdir,;t t
24270 s,@includedir@,$includedir,;t t
24271 s,@oldincludedir@,$oldincludedir,;t t
24272 s,@infodir@,$infodir,;t t
24273 s,@mandir@,$mandir,;t t
24274 s,@build_alias@,$build_alias,;t t
24275 s,@host_alias@,$host_alias,;t t
24276 s,@target_alias@,$target_alias,;t t
24277 s,@DEFS@,$DEFS,;t t
24278 s,@ECHO_C@,$ECHO_C,;t t
24279 s,@ECHO_N@,$ECHO_N,;t t
24280 s,@ECHO_T@,$ECHO_T,;t t
24281 s,@LIBS@,$LIBS,;t t
24282 s,@BUILD_DIR@,$BUILD_DIR,;t t
24283 s,@TRUEPRG@,$TRUEPRG,;t t
24284 s,@FALSEPRG@,$FALSEPRG,;t t
24285 s,@VERSION@,$VERSION,;t t
24286 s,@DATE@,$DATE,;t t
24287 s,@LSMDATE@,$LSMDATE,;t t
24289 s,@CFLAGS@,$CFLAGS,;t t
24290 s,@LDFLAGS@,$LDFLAGS,;t t
24291 s,@CPPFLAGS@,$CPPFLAGS,;t t
24292 s,@ac_ct_CC@,$ac_ct_CC,;t t
24293 s,@EXEEXT@,$EXEEXT,;t t
24294 s,@OBJEXT@,$OBJEXT,;t t
24296 s,@CXXFLAGS@,$CXXFLAGS,;t t
24297 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24299 s,@EGREP@,$EGREP,;t t
24300 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24301 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24302 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24303 s,@RANLIB@,$RANLIB,;t t
24304 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24309 s,@ECHO@,$ECHO,;t t
24313 s,@OPENSSL@,$OPENSSL,;t t
24316 s,@MKISOFS@,$MKISOFS,;t t
24317 s,@PYTHON@,$PYTHON,;t t
24318 s,@GROWISOFS@,$GROWISOFS,;t t
24319 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24320 s,@PKGCONFIG@,$PKGCONFIG,;t t
24321 s,@WXCONFIG@,$WXCONFIG,;t t
24322 s,@WXFLAGS@,$WXFLAGS,;t t
24323 s,@CDRECORD@,$CDRECORD,;t t
24324 s,@PIDOF@,$PIDOF,;t t
24326 s,@ARFLAGS@,$ARFLAGS,;t t
24327 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24328 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24329 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24330 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24331 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24332 s,@build@,$build,;t t
24333 s,@build_cpu@,$build_cpu,;t t
24334 s,@build_vendor@,$build_vendor,;t t
24335 s,@build_os@,$build_os,;t t
24336 s,@host@,$host,;t t
24337 s,@host_cpu@,$host_cpu,;t t
24338 s,@host_vendor@,$host_vendor,;t t
24339 s,@host_os@,$host_os,;t t
24340 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24341 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24342 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24343 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24344 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24345 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24346 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24347 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24348 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24349 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24350 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24351 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24352 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24353 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24354 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24355 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24356 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24357 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24358 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24359 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24360 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24361 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24362 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24363 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24364 s,@SET_MAKE@,$SET_MAKE,;t t
24365 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24366 s,@USE_NLS@,$USE_NLS,;t t
24367 s,@MSGFMT@,$MSGFMT,;t t
24368 s,@GMSGFMT@,$GMSGFMT,;t t
24369 s,@XGETTEXT@,$XGETTEXT,;t t
24370 s,@MSGMERGE@,$MSGMERGE,;t t
24371 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24372 s,@LIBICONV@,$LIBICONV,;t t
24373 s,@LTLIBICONV@,$LTLIBICONV,;t t
24374 s,@INTLLIBS@,$INTLLIBS,;t t
24375 s,@LIBINTL@,$LIBINTL,;t t
24376 s,@LTLIBINTL@,$LTLIBINTL,;t t
24377 s,@POSUB@,$POSUB,;t t
24378 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24379 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24380 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24381 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24382 s,@GNOME_DIR@,$GNOME_DIR,;t t
24383 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24384 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24385 s,@WX_DIR@,$WX_DIR,;t t
24386 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24387 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24388 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24389 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24390 s,@STATIC_FD@,$STATIC_FD,;t t
24391 s,@STATIC_SD@,$STATIC_SD,;t t
24392 s,@STATIC_DIR@,$STATIC_DIR,;t t
24393 s,@STATIC_CONS@,$STATIC_CONS,;t t
24394 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24395 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24396 s,@ALL_DIRS@,$ALL_DIRS,;t t
24397 s,@CONS_INC@,$CONS_INC,;t t
24398 s,@CONS_OBJ@,$CONS_OBJ,;t t
24399 s,@CONS_SRC@,$CONS_SRC,;t t
24400 s,@CONS_LIBS@,$CONS_LIBS,;t t
24401 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24402 s,@READLINE_SRC@,$READLINE_SRC,;t t
24403 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24404 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24405 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24406 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24407 s,@working_dir@,$working_dir,;t t
24408 s,@scriptdir@,$scriptdir,;t t
24409 s,@dump_email@,$dump_email,;t t
24410 s,@job_email@,$job_email,;t t
24411 s,@smtp_host@,$smtp_host,;t t
24412 s,@piddir@,$piddir,;t t
24413 s,@subsysdir@,$subsysdir,;t t
24414 s,@baseport@,$baseport,;t t
24415 s,@dir_port@,$dir_port,;t t
24416 s,@fd_port@,$fd_port,;t t
24417 s,@sd_port@,$sd_port,;t t
24418 s,@dir_password@,$dir_password,;t t
24419 s,@fd_password@,$fd_password,;t t
24420 s,@sd_password@,$sd_password,;t t
24421 s,@mon_dir_password@,$mon_dir_password,;t t
24422 s,@mon_fd_password@,$mon_fd_password,;t t
24423 s,@mon_sd_password@,$mon_sd_password,;t t
24424 s,@dir_user@,$dir_user,;t t
24425 s,@dir_group@,$dir_group,;t t
24426 s,@sd_user@,$sd_user,;t t
24427 s,@sd_group@,$sd_group,;t t
24428 s,@fd_user@,$fd_user,;t t
24429 s,@fd_group@,$fd_group,;t t
24430 s,@SBINPERM@,$SBINPERM,;t t
24431 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24432 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24433 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24434 s,@cats@,$cats,;t t
24435 s,@DB_NAME@,$DB_NAME,;t t
24436 s,@GETCONF@,$GETCONF,;t t
24437 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24438 s,@X_CFLAGS@,$X_CFLAGS,;t t
24439 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24440 s,@X_LIBS@,$X_LIBS,;t t
24441 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24442 s,@LIBOBJS@,$LIBOBJS,;t t
24443 s,@ALLOCA@,$ALLOCA,;t t
24444 s,@FDLIBS@,$FDLIBS,;t t
24445 s,@DEBUG@,$DEBUG,;t t
24446 s,@DINCLUDE@,$DINCLUDE,;t t
24447 s,@DLIB@,$DLIB,;t t
24448 s,@DB_LIBS@,$DB_LIBS,;t t
24449 s,@WCFLAGS@,$WCFLAGS,;t t
24450 s,@WLDFLAGS@,$WLDFLAGS,;t t
24451 s,@OBJLIST@,$OBJLIST,;t t
24452 s,@hostname@,$hostname,;t t
24453 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24454 s,@PSCMD@,$PSCMD,;t t
24455 s,@WIN32@,$WIN32,;t t
24456 s,@MACOSX@,$MACOSX,;t t
24457 s,@DISTNAME@,$DISTNAME,;t t
24458 s,@DISTVER@,$DISTVER,;t t
24459 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24460 /@MCOMMON@/r $MCOMMON
24466 cat >>$CONFIG_STATUS <<\_ACEOF
24467 # Split the substitutions into bite-sized pieces for seds with
24468 # small command number limits, like on Digital OSF/1 and HP-UX.
24469 ac_max_sed_lines=48
24470 ac_sed_frag=1 # Number of current file.
24471 ac_beg=1 # First line for current file.
24472 ac_end=$ac_max_sed_lines # Line after last line for current file.
24475 while $ac_more_lines; do
24476 if test $ac_beg -gt 1; then
24477 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24479 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24481 if test ! -s $tmp/subs.frag; then
24482 ac_more_lines=false
24484 # The purpose of the label and of the branching condition is to
24485 # speed up the sed processing (if there are no `@' at all, there
24486 # is no need to browse any of the substitutions).
24487 # These are the two extra sed commands mentioned above.
24489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24490 if test -z "$ac_sed_cmds"; then
24491 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24493 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24495 ac_sed_frag=`expr $ac_sed_frag + 1`
24497 ac_end=`expr $ac_end + $ac_max_sed_lines`
24500 if test -z "$ac_sed_cmds"; then
24503 fi # test -n "$CONFIG_FILES"
24506 cat >>$CONFIG_STATUS <<\_ACEOF
24507 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24510 - | *:- | *:-:* ) # input from stdin
24512 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24514 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24516 * ) ac_file_in=$ac_file.in ;;
24519 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24520 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24522 X"$ac_file" : 'X\(//\)[^/]' \| \
24523 X"$ac_file" : 'X\(//\)$' \| \
24524 X"$ac_file" : 'X\(/\)' \| \
24525 . : '\(.\)' 2>/dev/null ||
24527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24529 /^X\(\/\/\)$/{ s//\1/; q; }
24530 /^X\(\/\).*/{ s//\1/; q; }
24532 { if $as_mkdir_p; then
24537 while test ! -d "$as_dir"; do
24538 as_dirs="$as_dir $as_dirs"
24539 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24541 X"$as_dir" : 'X\(//\)[^/]' \| \
24542 X"$as_dir" : 'X\(//\)$' \| \
24543 X"$as_dir" : 'X\(/\)' \| \
24544 . : '\(.\)' 2>/dev/null ||
24546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24547 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24548 /^X\(\/\/\)$/{ s//\1/; q; }
24549 /^X\(\/\).*/{ s//\1/; q; }
24552 test ! -n "$as_dirs" || mkdir $as_dirs
24553 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24554 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24555 { (exit 1); exit 1; }; }; }
24559 if test "$ac_dir" != .; then
24560 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24561 # A "../" for each directory in $ac_dir_suffix.
24562 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24564 ac_dir_suffix= ac_top_builddir=
24568 .) # No --srcdir option. We are building in place.
24570 if test -z "$ac_top_builddir"; then
24573 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24575 [\\/]* | ?:[\\/]* ) # Absolute path.
24576 ac_srcdir=$srcdir$ac_dir_suffix;
24577 ac_top_srcdir=$srcdir ;;
24578 *) # Relative path.
24579 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24580 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24583 # Do not use `cd foo && pwd` to compute absolute paths, because
24584 # the directories may not exist.
24586 .) ac_abs_builddir="$ac_dir";;
24589 .) ac_abs_builddir=`pwd`;;
24590 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24591 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24594 case $ac_abs_builddir in
24595 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24597 case ${ac_top_builddir}. in
24598 .) ac_abs_top_builddir=$ac_abs_builddir;;
24599 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24600 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24603 case $ac_abs_builddir in
24604 .) ac_abs_srcdir=$ac_srcdir;;
24607 .) ac_abs_srcdir=$ac_abs_builddir;;
24608 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24609 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24612 case $ac_abs_builddir in
24613 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24615 case $ac_top_srcdir in
24616 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24617 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24618 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24625 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24628 if test x"$ac_file" != x-; then
24629 { echo "$as_me:$LINENO: creating $ac_file" >&5
24630 echo "$as_me: creating $ac_file" >&6;}
24633 # Let's still pretend it is `configure' which instantiates (i.e., don't
24634 # use $as_me), people would be surprised to read:
24635 # /* config.h. Generated by config.status. */
24636 if test x"$ac_file" = x-; then
24639 configure_input="$ac_file. "
24641 configure_input=$configure_input"Generated from `echo $ac_file_in |
24642 sed 's,.*/,,'` by configure."
24644 # First look for the input files in the build tree, otherwise in the
24646 ac_file_inputs=`IFS=:
24647 for f in $ac_file_in; do
24649 -) echo $tmp/stdin ;;
24651 # Absolute (can't be DOS-style, as IFS=:)
24652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24653 echo "$as_me: error: cannot find input file: $f" >&2;}
24654 { (exit 1); exit 1; }; }
24657 if test -f "$f"; then
24660 elif test -f "$srcdir/$f"; then
24665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24666 echo "$as_me: error: cannot find input file: $f" >&2;}
24667 { (exit 1); exit 1; }; }
24670 done` || { (exit 1); exit 1; }
24672 cat >>$CONFIG_STATUS <<_ACEOF
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24679 s,@configure_input@,$configure_input,;t t
24680 s,@srcdir@,$ac_srcdir,;t t
24681 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24682 s,@top_srcdir@,$ac_top_srcdir,;t t
24683 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24684 s,@builddir@,$ac_builddir,;t t
24685 s,@abs_builddir@,$ac_abs_builddir,;t t
24686 s,@top_builddir@,$ac_top_builddir,;t t
24687 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24688 s,@INSTALL@,$ac_INSTALL,;t t
24689 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24691 if test x"$ac_file" != x-; then
24692 mv $tmp/out $ac_file
24700 cat >>$CONFIG_STATUS <<\_ACEOF
24703 # CONFIG_HEADER section.
24706 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24707 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24709 # ac_d sets the value in "#define NAME VALUE" lines.
24710 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24711 ac_dB='[ ].*$,\1#\2'
24714 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24715 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24716 ac_uB='$,\1#\2define\3'
24720 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24721 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24723 - | *:- | *:-:* ) # input from stdin
24725 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24726 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24727 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24728 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24729 * ) ac_file_in=$ac_file.in ;;
24732 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24733 echo "$as_me: creating $ac_file" >&6;}
24735 # First look for the input files in the build tree, otherwise in the
24737 ac_file_inputs=`IFS=:
24738 for f in $ac_file_in; do
24740 -) echo $tmp/stdin ;;
24742 # Absolute (can't be DOS-style, as IFS=:)
24743 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24744 echo "$as_me: error: cannot find input file: $f" >&2;}
24745 { (exit 1); exit 1; }; }
24746 # Do quote $f, to prevent DOS paths from being IFS'd.
24749 if test -f "$f"; then
24752 elif test -f "$srcdir/$f"; then
24757 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24758 echo "$as_me: error: cannot find input file: $f" >&2;}
24759 { (exit 1); exit 1; }; }
24762 done` || { (exit 1); exit 1; }
24763 # Remove the trailing spaces.
24764 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24768 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24769 # `conftest.undefs', that substitutes the proper values into
24770 # config.h.in to produce config.h. The first handles `#define'
24771 # templates, and the second `#undef' templates.
24772 # And first: Protect against being on the right side of a sed subst in
24773 # config.status. Protect against being in an unquoted here document
24774 # in config.status.
24775 rm -f conftest.defines conftest.undefs
24776 # Using a here document instead of a string reduces the quoting nightmare.
24777 # Putting comments in sed scripts is not portable.
24779 # `end' is used to avoid that the second main sed command (meant for
24780 # 0-ary CPP macros) applies to n-ary macro definitions.
24781 # See the Autoconf documentation for `clear'.
24782 cat >confdef2sed.sed <<\_ACEOF
24787 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24789 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24792 # If some macros were called several times there might be several times
24793 # the same #defines, which is useless. Nevertheless, we may not want to
24794 # sort them, since we want the *last* AC-DEFINE to be honored.
24795 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24796 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24797 rm -f confdef2sed.sed
24799 # This sed command replaces #undef with comments. This is necessary, for
24800 # example, in the case of _POSIX_SOURCE, which is predefined and required
24801 # on some systems where configure will not decide to define it.
24802 cat >>conftest.undefs <<\_ACEOF
24803 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24806 # Break up conftest.defines because some shells have a limit on the size
24807 # of here documents, and old seds have small limits too (100 cmds).
24808 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24809 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24810 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24811 echo ' :' >>$CONFIG_STATUS
24812 rm -f conftest.tail
24813 while grep . conftest.defines >/dev/null
24815 # Write a limited-size here document to $tmp/defines.sed.
24816 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24817 # Speed up: don't consider the non `#define' lines.
24818 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24819 # Work around the forget-to-reset-the-flag bug.
24820 echo 't clr' >>$CONFIG_STATUS
24821 echo ': clr' >>$CONFIG_STATUS
24822 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24824 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24826 mv $tmp/out $tmp/in
24828 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24829 rm -f conftest.defines
24830 mv conftest.tail conftest.defines
24832 rm -f conftest.defines
24833 echo ' fi # grep' >>$CONFIG_STATUS
24834 echo >>$CONFIG_STATUS
24836 # Break up conftest.undefs because some shells have a limit on the size
24837 # of here documents, and old seds have small limits too (100 cmds).
24838 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24839 rm -f conftest.tail
24840 while grep . conftest.undefs >/dev/null
24842 # Write a limited-size here document to $tmp/undefs.sed.
24843 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24844 # Speed up: don't consider the non `#undef'
24845 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24846 # Work around the forget-to-reset-the-flag bug.
24847 echo 't clr' >>$CONFIG_STATUS
24848 echo ': clr' >>$CONFIG_STATUS
24849 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24851 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24853 mv $tmp/out $tmp/in
24855 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24856 rm -f conftest.undefs
24857 mv conftest.tail conftest.undefs
24859 rm -f conftest.undefs
24861 cat >>$CONFIG_STATUS <<\_ACEOF
24862 # Let's still pretend it is `configure' which instantiates (i.e., don't
24863 # use $as_me), people would be surprised to read:
24864 # /* config.h. Generated by config.status. */
24865 if test x"$ac_file" = x-; then
24866 echo "/* Generated by configure. */" >$tmp/config.h
24868 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24870 cat $tmp/in >>$tmp/config.h
24872 if test x"$ac_file" != x-; then
24873 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24874 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24875 echo "$as_me: $ac_file is unchanged" >&6;}
24877 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24879 X"$ac_file" : 'X\(//\)[^/]' \| \
24880 X"$ac_file" : 'X\(//\)$' \| \
24881 X"$ac_file" : 'X\(/\)' \| \
24882 . : '\(.\)' 2>/dev/null ||
24884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24886 /^X\(\/\/\)$/{ s//\1/; q; }
24887 /^X\(\/\).*/{ s//\1/; q; }
24889 { if $as_mkdir_p; then
24894 while test ! -d "$as_dir"; do
24895 as_dirs="$as_dir $as_dirs"
24896 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24898 X"$as_dir" : 'X\(//\)[^/]' \| \
24899 X"$as_dir" : 'X\(//\)$' \| \
24900 X"$as_dir" : 'X\(/\)' \| \
24901 . : '\(.\)' 2>/dev/null ||
24903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24905 /^X\(\/\/\)$/{ s//\1/; q; }
24906 /^X\(\/\).*/{ s//\1/; q; }
24909 test ! -n "$as_dirs" || mkdir $as_dirs
24910 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24912 { (exit 1); exit 1; }; }; }
24915 mv $tmp/config.h $ac_file
24919 rm -f $tmp/config.h
24923 cat >>$CONFIG_STATUS <<\_ACEOF
24926 # CONFIG_COMMANDS section.
24928 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24929 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24930 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24931 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24932 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24933 X"$ac_dest" : 'X\(//\)[^/]' \| \
24934 X"$ac_dest" : 'X\(//\)$' \| \
24935 X"$ac_dest" : 'X\(/\)' \| \
24936 . : '\(.\)' 2>/dev/null ||
24938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24940 /^X\(\/\/\)$/{ s//\1/; q; }
24941 /^X\(\/\).*/{ s//\1/; q; }
24943 { if $as_mkdir_p; then
24948 while test ! -d "$as_dir"; do
24949 as_dirs="$as_dir $as_dirs"
24950 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24952 X"$as_dir" : 'X\(//\)[^/]' \| \
24953 X"$as_dir" : 'X\(//\)$' \| \
24954 X"$as_dir" : 'X\(/\)' \| \
24955 . : '\(.\)' 2>/dev/null ||
24957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24959 /^X\(\/\/\)$/{ s//\1/; q; }
24960 /^X\(\/\).*/{ s//\1/; q; }
24963 test ! -n "$as_dirs" || mkdir $as_dirs
24964 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24966 { (exit 1); exit 1; }; }; }
24970 if test "$ac_dir" != .; then
24971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24972 # A "../" for each directory in $ac_dir_suffix.
24973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24975 ac_dir_suffix= ac_top_builddir=
24979 .) # No --srcdir option. We are building in place.
24981 if test -z "$ac_top_builddir"; then
24984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24986 [\\/]* | ?:[\\/]* ) # Absolute path.
24987 ac_srcdir=$srcdir$ac_dir_suffix;
24988 ac_top_srcdir=$srcdir ;;
24989 *) # Relative path.
24990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24994 # Do not use `cd foo && pwd` to compute absolute paths, because
24995 # the directories may not exist.
24997 .) ac_abs_builddir="$ac_dir";;
25000 .) ac_abs_builddir=`pwd`;;
25001 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25002 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25005 case $ac_abs_builddir in
25006 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25008 case ${ac_top_builddir}. in
25009 .) ac_abs_top_builddir=$ac_abs_builddir;;
25010 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25011 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25014 case $ac_abs_builddir in
25015 .) ac_abs_srcdir=$ac_srcdir;;
25018 .) ac_abs_srcdir=$ac_abs_builddir;;
25019 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25020 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25023 case $ac_abs_builddir in
25024 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25026 case $ac_top_srcdir in
25027 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25028 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25029 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25034 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25035 echo "$as_me: executing $ac_dest commands" >&6;}
25038 for ac_file in $CONFIG_FILES; do
25039 # Support "outfile[:infile[:infile...]]"
25041 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25043 # PO directories have a Makefile.in generated from Makefile.in.in.
25044 case "$ac_file" in */Makefile.in)
25045 # Adjust a relative srcdir.
25046 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25047 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25048 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25049 # In autoconf-2.13 it is called $ac_given_srcdir.
25050 # In autoconf-2.50 it is called $srcdir.
25051 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25052 case "$ac_given_srcdir" in
25053 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25054 /*) top_srcdir="$ac_given_srcdir" ;;
25055 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25057 # Treat a directory as a PO directory if and only if it has a
25058 # POTFILES.in file. This allows packages to have multiple PO
25059 # directories under different names or in different locations.
25060 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25061 rm -f "$ac_dir/POTFILES"
25062 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25063 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25064 POMAKEFILEDEPS="POTFILES.in"
25065 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25066 # on $ac_dir but don't depend on user-specified configuration
25068 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25069 # The LINGUAS file contains the set of available languages.
25070 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25071 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25073 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25074 # Hide the ALL_LINGUAS assigment from automake.
25075 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25076 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25078 # The set of available languages was given in configure.in.
25079 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25082 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25083 # Compute UPDATEPOFILES
25084 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25085 # Compute DUMMYPOFILES
25086 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25088 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25089 case "$ac_given_srcdir" in
25091 *) srcdirpre='$(srcdir)/' ;;
25097 for lang in $ALL_LINGUAS; do
25098 POFILES="$POFILES $srcdirpre$lang.po"
25099 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25100 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25101 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25103 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25104 # environment variable.
25106 if test -n "$ALL_LINGUAS"; then
25107 for presentlang in $ALL_LINGUAS; do
25109 if test "%UNSET%" != "$LINGUAS"; then
25110 desiredlanguages="$LINGUAS"
25112 desiredlanguages="$ALL_LINGUAS"
25114 for desiredlang in $desiredlanguages; do
25115 # Use the presentlang catalog if desiredlang is
25116 # a. equal to presentlang, or
25117 # b. a variant of presentlang (because in this case,
25118 # presentlang can be used as a fallback for messages
25119 # which are not translated in the desiredlang catalog).
25120 case "$desiredlang" in
25121 "$presentlang"*) useit=yes;;
25124 if test $useit = yes; then
25125 INST_LINGUAS="$INST_LINGUAS $presentlang"
25130 if test -n "$INST_LINGUAS"; then
25131 for lang in $INST_LINGUAS; do
25132 CATALOGS="$CATALOGS $lang.gmo"
25135 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25136 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"
25137 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25138 if test -f "$f"; then
25140 *.orig | *.bak | *~) ;;
25141 *) cat "$f" >> "$ac_dir/Makefile" ;;
25149 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25155 cat >>$CONFIG_STATUS <<\_ACEOF
25157 { (exit 0); exit 0; }
25159 chmod +x $CONFIG_STATUS
25160 ac_clean_files=$ac_clean_files_save
25163 # configure is writing to config.log, and then calls config.status.
25164 # config.status does its own redirection, appending to config.log.
25165 # Unfortunately, on DOS this fails, as config.log is still kept open
25166 # by configure, so config.status won't be able to write to it; its
25167 # output is simply discarded. So we exec the FD to /dev/null,
25168 # effectively closing config.log, so it can be properly (re)opened and
25169 # appended to by config.status. When coming back to configure, we
25170 # need to make the FD available again.
25171 if test "$no_create" != yes; then
25173 ac_config_status_args=
25174 test "$silent" = yes &&
25175 ac_config_status_args="$ac_config_status_args --quiet"
25177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25180 # would make configure fail if this is the last instruction.
25181 $ac_cs_success || { (exit 1); exit 1; }
25186 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25187 chmod 755 dvd-writepart dvd-freespace
25188 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25193 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
25194 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
25196 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
25197 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
25199 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
25200 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
25202 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
25203 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
25205 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
25206 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
25208 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25209 chmod 755 $c/sqlite
25212 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25213 largefile_support="yes"
25217 # A whole lot of hand springs to get the compiler version.
25218 # This is because gcc changed the output in version 3.0
25220 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25221 if test "x${CCVERSION}" = "x" ; then
25222 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25224 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25225 if test x"${CXXVERSION}" = x ; then
25226 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25229 if test "x${subsysdir}" = "x${sbindir}" ; then
25232 echo "You have set --sbindir and --with-subsys-dir"
25233 echo " both equal to: ${subsysdir} "
25234 echo " This is not permitted. Please reconfigure."
25236 echo "Aborting configuration ..."
25242 if test "x${db_name}" = "xInternal" ; then
25245 echo "You have not specified either --enable-client-only or one of the"
25246 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25247 echo " This is not permitted. Please reconfigure."
25249 echo "Aborting the configuration ..."
25256 Configuration on `date`:
25258 Host: $host -- ${DISTNAME} ${DISTVER}
25259 Bacula version: ${VERSION} (${DATE})
25260 Source code location: ${srcdir}
25261 Install binaries: ${sbindir}
25262 Install config files: ${sysconfdir}
25263 Scripts directory: ${scriptdir}
25264 Working directory: ${working_dir}
25265 PID directory: ${piddir}
25266 Subsys directory: ${subsysdir}
25267 Man directory: ${mandir}
25268 C Compiler: ${CC} ${CCVERSION}
25269 C++ Compiler: ${CXX} ${CXXVERSION}
25270 Compiler flags: ${WCFLAGS} ${CFLAGS}
25271 Linker flags: ${WLDFLAGS} ${LDFLAGS}
25273 Statically Linked Tools: ${support_static_tools}
25274 Statically Linked FD: ${support_static_fd}
25275 Statically Linked SD: ${support_static_sd}
25276 Statically Linked DIR: ${support_static_dir}
25277 Statically Linked CONS: ${support_static_cons}
25278 Database type: ${db_name}
25279 Database lib: ${DB_LIBS}
25281 Job Output Email: ${job_email}
25282 Traceback Email: ${dump_email}
25283 SMTP Host Address: ${smtp_host}
25285 Director Port: ${dir_port}
25286 File daemon Port: ${fd_port}
25287 Storage daemon Port: ${sd_port}
25289 Director User: ${dir_user}
25290 Director Group: ${dir_group}
25291 Storage Daemon User: ${sd_user}
25292 Storage DaemonGroup: ${sd_group}
25293 File Daemon User: ${fd_user}
25294 File Daemon Group: ${fd_group}
25296 SQL binaries Directory ${SQL_BINDIR}
25298 Large file support: $largefile_support
25299 Bacula conio support: ${got_conio} ${CONS_LIBS}
25300 readline support: ${got_readline} ${PRTREADLINE_SRC}
25301 TCP Wrappers support: ${TCPW_MSG}
25302 TLS support: ${support_tls}
25303 ZLIB support: ${have_zlib}
25304 enable-smartalloc: ${support_smartalloc}
25305 enable-gnome: ${support_gnome} ${gnome_version}
25306 enable-wx-console: ${support_wx_console} ${wx_version}
25307 enable-tray-monitor: ${support_tray_monitor}
25308 client-only: ${build_client_only}
25309 ACL support: ${have_acl}
25310 Python support: ${support_python} ${PYTHON_LIBS}