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 AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG 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 INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_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 working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password 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
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
862 --enable-smartalloc enable smartalloc debugging support disabled
863 --enable-static-tools enable static tape tools disabled
864 --enable-static-fd enable static File daemon disabled
865 --enable-static-sd enable static Storage daemon disabled
866 --enable-static-dir enable static Director disabled
867 --enable-static-cons enable static Console disabled
868 --enable-client-only build client (File daemon) only disabled
869 --disable-conio disable conio support enabled
871 --disable-readline disable readline support disable
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnome-includes Specify location of GNOME headers
879 --with-gnome-libs Specify location of GNOME libs
880 --with-gnome Specify prefix for GNOME files
881 --with-readline=DIR specify readline library directory
882 --with-tcp-wrappers=DIR enable tcpwrappers support
883 --with-working-dir=PATH specify path of Bacula working directory
884 --with-scriptdir=PATH specify path of Bacula scripts directory
885 --with-dump-email=EMAIL dump email address
886 --with-job-email=EMAIL job output email address
887 --with-smtp-host=HOST SMTP mail host address
888 --with-pid-dir=PATH specify location of Bacula pid files
889 --with-subsys-dir=PATH specify location of Bacula subsys file
890 --with-baseport=PORT specify base port address for daemons
891 --with-dir-password=PASSWORD specify Director's password
892 --with-fd-password=PASSWORD specify Client's password
893 --with-sd-password=PASSWORD specify Storage daemon's password
894 --with-dir-user=USER specify user for Director daemon
895 --with-dir-group=GROUP specify group for Director daemon
896 --with-sd-user=USER specify user for Storage daemon
897 --with-sd-group=GROUP specify group for Storage daemon
898 --with-fd-user=USER specify user for File daemon
899 --with-fd-group=GROUP specify group for File daemon
900 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
901 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
902 base install directory, defaults to /usr/local/pgsql
904 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
905 install directory, default is to search through
906 a number of common places for the MySQL files.
908 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
909 install directory, default is to search through
910 a number of common places for the MySQL files.
912 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
913 install directory, default is to search through
914 a number of common places for the SQLite files.
915 --with-x use the X Window System
917 Some influential environment variables:
918 CC C compiler command
919 CFLAGS C compiler flags
920 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
921 nonstandard directory <lib dir>
922 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
923 headers in a nonstandard directory <include dir>
924 CXX C++ compiler command
925 CXXFLAGS C++ compiler flags
928 Use these variables to override the choices made by `configure' or to help
929 it to find libraries and programs with nonstandard names/locations.
934 if test "$ac_init_help" = "recursive"; then
935 # If there are subdirs, report their specific --help.
937 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
938 test -d $ac_dir || continue
941 if test "$ac_dir" != .; then
942 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
943 # A "../" for each directory in $ac_dir_suffix.
944 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
946 ac_dir_suffix= ac_top_builddir=
950 .) # No --srcdir option. We are building in place.
952 if test -z "$ac_top_builddir"; then
955 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
957 [\\/]* | ?:[\\/]* ) # Absolute path.
958 ac_srcdir=$srcdir$ac_dir_suffix;
959 ac_top_srcdir=$srcdir ;;
961 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
962 ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 # Do not use `cd foo && pwd` to compute absolute paths, because
966 # the directories may not exist.
968 .) ac_abs_builddir="$ac_dir";;
971 .) ac_abs_builddir=`pwd`;;
972 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
973 *) ac_abs_builddir=`pwd`/"$ac_dir";;
976 case $ac_abs_builddir in
977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
979 case ${ac_top_builddir}. in
980 .) ac_abs_top_builddir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
982 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
985 case $ac_abs_builddir in
986 .) ac_abs_srcdir=$ac_srcdir;;
989 .) ac_abs_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
991 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
994 case $ac_abs_builddir in
995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
997 case $ac_top_srcdir in
998 .) ac_abs_top_srcdir=$ac_abs_builddir;;
999 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1000 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1005 # Check for guested configure; otherwise get Cygnus style configure.
1006 if test -f $ac_srcdir/configure.gnu; then
1008 $SHELL $ac_srcdir/configure.gnu --help=recursive
1009 elif test -f $ac_srcdir/configure; then
1011 $SHELL $ac_srcdir/configure --help=recursive
1012 elif test -f $ac_srcdir/configure.ac ||
1013 test -f $ac_srcdir/configure.in; then
1015 $ac_configure --help
1017 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1023 test -n "$ac_init_help" && exit 0
1024 if $ac_init_version; then
1027 Copyright (C) 2003 Free Software Foundation, Inc.
1028 This configure script is free software; the Free Software Foundation
1029 gives unlimited permission to copy, distribute and modify it.
1035 This file contains any messages produced by compilers while
1036 running configure, to aid debugging if configure makes a mistake.
1038 It was created by $as_me, which was
1039 generated by GNU Autoconf 2.59. Invocation command line was
1050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1062 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1073 test -z "$as_dir" && as_dir=.
1074 echo "PATH: $as_dir"
1089 # Keep a trace of the command line.
1090 # Strip out --no-create and --no-recursion so they do not pile up.
1091 # Strip out --silent because we don't want to record it for future runs.
1092 # Also quote any args containing shell meta-characters.
1093 # Make two passes to allow for proper duplicate-argument suppression.
1098 ac_must_keep_next=false
1104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1108 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1109 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1112 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1114 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1115 if test $ac_must_keep_next = true; then
1116 ac_must_keep_next=false # Got value, back to normal.
1119 *=* | --config-cache | -C | -disable-* | --disable-* \
1120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1122 | -with-* | --with-* | -without-* | --without-* | --x)
1123 case "$ac_configure_args0 " in
1124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1127 -* ) ac_must_keep_next=true ;;
1130 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1131 # Get rid of the leading space.
1137 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1138 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1140 # When interrupted or exit'd, cleanup temporary files, and complete
1141 # config.log. We remove comments because anyway the quotes in there
1142 # would cause problems or look ugly.
1143 # WARNING: Be sure not to use single quotes in there, as some shells,
1144 # such as our DU 5.0 friend, will then `close' the trap.
1145 trap 'exit_status=$?
1146 # Save into config.log some information that might help in debugging.
1151 ## ---------------- ##
1152 ## Cache variables. ##
1153 ## ---------------- ##
1156 # The following way of writing the cache mishandles newlines in values,
1159 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1162 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1167 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1174 ## ----------------- ##
1175 ## Output variables. ##
1176 ## ----------------- ##
1179 for ac_var in $ac_subst_vars
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1186 if test -n "$ac_subst_files"; then
1193 for ac_var in $ac_subst_files
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1201 if test -s confdefs.h; then
1208 sed "/^$/d" confdefs.h | sort
1211 test "$ac_signal" != 0 &&
1212 echo "$as_me: caught signal $ac_signal"
1213 echo "$as_me: exit $exit_status"
1215 rm -f core *.core &&
1216 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1219 for ac_signal in 1 2 13 15; do
1220 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1225 rm -rf conftest* confdefs.h
1226 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1229 # Predefined preprocessor variables.
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_NAME "$PACKAGE_NAME"
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_STRING "$PACKAGE_STRING"
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1256 # Let the site file select an alternate cache file if it wants to.
1257 # Prefer explicitly selected file to automatically selected ones.
1258 if test -z "$CONFIG_SITE"; then
1259 if test "x$prefix" != xNONE; then
1260 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1262 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1265 for ac_site_file in $CONFIG_SITE; do
1266 if test -r "$ac_site_file"; then
1267 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1268 echo "$as_me: loading site script $ac_site_file" >&6;}
1269 sed 's/^/| /' "$ac_site_file" >&5
1274 if test -r "$cache_file"; then
1275 # Some versions of bash will fail to source /dev/null (special
1276 # files actually), so we avoid doing that.
1277 if test -f "$cache_file"; then
1278 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1279 echo "$as_me: loading cache $cache_file" >&6;}
1281 [\\/]* | ?:[\\/]* ) . $cache_file;;
1282 *) . ./$cache_file;;
1286 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1287 echo "$as_me: creating cache $cache_file" >&6;}
1291 # Check that the precious variables saved in the cache have kept the same
1293 ac_cache_corrupted=false
1294 for ac_var in `(set) 2>&1 |
1295 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1296 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1297 eval ac_new_set=\$ac_env_${ac_var}_set
1298 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1299 eval ac_new_val="\$ac_env_${ac_var}_value"
1300 case $ac_old_set,$ac_new_set in
1302 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1304 ac_cache_corrupted=: ;;
1306 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1308 ac_cache_corrupted=: ;;
1311 if test "x$ac_old_val" != "x$ac_new_val"; then
1312 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1313 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1314 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1315 echo "$as_me: former value: $ac_old_val" >&2;}
1316 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1317 echo "$as_me: current value: $ac_new_val" >&2;}
1318 ac_cache_corrupted=:
1321 # Pass precious variables to config.status.
1322 if test "$ac_new_set" = set; then
1324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1326 *) ac_arg=$ac_var=$ac_new_val ;;
1328 case " $ac_configure_args " in
1329 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1330 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1334 if $ac_cache_corrupted; then
1335 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1336 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1337 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1338 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1339 { (exit 1); exit 1; }; }
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1372 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1373 if test -f $ac_dir/install-sh; then
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1377 elif test -f $ac_dir/install.sh; then
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1381 elif test -f $ac_dir/shtool; then
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1390 { (exit 1); exit 1; }; }
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1396 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1404 # Extract the first word of "$ac_prog", so it can be a program name with args.
1405 set dummy $ac_prog; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420 test -z "$as_dir" && as_dir=.
1421 for ac_exec_ext in '' $ac_executable_extensions; do
1422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1423 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 TRUEPRG=$ac_cv_path_TRUEPRG
1435 if test -n "$TRUEPRG"; then
1436 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1437 echo "${ECHO_T}$TRUEPRG" >&6
1439 echo "$as_me:$LINENO: result: no" >&5
1440 echo "${ECHO_T}no" >&6
1443 test -n "$TRUEPRG" && break
1445 test -n "$TRUEPRG" || TRUEPRG=":"
1447 for ac_prog in false
1449 # Extract the first word of "$ac_prog", so it can be a program name with args.
1450 set dummy $ac_prog; ac_word=$2
1451 echo "$as_me:$LINENO: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 test -z "$as_dir" && as_dir=.
1466 for ac_exec_ext in '' $ac_executable_extensions; do
1467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1468 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478 FALSEPRG=$ac_cv_path_FALSEPRG
1480 if test -n "$FALSEPRG"; then
1481 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1482 echo "${ECHO_T}$FALSEPRG" >&6
1484 echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1488 test -n "$FALSEPRG" && break
1490 test -n "$FALSEPRG" || FALSEPRG=":"
1495 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1496 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1497 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1498 echo "configuring for bacula $VERSION ($DATE)"
1503 ac_cpp='$CPP $CPPFLAGS'
1504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507 if test -n "$ac_tool_prefix"; then
1508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$CC"; then
1516 ac_cv_prog_CC="$CC" # Let the user override the test.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 if test -n "$CC"; then
1536 echo "$as_me:$LINENO: result: $CC" >&5
1537 echo "${ECHO_T}$CC" >&6
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1544 if test -z "$ac_cv_prog_CC"; then
1546 # Extract the first word of "gcc", so it can be a program name with args.
1547 set dummy gcc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$ac_ct_CC"; then
1554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_ac_ct_CC="gcc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1573 if test -n "$ac_ct_CC"; then
1574 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1575 echo "${ECHO_T}$ac_ct_CC" >&6
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1586 if test -z "$CC"; then
1587 if test -n "$ac_tool_prefix"; then
1588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 if test -n "$CC"; then
1596 ac_cv_prog_CC="$CC" # Let the user override the test.
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_CC="${ac_tool_prefix}cc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 if test -n "$CC"; then
1616 echo "$as_me:$LINENO: result: $CC" >&5
1617 echo "${ECHO_T}$CC" >&6
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1624 if test -z "$ac_cv_prog_CC"; then
1626 # Extract the first word of "cc", so it can be a program name with args.
1627 set dummy cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 if test -n "$ac_ct_CC"; then
1634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_ac_ct_CC="cc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1653 if test -n "$ac_ct_CC"; then
1654 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1655 echo "${ECHO_T}$ac_ct_CC" >&6
1657 echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1667 if test -z "$CC"; then
1668 # Extract the first word of "cc", so it can be a program name with args.
1669 set dummy cc; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_CC+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 if test -n "$CC"; then
1676 ac_cv_prog_CC="$CC" # Let the user override the test.
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1687 ac_prog_rejected=yes
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 if test $ac_prog_rejected = yes; then
1698 # We found a bogon in the path, so make sure we never use it.
1699 set dummy $ac_cv_prog_CC
1701 if test $# != 0; then
1702 # We chose a different compiler from the bogus one.
1703 # However, it has the same basename, so the bogon will be chosen
1704 # first if we set CC to just the basename; use the full file name.
1706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1712 if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1721 if test -z "$CC"; then
1722 if test -n "$ac_tool_prefix"; then
1725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 if test -n "$CC"; then
1733 ac_cv_prog_CC="$CC" # Let the user override the test.
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 if test -n "$CC"; then
1753 echo "$as_me:$LINENO: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1760 test -n "$CC" && break
1763 if test -z "$CC"; then
1767 # Extract the first word of "$ac_prog", so it can be a program name with args.
1768 set dummy $ac_prog; ac_word=$2
1769 echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 if test -n "$ac_ct_CC"; then
1775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 ac_cv_prog_ac_ct_CC="$ac_prog"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1794 if test -n "$ac_ct_CC"; then
1795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1796 echo "${ECHO_T}$ac_ct_CC" >&6
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1802 test -n "$ac_ct_CC" && break
1811 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: no acceptable C compiler found in \$PATH
1814 See \`config.log' for more details." >&2;}
1815 { (exit 1); exit 1; }; }
1817 # Provide some information about the compiler.
1818 echo "$as_me:$LINENO:" \
1819 "checking for C compiler version" >&5
1820 ac_compiler=`set X $ac_compile; echo $2`
1821 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1822 (eval $ac_compiler --version </dev/null >&5) 2>&5
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }
1826 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1827 (eval $ac_compiler -v </dev/null >&5) 2>&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1832 (eval $ac_compiler -V </dev/null >&5) 2>&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }
1837 cat >conftest.$ac_ext <<_ACEOF
1840 cat confdefs.h >>conftest.$ac_ext
1841 cat >>conftest.$ac_ext <<_ACEOF
1842 /* end confdefs.h. */
1852 ac_clean_files_save=$ac_clean_files
1853 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1854 # Try to create an executable without -o first, disregard a.out.
1855 # It will help us diagnose broken compilers, and finding out an intuition
1857 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1858 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1859 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1860 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1861 (eval $ac_link_default) 2>&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }; then
1865 # Find the output, starting from the most likely. This scheme is
1866 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1869 # Be careful to initialize this variable, since it used to be cached.
1870 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1872 # b.out is created by i960 compilers.
1873 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1875 test -f "$ac_file" || continue
1877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1880 # This is the source file.
1883 # We found the default executable, but exeext='' is most
1887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1888 # FIXME: I believe we export ac_cv_exeext for Libtool,
1889 # but it would be cool to find out if it's true. Does anybody
1890 # maintain Libtool? --akim.
1898 echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: C compiler cannot create executables
1904 See \`config.log' for more details." >&2;}
1905 { (exit 77); exit 77; }; }
1908 ac_exeext=$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_file" >&5
1910 echo "${ECHO_T}$ac_file" >&6
1912 # Check the compiler produces executables we can run. If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1915 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1916 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1917 # If not cross compiling, check that we can run a simple program.
1918 if test "$cross_compiling" != yes; then
1919 if { ac_try='./$ac_file'
1920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; }; then
1927 if test "$cross_compiling" = maybe; then
1930 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1931 If you meant to cross compile, use \`--host'.
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: cannot run C compiled programs.
1934 If you meant to cross compile, use \`--host'.
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }
1940 echo "$as_me:$LINENO: result: yes" >&5
1941 echo "${ECHO_T}yes" >&6
1943 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1944 ac_clean_files=$ac_clean_files_save
1945 # Check the compiler produces executables we can run. If not, either
1946 # the compiler is broken, or we cross compile.
1947 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1948 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1949 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1950 echo "${ECHO_T}$cross_compiling" >&6
1952 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1953 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1955 (eval $ac_link) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; then
1959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1960 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1961 # work properly (i.e., refer to `conftest.exe'), while it won't with
1963 for ac_file in conftest.exe conftest conftest.*; do
1964 test -f "$ac_file" || continue
1966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1974 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1977 See \`config.log' for more details." >&2;}
1978 { (exit 1); exit 1; }; }
1981 rm -f conftest$ac_cv_exeext
1982 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1983 echo "${ECHO_T}$ac_cv_exeext" >&6
1985 rm -f conftest.$ac_ext
1986 EXEEXT=$ac_cv_exeext
1988 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1989 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1990 if test "${ac_cv_objext+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 cat >conftest.$ac_ext <<_ACEOF
1996 cat confdefs.h >>conftest.$ac_ext
1997 cat >>conftest.$ac_ext <<_ACEOF
1998 /* end confdefs.h. */
2008 rm -f conftest.o conftest.obj
2009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010 (eval $ac_compile) 2>&5
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; then
2014 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2022 echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2025 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2026 See \`config.log' for more details." >&5
2027 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2028 See \`config.log' for more details." >&2;}
2029 { (exit 1); exit 1; }; }
2032 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2034 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2035 echo "${ECHO_T}$ac_cv_objext" >&6
2036 OBJEXT=$ac_cv_objext
2038 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2039 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2040 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 cat >conftest.$ac_ext <<_ACEOF
2046 cat confdefs.h >>conftest.$ac_ext
2047 cat >>conftest.$ac_ext <<_ACEOF
2048 /* end confdefs.h. */
2061 rm -f conftest.$ac_objext
2062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2063 (eval $ac_compile) 2>conftest.er1
2065 grep -v '^ *+' conftest.er1 >conftest.err
2067 cat conftest.err >&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); } &&
2070 { ac_try='test -z "$ac_c_werror_flag"
2071 || test ! -s conftest.err'
2072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; } &&
2077 { ac_try='test -s conftest.$ac_objext'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2085 echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2091 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2094 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2095 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2096 GCC=`test $ac_compiler_gnu = yes && echo yes`
2097 ac_test_CFLAGS=${CFLAGS+set}
2098 ac_save_CFLAGS=$CFLAGS
2100 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2102 if test "${ac_cv_prog_cc_g+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 cat >conftest.$ac_ext <<_ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2120 rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>conftest.er1
2124 grep -v '^ *+' conftest.er1 >conftest.err
2126 cat conftest.err >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -z "$ac_c_werror_flag"
2130 || test ! -s conftest.err'
2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; } &&
2136 { ac_try='test -s conftest.$ac_objext'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2144 echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154 CFLAGS=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156 if test "$GCC" = yes; then
2162 if test "$GCC" = yes; then
2168 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2169 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2170 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 ac_cv_prog_cc_stdc=no
2175 cat >conftest.$ac_ext <<_ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2183 #include <sys/types.h>
2184 #include <sys/stat.h>
2185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2186 struct buf { int x; };
2187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2188 static char *e (p, i)
2194 static char *f (char * (*g) (char **, int), char **p, ...)
2199 s = g (p, va_arg (v,int));
2204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2205 function prototypes and stuff, but not '\xHH' hex character constants.
2206 These don't provoke an error unfortunately, instead are silently treated
2207 as 'x'. The following induces an error, until -std1 is added to get
2208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2209 array size at least. It's necessary to write '\x00'==0 to get something
2210 that's true only with -std1. */
2211 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2213 int test (int i, double x);
2214 struct s1 {int (*f) (int a);};
2215 struct s2 {int (*f) (double a);};
2216 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2222 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2227 # Don't try gcc -ansi; that turns off useful extensions and
2228 # breaks some systems' header files.
2229 # AIX -qlanglvl=ansi
2230 # Ultrix and OSF/1 -std1
2231 # HP-UX 10.20 and later -Ae
2232 # HP-UX older versions -Aa -D_HPUX_SOURCE
2233 # SVR4 -Xc -D__EXTENSIONS__
2234 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2236 CC="$ac_save_CC $ac_arg"
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2241 grep -v '^ *+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_stdc=$ac_arg
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2266 rm -f conftest.err conftest.$ac_objext
2268 rm -f conftest.$ac_ext conftest.$ac_objext
2273 case "x$ac_cv_prog_cc_stdc" in
2275 echo "$as_me:$LINENO: result: none needed" >&5
2276 echo "${ECHO_T}none needed" >&6 ;;
2278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2280 CC="$CC $ac_cv_prog_cc_stdc" ;;
2283 # Some people use a C++ compiler to compile C. Since we use `exit',
2284 # in C++ we need to declare it. In case someone uses the same compiler
2285 # for both compiling C and C++ we need to have the C++ compiler decide
2286 # the declaration of exit, since it's the most demanding environment.
2287 cat >conftest.$ac_ext <<_ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>conftest.er1
2296 grep -v '^ *+' conftest.er1 >conftest.err
2298 cat conftest.err >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try='test -z "$ac_c_werror_flag"
2302 || test ! -s conftest.err'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; } &&
2308 { ac_try='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2314 for ac_declaration in \
2316 'extern "C" void std::exit (int) throw (); using std::exit;' \
2317 'extern "C" void std::exit (int); using std::exit;' \
2318 'extern "C" void exit (int) throw ();' \
2319 'extern "C" void exit (int);' \
2322 cat >conftest.$ac_ext <<_ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2338 rm -f conftest.$ac_objext
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340 (eval $ac_compile) 2>conftest.er1
2342 grep -v '^ *+' conftest.er1 >conftest.err
2344 cat conftest.err >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -z "$ac_c_werror_flag"
2348 || test ! -s conftest.err'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; } &&
2354 { ac_try='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 if test -n "$ac_declaration"; then
2415 echo '#ifdef __cplusplus' >>confdefs.h
2416 echo $ac_declaration >>confdefs.h
2417 echo '#endif' >>confdefs.h
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433 ac_cpp='$CXXCPP $CPPFLAGS'
2434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2437 if test -n "$ac_tool_prefix"; then
2438 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2442 echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444 if test "${ac_cv_prog_CXX+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 if test -n "$CXX"; then
2448 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 if test -n "$CXX"; then
2468 echo "$as_me:$LINENO: result: $CXX" >&5
2469 echo "${ECHO_T}$CXX" >&6
2471 echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2475 test -n "$CXX" && break
2478 if test -z "$CXX"; then
2480 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2482 # Extract the first word of "$ac_prog", so it can be a program name with args.
2483 set dummy $ac_prog; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$ac_ct_CXX"; then
2490 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_ac_ct_CXX="$ac_prog"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2509 if test -n "$ac_ct_CXX"; then
2510 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2511 echo "${ECHO_T}$ac_ct_CXX" >&6
2513 echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2517 test -n "$ac_ct_CXX" && break
2519 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2525 # Provide some information about the compiler.
2526 echo "$as_me:$LINENO:" \
2527 "checking for C++ compiler version" >&5
2528 ac_compiler=`set X $ac_compile; echo $2`
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2530 (eval $ac_compiler --version </dev/null >&5) 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2535 (eval $ac_compiler -v </dev/null >&5) 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2540 (eval $ac_compiler -V </dev/null >&5) 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2545 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2546 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2547 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 cat >conftest.$ac_ext <<_ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>conftest.er1
2572 grep -v '^ *+' conftest.er1 >conftest.err
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_cxx_werror_flag"
2578 || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2601 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2602 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2603 GXX=`test $ac_compiler_gnu = yes && echo yes`
2604 ac_test_CXXFLAGS=${CXXFLAGS+set}
2605 ac_save_CXXFLAGS=$CXXFLAGS
2607 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2608 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2609 if test "${ac_cv_prog_cxx_g+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 cat >conftest.$ac_ext <<_ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>conftest.er1
2631 grep -v '^ *+' conftest.er1 >conftest.err
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -z "$ac_cxx_werror_flag"
2637 || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_prog_cxx_g=yes
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661 CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663 if test "$GXX" = yes; then
2669 if test "$GXX" = yes; then
2675 for ac_declaration in \
2677 'extern "C" void std::exit (int) throw (); using std::exit;' \
2678 'extern "C" void std::exit (int); using std::exit;' \
2679 'extern "C" void exit (int) throw ();' \
2680 'extern "C" void exit (int);' \
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2703 grep -v '^ *+' conftest.er1 >conftest.err
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_cxx_werror_flag"
2709 || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 cat >conftest.$ac_ext <<_ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_cxx_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 if test -n "$ac_declaration"; then
2776 echo '#ifdef __cplusplus' >>confdefs.h
2777 echo $ac_declaration >>confdefs.h
2778 echo '#endif' >>confdefs.h
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 if test "x$CC" != xcc; then
2788 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2789 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2791 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2792 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2794 set dummy $CC; ac_cc=`echo $2 |
2795 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2796 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 cat >conftest.$ac_ext <<_ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2814 # Make sure it works both with $CC and with simple cc.
2815 # We do the test twice because some compilers refuse to overwrite an
2816 # existing .o file with -o, though they will create one.
2817 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); };
2829 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2830 if test "x$CC" != xcc; then
2831 # Test first that cc exists at all.
2832 if { ac_try='cc -c conftest.$ac_ext >&5'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); };
2853 # cc exists but doesn't like -o.
2854 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2859 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2865 echo "$as_me:$LINENO: result: yes" >&5
2866 echo "${ECHO_T}yes" >&6
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2871 cat >>confdefs.h <<\_ACEOF
2872 #define NO_MINUS_C_MINUS_O 1
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2883 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2884 # On Suns, sometimes $CPP names a directory.
2885 if test -n "$CPP" && test -d "$CPP"; then
2888 if test -z "$CPP"; then
2889 if test "${ac_cv_prog_CPP+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 # Double quotes because CPP needs to be expanded
2893 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2896 for ac_c_preproc_warn_flag in '' yes
2898 # Use a header file that comes with gcc, so configuring glibc
2899 # with a fresh cross-compiler works.
2900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2901 # <limits.h> exists even on freestanding compilers.
2902 # On the NeXT, cc -E runs the code through the compiler's parser,
2903 # not just through cpp. "Syntax error" is here to catch this case.
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2911 # include <limits.h>
2913 # include <assert.h>
2917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null; then
2925 if test -s conftest.err; then
2926 ac_cpp_err=$ac_c_preproc_warn_flag
2927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 if test -z "$ac_cpp_err"; then
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 # Broken: fails on valid input.
2943 rm -f conftest.err conftest.$ac_ext
2945 # OK, works on sane cases. Now check whether non-existent headers
2946 # can be detected and how.
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #include <ac_nonexistent.h>
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 if test -z "$ac_cpp_err"; then
2973 # Broken: success on invalid input.
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 # Passes both tests.
2983 rm -f conftest.err conftest.$ac_ext
2986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987 rm -f conftest.err conftest.$ac_ext
2988 if $ac_preproc_ok; then
3000 echo "$as_me:$LINENO: result: $CPP" >&5
3001 echo "${ECHO_T}$CPP" >&6
3003 for ac_c_preproc_warn_flag in '' yes
3005 # Use a header file that comes with gcc, so configuring glibc
3006 # with a fresh cross-compiler works.
3007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008 # <limits.h> exists even on freestanding compilers.
3009 # On the NeXT, cc -E runs the code through the compiler's parser,
3010 # not just through cpp. "Syntax error" is here to catch this case.
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 # include <limits.h>
3020 # include <assert.h>
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev/null; then
3032 if test -s conftest.err; then
3033 ac_cpp_err=$ac_c_preproc_warn_flag
3034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 if test -z "$ac_cpp_err"; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 # Broken: fails on valid input.
3050 rm -f conftest.err conftest.$ac_ext
3052 # OK, works on sane cases. Now check whether non-existent headers
3053 # can be detected and how.
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #include <ac_nonexistent.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 if test -z "$ac_cpp_err"; then
3080 # Broken: success on invalid input.
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 # Passes both tests.
3090 rm -f conftest.err conftest.$ac_ext
3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3094 rm -f conftest.err conftest.$ac_ext
3095 if $ac_preproc_ok; then
3098 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 echo "$as_me:$LINENO: checking for egrep" >&5
3113 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3114 if test "${ac_cv_prog_egrep+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3118 then ac_cv_prog_egrep='grep -E'
3119 else ac_cv_prog_egrep='egrep'
3122 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3123 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3124 EGREP=$ac_cv_prog_egrep
3127 if test $ac_cv_c_compiler_gnu = yes; then
3128 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3129 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3130 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 ac_pattern="Autoconf.*'x'"
3134 cat >conftest.$ac_ext <<_ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3144 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3145 ac_cv_prog_gcc_traditional=yes
3147 ac_cv_prog_gcc_traditional=no
3152 if test $ac_cv_prog_gcc_traditional = no; then
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3164 ac_cv_prog_gcc_traditional=yes
3170 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3171 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3172 if test $ac_cv_prog_gcc_traditional = yes; then
3173 CC="$CC -traditional"
3179 cat >>confdefs.h <<\_ACEOF
3185 # Find a good install program. We prefer a C program (faster),
3186 # so one script is as good as another. But avoid the broken or
3187 # incompatible versions:
3188 # SysV /etc/install, /usr/sbin/install
3189 # SunOS /usr/etc/install
3190 # IRIX /sbin/install
3192 # AmigaOS /C/install, which installs bootblocks on floppy discs
3193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3196 # OS/2's system install, which has a completely different semantic
3197 # ./install, which can be erroneously created by make from ./install.sh.
3198 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3199 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3200 if test -z "$INSTALL"; then
3201 if test "${ac_cv_path_install+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 # Account for people who put trailing slashes in PATH elements.
3211 ./ | .// | /cC/* | \
3212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3213 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3216 # OSF1 and SCO ODT 3.0 have their own names for install.
3217 # Don't use installbsd from OSF since it installs stuff as root
3219 for ac_prog in ginstall scoinst install; do
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3222 if test $ac_prog = install &&
3223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3224 # AIX install. It has an incompatible calling convention.
3226 elif test $ac_prog = install &&
3227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3228 # program-specific install script used by HP pwplus--don't use.
3231 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3243 if test "${ac_cv_path_install+set}" = set; then
3244 INSTALL=$ac_cv_path_install
3246 # As a last resort, use the slow shell script. We don't cache a
3247 # path for INSTALL within a source directory, because that will
3248 # break other packages using the cache if that directory is
3249 # removed, or if the path is relative.
3250 INSTALL=$ac_install_sh
3253 echo "$as_me:$LINENO: result: $INSTALL" >&5
3254 echo "${ECHO_T}$INSTALL" >&6
3256 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3257 # It thinks the first close brace ends the variable substitution.
3258 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3260 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3262 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3267 echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_prog_RANLIB+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 if test -n "$RANLIB"; then
3273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 RANLIB=$ac_cv_prog_RANLIB
3292 if test -n "$RANLIB"; then
3293 echo "$as_me:$LINENO: result: $RANLIB" >&5
3294 echo "${ECHO_T}$RANLIB" >&6
3296 echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6
3301 if test -z "$ac_cv_prog_RANLIB"; then
3302 ac_ct_RANLIB=$RANLIB
3303 # Extract the first word of "ranlib", so it can be a program name with args.
3304 set dummy ranlib; ac_word=$2
3305 echo "$as_me:$LINENO: checking for $ac_word" >&5
3306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 if test -n "$ac_ct_RANLIB"; then
3311 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_RANLIB="ranlib"
3321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3330 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3331 if test -n "$ac_ct_RANLIB"; then
3332 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3333 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3335 echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3339 RANLIB=$ac_ct_RANLIB
3341 RANLIB="$ac_cv_prog_RANLIB"
3344 # Extract the first word of "mv", so it can be a program name with args.
3345 set dummy mv; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_MV+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3376 if test -n "$MV"; then
3377 echo "$as_me:$LINENO: result: $MV" >&5
3378 echo "${ECHO_T}$MV" >&6
3380 echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3384 # Extract the first word of "rm", so it can be a program name with args.
3385 set dummy rm; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_path_RM+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3416 if test -n "$RM"; then
3417 echo "$as_me:$LINENO: result: $RM" >&5
3418 echo "${ECHO_T}$RM" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3424 # Extract the first word of "cp", so it can be a program name with args.
3425 set dummy cp; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_path_CP+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3456 if test -n "$CP"; then
3457 echo "$as_me:$LINENO: result: $CP" >&5
3458 echo "${ECHO_T}$CP" >&6
3460 echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3464 # Extract the first word of "sed", so it can be a program name with args.
3465 set dummy sed; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_SED+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3496 if test -n "$SED"; then
3497 echo "$as_me:$LINENO: result: $SED" >&5
3498 echo "${ECHO_T}$SED" >&6
3500 echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3504 # Extract the first word of "awk", so it can be a program name with args.
3505 set dummy awk; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_AWK+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3536 if test -n "$AWK"; then
3537 echo "$as_me:$LINENO: result: $AWK" >&5
3538 echo "${ECHO_T}$AWK" >&6
3540 echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3544 # Extract the first word of "echo", so it can be a program name with args.
3545 set dummy echo; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_ECHO+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3574 ECHO=$ac_cv_path_ECHO
3576 if test -n "$ECHO"; then
3577 echo "$as_me:$LINENO: result: $ECHO" >&5
3578 echo "${ECHO_T}$ECHO" >&6
3580 echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3584 # Extract the first word of "cmp", so it can be a program name with args.
3585 set dummy cmp; ac_word=$2
3586 echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_CMP+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3616 if test -n "$CMP"; then
3617 echo "$as_me:$LINENO: result: $CMP" >&5
3618 echo "${ECHO_T}$CMP" >&6
3620 echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3624 # Extract the first word of "tbl", so it can be a program name with args.
3625 set dummy tbl; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_path_TBL+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3656 if test -n "$TBL"; then
3657 echo "$as_me:$LINENO: result: $TBL" >&5
3658 echo "${ECHO_T}$TBL" >&6
3660 echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3664 # Extract the first word of "ar", so it can be a program name with args.
3665 set dummy ar; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_path_AR+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3696 if test -n "$AR"; then
3697 echo "$as_me:$LINENO: result: $AR" >&5
3698 echo "${ECHO_T}$AR" >&6
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3704 # Extract the first word of "openssl", so it can be a program name with args.
3705 set dummy openssl; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_path_OPENSSL+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3734 OPENSSL=$ac_cv_path_OPENSSL
3736 if test -n "$OPENSSL"; then
3737 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3738 echo "${ECHO_T}$OPENSSL" >&6
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3744 # Extract the first word of "mtx", so it can be a program name with args.
3745 set dummy mtx; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_path_MTX+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3776 if test -n "$MTX"; then
3777 echo "$as_me:$LINENO: result: $MTX" >&5
3778 echo "${ECHO_T}$MTX" >&6
3780 echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3784 # Extract the first word of "pkg-config", so it can be a program name with args.
3785 set dummy pkg-config; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3814 PKGCONFIG=$ac_cv_path_PKGCONFIG
3816 if test -n "$PKGCONFIG"; then
3817 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3818 echo "${ECHO_T}$PKGCONFIG" >&6
3820 echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3824 # Extract the first word of "wx-config", so it can be a program name with args.
3825 set dummy wx-config; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3854 WXCONFIG=$ac_cv_path_WXCONFIG
3856 if test -n "$WXCONFIG"; then
3857 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3858 echo "${ECHO_T}$WXCONFIG" >&6
3860 echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3865 test -n "$ARFLAG" || ARFLAGS="cr"
3878 # Make sure we can run config.sub.
3879 $ac_config_sub sun4 >/dev/null 2>&1 ||
3880 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3881 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3882 { (exit 1); exit 1; }; }
3884 echo "$as_me:$LINENO: checking build system type" >&5
3885 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3886 if test "${ac_cv_build+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 ac_cv_build_alias=$build_alias
3890 test -z "$ac_cv_build_alias" &&
3891 ac_cv_build_alias=`$ac_config_guess`
3892 test -z "$ac_cv_build_alias" &&
3893 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3894 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3895 { (exit 1); exit 1; }; }
3896 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3897 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3898 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3899 { (exit 1); exit 1; }; }
3902 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3903 echo "${ECHO_T}$ac_cv_build" >&6
3905 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3906 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3907 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3911 echo "$as_me:$LINENO: checking host system type" >&5
3912 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3913 if test "${ac_cv_host+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 ac_cv_host_alias=$host_alias
3917 test -z "$ac_cv_host_alias" &&
3918 ac_cv_host_alias=$ac_cv_build_alias
3919 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3920 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3921 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3922 { (exit 1); exit 1; }; }
3925 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3926 echo "${ECHO_T}$ac_cv_host" >&6
3928 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3929 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3930 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3934 *cygwin* ) CYGWIN=yes;;
3938 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3944 HAVE_SUN_OS_FALSE='#'
3946 HAVE_SUN_OS_TRUE='#'
3949 cat >>confdefs.h <<\_ACEOF
3950 #define HAVE_SUN_OS 1
3958 HAVE_SUN_OS_FALSE='#'
3960 HAVE_SUN_OS_TRUE='#'
3965 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3971 HAVE_OSF1_OS_FALSE='#'
3973 HAVE_OSF1_OS_TRUE='#'
3976 cat >>confdefs.h <<\_ACEOF
3977 #define HAVE_OSF1_OS 1
3985 HAVE_OSF1_OS_FALSE='#'
3987 HAVE_OSF1_OS_TRUE='#'
3992 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3998 HAVE_AIX_OS_FALSE='#'
4000 HAVE_AIX_OS_TRUE='#'
4003 cat >>confdefs.h <<\_ACEOF
4004 #define HAVE_AIX_OS 1
4012 HAVE_AIX_OS_FALSE='#'
4014 HAVE_AIX_OS_TRUE='#'
4019 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4025 HAVE_HPUX_OS_FALSE='#'
4027 HAVE_HPUX_OS_TRUE='#'
4030 cat >>confdefs.h <<\_ACEOF
4031 #define HAVE_HPUX_OS 1
4039 HAVE_HPUX_OS_FALSE='#'
4041 HAVE_HPUX_OS_TRUE='#'
4046 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4052 HAVE_LINUX_OS_FALSE='#'
4054 HAVE_LINUX_OS_TRUE='#'
4055 HAVE_LINUX_OS_FALSE=
4057 cat >>confdefs.h <<\_ACEOF
4058 #define HAVE_LINUX_OS 1
4066 HAVE_LINUX_OS_FALSE='#'
4068 HAVE_LINUX_OS_TRUE='#'
4069 HAVE_LINUX_OS_FALSE=
4073 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4078 HAVE_FREEBSD_OS_TRUE=
4079 HAVE_FREEBSD_OS_FALSE='#'
4081 HAVE_FREEBSD_OS_TRUE='#'
4082 HAVE_FREEBSD_OS_FALSE=
4084 cat >>confdefs.h <<\_ACEOF
4085 #define HAVE_FREEBSD_OS 1
4092 HAVE_FREEBSD_OS_TRUE=
4093 HAVE_FREEBSD_OS_FALSE='#'
4095 HAVE_FREEBSD_OS_TRUE='#'
4096 HAVE_FREEBSD_OS_FALSE=
4100 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4105 HAVE_NETBSD_OS_TRUE=
4106 HAVE_NETBSD_OS_FALSE='#'
4108 HAVE_NETBSD_OS_TRUE='#'
4109 HAVE_NETBSD_OS_FALSE=
4111 cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_NETBSD_OS 1
4119 HAVE_NETBSD_OS_TRUE=
4120 HAVE_NETBSD_OS_FALSE='#'
4122 HAVE_NETBSD_OS_TRUE='#'
4123 HAVE_NETBSD_OS_FALSE=
4127 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4132 HAVE_OPENBSD_OS_TRUE=
4133 HAVE_OPENBSD_OS_FALSE='#'
4135 HAVE_OPENBSD_OS_TRUE='#'
4136 HAVE_OPENBSD_OS_FALSE=
4138 cat >>confdefs.h <<\_ACEOF
4139 #define HAVE_OPENBSD_OS 1
4146 HAVE_OPENBSD_OS_TRUE=
4147 HAVE_OPENBSD_OS_FALSE='#'
4149 HAVE_OPENBSD_OS_TRUE='#'
4150 HAVE_OPENBSD_OS_FALSE=
4154 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4160 HAVE_BSDI_OS_FALSE='#'
4162 HAVE_BSDI_OS_TRUE='#'
4165 cat >>confdefs.h <<\_ACEOF
4166 #define HAVE_BSDI_OS 1
4174 HAVE_BSDI_OS_FALSE='#'
4176 HAVE_BSDI_OS_TRUE='#'
4181 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4187 HAVE_SGI_OS_FALSE='#'
4189 HAVE_SGI_OS_TRUE='#'
4192 cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_SGI_OS 1
4201 HAVE_SGI_OS_FALSE='#'
4203 HAVE_SGI_OS_TRUE='#'
4208 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4214 HAVE_IRIX_OS_FALSE='#'
4216 HAVE_IRIX_OS_TRUE='#'
4219 cat >>confdefs.h <<\_ACEOF
4220 #define HAVE_IRIX_OS 1
4228 HAVE_IRIX_OS_FALSE='#'
4230 HAVE_IRIX_OS_TRUE='#'
4235 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4240 HAVE_DARWIN_OS_TRUE=
4241 HAVE_DARWIN_OS_FALSE='#'
4243 HAVE_DARWIN_OS_TRUE='#'
4244 HAVE_DARWIN_OS_FALSE=
4246 cat >>confdefs.h <<\_ACEOF
4247 #define HAVE_DARWIN_OS 1
4254 HAVE_DARWIN_OS_TRUE=
4255 HAVE_DARWIN_OS_FALSE='#'
4257 HAVE_DARWIN_OS_TRUE='#'
4258 HAVE_DARWIN_OS_FALSE=
4263 # -----------------------------------------------------------
4264 # ----------------------------------------------------------
4265 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4266 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4267 if test "x$DISTNAME" != "x"
4269 echo "distname set to $DISTNAME"
4270 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4273 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4276 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4279 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4282 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4285 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4288 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4291 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4294 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4297 elif test -f /etc/SuSE-release
4300 elif test -d /etc/SuSEconfig
4303 elif test -f /etc/mandrake-release
4306 elif test -f /etc/whitebox-release
4309 elif test -f /etc/redhat-release
4312 elif test -f /etc/gentoo-release
4315 elif test -f /etc/debian_version
4318 elif test -f /etc/slackware-version
4321 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4324 elif test -f /etc/engarde-version
4327 elif test "$CYGWIN" = yes
4330 cat >>confdefs.h <<\_ACEOF
4331 #define HAVE_CYGWIN 1
4337 echo "$as_me:$LINENO: result: done" >&5
4338 echo "${ECHO_T}done" >&6
4341 # -----------------------------------------------------------
4342 # ----------------------------------------------------------
4347 INSIDE_GNOME_COMMON_TRUE=
4348 INSIDE_GNOME_COMMON_FALSE='#'
4350 INSIDE_GNOME_COMMON_TRUE='#'
4351 INSIDE_GNOME_COMMON_FALSE=
4354 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4356 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4359 # ------------------------------------------------------------------
4360 # If the user has not set --prefix, we set our default to nothing.
4361 # In this case, if the user has not set --sysconfdir, we set it
4362 # to the package default of /etc/bacula. If either --prefix or
4363 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4364 # ------------------------------------------------------------------
4365 if test x${prefix} = xNONE ; then
4366 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4367 sysconfdir=/etc/bacula
4371 sysconfdir=`eval echo ${sysconfdir}`
4373 # -------------------------------------------------------------------------
4374 # If the user has not set --exec-prefix, we default to ${prefix}
4375 # -------------------------------------------------------------------------
4376 if test x${exec_prefix} = xNONE ; then
4377 exec_prefix=${prefix}
4380 # ------------------------------------------------------------------
4381 # If the user has not set --sbindir, we set our default as /sbin
4382 # ------------------------------------------------------------------
4383 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4384 sbindir=${exec_prefix}/sbin
4386 sbindir=`eval echo ${sbindir}`
4388 # ------------------------------------------------------------------
4389 # All list of languages for which a translation exist. Each
4390 # language is separated by a space.
4391 # ------------------------------------------------------------------
4394 for ac_prog in msgfmt
4396 # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_path_MSGFMT+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 MSGFMT=$ac_cv_path_MSGFMT
4427 if test -n "$MSGFMT"; then
4428 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4429 echo "${ECHO_T}$MSGFMT" >&6
4431 echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6
4435 test -n "$MSGFMT" && break
4437 test -n "$MSGFMT" || MSGFMT="no"
4439 if test "$MSGFMT" = "no"
4441 echo 'msgfmt program not found, disabling NLS !'
4443 USE_INCLUDED_LIBINTL=no
4451 support_postgresql=no
4452 support_smartalloc=yes
4453 support_readline=yes
4456 support_wx_console=no
4458 support_static_tools=no
4459 support_static_fd=no
4460 support_static_sd=no
4461 support_static_dir=no
4462 support_static_cons=no
4463 build_client_only=no
4469 # -------------------------------------------
4470 # gnome (default off)
4471 # -------------------------------------------
4472 # Check whether --enable-gnome or --disable-gnome was given.
4473 if test "${enable_gnome+set}" = set; then
4474 enableval="$enable_gnome"
4475 if test x$enableval = xyes; then
4481 if test x$support_gnome = xyes; then
4482 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4484 if test $pkg = 0; then
4485 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4486 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4487 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4488 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4493 GNOME_DIR=src/gnome2-console
4494 gnome_version="Version 2.x"
4507 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4508 if test "${with_gnome_includes+set}" = set; then
4509 withval="$with_gnome_includes"
4511 CFLAGS="$CFLAGS -I$withval"
4516 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4517 if test "${with_gnome_libs+set}" = set; then
4518 withval="$with_gnome_libs"
4520 LDFLAGS="$LDFLAGS -L$withval"
4521 gnome_prefix=$withval
4526 # Check whether --with-gnome or --without-gnome was given.
4527 if test "${with_gnome+set}" = set; then
4528 withval="$with_gnome"
4529 if test x$withval = xyes; then
4533 if test "x$withval" = xno; then
4537 LDFLAGS="$LDFLAGS -L$withval/lib"
4538 CFLAGS="$CFLAGS -I$withval/include"
4539 gnome_prefix=$withval/lib
4546 if test "x$want_gnome" = xyes; then
4548 # Extract the first word of "gnome-config", so it can be a program name with args.
4549 set dummy gnome-config; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 case $GNOME_CONFIG in
4557 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4578 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4580 if test -n "$GNOME_CONFIG"; then
4581 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4582 echo "${ECHO_T}$GNOME_CONFIG" >&6
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 if test "$GNOME_CONFIG" = "no"; then
4589 no_gnome_config="yes"
4591 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4592 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4593 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4594 echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6
4598 # Extract the first word of "orbit-config", so it can be a program name with args.
4599 set dummy orbit-config; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 case $ORBIT_CONFIG in
4607 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4628 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4630 if test -n "$ORBIT_CONFIG"; then
4631 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4632 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4638 # Extract the first word of "orbit-idl", so it can be a program name with args.
4639 set dummy orbit-idl; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4668 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4670 if test -n "$ORBIT_IDL"; then
4671 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4672 echo "${ECHO_T}$ORBIT_IDL" >&6
4674 echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4678 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4679 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4680 if test "${gnome_cv_orbit_found+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4685 gnome_cv_orbit_found=no
4687 gnome_cv_orbit_found=yes
4691 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4692 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4695 if test x$gnome_cv_orbit_found = xyes; then
4697 HAVE_ORBIT_FALSE='#'
4702 if test x$gnome_cv_orbit_found = xyes; then
4704 ORBIT_CFLAGS=`orbit-config --cflags client server`
4705 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4709 if test xfail = xfailure; then
4710 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4711 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4712 { (exit 1); exit 1; }; }
4716 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4717 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4718 if test "${gnome_cv_gnorba_found+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 gnome_cv_gnorba_found=no
4723 if test x$gnome_cv_orbit_found = xyes; then
4724 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4725 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4726 if test -n "$GNORBA_LIBS"; then
4727 gnome_cv_gnorba_found=yes
4732 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4733 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4736 if test x$gnome_cv_gnorba_found = xyes; then
4738 HAVE_GNORBA_FALSE='#'
4740 HAVE_GNORBA_TRUE='#'
4743 if test x$gnome_cv_orbit_found = xyes; then
4745 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4746 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4750 if test xfail = xfailure; then
4751 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4752 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4753 { (exit 1); exit 1; }; }
4757 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4758 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4759 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4760 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4761 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4762 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4763 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4766 echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4768 no_gnome_config="yes"
4772 if test x$exec_prefix = xNONE; then
4773 if test x$prefix = xNONE; then
4774 gnome_prefix=$ac_default_prefix/lib
4776 gnome_prefix=$prefix/lib
4779 gnome_prefix=`eval echo \`echo $libdir\``
4782 if test "$no_gnome_config" = "yes"; then
4783 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4784 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4785 if test -f $gnome_prefix/gnomeConf.sh; then
4786 echo "$as_me:$LINENO: result: found" >&5
4787 echo "${ECHO_T}found" >&6
4788 echo "loading gnome configuration from" \
4789 "$gnome_prefix/gnomeConf.sh"
4790 . $gnome_prefix/gnomeConf.sh
4793 echo "$as_me:$LINENO: result: not found" >&5
4794 echo "${ECHO_T}not found" >&6
4795 if test xfail = xfail; then
4796 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4797 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4798 { (exit 1); exit 1; }; }
4807 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4808 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4812 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4813 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4814 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4817 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4818 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4819 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4822 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4823 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4824 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4826 echo "$as_me:$LINENO: result: unknown library" >&5
4827 echo "${ECHO_T}unknown library" >&6
4829 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4830 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4835 GNOME_DIR=src/gnome-console
4836 gnome_version="Version 1.4"
4842 # -------------------------------------------
4843 # wx-console (default off)
4844 # -------------------------------------------
4845 # Check whether --enable-wx-console or --disable-wx-console was given.
4846 if test "${enable_wx_console+set}" = set; then
4847 enableval="$enable_wx_console"
4848 if test x$enableval = xyes; then
4849 support_wx_console=yes
4854 if test x$support_wx_console = xyes; then
4855 abc=`$WXCONFIG --cppflags`
4857 if test $pkg = 0; then
4858 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4859 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4862 WX_DIR=src/wx-console
4865 echo "wx-config program not found. wx-console disabled."
4867 support_wx_console=no
4873 # -------------------------------------------
4874 # tray-monitor (default off)
4875 # -------------------------------------------
4876 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4877 if test "${enable_tray_monitor+set}" = set; then
4878 enableval="$enable_tray_monitor"
4879 if test x$enableval = xyes; then
4880 support_tray_monitor=yes
4885 if test x$support_tray_monitor = xyes; then
4886 abc=`$PKGCONFIG --exists gtk+-2.0`
4888 if test $pkg = 0; then
4889 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4890 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4893 TRAY_MONITOR_DIR=src/tray-monitor
4894 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4896 if test $pkg = 0; then
4897 cat >>confdefs.h <<\_ACEOF
4898 #define HAVE_GTK_2_4 1
4906 # -------------------------------------------
4907 # smartalloc (default off)
4908 # -------------------------------------------
4909 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4910 if test "${enable_smartalloc+set}" = set; then
4911 enableval="$enable_smartalloc"
4912 if test x$enableval = xno; then
4913 support_smartalloc=no
4917 if test x$support_smartalloc = xyes; then
4918 cat >>confdefs.h <<\_ACEOF
4919 #define SMARTALLOC 1
4924 # -------------------------------------------
4925 # static-tools (default off)
4926 # -------------------------------------------
4927 # Check whether --enable-static-tools or --disable-static-tools was given.
4928 if test "${enable_static_tools+set}" = set; then
4929 enableval="$enable_static_tools"
4930 if test x$enableval = xyes; then
4931 support_static_tools=yes
4936 if test x$support_static_tools = xyes; then
4937 TTOOL_LDFLAGS="-static"
4941 # -------------------------------------------
4942 # static-fd (default off)
4943 # -------------------------------------------
4944 # Check whether --enable-static-fd or --disable-static-fd was given.
4945 if test "${enable_static_fd+set}" = set; then
4946 enableval="$enable_static_fd"
4947 if test x$enableval = xyes; then
4948 support_static_fd=yes
4953 if test x$support_static_fd = xyes; then
4954 STATIC_FD="static-bacula-fd"
4958 # -------------------------------------------
4959 # static-sd (default off)
4960 # -------------------------------------------
4961 # Check whether --enable-static-sd or --disable-static-sd was given.
4962 if test "${enable_static_sd+set}" = set; then
4963 enableval="$enable_static_sd"
4964 if test x$enableval = xyes; then
4965 support_static_sd=yes
4970 if test x$support_static_sd = xyes; then
4971 STATIC_SD="static-bacula-sd"
4975 # -------------------------------------------
4976 # static-dir (default off)
4977 # -------------------------------------------
4978 # Check whether --enable-static-dir or --disable-static-dir was given.
4979 if test "${enable_static_dir+set}" = set; then
4980 enableval="$enable_static_dir"
4981 if test x$enableval = xyes; then
4982 support_static_dir=yes
4987 if test x$support_static_dir = xyes; then
4988 STATIC_DIR="static-bacula-dir"
4992 # -------------------------------------------
4993 # static-cons (default off)
4994 # -------------------------------------------
4995 # Check whether --enable-static-cons or --disable-static-cons was given.
4996 if test "${enable_static_cons+set}" = set; then
4997 enableval="$enable_static_cons"
4998 if test x$enableval = xyes; then
4999 support_static_cons=yes
5006 if test x$support_static_cons = xyes; then
5007 STATIC_CONS="static-bconsole"
5008 STATIC_GNOME_CONS="static-gnome-console"
5009 STATIC_WX_CONS="static-wx-console"
5015 # -------------------------------------------
5016 # client_only (default off)
5017 # -------------------------------------------
5018 # Check whether --enable-client-only or --disable-client-only was given.
5019 if test "${enable_client_only+set}" = set; then
5020 enableval="$enable_client_only"
5021 if test x$enableval = xyes; then
5022 build_client_only=yes
5027 if test x$build_client_only = xno; then
5034 # ---------------------------------------------------
5035 # Check for conio (Bacula readline substitute)(
5036 # ---------------------------------------------------
5037 # this allows you to turn it completely off
5038 # Check whether --enable-conio or --disable-conio was given.
5039 if test "${enable_conio+set}" = set; then
5040 enableval="$enable_conio"
5041 if test x$enableval = xno; then
5047 if test x$support_conio = xyes; then
5048 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5049 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5050 if test "${ac_cv_header_stdc+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 cat >conftest.$ac_ext <<_ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5072 rm -f conftest.$ac_objext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5074 (eval $ac_compile) 2>conftest.er1
5076 grep -v '^ *+' conftest.er1 >conftest.err
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -z "$ac_c_werror_flag"
5082 || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_cv_header_stdc=yes
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_cv_header_stdc=no
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5103 if test $ac_cv_header_stdc = yes; then
5104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5115 $EGREP "memchr" >/dev/null 2>&1; then
5118 ac_cv_header_stdc=no
5124 if test $ac_cv_header_stdc = yes; then
5125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136 $EGREP "free" >/dev/null 2>&1; then
5139 ac_cv_header_stdc=no
5145 if test $ac_cv_header_stdc = yes; then
5146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5147 if test "$cross_compiling" = yes; then
5150 cat >conftest.$ac_ext <<_ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5157 #if ((' ' & 0x0FF) == 0x020)
5158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5161 # define ISLOWER(c) \
5162 (('a' <= (c) && (c) <= 'i') \
5163 || ('j' <= (c) && (c) <= 'r') \
5164 || ('s' <= (c) && (c) <= 'z'))
5165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5173 for (i = 0; i < 256; i++)
5174 if (XOR (islower (i), ISLOWER (i))
5175 || toupper (i) != TOUPPER (i))
5180 rm -f conftest$ac_exeext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182 (eval $ac_link) 2>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5193 echo "$as_me: program exited with status $ac_status" >&5
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_cv_header_stdc=no
5200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5204 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5205 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5206 if test $ac_cv_header_stdc = yes; then
5208 cat >>confdefs.h <<\_ACEOF
5209 #define STDC_HEADERS 1
5214 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5224 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5225 inttypes.h stdint.h unistd.h
5227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5228 echo "$as_me:$LINENO: checking for $ac_header" >&5
5229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 $ac_includes_default
5241 #include <$ac_header>
5243 rm -f conftest.$ac_objext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -z "$ac_c_werror_flag"
5253 || test ! -s conftest.err'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; } &&
5259 { ac_try='test -s conftest.$ac_objext'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 eval "$as_ac_Header=yes"
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 eval "$as_ac_Header=no"
5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5277 cat >>confdefs.h <<_ACEOF
5278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5286 if test "${ac_cv_header_termcap_h+set}" = set; then
5287 echo "$as_me:$LINENO: checking for termcap.h" >&5
5288 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5289 if test "${ac_cv_header_termcap_h+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5293 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5295 # Is the header compilable?
5296 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5297 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 $ac_includes_default
5305 #include <termcap.h>
5307 rm -f conftest.$ac_objext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>conftest.er1
5311 grep -v '^ *+' conftest.er1 >conftest.err
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -z "$ac_c_werror_flag"
5317 || test ! -s conftest.err'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest.$ac_objext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_header_compiler=yes
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_header_compiler=no
5336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5338 echo "${ECHO_T}$ac_header_compiler" >&6
5340 # Is the header present?
5341 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5342 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5343 cat >conftest.$ac_ext <<_ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 #include <termcap.h>
5351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5354 grep -v '^ *+' conftest.er1 >conftest.err
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } >/dev/null; then
5359 if test -s conftest.err; then
5360 ac_cpp_err=$ac_c_preproc_warn_flag
5361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5368 if test -z "$ac_cpp_err"; then
5369 ac_header_preproc=yes
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5374 ac_header_preproc=no
5376 rm -f conftest.err conftest.$ac_ext
5377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5378 echo "${ECHO_T}$ac_header_preproc" >&6
5380 # So? What about this header?
5381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5383 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5384 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5386 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5387 ac_header_preproc=yes
5390 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5391 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5393 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5395 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5396 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5397 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5398 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5399 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5400 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5401 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5404 ## ------------------------------------------ ##
5405 ## Report this to the AC_PACKAGE_NAME lists. ##
5406 ## ------------------------------------------ ##
5409 sed "s/^/$as_me: WARNING: /" >&2
5412 echo "$as_me:$LINENO: checking for termcap.h" >&5
5413 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5414 if test "${ac_cv_header_termcap_h+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 ac_cv_header_termcap_h=$ac_header_preproc
5419 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5420 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5423 if test $ac_cv_header_termcap_h = yes; then
5424 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5425 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5426 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-ltermcap $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5438 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>conftest.er1
5457 grep -v '^ *+' conftest.er1 >conftest.err
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_lib_termcap_tgetent=yes
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 ac_cv_lib_termcap_tgetent=no
5482 rm -f conftest.err conftest.$ac_objext \
5483 conftest$ac_exeext conftest.$ac_ext
5484 LIBS=$ac_check_lib_save_LIBS
5486 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5487 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5488 if test $ac_cv_lib_termcap_tgetent = yes; then
5489 CONS_LIBS="-ltermcap"
5495 cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_CONIO 1
5501 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5502 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5503 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 ac_check_lib_save_LIBS=$LIBS
5507 LIBS="-lncurses $LIBS"
5508 cat >conftest.$ac_ext <<_ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5515 /* Override any gcc2 internal prototype to avoid an error. */
5519 /* We use char because int might match the return type of a gcc2
5520 builtin and then its argument prototype would still apply. */
5530 rm -f conftest.$ac_objext conftest$ac_exeext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532 (eval $ac_link) 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag"
5540 || test ! -s conftest.err'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_lib_ncurses_tgetent=yes
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_cv_lib_ncurses_tgetent=no
5559 rm -f conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5561 LIBS=$ac_check_lib_save_LIBS
5563 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5564 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5565 if test $ac_cv_lib_ncurses_tgetent = yes; then
5566 CONS_LIBS="-lncurses"
5572 cat >>confdefs.h <<\_ACEOF
5573 #define HAVE_CONIO 1
5578 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5586 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5593 # ---------------------------------------------------
5594 # Check for readline support/directory (default off)
5595 # ---------------------------------------------------
5596 # this allows you to turn it completely off
5597 # Check whether --enable-readline or --disable-readline was given.
5598 if test "${enable_readline+set}" = set; then
5599 enableval="$enable_readline"
5600 if test x$enableval = xno; then
5607 if test x$support_readline = xyes; then
5609 # Check whether --with-readline or --without-readline was given.
5610 if test "${with_readline+set}" = set; then
5611 withval="$with_readline"
5613 case "$with_readline" in
5616 if test "$with_readline" != "yes"; then
5617 CONS_INC="-I${with_readline}"
5618 CONS_LDFLAGS="-L$with_readline"
5620 with_readline="/usr/include/readline"
5622 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5624 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5625 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5632 # Is the header compilable?
5633 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5634 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5635 cat >conftest.$ac_ext <<_ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 $ac_includes_default
5642 #include <${with_readline}/readline.h>
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_header_compiler=yes
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5671 ac_header_compiler=no
5673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5675 echo "${ECHO_T}$ac_header_compiler" >&6
5677 # Is the header present?
5678 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5679 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #include <${with_readline}/readline.h>
5688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5691 grep -v '^ *+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } >/dev/null; then
5696 if test -s conftest.err; then
5697 ac_cpp_err=$ac_c_preproc_warn_flag
5698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5705 if test -z "$ac_cpp_err"; then
5706 ac_header_preproc=yes
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 ac_header_preproc=no
5713 rm -f conftest.err conftest.$ac_ext
5714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5715 echo "${ECHO_T}$ac_header_preproc" >&6
5717 # So? What about this header?
5718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5720 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5721 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
5723 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
5724 ac_header_preproc=yes
5727 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5728 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5730 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
5732 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
5734 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5736 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
5738 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
5741 ## ------------------------------------------ ##
5742 ## Report this to the AC_PACKAGE_NAME lists. ##
5743 ## ------------------------------------------ ##
5746 sed "s/^/$as_me: WARNING: /" >&2
5749 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5750 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 eval "$as_ac_Header=\$ac_header_preproc"
5756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5761 cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_READLINE 1
5765 CONS_LIBS="-lreadline -ltermcap"
5770 echo "readline.h not found. readline turned off ..."
5782 # check for standard readline library
5783 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5784 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5785 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5786 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5790 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5792 # Is the header compilable?
5793 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5794 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5795 cat >conftest.$ac_ext <<_ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5802 #include </usr/include/readline/readline.h>
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806 (eval $ac_compile) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest.$ac_objext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_header_compiler=yes
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 ac_header_compiler=no
5833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5835 echo "${ECHO_T}$ac_header_compiler" >&6
5837 # Is the header present?
5838 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5839 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5840 cat >conftest.$ac_ext <<_ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include </usr/include/readline/readline.h>
5848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } >/dev/null; then
5856 if test -s conftest.err; then
5857 ac_cpp_err=$ac_c_preproc_warn_flag
5858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5865 if test -z "$ac_cpp_err"; then
5866 ac_header_preproc=yes
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 ac_header_preproc=no
5873 rm -f conftest.err conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5875 echo "${ECHO_T}$ac_header_preproc" >&6
5877 # So? What about this header?
5878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5880 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5881 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5882 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
5883 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
5884 ac_header_preproc=yes
5887 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5888 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5890 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
5892 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
5894 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5896 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
5898 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
5901 ## ------------------------------------------ ##
5902 ## Report this to the AC_PACKAGE_NAME lists. ##
5903 ## ------------------------------------------ ##
5906 sed "s/^/$as_me: WARNING: /" >&2
5909 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5910 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5911 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5916 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5917 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5920 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5921 cat >>confdefs.h <<\_ACEOF
5922 #define HAVE_READLINE 1
5926 CONS_INC="-I/usr/include/readline"
5927 CONS_LIBS="-lreadline -ltermcap"
5931 # Did not find standard library, so try Bacula's default
5932 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5934 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5935 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5942 # Is the header compilable?
5943 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5944 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5952 #include <${TOP_DIR}/depkgs/readline/readline.h>
5954 rm -f conftest.$ac_objext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956 (eval $ac_compile) 2>conftest.er1
5958 grep -v '^ *+' conftest.er1 >conftest.err
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag"
5964 || test ! -s conftest.err'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_header_compiler=yes
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_header_compiler=no
5983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5985 echo "${ECHO_T}$ac_header_compiler" >&6
5987 # Is the header present?
5988 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5989 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <${TOP_DIR}/depkgs/readline/readline.h>
5998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } >/dev/null; then
6006 if test -s conftest.err; then
6007 ac_cpp_err=$ac_c_preproc_warn_flag
6008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6015 if test -z "$ac_cpp_err"; then
6016 ac_header_preproc=yes
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_header_preproc=no
6023 rm -f conftest.err conftest.$ac_ext
6024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6025 echo "${ECHO_T}$ac_header_preproc" >&6
6027 # So? What about this header?
6028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6030 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6031 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6033 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6034 ac_header_preproc=yes
6037 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6038 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6040 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6042 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6044 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6046 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6048 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6051 ## ------------------------------------------ ##
6052 ## Report this to the AC_PACKAGE_NAME lists. ##
6053 ## ------------------------------------------ ##
6056 sed "s/^/$as_me: WARNING: /" >&2
6059 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6060 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 eval "$as_ac_Header=\$ac_header_preproc"
6066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6071 cat >>confdefs.h <<\_ACEOF
6072 #define HAVE_READLINE 1
6076 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6077 CONS_LIBS="-lreadline -lhistory -ltermcap"
6078 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6079 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6083 echo "readline.h not found. readline turned off ..."
6109 # Minimal stuff for readline Makefile configuration
6112 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6113 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6114 if test "${ac_cv_header_stat_broken+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 cat >conftest.$ac_ext <<_ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #include <sys/types.h>
6124 #include <sys/stat.h>
6126 #if defined(S_ISBLK) && defined(S_IFDIR)
6127 # if S_ISBLK (S_IFDIR)
6132 #if defined(S_ISBLK) && defined(S_IFCHR)
6133 # if S_ISBLK (S_IFCHR)
6138 #if defined(S_ISLNK) && defined(S_IFREG)
6139 # if S_ISLNK (S_IFREG)
6144 #if defined(S_ISSOCK) && defined(S_IFREG)
6145 # if S_ISSOCK (S_IFREG)
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "You lose" >/dev/null 2>&1; then
6153 ac_cv_header_stat_broken=yes
6155 ac_cv_header_stat_broken=no
6160 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6161 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6162 if test $ac_cv_header_stat_broken = yes; then
6164 cat >>confdefs.h <<\_ACEOF
6165 #define STAT_MACROS_BROKEN 1
6176 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6177 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6178 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6179 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <sys/types.h>
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6205 grep -v '^ *+' conftest.er1 >conftest.err
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 eval "$as_ac_Header=yes"
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 eval "$as_ac_Header=no"
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235 cat >>confdefs.h <<_ACEOF
6236 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6239 ac_header_dirent=$ac_hdr; break
6243 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6244 if test $ac_header_dirent = dirent.h; then
6245 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6247 if test "${ac_cv_search_opendir+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 ac_func_search_save_LIBS=$LIBS
6251 ac_cv_search_opendir=no
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6259 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6274 rm -f conftest.$ac_objext conftest$ac_exeext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1 >conftest.err
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest$ac_exeext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_search_opendir="none required"
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6302 rm -f conftest.err conftest.$ac_objext \
6303 conftest$ac_exeext conftest.$ac_ext
6304 if test "$ac_cv_search_opendir" = no; then
6305 for ac_lib in dir; do
6306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6329 rm -f conftest.$ac_objext conftest$ac_exeext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6331 (eval $ac_link) 2>conftest.er1
6333 grep -v '^ *+' conftest.er1 >conftest.err
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_c_werror_flag"
6339 || test ! -s conftest.err'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; } &&
6345 { ac_try='test -s conftest$ac_exeext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 ac_cv_search_opendir="-l$ac_lib"
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6358 rm -f conftest.err conftest.$ac_objext \
6359 conftest$ac_exeext conftest.$ac_ext
6362 LIBS=$ac_func_search_save_LIBS
6364 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6365 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6366 if test "$ac_cv_search_opendir" != no; then
6367 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6372 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6374 if test "${ac_cv_search_opendir+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 ac_func_search_save_LIBS=$LIBS
6378 ac_cv_search_opendir=no
6379 cat >conftest.$ac_ext <<_ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6386 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6401 rm -f conftest.$ac_objext conftest$ac_exeext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403 (eval $ac_link) 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest$ac_exeext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_cv_search_opendir="none required"
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6429 rm -f conftest.err conftest.$ac_objext \
6430 conftest$ac_exeext conftest.$ac_ext
6431 if test "$ac_cv_search_opendir" = no; then
6433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6441 /* Override any gcc2 internal prototype to avoid an error. */
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458 (eval $ac_link) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1 >conftest.err
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest$ac_exeext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_search_opendir="-l$ac_lib"
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6485 rm -f conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_func_search_save_LIBS
6491 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6492 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6493 if test "$ac_cv_search_opendir" != no; then
6494 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6508 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6511 echo "$as_me:$LINENO: checking for $ac_func" >&5
6512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6513 if eval "test \"\${$as_ac_var+set}\" = set"; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 cat >conftest.$ac_ext <<_ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6524 #define $ac_func innocuous_$ac_func
6526 /* System header to define __stub macros and hopefully few prototypes,
6527 which can conflict with char $ac_func (); below.
6528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6529 <limits.h> exists even on freestanding compilers. */
6532 # include <limits.h>
6534 # include <assert.h>
6539 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6547 /* The GNU C library defines this for functions which it implements
6548 to always fail with ENOSYS. Some functions are actually named
6549 something starting with __ and the normal name is an alias. */
6550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6553 char (*f) () = $ac_func;
6562 return f != $ac_func;
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>conftest.er1
6571 grep -v '^ *+' conftest.er1 >conftest.err
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try='test -s conftest$ac_exeext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 eval "$as_ac_var=yes"
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 eval "$as_ac_var=no"
6596 rm -f conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6601 if test `eval echo '${'$as_ac_var'}'` = yes; then
6602 cat >>confdefs.h <<_ACEOF
6603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6611 for ac_func in nanosleep nl_langinfo
6613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6614 echo "$as_me:$LINENO: checking for $ac_func" >&5
6615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6616 if eval "test \"\${$as_ac_var+set}\" = set"; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 cat >conftest.$ac_ext <<_ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6627 #define $ac_func innocuous_$ac_func
6629 /* System header to define __stub macros and hopefully few prototypes,
6630 which can conflict with char $ac_func (); below.
6631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6632 <limits.h> exists even on freestanding compilers. */
6635 # include <limits.h>
6637 # include <assert.h>
6642 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6650 /* The GNU C library defines this for functions which it implements
6651 to always fail with ENOSYS. Some functions are actually named
6652 something starting with __ and the normal name is an alias. */
6653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6656 char (*f) () = $ac_func;
6665 return f != $ac_func;
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>conftest.er1
6674 grep -v '^ *+' conftest.er1 >conftest.err
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 eval "$as_ac_var=yes"
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 eval "$as_ac_var=no"
6699 rm -f conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6704 if test `eval echo '${'$as_ac_var'}'` = yes; then
6705 cat >>confdefs.h <<_ACEOF
6706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6713 for ac_header in varargs.h
6715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6717 echo "$as_me:$LINENO: checking for $ac_header" >&5
6718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6725 # Is the header compilable?
6726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 $ac_includes_default
6735 #include <$ac_header>
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -z "$ac_c_werror_flag"
6747 || test ! -s conftest.err'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; } &&
6753 { ac_try='test -s conftest.$ac_objext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 ac_header_compiler=yes
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6764 ac_header_compiler=no
6766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6768 echo "${ECHO_T}$ac_header_compiler" >&6
6770 # Is the header present?
6771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6773 cat >conftest.$ac_ext <<_ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 #include <$ac_header>
6781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } >/dev/null; then
6789 if test -s conftest.err; then
6790 ac_cpp_err=$ac_c_preproc_warn_flag
6791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6798 if test -z "$ac_cpp_err"; then
6799 ac_header_preproc=yes
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ac_header_preproc=no
6806 rm -f conftest.err conftest.$ac_ext
6807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6808 echo "${ECHO_T}$ac_header_preproc" >&6
6810 # So? What about this header?
6811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6817 ac_header_preproc=yes
6820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6834 ## ------------------------------------------ ##
6835 ## Report this to the AC_PACKAGE_NAME lists. ##
6836 ## ------------------------------------------ ##
6839 sed "s/^/$as_me: WARNING: /" >&2
6842 echo "$as_me:$LINENO: checking for $ac_header" >&5
6843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 eval "$as_ac_Header=\$ac_header_preproc"
6849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6854 cat >>confdefs.h <<_ACEOF
6855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6863 # End of readline/conio stuff
6864 # -----------------------------------------------------------------------
6867 # ---------------------------------------------------
6868 # Check for GMP support/directory
6869 # ---------------------------------------------------
6873 # [ --with-gmp[=DIR] Specify gmp library directory],
6875 # case "$with_gmp" in
6878 # if test "$with_gmp" != "yes"; then
6879 # GMP_INC="-I$with_gmp"
6881 # GMP_LDFLAGS="-L$with_gmp"
6883 # with_gmp="/usr/include"
6885 # AC_CHECK_HEADER($with_gmp/gmp.h,
6886 # [ AC_MSG_RESULT(yes)
6887 # AC_DEFINE(HAVE_GMP)
6891 # [ AC_MSG_ERROR([*** gmp library missing])
6897 # # check for standard gmp library
6898 # AC_CHECK_HEADER(/usr/include/gmp.h,
6899 # [ AC_MSG_RESULT(yes)
6900 # AC_DEFINE(HAVE_GMP)
6905 # # Did not find standard library, so use our own
6906 # AC_MSG_RESULT(yes)
6907 # AC_DEFINE(HAVE_GMP)
6910 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6912 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6913 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6919 #AC_SUBST(GMP_LDFLAGS)
6923 # -----------------------------------------------------------------------
6926 # ---------------------------------------------------
6927 # Check for CWEB support/directory
6928 # ---------------------------------------------------
6933 # [ --with-cweb[=DIR] Specify cweb library directory],
6935 # case "$with_cweb" in
6938 # if test "$with_cweb" != "yes"; then
6939 # CWEB_INC="-I$with_cweb"
6940 # CWEB_LIBS="-lcweb"
6941 # CWEB_LDFLAGS="-L$with_cweb"
6943 # with_cweb="/usr/include"
6945 # AC_CHECK_HEADER($with_cweb/cweb.h,
6946 # [ AC_MSG_RESULT(yes)
6947 # AC_DEFINE(HAVE_CWEB)
6948 # CWEB_LIBS="-lcweb"
6951 # [ AC_MSG_ERROR([*** cweb library missing])
6957 # # check for standard cweb library
6958 # AC_CHECK_HEADER(/usr/include/cweb.h,
6959 # [ AC_MSG_RESULT(yes)
6960 # AC_DEFINE(HAVE_CWEB)
6963 # CWEB_LIBS="-lcweb"
6965 # # Did not find starndard library, so use our own
6966 # AC_MSG_RESULT(yes)
6967 # AC_DEFINE(HAVE_CWEB)
6970 # CWEB=${TOP_DIR}/depkgs/cweb
6971 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6972 # CWEB_LIBS="-lcweb"
6973 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6974 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6980 #AC_SUBST(CWEB_LIBS)
6981 #AC_SUBST(CWEB_LDFLAGS)
6985 # -----------------------------------------------------------------------
6989 # -----------------------------------------------------------
6990 # Check whether user wants TCP wrappers support (default off)
6991 # -----------------------------------------------------------
6994 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6995 if test "${with_tcp_wrappers+set}" = set; then
6996 withval="$with_tcp_wrappers"
6998 if test "x$withval" != "xno" ; then
7000 LIBS="$saved_LIBS -lwrap"
7001 echo "$as_me:$LINENO: checking for libwrap" >&5
7002 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7003 cat >conftest.$ac_ext <<_ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7010 int deny_severity = 0;
7011 int allow_severity = 0;
7012 struct request_info *req;
7021 rm -f conftest.$ac_objext conftest$ac_exeext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023 (eval $ac_link) 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try='test -z "$ac_c_werror_flag"
7031 || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try='test -s conftest$ac_exeext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7044 echo "$as_me:$LINENO: result: yes" >&5
7045 echo "${ECHO_T}yes" >&6
7046 cat >>confdefs.h <<\_ACEOF
7047 #define HAVE_LIBWRAP 1
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7057 LIBS="$saved_LIBS -lwrap -lnsl"
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7065 int deny_severity = 0;
7066 int allow_severity = 0;
7067 struct request_info *req;
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7099 echo "$as_me:$LINENO: result: yes" >&5
7100 echo "${ECHO_T}yes" >&6
7101 cat >>confdefs.h <<\_ACEOF
7102 #define HAVE_LIBWRAP 1
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7112 echo "$as_me: error: *** libwrap missing" >&2;}
7113 { (exit 1); exit 1; }; }
7116 rm -f conftest.err conftest.$ac_objext \
7117 conftest$ac_exeext conftest.$ac_ext
7120 rm -f conftest.err conftest.$ac_objext \
7121 conftest$ac_exeext conftest.$ac_ext
7127 # ------------------------------------------
7128 # Where to place working dir
7129 # ------------------------------------------
7130 working_dir=`eval echo ${prefix}/var/bacula/working`
7132 # Check whether --with-working-dir or --without-working-dir was given.
7133 if test "${with_working_dir+set}" = set; then
7134 withval="$with_working_dir"
7136 if test "x$withval" != "xno" ; then
7137 working_dir=$withval
7146 # ------------------------------------------
7147 # Where to place scriptdir (script files)
7148 # ------------------------------------------
7149 scriptdir=`eval echo ${sysconfdir}`
7151 # Check whether --with-scriptdir or --without-scriptdir was given.
7152 if test "${with_scriptdir+set}" = set; then
7153 withval="$with_scriptdir"
7155 if test "x$withval" != "xno" ; then
7165 # ------------------------------------------
7166 # Where to send dump email
7167 # ------------------------------------------
7168 dump_email=root@localhost
7170 # Check whether --with-dump-email or --without-dump-email was given.
7171 if test "${with_dump_email+set}" = set; then
7172 withval="$with_dump_email"
7174 if test "x$withval" != "xno" ; then
7183 # ------------------------------------------
7184 # Where to send job email
7185 # ------------------------------------------
7186 job_email=root@localhost
7188 # Check whether --with-job-email or --without-job-email was given.
7189 if test "${with_job_email+set}" = set; then
7190 withval="$with_job_email"
7192 if test "x$withval" != "xno" ; then
7201 # ------------------------------------------
7202 # Where to find smtp host
7203 # ------------------------------------------
7206 # Check whether --with-smtp_host or --without-smtp_host was given.
7207 if test "${with_smtp_host+set}" = set; then
7208 withval="$with_smtp_host"
7210 if test "x$withval" != "xno" ; then
7220 # ------------------------------------
7221 # Where to place pid files
7222 # ------------------------------------
7225 # Check whether --with-pid-dir or --without-pid-dir was given.
7226 if test "${with_pid_dir+set}" = set; then
7227 withval="$with_pid_dir"
7229 if test "x$withval" != "xno" ; then
7236 cat >>confdefs.h <<_ACEOF
7237 #define _PATH_BACULA_PIDDIR "$piddir"
7243 # ------------------------------------
7244 # Where to place subsys "lock file"
7245 # ------------------------------------
7246 subsysdir=/var/run/subsys
7248 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7249 if test "${with_subsys_dir+set}" = set; then
7250 withval="$with_subsys_dir"
7252 if test "x$withval" != "xno" ; then
7263 # ------------------------------------
7264 # Where to start assigning ports
7265 # ------------------------------------
7268 # Check whether --with-baseport or --without-baseport was given.
7269 if test "${with_baseport+set}" = set; then
7270 withval="$with_baseport"
7272 if test "x$withval" != "xno" ; then
7280 dir_port=`expr $baseport`
7281 fd_port=`expr $baseport + 1`
7282 sd_port=`expr $fd_port + 1`
7289 # ------------------------------------------
7290 # Generate passwords
7291 # ------------------------------------------
7294 # Check whether --with-dir-password or --without-dir-password was given.
7295 if test "${with_dir_password+set}" = set; then
7296 withval="$with_dir_password"
7298 if test "x$withval" != "xno" ; then
7299 dir_password=$withval
7305 if test "x$dir_password" = "x" ; then
7306 if test "x$OPENSSL" = "xnone" ; then
7307 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7308 key=`autoconf/randpass 33`
7310 key=`openssl rand -base64 33`
7317 # Check whether --with-fd-password or --without-fd-password was given.
7318 if test "${with_fd_password+set}" = set; then
7319 withval="$with_fd_password"
7321 if test "x$withval" != "xno" ; then
7322 fd_password=$withval
7328 if test "x$fd_password" = "x" ; then
7329 if test "x$OPENSSL" = "xnone" ; then
7330 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7331 key=`autoconf/randpass 37`
7333 key=`openssl rand -base64 33`
7340 # Check whether --with-sd-password or --without-sd-password was given.
7341 if test "${with_sd_password+set}" = set; then
7342 withval="$with_sd_password"
7344 if test "x$withval" != "xno" ; then
7345 sd_password=$withval
7351 if test "x$sd_password" = "x" ; then
7352 if test "x$OPENSSL" = "xnone" ; then
7353 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7354 key=`autoconf/randpass 41`
7356 key=`openssl rand -base64 33`
7368 # Handle users and groups for each daemon
7372 # Check whether --with-dir_user or --without-dir_user was given.
7373 if test "${with_dir_user+set}" = set; then
7374 withval="$with_dir_user"
7376 if test "x$withval" != "x" ; then
7385 # Check whether --with-dir_group or --without-dir_group was given.
7386 if test "${with_dir_group+set}" = set; then
7387 withval="$with_dir_group"
7389 if test "x$withval" != "x" ; then
7398 # Check whether --with-sd_user or --without-sd_user was given.
7399 if test "${with_sd_user+set}" = set; then
7400 withval="$with_sd_user"
7402 if test "x$withval" != "x" ; then
7411 # Check whether --with-sd_group or --without-sd_group was given.
7412 if test "${with_sd_group+set}" = set; then
7413 withval="$with_sd_group"
7415 if test "x$withval" != "x" ; then
7424 # Check whether --with-fd_user or --without-fd_user was given.
7425 if test "${with_fd_user+set}" = set; then
7426 withval="$with_fd_user"
7428 if test "x$withval" != "x" ; then
7437 # Check whether --with-fd_group or --without-fd_group was given.
7438 if test "${with_fd_group+set}" = set; then
7439 withval="$with_fd_group"
7441 if test "x$withval" != "x" ; then
7459 # allow setting default executable permissions
7463 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7464 if test "${with_sbin_perm+set}" = set; then
7465 withval="$with_sbin_perm"
7467 if test "x$withval" != "x" ; then
7476 # ------------------------------------------------
7477 # Bacula check for various SQL database engines
7478 # ------------------------------------------------
7481 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7482 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7484 # Check whether --with-postgresql or --without-postgresql was given.
7485 if test "${with_postgresql+set}" = set; then
7486 withval="$with_postgresql"
7488 if test "$withval" != "no"; then
7489 if test "$db_found" = "yes"; then
7490 echo "$as_me:$LINENO: result: error" >&5
7491 echo "${ECHO_T}error" >&6
7492 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7493 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7494 { (exit 1); exit 1; }; };
7496 if test "$withval" = "yes"; then
7497 if test -f /usr/local/include/libpq-fe.h; then
7498 POSTGRESQL_INCDIR=/usr/local/include
7499 POSTGRESQL_LIBDIR=/usr/local/lib
7500 POSTGRESQL_BINDIR=/usr/local/bin
7501 elif test -f /usr/include/libpq-fe.h; then
7502 POSTGRESQL_INCDIR=/usr/include
7503 POSTGRESQL_LIBDIR=/usr/lib
7504 POSTGRESQL_BINDIR=/usr/bin
7505 elif test -f /usr/include/pgsql/libpq-fe.h; then
7506 POSTGRESQL_INCDIR=/usr/include/pgsql
7507 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7508 POSTGRESQL_BINDIR=/usr/bin
7509 elif test -f /usr/include/postgresql/libpq-fe.h; then
7510 POSTGRESQL_INCDIR=/usr/include/postgresql
7511 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7512 POSTGRESQL_BINDIR=/usr/bin
7514 echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7516 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7517 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7518 { (exit 1); exit 1; }; }
7520 elif test -f $withval/include/libpq-fe.h; then
7521 POSTGRESQL_INCDIR=$withval/include
7522 POSTGRESQL_LIBDIR=$withval/lib
7523 POSTGRESQL_BINDIR=$withval/bin
7525 echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7527 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7528 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7529 { (exit 1); exit 1; }; }
7531 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7532 echo "$as_me:$LINENO: checking for crypt" >&5
7533 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7534 if test "${ac_cv_func_crypt+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
7544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7545 #define crypt innocuous_crypt
7547 /* System header to define __stub macros and hopefully few prototypes,
7548 which can conflict with char crypt (); below.
7549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7550 <limits.h> exists even on freestanding compilers. */
7553 # include <limits.h>
7555 # include <assert.h>
7560 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7568 /* The GNU C library defines this for functions which it implements
7569 to always fail with ENOSYS. Some functions are actually named
7570 something starting with __ and the normal name is an alias. */
7571 #if defined (__stub_crypt) || defined (__stub___crypt)
7574 char (*f) () = crypt;
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590 (eval $ac_link) 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag"
7598 || test ! -s conftest.err'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest$ac_exeext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 ac_cv_func_crypt=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7617 rm -f conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7620 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7621 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7622 if test $ac_cv_func_crypt = yes; then
7625 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7626 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7627 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 ac_check_lib_save_LIBS=$LIBS
7631 LIBS="-lcrypt $LIBS"
7632 cat >conftest.$ac_ext <<_ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7639 /* Override any gcc2 internal prototype to avoid an error. */
7643 /* We use char because int might match the return type of a gcc2
7644 builtin and then its argument prototype would still apply. */
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_lib_crypt_crypt=yes
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_cv_lib_crypt_crypt=no
7683 rm -f conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7688 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7689 if test $ac_cv_lib_crypt_crypt = yes; then
7690 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7695 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7696 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7697 SQL_BINDIR=$POSTGRESQL_BINDIR
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_POSTGRESQL 1
7702 echo "$as_me:$LINENO: result: yes" >&5
7703 echo "${ECHO_T}yes" >&6
7705 support_postgresql=yes
7709 echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7715 echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6
7727 echo "$as_me:$LINENO: checking for MySQL support" >&5
7728 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7730 # Check whether --with-mysql or --without-mysql was given.
7731 if test "${with_mysql+set}" = set; then
7732 withval="$with_mysql"
7734 if test "$withval" != "no"; then
7735 if test "$withval" = "yes"; then
7736 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7737 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7738 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7739 MYSQL_BINDIR=/usr/local/mysql/bin
7740 elif test -f /usr/include/mysql/mysql.h; then
7741 MYSQL_INCDIR=/usr/include/mysql
7742 MYSQL_LIBDIR=/usr/lib/mysql
7743 MYSQL_BINDIR=/usr/bin
7744 elif test -f /usr/include/mysql.h; then
7745 MYSQL_INCDIR=/usr/include
7746 MYSQL_LIBDIR=/usr/lib
7747 MYSQL_BINDIR=/usr/bin
7748 elif test -f /usr/local/include/mysql/mysql.h; then
7749 MYSQL_INCDIR=/usr/local/include/mysql
7750 MYSQL_LIBDIR=/usr/local/lib/mysql
7751 MYSQL_BINDIR=/usr/local/bin
7752 elif test -f /usr/local/include/mysql.h; then
7753 MYSQL_INCDIR=/usr/local/include
7754 MYSQL_LIBDIR=/usr/local/lib
7755 MYSQL_BINDIR=/usr/local/bin
7757 echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7759 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7760 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7761 { (exit 1); exit 1; }; }
7764 if test -f $withval/include/mysql/mysql.h; then
7765 MYSQL_INCDIR=$withval/include/mysql
7766 MYSQL_LIBDIR=$withval/lib/mysql
7767 MYSQL_BINDIR=$withval/bin
7768 elif test -f $withval/include/mysql.h; then
7769 MYSQL_INCDIR=$withval/include
7770 MYSQL_LIBDIR=$withval/lib
7771 MYSQL_BINDIR=$withval/bin
7773 echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6
7775 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7776 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7777 { (exit 1); exit 1; }; }
7780 SQL_INCLUDE=-I$MYSQL_INCDIR
7781 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7782 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_THREAD_SAFE_MYSQL 1
7788 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7790 SQL_BINDIR=$MYSQL_BINDIR
7792 cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_MYSQL 1
7796 echo "$as_me:$LINENO: result: yes" >&5
7797 echo "${ECHO_T}yes" >&6
7804 echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6
7812 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7813 if test "${with_embedded_mysql+set}" = set; then
7814 withval="$with_embedded_mysql"
7816 if test "$withval" != "no"; then
7817 if test "$withval" = "yes"; then
7818 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7819 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7820 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7821 MYSQL_BINDIR=/usr/local/mysql/bin
7822 elif test -f /usr/include/mysql/mysql.h; then
7823 MYSQL_INCDIR=/usr/include/mysql
7824 MYSQL_LIBDIR=/usr/lib/mysql
7825 MYSQL_BINDIR=/usr/bin
7826 elif test -f /usr/include/mysql.h; then
7827 MYSQL_INCDIR=/usr/include
7828 MYSQL_LIBDIR=/usr/lib
7829 MYSQL_BINDIR=/usr/bin
7830 elif test -f /usr/local/include/mysql/mysql.h; then
7831 MYSQL_INCDIR=/usr/local/include/mysql
7832 MYSQL_LIBDIR=/usr/local/lib/mysql
7833 MYSQL_BINDIR=/usr/local/bin
7834 elif test -f /usr/local/include/mysql.h; then
7835 MYSQL_INCDIR=/usr/local/include
7836 MYSQL_LIBDIR=/usr/local/lib
7837 MYSQL_BINDIR=/usr/local/bin
7839 echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6
7841 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7842 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7843 { (exit 1); exit 1; }; }
7846 if test -f $withval/include/mysql/mysql.h; then
7847 MYSQL_INCDIR=$withval/include/mysql
7848 MYSQL_LIBDIR=$withval/lib/mysql
7849 MYSQL_BINDIR=$withval/bin
7850 elif test -f $withval/include/mysql.h; then
7851 MYSQL_INCDIR=$withval/include
7852 MYSQL_LIBDIR=$withval/lib
7853 MYSQL_BINDIR=$withval/bin
7855 echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6
7857 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7858 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7859 { (exit 1); exit 1; }; }
7862 SQL_INCLUDE=-I$MYSQL_INCDIR
7863 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7864 SQL_BINDIR=$MYSQL_BINDIR
7866 cat >>confdefs.h <<\_ACEOF
7867 #define HAVE_MYSQL 1
7870 cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_EMBEDDED_MYSQL 1
7874 echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7882 echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7898 echo "$as_me:$LINENO: checking for SQLite support" >&5
7899 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7901 # Check whether --with-sqlite or --without-sqlite was given.
7902 if test "${with_sqlite+set}" = set; then
7903 withval="$with_sqlite"
7905 if test "$withval" != "no"; then
7906 if test "$withval" = "yes"; then
7907 if test -f /usr/local/include/sqlite.h; then
7908 SQLITE_INCDIR=/usr/local/include
7909 SQLITE_LIBDIR=/usr/local/lib
7910 SQLITE_BINDIR=/usr/local/bin
7911 elif test -f /usr/include/sqlite.h; then
7912 SQLITE_INCDIR=/usr/include
7913 SQLITE_LIBDIR=/usr/lib
7914 SQLITE_BINDIR=/usr/bin
7916 echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6
7918 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7919 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7920 { (exit 1); exit 1; }; }
7923 if test -f $withval/sqlite.h; then
7924 SQLITE_INCDIR=$withval
7925 SQLITE_LIBDIR=$withval
7926 SQLITE_BINDIR=$withval
7928 echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6
7930 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7931 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7932 { (exit 1); exit 1; }; }
7935 SQL_INCLUDE=-I$SQLITE_INCDIR
7936 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7937 SQL_BINDIR=$SQLITE_BINDIR
7939 cat >>confdefs.h <<\_ACEOF
7940 #define HAVE_SQLITE 1
7943 echo "$as_me:$LINENO: result: yes" >&5
7944 echo "${ECHO_T}yes" >&6
7951 echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6
7957 echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6
7970 cat >>confdefs.h <<\_ACEOF
7971 #define PROTOTYPES 1
7975 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7976 if test -z "$CCOPTS"; then
7977 CCOPTS='-g -O2 -Wall'
7985 largefile_support="no"
7987 # Check whether --enable-largefile or --disable-largefile was given.
7988 if test "${enable_largefile+set}" = set; then
7989 enableval="$enable_largefile"
7992 if test "$enable_largefile" != no; then
7993 if test -n "$ac_tool_prefix"; then
7994 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7996 echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7998 if test "${ac_cv_prog_GETCONF+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 if test -n "$GETCONF"; then
8002 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 GETCONF=$ac_cv_prog_GETCONF
8021 if test -n "$GETCONF"; then
8022 echo "$as_me:$LINENO: result: $GETCONF" >&5
8023 echo "${ECHO_T}$GETCONF" >&6
8025 echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6
8030 if test -z "$ac_cv_prog_GETCONF"; then
8031 ac_ct_GETCONF=$GETCONF
8032 # Extract the first word of "getconf", so it can be a program name with args.
8033 set dummy getconf; ac_word=$2
8034 echo "$as_me:$LINENO: checking for $ac_word" >&5
8035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8036 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 if test -n "$ac_ct_GETCONF"; then
8040 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_ac_ct_GETCONF="getconf"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8059 if test -n "$ac_ct_GETCONF"; then
8060 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8061 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8063 echo "$as_me:$LINENO: result: no" >&5
8064 echo "${ECHO_T}no" >&6
8067 GETCONF=$ac_ct_GETCONF
8069 GETCONF="$ac_cv_prog_GETCONF"
8072 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8073 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8074 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8078 ac_cv_sys_largefile_CFLAGS=no
8080 # IRIX 6.2 and later require cc -n32.
8081 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8082 if test "$GCC" != yes; then
8083 ac_cv_sys_largefile_CFLAGS=-n32
8086 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8087 cat >conftest.$ac_ext <<_ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_sys_largefile_CFLAGS=no
8131 rm -f conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
8137 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8138 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8139 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8140 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8141 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8145 ac_cv_sys_largefile_LDFLAGS=no
8149 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8150 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8151 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8152 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8153 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8157 ac_cv_sys_largefile_LIBS=no
8161 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8162 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8164 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8167 -D_FILE_OFFSET_BITS=*) ;;
8168 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8169 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8175 '') CPPFLAGS="$ac_flag" ;;
8176 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8184 '') CFLAGS="$ac_flag" ;;
8185 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8190 case "$ac_cv_sys_largefile_LDFLAGS" in
8194 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8195 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8198 case "$ac_cv_sys_largefile_LIBS" in
8202 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8203 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8206 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8207 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8208 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 ac_cv_sys_file_offset_bits=no
8213 # HP-UX 10.20 and later
8214 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8215 ac_cv_sys_file_offset_bits=64 ;;
8217 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8219 -D_FILE_OFFSET_BITS)
8220 ac_cv_sys_file_offset_bits=1 ;;
8221 -D_FILE_OFFSET_BITS=*)
8222 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8227 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8228 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8229 if test "$ac_cv_sys_file_offset_bits" != no; then
8231 cat >>confdefs.h <<_ACEOF
8232 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8236 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8237 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8238 if test "${ac_cv_sys_largefile_source+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 ac_cv_sys_largefile_source=no
8243 # HP-UX 10.20 and later
8244 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8245 ac_cv_sys_largefile_source=1 ;;
8247 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8249 -D_LARGEFILE_SOURCE)
8250 ac_cv_sys_largefile_source=1 ;;
8251 -D_LARGEFILE_SOURCE=*)
8252 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8257 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8258 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8259 if test "$ac_cv_sys_largefile_source" != no; then
8261 cat >>confdefs.h <<_ACEOF
8262 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8266 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8267 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8268 if test "${ac_cv_sys_large_files+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 ac_cv_sys_large_files=no
8274 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8275 ac_cv_sys_large_files=1 ;;
8277 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8280 ac_cv_sys_large_files=1 ;;
8282 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8287 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8288 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8289 if test "$ac_cv_sys_large_files" != no; then
8291 cat >>confdefs.h <<_ACEOF
8292 #define _LARGE_FILES $ac_cv_sys_large_files
8300 echo "$as_me:$LINENO: checking for X" >&5
8301 echo $ECHO_N "checking for X... $ECHO_C" >&6
8304 # Check whether --with-x or --without-x was given.
8305 if test "${with_x+set}" = set; then
8309 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8310 if test "x$with_x" = xno; then
8311 # The user explicitly disabled X.
8314 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8315 # Both variables are already set.
8318 if test "${ac_cv_have_x+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 # One or both of the vars are not set, and there is no cached value.
8322 ac_x_includes=no ac_x_libraries=no
8324 if mkdir conftest.dir; then
8326 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8327 cat >Imakefile <<'_ACEOF'
8329 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8331 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8333 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8334 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8335 for ac_extension in a so sl; do
8336 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8337 test -f $ac_im_libdir/libX11.$ac_extension; then
8338 ac_im_usrlibdir=$ac_im_libdir; break
8341 # Screen out bogus values from the imake configuration. They are
8342 # bogus both because they are the default anyway, and because
8343 # using them would break gcc on systems where it needs fixed includes.
8344 case $ac_im_incroot in
8346 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8348 case $ac_im_usrlibdir in
8350 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8357 # Standard set of common directories for X headers.
8358 # Check X11 before X11Rn because it is often a symlink to the current release.
8370 /usr/local/X11/include
8371 /usr/local/X11R6/include
8372 /usr/local/X11R5/include
8373 /usr/local/X11R4/include
8375 /usr/local/include/X11
8376 /usr/local/include/X11R6
8377 /usr/local/include/X11R5
8378 /usr/local/include/X11R4
8382 /usr/XFree86/include/X11
8386 /usr/unsupported/include
8388 /usr/local/x11r5/include
8389 /usr/lpp/Xamples/include
8391 /usr/openwin/include
8392 /usr/openwin/share/include'
8394 if test "$ac_x_includes" = no; then
8395 # Guess where to find include files, by looking for Intrinsic.h.
8396 # First, try using that file with no special directory specified.
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 #include <X11/Intrinsic.h>
8405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } >/dev/null; then
8413 if test -s conftest.err; then
8414 ac_cpp_err=$ac_c_preproc_warn_flag
8415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8422 if test -z "$ac_cpp_err"; then
8423 # We can compile using X headers with no special include directory.
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 for ac_dir in $ac_x_header_dirs; do
8430 if test -r "$ac_dir/X11/Intrinsic.h"; then
8431 ac_x_includes=$ac_dir
8436 rm -f conftest.err conftest.$ac_ext
8437 fi # $ac_x_includes = no
8439 if test "$ac_x_libraries" = no; then
8440 # Check for the libraries.
8441 # See if we find them without any special options.
8442 # Don't add to $LIBS permanently.
8445 cat >conftest.$ac_ext <<_ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 #include <X11/Intrinsic.h>
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -z "$ac_c_werror_flag"
8470 || test ! -s conftest.err'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest$ac_exeext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8483 # We can link X programs with no special library path.
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8490 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8492 # Don't even attempt the hair of trying to link an X program!
8493 for ac_extension in a so sl; do
8494 if test -r $ac_dir/libXt.$ac_extension; then
8495 ac_x_libraries=$ac_dir
8501 rm -f conftest.err conftest.$ac_objext \
8502 conftest$ac_exeext conftest.$ac_ext
8503 fi # $ac_x_libraries = no
8505 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8506 # Didn't find X anywhere. Cache the known absence of X.
8507 ac_cv_have_x="have_x=no"
8509 # Record where we found X for the cache.
8510 ac_cv_have_x="have_x=yes \
8511 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8516 eval "$ac_cv_have_x"
8519 if test "$have_x" != yes; then
8520 echo "$as_me:$LINENO: result: $have_x" >&5
8521 echo "${ECHO_T}$have_x" >&6
8524 # If each of the values was on the command line, it overrides each guess.
8525 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8526 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8527 # Update the cache value to reflect the command line values.
8528 ac_cv_have_x="have_x=yes \
8529 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8530 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8531 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8534 if test "$no_x" = yes; then
8535 # Not all programs may use this symbol, but it does not hurt to define it.
8537 cat >>confdefs.h <<\_ACEOF
8538 #define X_DISPLAY_MISSING 1
8541 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8543 if test -n "$x_includes"; then
8544 X_CFLAGS="$X_CFLAGS -I$x_includes"
8547 # It would also be nice to do this for all -L options, not just this one.
8548 if test -n "$x_libraries"; then
8549 X_LIBS="$X_LIBS -L$x_libraries"
8550 # For Solaris; some versions of Sun CC require a space after -R and
8551 # others require no space. Words are not sufficient . . . .
8552 case `(uname -sr) 2>/dev/null` in
8554 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8555 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8556 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8601 rm -f conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
8603 if test $ac_R_nospace = yes; then
8604 echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6
8606 X_LIBS="$X_LIBS -R$x_libraries"
8608 LIBS="$ac_xsave_LIBS -R $x_libraries"
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626 (eval $ac_link) 2>conftest.er1
8628 grep -v '^ *+' conftest.er1 >conftest.err
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag"
8634 || test ! -s conftest.err'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; } &&
8640 { ac_try='test -s conftest$ac_exeext'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8653 rm -f conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8655 if test $ac_R_space = yes; then
8656 echo "$as_me:$LINENO: result: yes" >&5
8657 echo "${ECHO_T}yes" >&6
8658 X_LIBS="$X_LIBS -R $x_libraries"
8660 echo "$as_me:$LINENO: result: neither works" >&5
8661 echo "${ECHO_T}neither works" >&6
8668 # Check for system-dependent libraries X programs must link with.
8669 # Do this before checking for the system-independent R6 libraries
8670 # (-lICE), since we may need -lsocket or whatever for X linking.
8672 if test "$ISC" = yes; then
8673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8675 # Martyn Johnson says this is needed for Ultrix, if the X
8676 # libraries were built with DECnet support. And Karl Berry says
8677 # the Alpha needs dnet_stub (dnet does not exist).
8678 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8679 cat >conftest.$ac_ext <<_ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692 char XOpenDisplay ();
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8729 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8730 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 ac_check_lib_save_LIBS=$LIBS
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8742 /* Override any gcc2 internal prototype to avoid an error. */
8746 /* We use char because int might match the return type of a gcc2
8747 builtin and then its argument prototype would still apply. */
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8761 grep -v '^ *+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_cv_lib_dnet_dnet_ntoa=yes
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_cv_lib_dnet_dnet_ntoa=no
8786 rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8788 LIBS=$ac_check_lib_save_LIBS
8790 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8791 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8792 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8793 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8796 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8797 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8798 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8799 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 ac_check_lib_save_LIBS=$LIBS
8803 LIBS="-ldnet_stub $LIBS"
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8811 /* Override any gcc2 internal prototype to avoid an error. */
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8826 rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828 (eval $ac_link) 2>conftest.er1
8830 grep -v '^ *+' conftest.er1 >conftest.err
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try='test -s conftest$ac_exeext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 ac_cv_lib_dnet_stub_dnet_ntoa=no
8855 rm -f conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 LIBS=$ac_check_lib_save_LIBS
8859 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8860 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8861 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8862 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8867 rm -f conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS="$ac_xsave_LIBS"
8871 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8872 # to get the SysV transport functions.
8873 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8875 # The nsl library prevents programs from opening the X display
8876 # on Irix 5.2, according to T.E. Dickey.
8877 # The functions gethostbyname, getservbyname, and inet_addr are
8878 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8879 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8880 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8881 if test "${ac_cv_func_gethostbyname+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8892 #define gethostbyname innocuous_gethostbyname
8894 /* System header to define __stub macros and hopefully few prototypes,
8895 which can conflict with char gethostbyname (); below.
8896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8897 <limits.h> exists even on freestanding compilers. */
8900 # include <limits.h>
8902 # include <assert.h>
8905 #undef gethostbyname
8907 /* Override any gcc2 internal prototype to avoid an error. */
8912 /* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8914 char gethostbyname ();
8915 /* The GNU C library defines this for functions which it implements
8916 to always fail with ENOSYS. Some functions are actually named
8917 something starting with __ and the normal name is an alias. */
8918 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8921 char (*f) () = gethostbyname;
8930 return f != gethostbyname;
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>conftest.er1
8939 grep -v '^ *+' conftest.er1 >conftest.err
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_c_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_cv_func_gethostbyname=yes
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 ac_cv_func_gethostbyname=no
8964 rm -f conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8967 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8968 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8970 if test $ac_cv_func_gethostbyname = no; then
8971 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8972 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8973 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_check_lib_save_LIBS=$LIBS
8978 cat >conftest.$ac_ext <<_ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 /* Override any gcc2 internal prototype to avoid an error. */
8989 /* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8991 char gethostbyname ();
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>conftest.er1
9004 grep -v '^ *+' conftest.er1 >conftest.err
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try='test -z "$ac_c_werror_flag"
9010 || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_lib_nsl_gethostbyname=yes
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 ac_cv_lib_nsl_gethostbyname=no
9029 rm -f conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext conftest.$ac_ext
9031 LIBS=$ac_check_lib_save_LIBS
9033 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9034 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9035 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9039 if test $ac_cv_lib_nsl_gethostbyname = no; then
9040 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9041 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9042 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 ac_check_lib_save_LIBS=$LIBS
9047 cat >conftest.$ac_ext <<_ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9054 /* Override any gcc2 internal prototype to avoid an error. */
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9060 char gethostbyname ();
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>conftest.er1
9073 grep -v '^ *+' conftest.er1 >conftest.err
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag"
9079 || test ! -s conftest.err'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; } &&
9085 { ac_try='test -s conftest$ac_exeext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
9091 ac_cv_lib_bsd_gethostbyname=yes
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_cv_lib_bsd_gethostbyname=no
9098 rm -f conftest.err conftest.$ac_objext \
9099 conftest$ac_exeext conftest.$ac_ext
9100 LIBS=$ac_check_lib_save_LIBS
9102 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9103 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9104 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9111 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9112 # socket/setsockopt and other routines are undefined under SCO ODT
9113 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9114 # on later versions), says Simon Leinen: it contains gethostby*
9115 # variants that don't use the name server (or something). -lsocket
9116 # must be given before -lnsl if both are needed. We assume that
9117 # if connect needs -lnsl, so does gethostbyname.
9118 echo "$as_me:$LINENO: checking for connect" >&5
9119 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9120 if test "${ac_cv_func_connect+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9131 #define connect innocuous_connect
9133 /* System header to define __stub macros and hopefully few prototypes,
9134 which can conflict with char connect (); below.
9135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9136 <limits.h> exists even on freestanding compilers. */
9139 # include <limits.h>
9141 # include <assert.h>
9146 /* Override any gcc2 internal prototype to avoid an error. */
9151 /* We use char because int might match the return type of a gcc2
9152 builtin and then its argument prototype would still apply. */
9154 /* The GNU C library defines this for functions which it implements
9155 to always fail with ENOSYS. Some functions are actually named
9156 something starting with __ and the normal name is an alias. */
9157 #if defined (__stub_connect) || defined (__stub___connect)
9160 char (*f) () = connect;
9169 return f != connect;
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>conftest.er1
9178 grep -v '^ *+' conftest.er1 >conftest.err
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -z "$ac_c_werror_flag"
9184 || test ! -s conftest.err'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; } &&
9190 { ac_try='test -s conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_func_connect=yes
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9201 ac_cv_func_connect=no
9203 rm -f conftest.err conftest.$ac_objext \
9204 conftest$ac_exeext conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9207 echo "${ECHO_T}$ac_cv_func_connect" >&6
9209 if test $ac_cv_func_connect = no; then
9210 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9211 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9212 if test "${ac_cv_lib_socket_connect+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 ac_check_lib_save_LIBS=$LIBS
9216 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* Override any gcc2 internal prototype to avoid an error. */
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_socket_connect=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_socket_connect=no
9268 rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9273 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9274 if test $ac_cv_lib_socket_connect = yes; then
9275 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9280 # Guillermo Gomez says -lposix is necessary on A/UX.
9281 echo "$as_me:$LINENO: checking for remove" >&5
9282 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9283 if test "${ac_cv_func_remove+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9294 #define remove innocuous_remove
9296 /* System header to define __stub macros and hopefully few prototypes,
9297 which can conflict with char remove (); below.
9298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9299 <limits.h> exists even on freestanding compilers. */
9302 # include <limits.h>
9304 # include <assert.h>
9309 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9317 /* The GNU C library defines this for functions which it implements
9318 to always fail with ENOSYS. Some functions are actually named
9319 something starting with __ and the normal name is an alias. */
9320 #if defined (__stub_remove) || defined (__stub___remove)
9323 char (*f) () = remove;
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>conftest.er1
9341 grep -v '^ *+' conftest.er1 >conftest.err
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -z "$ac_c_werror_flag"
9347 || test ! -s conftest.err'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest$ac_exeext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_cv_func_remove=yes
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_cv_func_remove=no
9366 rm -f conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9370 echo "${ECHO_T}$ac_cv_func_remove" >&6
9372 if test $ac_cv_func_remove = no; then
9373 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9374 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9375 if test "${ac_cv_lib_posix_remove+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 ac_check_lib_save_LIBS=$LIBS
9379 LIBS="-lposix $LIBS"
9380 cat >conftest.$ac_ext <<_ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9387 /* Override any gcc2 internal prototype to avoid an error. */
9391 /* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>conftest.er1
9406 grep -v '^ *+' conftest.er1 >conftest.err
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -z "$ac_c_werror_flag"
9412 || test ! -s conftest.err'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; } &&
9418 { ac_try='test -s conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_cv_lib_posix_remove=yes
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_cv_lib_posix_remove=no
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9435 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9436 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9437 if test $ac_cv_lib_posix_remove = yes; then
9438 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9443 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9444 echo "$as_me:$LINENO: checking for shmat" >&5
9445 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9446 if test "${ac_cv_func_shmat+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 cat >conftest.$ac_ext <<_ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9455 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9457 #define shmat innocuous_shmat
9459 /* System header to define __stub macros and hopefully few prototypes,
9460 which can conflict with char shmat (); below.
9461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9462 <limits.h> exists even on freestanding compilers. */
9465 # include <limits.h>
9467 # include <assert.h>
9472 /* Override any gcc2 internal prototype to avoid an error. */
9477 /* We use char because int might match the return type of a gcc2
9478 builtin and then its argument prototype would still apply. */
9480 /* The GNU C library defines this for functions which it implements
9481 to always fail with ENOSYS. Some functions are actually named
9482 something starting with __ and the normal name is an alias. */
9483 #if defined (__stub_shmat) || defined (__stub___shmat)
9486 char (*f) () = shmat;
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>conftest.er1
9504 grep -v '^ *+' conftest.er1 >conftest.err
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_func_shmat=yes
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9529 rm -f conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9532 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9533 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9535 if test $ac_cv_func_shmat = no; then
9536 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9537 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9538 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 ac_check_lib_save_LIBS=$LIBS
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9550 /* Override any gcc2 internal prototype to avoid an error. */
9554 /* We use char because int might match the return type of a gcc2
9555 builtin and then its argument prototype would still apply. */
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 2>conftest.er1
9569 grep -v '^ *+' conftest.er1 >conftest.err
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try='test -z "$ac_c_werror_flag"
9575 || test ! -s conftest.err'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; } &&
9581 { ac_try='test -s conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_cv_lib_ipc_shmat=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_cv_lib_ipc_shmat=no
9594 rm -f conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9598 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9599 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9600 if test $ac_cv_lib_ipc_shmat = yes; then
9601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9607 # Check for libraries that X11R6 Xt/Xaw programs need.
9608 ac_save_LDFLAGS=$LDFLAGS
9609 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9610 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9611 # check for ICE first), but we must link in the order -lSM -lICE or
9612 # we get undefined symbols. So assume we have SM if we have ICE.
9613 # These have to be linked with before -lX11, unlike the other
9614 # libraries we check for below, so use a different variable.
9615 # John Interrante, Karl Berry
9616 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9617 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9618 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 ac_check_lib_save_LIBS=$LIBS
9622 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9623 cat >conftest.$ac_ext <<_ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9630 /* Override any gcc2 internal prototype to avoid an error. */
9634 /* We use char because int might match the return type of a gcc2
9635 builtin and then its argument prototype would still apply. */
9636 char IceConnectionNumber ();
9640 IceConnectionNumber ();
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>conftest.er1
9649 grep -v '^ *+' conftest.er1 >conftest.err
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_cv_lib_ICE_IceConnectionNumber=yes
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_cv_lib_ICE_IceConnectionNumber=no
9674 rm -f conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9678 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9679 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9680 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9681 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9684 LDFLAGS=$ac_save_LDFLAGS
9744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo "$as_me:$LINENO: checking for $ac_header" >&5
9747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9754 # Is the header compilable?
9755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9764 #include <$ac_header>
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768 (eval $ac_compile) 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag"
9776 || test ! -s conftest.err'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_header_compiler=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_header_compiler=no
9795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9797 echo "${ECHO_T}$ac_header_compiler" >&6
9799 # Is the header present?
9800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9802 cat >conftest.$ac_ext <<_ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 #include <$ac_header>
9810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9813 grep -v '^ *+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } >/dev/null; then
9818 if test -s conftest.err; then
9819 ac_cpp_err=$ac_c_preproc_warn_flag
9820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9827 if test -z "$ac_cpp_err"; then
9828 ac_header_preproc=yes
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_header_preproc=no
9835 rm -f conftest.err conftest.$ac_ext
9836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9837 echo "${ECHO_T}$ac_header_preproc" >&6
9839 # So? What about this header?
9840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9846 ac_header_preproc=yes
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9863 ## ------------------------------------------ ##
9864 ## Report this to the AC_PACKAGE_NAME lists. ##
9865 ## ------------------------------------------ ##
9868 sed "s/^/$as_me: WARNING: /" >&2
9871 echo "$as_me:$LINENO: checking for $ac_header" >&5
9872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 eval "$as_ac_Header=\$ac_header_preproc"
9878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9883 cat >>confdefs.h <<_ACEOF
9884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9891 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9892 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9893 if test "${ac_cv_header_stdc+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9919 grep -v '^ *+' conftest.er1 >conftest.err
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_header_stdc=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_header_stdc=no
9944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9946 if test $ac_cv_header_stdc = yes; then
9947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9958 $EGREP "memchr" >/dev/null 2>&1; then
9961 ac_cv_header_stdc=no
9967 if test $ac_cv_header_stdc = yes; then
9968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9979 $EGREP "free" >/dev/null 2>&1; then
9982 ac_cv_header_stdc=no
9988 if test $ac_cv_header_stdc = yes; then
9989 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9990 if test "$cross_compiling" = yes; then
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
10000 #if ((' ' & 0x0FF) == 0x020)
10001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10004 # define ISLOWER(c) \
10005 (('a' <= (c) && (c) <= 'i') \
10006 || ('j' <= (c) && (c) <= 'r') \
10007 || ('s' <= (c) && (c) <= 'z'))
10008 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10016 for (i = 0; i < 256; i++)
10017 if (XOR (islower (i), ISLOWER (i))
10018 || toupper (i) != TOUPPER (i))
10023 rm -f conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10036 echo "$as_me: program exited with status $ac_status" >&5
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ( exit $ac_status )
10041 ac_cv_header_stdc=no
10043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10047 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10048 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10049 if test $ac_cv_header_stdc = yes; then
10051 cat >>confdefs.h <<\_ACEOF
10052 #define STDC_HEADERS 1
10057 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10058 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10059 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 cat >conftest.$ac_ext <<_ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10068 #include <sys/types.h>
10072 return makedev(0, 0);
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>conftest.er1
10081 grep -v '^ *+' conftest.er1 >conftest.err
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_cv_header_sys_types_h_makedev=yes
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10104 ac_cv_header_sys_types_h_makedev=no
10106 rm -f conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10110 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10111 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10113 if test $ac_cv_header_sys_types_h_makedev = no; then
10114 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10115 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10116 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10117 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10121 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10123 # Is the header compilable?
10124 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10125 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 $ac_includes_default
10133 #include <sys/mkdev.h>
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_header_compiler=yes
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_header_compiler=no
10164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10166 echo "${ECHO_T}$ac_header_compiler" >&6
10168 # Is the header present?
10169 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10170 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 #include <sys/mkdev.h>
10179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } >/dev/null; then
10187 if test -s conftest.err; then
10188 ac_cpp_err=$ac_c_preproc_warn_flag
10189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10196 if test -z "$ac_cpp_err"; then
10197 ac_header_preproc=yes
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_header_preproc=no
10204 rm -f conftest.err conftest.$ac_ext
10205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10206 echo "${ECHO_T}$ac_header_preproc" >&6
10208 # So? What about this header?
10209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10211 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10212 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
10214 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
10215 ac_header_preproc=yes
10218 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10219 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10221 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10222 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
10223 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
10224 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
10225 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10227 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10228 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
10229 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
10232 ## ------------------------------------------ ##
10233 ## Report this to the AC_PACKAGE_NAME lists. ##
10234 ## ------------------------------------------ ##
10237 sed "s/^/$as_me: WARNING: /" >&2
10240 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10241 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10242 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10247 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10248 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10251 if test $ac_cv_header_sys_mkdev_h = yes; then
10253 cat >>confdefs.h <<\_ACEOF
10254 #define MAJOR_IN_MKDEV 1
10261 if test $ac_cv_header_sys_mkdev_h = no; then
10262 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10263 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10264 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10265 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10269 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10271 # Is the header compilable?
10272 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10273 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10274 cat >conftest.$ac_ext <<_ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10281 #include <sys/sysmacros.h>
10283 rm -f conftest.$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>conftest.er1
10287 grep -v '^ *+' conftest.er1 >conftest.err
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_header_compiler=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_header_compiler=no
10312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314 echo "${ECHO_T}$ac_header_compiler" >&6
10316 # Is the header present?
10317 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10318 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10319 cat >conftest.$ac_ext <<_ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 #include <sys/sysmacros.h>
10327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10330 grep -v '^ *+' conftest.er1 >conftest.err
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } >/dev/null; then
10335 if test -s conftest.err; then
10336 ac_cpp_err=$ac_c_preproc_warn_flag
10337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10344 if test -z "$ac_cpp_err"; then
10345 ac_header_preproc=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_header_preproc=no
10352 rm -f conftest.err conftest.$ac_ext
10353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354 echo "${ECHO_T}$ac_header_preproc" >&6
10356 # So? What about this header?
10357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10359 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10360 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
10362 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
10363 ac_header_preproc=yes
10366 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10367 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10369 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
10371 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
10373 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10375 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
10377 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
10380 ## ------------------------------------------ ##
10381 ## Report this to the AC_PACKAGE_NAME lists. ##
10382 ## ------------------------------------------ ##
10385 sed "s/^/$as_me: WARNING: /" >&2
10388 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10389 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10390 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10396 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10399 if test $ac_cv_header_sys_sysmacros_h = yes; then
10401 cat >>confdefs.h <<\_ACEOF
10402 #define MAJOR_IN_SYSMACROS 1
10416 ac_header_dirent=no
10417 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10418 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10419 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10420 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 cat >conftest.$ac_ext <<_ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 #include <sys/types.h>
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 eval "$as_ac_Header=yes"
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 eval "$as_ac_Header=no"
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10476 cat >>confdefs.h <<_ACEOF
10477 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10480 ac_header_dirent=$ac_hdr; break
10484 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10485 if test $ac_header_dirent = dirent.h; then
10486 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10487 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10488 if test "${ac_cv_search_opendir+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 ac_func_search_save_LIBS=$LIBS
10492 ac_cv_search_opendir=no
10493 cat >conftest.$ac_ext <<_ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10500 /* Override any gcc2 internal prototype to avoid an error. */
10504 /* We use char because int might match the return type of a gcc2
10505 builtin and then its argument prototype would still apply. */
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10517 (eval $ac_link) 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag"
10525 || test ! -s conftest.err'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 ac_cv_search_opendir="none required"
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10543 rm -f conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 if test "$ac_cv_search_opendir" = no; then
10546 for ac_lib in dir; do
10547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10548 cat >conftest.$ac_ext <<_ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10555 /* Override any gcc2 internal prototype to avoid an error. */
10559 /* We use char because int might match the return type of a gcc2
10560 builtin and then its argument prototype would still apply. */
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572 (eval $ac_link) 2>conftest.er1
10574 grep -v '^ *+' conftest.er1 >conftest.err
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -z "$ac_c_werror_flag"
10580 || test ! -s conftest.err'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_search_opendir="-l$ac_lib"
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10599 rm -f conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_func_search_save_LIBS
10605 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10606 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10607 if test "$ac_cv_search_opendir" != no; then
10608 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10613 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10615 if test "${ac_cv_search_opendir+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 ac_func_search_save_LIBS=$LIBS
10619 ac_cv_search_opendir=no
10620 cat >conftest.$ac_ext <<_ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10627 /* Override any gcc2 internal prototype to avoid an error. */
10631 /* We use char because int might match the return type of a gcc2
10632 builtin and then its argument prototype would still apply. */
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>conftest.er1
10646 grep -v '^ *+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try='test -z "$ac_c_werror_flag"
10652 || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_search_opendir="none required"
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10670 rm -f conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
10672 if test "$ac_cv_search_opendir" = no; then
10673 for ac_lib in x; do
10674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10682 /* Override any gcc2 internal prototype to avoid an error. */
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>conftest.er1
10701 grep -v '^ *+' conftest.er1 >conftest.err
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -z "$ac_c_werror_flag"
10707 || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest$ac_exeext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_search_opendir="-l$ac_lib"
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10726 rm -f conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_func_search_save_LIBS
10732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10734 if test "$ac_cv_search_opendir" != no; then
10735 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10741 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10742 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10743 if test "${ac_cv_header_stat_broken+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 #include <sys/types.h>
10753 #include <sys/stat.h>
10755 #if defined(S_ISBLK) && defined(S_IFDIR)
10756 # if S_ISBLK (S_IFDIR)
10761 #if defined(S_ISBLK) && defined(S_IFCHR)
10762 # if S_ISBLK (S_IFCHR)
10767 #if defined(S_ISLNK) && defined(S_IFREG)
10768 # if S_ISLNK (S_IFREG)
10773 #if defined(S_ISSOCK) && defined(S_IFREG)
10774 # if S_ISSOCK (S_IFREG)
10780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10781 $EGREP "You lose" >/dev/null 2>&1; then
10782 ac_cv_header_stat_broken=yes
10784 ac_cv_header_stat_broken=no
10789 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10790 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10791 if test $ac_cv_header_stat_broken = yes; then
10793 cat >>confdefs.h <<\_ACEOF
10794 #define STAT_MACROS_BROKEN 1
10799 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10800 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10801 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <sys/types.h>
10811 #include <sys/wait.h>
10812 #ifndef WEXITSTATUS
10813 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10816 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10824 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10831 (eval $ac_compile) 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag"
10839 || test ! -s conftest.err'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest.$ac_objext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_header_sys_wait_h=yes
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_cv_header_sys_wait_h=no
10858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10861 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10862 if test $ac_cv_header_sys_wait_h = yes; then
10864 cat >>confdefs.h <<\_ACEOF
10865 #define HAVE_SYS_WAIT_H 1
10870 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10871 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10872 if test "${ac_cv_header_time+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 #include <sys/types.h>
10882 #include <sys/time.h>
10888 if ((struct tm *) 0)
10894 rm -f conftest.$ac_objext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10896 (eval $ac_compile) 2>conftest.er1
10898 grep -v '^ *+' conftest.er1 >conftest.err
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag"
10904 || test ! -s conftest.err'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try='test -s conftest.$ac_objext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_header_time=yes
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_cv_header_time=no
10923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10925 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10926 echo "${ECHO_T}$ac_cv_header_time" >&6
10927 if test $ac_cv_header_time = yes; then
10929 cat >>confdefs.h <<\_ACEOF
10930 #define TIME_WITH_SYS_TIME 1
10936 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10937 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10938 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 $ac_includes_default
10951 static struct stat ac_aggr;
10952 if (ac_aggr.st_blksize)
10958 rm -f conftest.$ac_objext
10959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960 (eval $ac_compile) 2>conftest.er1
10962 grep -v '^ *+' conftest.er1 >conftest.err
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
10967 { ac_try='test -z "$ac_c_werror_flag"
10968 || test ! -s conftest.err'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; } &&
10974 { ac_try='test -s conftest.$ac_objext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_member_struct_stat_st_blksize=yes
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 cat >conftest.$ac_ext <<_ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 $ac_includes_default
10995 static struct stat ac_aggr;
10996 if (sizeof ac_aggr.st_blksize)
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag"
11012 || test ! -s conftest.err'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try='test -s conftest.$ac_objext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 ac_cv_member_struct_stat_st_blksize=yes
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_cv_member_struct_stat_st_blksize=no
11031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11035 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11036 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11037 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11044 cat >>confdefs.h <<\_ACEOF
11045 #define HAVE_ST_BLKSIZE 1
11051 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11052 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11053 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 cat >conftest.$ac_ext <<_ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11062 $ac_includes_default
11066 static struct stat ac_aggr;
11067 if (ac_aggr.st_blocks)
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_cv_member_struct_stat_st_blocks=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 $ac_includes_default
11110 static struct stat ac_aggr;
11111 if (sizeof ac_aggr.st_blocks)
11117 rm -f conftest.$ac_objext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>conftest.er1
11121 grep -v '^ *+' conftest.er1 >conftest.err
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } &&
11126 { ac_try='test -z "$ac_c_werror_flag"
11127 || test ! -s conftest.err'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_member_struct_stat_st_blocks=yes
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ac_cv_member_struct_stat_st_blocks=no
11146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11150 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11151 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11152 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11154 cat >>confdefs.h <<_ACEOF
11155 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11159 cat >>confdefs.h <<\_ACEOF
11160 #define HAVE_ST_BLOCKS 1
11165 "fileblocks.$ac_objext" | \
11166 *" fileblocks.$ac_objext" | \
11167 "fileblocks.$ac_objext "* | \
11168 *" fileblocks.$ac_objext "* ) ;;
11169 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
11175 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11176 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11177 if test "${ac_cv_struct_tm+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 #include <sys/types.h>
11192 struct tm *tp; tp->tm_sec;
11197 rm -f conftest.$ac_objext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11199 (eval $ac_compile) 2>conftest.er1
11201 grep -v '^ *+' conftest.er1 >conftest.err
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } &&
11206 { ac_try='test -z "$ac_c_werror_flag"
11207 || test ! -s conftest.err'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 ac_cv_struct_tm=time.h
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_cv_struct_tm=sys/time.h
11226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11228 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11229 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11230 if test $ac_cv_struct_tm = sys/time.h; then
11232 cat >>confdefs.h <<\_ACEOF
11233 #define TM_IN_SYS_TIME 1
11238 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11239 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11240 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 #include <sys/types.h>
11250 #include <$ac_cv_struct_tm>
11256 static struct tm ac_aggr;
11257 if (ac_aggr.tm_zone)
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265 (eval $ac_compile) 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag"
11273 || test ! -s conftest.err'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_member_struct_tm_tm_zone=yes
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 cat >conftest.$ac_ext <<_ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 #include <sys/types.h>
11297 #include <$ac_cv_struct_tm>
11303 static struct tm ac_aggr;
11304 if (sizeof ac_aggr.tm_zone)
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312 (eval $ac_compile) 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -z "$ac_c_werror_flag"
11320 || test ! -s conftest.err'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest.$ac_objext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_member_struct_tm_tm_zone=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_cv_member_struct_tm_tm_zone=no
11339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11343 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11344 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11345 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11347 cat >>confdefs.h <<_ACEOF
11348 #define HAVE_STRUCT_TM_TM_ZONE 1
11354 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11356 cat >>confdefs.h <<\_ACEOF
11357 #define HAVE_TM_ZONE 1
11361 echo "$as_me:$LINENO: checking for tzname" >&5
11362 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11363 if test "${ac_cv_var_tzname+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11373 #ifndef tzname /* For SGI. */
11374 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11385 rm -f conftest.$ac_objext conftest$ac_exeext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387 (eval $ac_link) 2>conftest.er1
11389 grep -v '^ *+' conftest.er1 >conftest.err
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest$ac_exeext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_cv_var_tzname=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_cv_var_tzname=no
11414 rm -f conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11417 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11418 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11419 if test $ac_cv_var_tzname = yes; then
11421 cat >>confdefs.h <<\_ACEOF
11422 #define HAVE_TZNAME 1
11429 echo "$as_me:$LINENO: checking for utime.h" >&5
11430 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11431 if test "${ba_cv_header_utime_h+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 cat >conftest.$ac_ext <<_ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 #include <sys/types.h>
11451 rm -f conftest.$ac_objext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11453 (eval $ac_compile) 2>conftest.er1
11455 grep -v '^ *+' conftest.er1 >conftest.err
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag"
11461 || test ! -s conftest.err'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try='test -s conftest.$ac_objext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 ba_cv_header_utime_h=yes
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ba_cv_header_utime_h=no
11480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11482 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11483 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11484 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11485 #define HAVE_UTIME_H 1
11489 echo "$as_me:$LINENO: checking for socklen_t" >&5
11490 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11491 if test "${ba_cv_header_socklen_t+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11501 #include <sys/types.h>
11502 #include <sys/socket.h>
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ba_cv_header_socklen_t=yes
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ba_cv_header_socklen_t=no
11540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11542 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11543 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11544 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_SOCKLEN_T 1
11549 echo "$as_me:$LINENO: checking for bigendian" >&5
11550 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11551 if test "${ba_cv_bigendian+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 if test "$cross_compiling" = yes; then
11557 cat >conftest.$ac_ext <<_ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11565 rm -f conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567 (eval $ac_link) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ba_cv_bigendian=yes
11578 echo "$as_me: program exited with status $ac_status" >&5
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 ( exit $ac_status )
11585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11588 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11589 echo "${ECHO_T}$ba_cv_bigendian" >&6
11590 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11591 #define HAVE_BIGENDIAN 1
11596 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11597 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11598 if test "${ac_cv_c_const+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11611 /* FIXME: Include the comments suggested by Paul. */
11612 #ifndef __cplusplus
11613 /* Ultrix mips cc rejects this. */
11614 typedef int charset[2];
11616 /* SunOS 4.1.1 cc rejects this. */
11617 char const *const *ccp;
11619 /* NEC SVR4.0.2 mips cc rejects this. */
11620 struct point {int x, y;};
11621 static struct point const zero = {0,0};
11622 /* AIX XL C 1.02.0.0 rejects this.
11623 It does not let you subtract one const X* pointer from another in
11624 an arm of an if-expression whose if-part is not a constant
11626 const char *g = "string";
11627 ccp = &g + (g ? g-g : 0);
11628 /* HPUX 7.0 cc rejects these. */
11631 ccp = (char const *const *) p;
11632 { /* SCO 3.2v4 cc rejects this. */
11634 char const *s = 0 ? (char *) 0 : (char const *) 0;
11638 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11639 int x[] = {25, 17};
11640 const int *foo = &x[0];
11643 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11644 typedef const int *iptr;
11648 { /* AIX XL C 1.02.0.0 rejects this saying
11649 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11650 struct s { int j; const int *ap[3]; };
11651 struct s *b; b->j = 5;
11653 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11654 const int foo = 10;
11662 rm -f conftest.$ac_objext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664 (eval $ac_compile) 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag"
11672 || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11693 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11694 echo "${ECHO_T}$ac_cv_c_const" >&6
11695 if test $ac_cv_c_const = no; then
11697 cat >>confdefs.h <<\_ACEOF
11705 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11706 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11708 # The order of these tests is important.
11709 cat >conftest.$ac_ext <<_ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 #include <sys/statvfs.h>
11716 #include <sys/fstyp.h>
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11721 grep -v '^ *+' conftest.er1 >conftest.err
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } >/dev/null; then
11726 if test -s conftest.err; then
11727 ac_cpp_err=$ac_c_preproc_warn_flag
11728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11735 if test -z "$ac_cpp_err"; then
11736 cat >>confdefs.h <<\_ACEOF
11737 #define FSTYPE_STATVFS 1
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11746 rm -f conftest.err conftest.$ac_ext
11747 if test $fstype = no; then
11748 cat >conftest.$ac_ext <<_ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 #include <sys/statfs.h>
11755 #include <sys/fstyp.h>
11757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11760 grep -v '^ *+' conftest.er1 >conftest.err
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } >/dev/null; then
11765 if test -s conftest.err; then
11766 ac_cpp_err=$ac_c_preproc_warn_flag
11767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11774 if test -z "$ac_cpp_err"; then
11775 cat >>confdefs.h <<\_ACEOF
11776 #define FSTYPE_USG_STATFS 1
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11785 rm -f conftest.err conftest.$ac_ext
11787 if test $fstype = no; then
11788 cat >conftest.$ac_ext <<_ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 #include <sys/statfs.h>
11795 #include <sys/vmount.h>
11797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11800 grep -v '^ *+' conftest.er1 >conftest.err
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } >/dev/null; then
11805 if test -s conftest.err; then
11806 ac_cpp_err=$ac_c_preproc_warn_flag
11807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11814 if test -z "$ac_cpp_err"; then
11815 cat >>confdefs.h <<\_ACEOF
11816 #define FSTYPE_AIX_STATFS 1
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11825 rm -f conftest.err conftest.$ac_ext
11827 if test $fstype = no; then
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <mntent.h>
11836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11839 grep -v '^ *+' conftest.er1 >conftest.err
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } >/dev/null; then
11844 if test -s conftest.err; then
11845 ac_cpp_err=$ac_c_preproc_warn_flag
11846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11853 if test -z "$ac_cpp_err"; then
11854 cat >>confdefs.h <<\_ACEOF
11855 #define FSTYPE_MNTENT 1
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11864 rm -f conftest.err conftest.$ac_ext
11866 if test $fstype = no; then
11867 cat >conftest.$ac_ext <<_ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <sys/mount.h>
11876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11877 $EGREP "f_type;" >/dev/null 2>&1; then
11878 cat >>confdefs.h <<\_ACEOF
11879 #define FSTYPE_STATFS 1
11886 if test $fstype = no; then
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 #include <sys/mount.h>
11894 #include <sys/fs_types.h>
11896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11899 grep -v '^ *+' conftest.er1 >conftest.err
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } >/dev/null; then
11904 if test -s conftest.err; then
11905 ac_cpp_err=$ac_c_preproc_warn_flag
11906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11913 if test -z "$ac_cpp_err"; then
11914 cat >>confdefs.h <<\_ACEOF
11915 #define FSTYPE_GETMNT 1
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11924 rm -f conftest.err conftest.$ac_ext
11926 echo "$as_me:$LINENO: result: $fstype" >&5
11927 echo "${ECHO_T}$fstype" >&6
11929 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11930 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11931 if test "${ac_cv_type_signal+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 #include <sys/types.h>
11941 #include <signal.h>
11946 extern "C" void (*signal (int, void (*)(int)))(int);
11948 void (*signal ()) ();
11959 rm -f conftest.$ac_objext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11961 (eval $ac_compile) 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_cv_type_signal=void
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_cv_type_signal=int
11988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11990 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11991 echo "${ECHO_T}$ac_cv_type_signal" >&6
11993 cat >>confdefs.h <<_ACEOF
11994 #define RETSIGTYPE $ac_cv_type_signal
11999 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12000 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12001 if test "${bash_cv_signal_vintage+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 #include <signal.h>
12017 struct sigaction sa;
12018 sigemptyset(&ss); sigsuspend(&ss);
12019 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12020 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>conftest.er1
12030 grep -v '^ *+' conftest.er1 >conftest.err
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_c_werror_flag"
12036 || test ! -s conftest.err'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 bash_cv_signal_vintage=posix
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <signal.h>
12065 int mask = sigmask(SIGINT);
12066 sigsetmask(mask); sigblock(mask); sigpause(mask);
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag"
12082 || test ! -s conftest.err'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; } &&
12088 { ac_try='test -s conftest$ac_exeext'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 bash_cv_signal_vintage=4.2bsd
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12107 #include <signal.h>
12108 RETSIGTYPE foo() { }
12113 int mask = sigmask(SIGINT);
12114 sigset(SIGINT, foo); sigrelse(SIGINT);
12115 sighold(SIGINT); sigpause(SIGINT);
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>conftest.er1
12125 grep -v '^ *+' conftest.er1 >conftest.err
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest$ac_exeext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 bash_cv_signal_vintage=svr3
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 bash_cv_signal_vintage=v7
12151 rm -f conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12155 rm -f conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12159 rm -f conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
12164 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12165 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12166 if test "$bash_cv_signal_vintage" = posix; then
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_POSIX_SIGNALS 1
12171 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12172 cat >>confdefs.h <<\_ACEOF
12173 #define HAVE_BSD_SIGNALS 1
12176 elif test "$bash_cv_signal_vintage" = svr3; then
12177 cat >>confdefs.h <<\_ACEOF
12178 #define HAVE_USG_SIGHOLD 1
12183 echo "$as_me:$LINENO: checking for mode_t" >&5
12184 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12185 if test "${ac_cv_type_mode_t+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 $ac_includes_default
12200 if (sizeof (mode_t))
12206 rm -f conftest.$ac_objext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12208 (eval $ac_compile) 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag"
12216 || test ! -s conftest.err'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; } &&
12222 { ac_try='test -s conftest.$ac_objext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_cv_type_mode_t=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_type_mode_t=no
12235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12238 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12239 if test $ac_cv_type_mode_t = yes; then
12243 cat >>confdefs.h <<_ACEOF
12249 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12250 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12251 if test "${ac_cv_type_uid_t+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 cat >conftest.$ac_ext <<_ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 #include <sys/types.h>
12263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12264 $EGREP "uid_t" >/dev/null 2>&1; then
12265 ac_cv_type_uid_t=yes
12267 ac_cv_type_uid_t=no
12272 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12273 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12274 if test $ac_cv_type_uid_t = no; then
12276 cat >>confdefs.h <<\_ACEOF
12281 cat >>confdefs.h <<\_ACEOF
12287 echo "$as_me:$LINENO: checking for size_t" >&5
12288 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12289 if test "${ac_cv_type_size_t+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 cat >conftest.$ac_ext <<_ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12298 $ac_includes_default
12304 if (sizeof (size_t))
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -z "$ac_c_werror_flag"
12320 || test ! -s conftest.err'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; } &&
12326 { ac_try='test -s conftest.$ac_objext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_type_size_t=yes
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 ac_cv_type_size_t=no
12339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12342 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12343 if test $ac_cv_type_size_t = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348 #define size_t unsigned
12353 echo "$as_me:$LINENO: checking for pid_t" >&5
12354 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12355 if test "${ac_cv_type_pid_t+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 cat >conftest.$ac_ext <<_ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12364 $ac_includes_default
12370 if (sizeof (pid_t))
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_type_pid_t=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_cv_type_pid_t=no
12405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12408 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12409 if test $ac_cv_type_pid_t = yes; then
12413 cat >>confdefs.h <<_ACEOF
12419 echo "$as_me:$LINENO: checking for off_t" >&5
12420 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12421 if test "${ac_cv_type_off_t+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 $ac_includes_default
12436 if (sizeof (off_t))
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>conftest.er1
12446 grep -v '^ *+' conftest.er1 >conftest.err
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag"
12452 || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_type_off_t=yes
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_cv_type_off_t=no
12471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12473 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12474 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12475 if test $ac_cv_type_off_t = yes; then
12479 cat >>confdefs.h <<_ACEOF
12485 echo "$as_me:$LINENO: checking for ino_t" >&5
12486 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12487 if test "${ac_cv_type_ino_t+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 $ac_includes_default
12502 if (sizeof (ino_t))
12508 rm -f conftest.$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag"
12518 || test ! -s conftest.err'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_type_ino_t=yes
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_cv_type_ino_t=no
12537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12539 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12540 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12541 if test $ac_cv_type_ino_t = yes; then
12545 cat >>confdefs.h <<_ACEOF
12546 #define ino_t unsigned long
12551 echo "$as_me:$LINENO: checking for dev_t" >&5
12552 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12553 if test "${ac_cv_type_dev_t+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 $ac_includes_default
12568 if (sizeof (dev_t))
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag"
12584 || test ! -s conftest.err'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest.$ac_objext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_cv_type_dev_t=yes
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_cv_type_dev_t=no
12603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12605 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12606 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12607 if test $ac_cv_type_dev_t = yes; then
12611 cat >>confdefs.h <<_ACEOF
12612 #define dev_t unsigned long
12617 echo "$as_me:$LINENO: checking for daddr_t" >&5
12618 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12619 if test "${ac_cv_type_daddr_t+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 $ac_includes_default
12634 if (sizeof (daddr_t))
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest.$ac_objext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_type_daddr_t=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_cv_type_daddr_t=no
12669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12671 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12672 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12673 if test $ac_cv_type_daddr_t = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678 #define daddr_t long
12683 echo "$as_me:$LINENO: checking for major_t" >&5
12684 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12685 if test "${ac_cv_type_major_t+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 cat >conftest.$ac_ext <<_ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12694 $ac_includes_default
12700 if (sizeof (major_t))
12706 rm -f conftest.$ac_objext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>conftest.er1
12710 grep -v '^ *+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
12715 { ac_try='test -z "$ac_c_werror_flag"
12716 || test ! -s conftest.err'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12728 ac_cv_type_major_t=yes
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_cv_type_major_t=no
12735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12737 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12738 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12739 if test $ac_cv_type_major_t = yes; then
12743 cat >>confdefs.h <<_ACEOF
12744 #define major_t int
12749 echo "$as_me:$LINENO: checking for minor_t" >&5
12750 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12751 if test "${ac_cv_type_minor_t+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 cat >conftest.$ac_ext <<_ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 $ac_includes_default
12766 if (sizeof (minor_t))
12772 rm -f conftest.$ac_objext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12774 (eval $ac_compile) 2>conftest.er1
12776 grep -v '^ *+' conftest.er1 >conftest.err
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag"
12782 || test ! -s conftest.err'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; } &&
12788 { ac_try='test -s conftest.$ac_objext'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794 ac_cv_type_minor_t=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_cv_type_minor_t=no
12801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12803 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12804 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12805 if test $ac_cv_type_minor_t = yes; then
12809 cat >>confdefs.h <<_ACEOF
12810 #define minor_t int
12815 echo "$as_me:$LINENO: checking for ssize_t" >&5
12816 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12817 if test "${ac_cv_type_ssize_t+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 $ac_includes_default
12832 if (sizeof (ssize_t))
12838 rm -f conftest.$ac_objext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840 (eval $ac_compile) 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag"
12848 || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest.$ac_objext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_type_ssize_t=yes
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_cv_type_ssize_t=no
12867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12870 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12871 if test $ac_cv_type_ssize_t = yes; then
12875 cat >>confdefs.h <<_ACEOF
12876 #define ssize_t int
12881 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12882 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12883 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 cat >conftest.$ac_ext <<_ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 $ac_includes_default
12896 static struct stat ac_aggr;
12897 if (ac_aggr.st_blocks)
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>conftest.er1
12907 grep -v '^ *+' conftest.er1 >conftest.err
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -z "$ac_c_werror_flag"
12913 || test ! -s conftest.err'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest.$ac_objext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_member_struct_stat_st_blocks=yes
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 $ac_includes_default
12940 static struct stat ac_aggr;
12941 if (sizeof ac_aggr.st_blocks)
12947 rm -f conftest.$ac_objext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>conftest.er1
12951 grep -v '^ *+' conftest.er1 >conftest.err
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag"
12957 || test ! -s conftest.err'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest.$ac_objext'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 ac_cv_member_struct_stat_st_blocks=yes
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 ac_cv_member_struct_stat_st_blocks=no
12976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12981 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12982 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12984 cat >>confdefs.h <<_ACEOF
12985 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12989 cat >>confdefs.h <<\_ACEOF
12990 #define HAVE_ST_BLOCKS 1
12995 "fileblocks.$ac_objext" | \
12996 *" fileblocks.$ac_objext" | \
12997 "fileblocks.$ac_objext "* | \
12998 *" fileblocks.$ac_objext "* ) ;;
12999 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13006 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13007 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13008 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 cat >conftest.$ac_ext <<_ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 $ac_includes_default
13021 static struct stat ac_aggr;
13022 if (ac_aggr.st_rdev)
13028 rm -f conftest.$ac_objext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13030 (eval $ac_compile) 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag"
13038 || test ! -s conftest.err'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; } &&
13044 { ac_try='test -s conftest.$ac_objext'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; }; then
13050 ac_cv_member_struct_stat_st_rdev=yes
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13055 cat >conftest.$ac_ext <<_ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 $ac_includes_default
13065 static struct stat ac_aggr;
13066 if (sizeof ac_aggr.st_rdev)
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074 (eval $ac_compile) 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -z "$ac_c_werror_flag"
13082 || test ! -s conftest.err'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } &&
13088 { ac_try='test -s conftest.$ac_objext'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13094 ac_cv_member_struct_stat_st_rdev=yes
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_cv_member_struct_stat_st_rdev=no
13101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13105 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13106 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13107 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110 #define HAVE_STRUCT_STAT_ST_RDEV 1
13114 cat >>confdefs.h <<\_ACEOF
13115 #define HAVE_ST_RDEV 1
13121 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13122 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13123 if test "${ac_cv_struct_tm+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 cat >conftest.$ac_ext <<_ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13132 #include <sys/types.h>
13138 struct tm *tp; tp->tm_sec;
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13147 grep -v '^ *+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest.$ac_objext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_cv_struct_tm=time.h
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_cv_struct_tm=sys/time.h
13172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13174 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13175 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13176 if test $ac_cv_struct_tm = sys/time.h; then
13178 cat >>confdefs.h <<\_ACEOF
13179 #define TM_IN_SYS_TIME 1
13184 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13185 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13186 if test "${ac_cv_c_const+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 cat >conftest.$ac_ext <<_ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13199 /* FIXME: Include the comments suggested by Paul. */
13200 #ifndef __cplusplus
13201 /* Ultrix mips cc rejects this. */
13202 typedef int charset[2];
13204 /* SunOS 4.1.1 cc rejects this. */
13205 char const *const *ccp;
13207 /* NEC SVR4.0.2 mips cc rejects this. */
13208 struct point {int x, y;};
13209 static struct point const zero = {0,0};
13210 /* AIX XL C 1.02.0.0 rejects this.
13211 It does not let you subtract one const X* pointer from another in
13212 an arm of an if-expression whose if-part is not a constant
13214 const char *g = "string";
13215 ccp = &g + (g ? g-g : 0);
13216 /* HPUX 7.0 cc rejects these. */
13219 ccp = (char const *const *) p;
13220 { /* SCO 3.2v4 cc rejects this. */
13222 char const *s = 0 ? (char *) 0 : (char const *) 0;
13226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13227 int x[] = {25, 17};
13228 const int *foo = &x[0];
13231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13232 typedef const int *iptr;
13236 { /* AIX XL C 1.02.0.0 rejects this saying
13237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13238 struct s { int j; const int *ap[3]; };
13239 struct s *b; b->j = 5;
13241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13242 const int foo = 10;
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252 (eval $ac_compile) 2>conftest.er1
13254 grep -v '^ *+' conftest.er1 >conftest.err
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -z "$ac_c_werror_flag"
13260 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest.$ac_objext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13281 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13282 echo "${ECHO_T}$ac_cv_c_const" >&6
13283 if test $ac_cv_c_const = no; then
13285 cat >>confdefs.h <<\_ACEOF
13293 echo "$as_me:$LINENO: checking for char" >&5
13294 echo $ECHO_N "checking for char... $ECHO_C" >&6
13295 if test "${ac_cv_type_char+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 cat >conftest.$ac_ext <<_ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 $ac_includes_default
13316 rm -f conftest.$ac_objext
13317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13318 (eval $ac_compile) 2>conftest.er1
13320 grep -v '^ *+' conftest.er1 >conftest.err
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try='test -z "$ac_c_werror_flag"
13326 || test ! -s conftest.err'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest.$ac_objext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_cv_type_char=yes
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13347 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13348 echo "${ECHO_T}$ac_cv_type_char" >&6
13350 echo "$as_me:$LINENO: checking size of char" >&5
13351 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13352 if test "${ac_cv_sizeof_char+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 if test "$ac_cv_type_char" = yes; then
13356 # The cast to unsigned long works around a bug in the HP C Compiler
13357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13359 # This bug is HP SR number 8606223364.
13360 if test "$cross_compiling" = yes; then
13361 # Depending upon the size, compute the lo and hi bounds.
13362 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 $ac_includes_default
13372 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13379 rm -f conftest.$ac_objext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13381 (eval $ac_compile) 2>conftest.er1
13383 grep -v '^ *+' conftest.er1 >conftest.err
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag"
13389 || test ! -s conftest.err'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; } &&
13395 { ac_try='test -s conftest.$ac_objext'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 $ac_includes_default
13413 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13420 rm -f conftest.$ac_objext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>conftest.er1
13424 grep -v '^ *+' conftest.er1 >conftest.err
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -z "$ac_c_werror_flag"
13430 || test ! -s conftest.err'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_hi=$ac_mid; break
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13447 ac_lo=`expr $ac_mid + 1`
13448 if test $ac_lo -le $ac_mid; then
13452 ac_mid=`expr 2 '*' $ac_mid + 1`
13454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13460 cat >conftest.$ac_ext <<_ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 $ac_includes_default
13470 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>conftest.er1
13481 grep -v '^ *+' conftest.er1 >conftest.err
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -z "$ac_c_werror_flag"
13487 || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13501 cat >conftest.$ac_ext <<_ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13507 $ac_includes_default
13511 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13518 rm -f conftest.$ac_objext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13520 (eval $ac_compile) 2>conftest.er1
13522 grep -v '^ *+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -z "$ac_c_werror_flag"
13528 || test ! -s conftest.err'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; } &&
13534 { ac_try='test -s conftest.$ac_objext'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; }; then
13540 ac_lo=$ac_mid; break
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ac_hi=`expr '(' $ac_mid ')' - 1`
13546 if test $ac_mid -le $ac_hi; then
13550 ac_mid=`expr 2 '*' $ac_mid`
13552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13563 # Binary search between lo and hi bounds.
13564 while test "x$ac_lo" != "x$ac_hi"; do
13565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13566 cat >conftest.$ac_ext <<_ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 $ac_includes_default
13576 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 (eval $ac_compile) 2>conftest.er1
13587 grep -v '^ *+' conftest.er1 >conftest.err
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -z "$ac_c_werror_flag"
13593 || test ! -s conftest.err'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13610 ac_lo=`expr '(' $ac_mid ')' + 1`
13612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13615 ?*) ac_cv_sizeof_char=$ac_lo;;
13616 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13617 See \`config.log' for more details." >&5
13618 echo "$as_me: error: cannot compute sizeof (char), 77
13619 See \`config.log' for more details." >&2;}
13620 { (exit 1); exit 1; }; } ;;
13623 if test "$cross_compiling" = yes; then
13624 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13625 See \`config.log' for more details." >&5
13626 echo "$as_me: error: cannot run test program while cross compiling
13627 See \`config.log' for more details." >&2;}
13628 { (exit 1); exit 1; }; }
13630 cat >conftest.$ac_ext <<_ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 $ac_includes_default
13637 long longval () { return (long) (sizeof (char)); }
13638 unsigned long ulongval () { return (long) (sizeof (char)); }
13640 #include <stdlib.h>
13645 FILE *f = fopen ("conftest.val", "w");
13648 if (((long) (sizeof (char))) < 0)
13650 long i = longval ();
13651 if (i != ((long) (sizeof (char))))
13653 fprintf (f, "%ld\n", i);
13657 unsigned long i = ulongval ();
13658 if (i != ((long) (sizeof (char))))
13660 fprintf (f, "%lu\n", i);
13662 exit (ferror (f) || fclose (f) != 0);
13668 rm -f conftest$ac_exeext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670 (eval $ac_link) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 ac_cv_sizeof_char=`cat conftest.val`
13681 echo "$as_me: program exited with status $ac_status" >&5
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13685 ( exit $ac_status )
13686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13687 See \`config.log' for more details." >&5
13688 echo "$as_me: error: cannot compute sizeof (char), 77
13689 See \`config.log' for more details." >&2;}
13690 { (exit 1); exit 1; }; }
13692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13697 ac_cv_sizeof_char=0
13700 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13701 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13702 cat >>confdefs.h <<_ACEOF
13703 #define SIZEOF_CHAR $ac_cv_sizeof_char
13707 echo "$as_me:$LINENO: checking for short int" >&5
13708 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13709 if test "${ac_cv_type_short_int+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 $ac_includes_default
13722 if ((short int *) 0)
13724 if (sizeof (short int))
13730 rm -f conftest.$ac_objext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732 (eval $ac_compile) 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_type_short_int=yes
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_cv_type_short_int=no
13759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13762 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13764 echo "$as_me:$LINENO: checking size of short int" >&5
13765 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13766 if test "${ac_cv_sizeof_short_int+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 if test "$ac_cv_type_short_int" = yes; then
13770 # The cast to unsigned long works around a bug in the HP C Compiler
13771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13773 # This bug is HP SR number 8606223364.
13774 if test "$cross_compiling" = yes; then
13775 # Depending upon the size, compute the lo and hi bounds.
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13786 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13793 rm -f conftest.$ac_objext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795 (eval $ac_compile) 2>conftest.er1
13797 grep -v '^ *+' conftest.er1 >conftest.err
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_c_werror_flag"
13803 || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest.$ac_objext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13817 cat >conftest.$ac_ext <<_ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823 $ac_includes_default
13827 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13834 rm -f conftest.$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836 (eval $ac_compile) 2>conftest.er1
13838 grep -v '^ *+' conftest.er1 >conftest.err
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_c_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest.$ac_objext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_hi=$ac_mid; break
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_lo=`expr $ac_mid + 1`
13862 if test $ac_lo -le $ac_mid; then
13866 ac_mid=`expr 2 '*' $ac_mid + 1`
13868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13874 cat >conftest.$ac_ext <<_ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 $ac_includes_default
13884 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13891 rm -f conftest.$ac_objext
13892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13893 (eval $ac_compile) 2>conftest.er1
13895 grep -v '^ *+' conftest.er1 >conftest.err
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } &&
13900 { ac_try='test -z "$ac_c_werror_flag"
13901 || test ! -s conftest.err'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try='test -s conftest.$ac_objext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13915 cat >conftest.$ac_ext <<_ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 $ac_includes_default
13925 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13932 rm -f conftest.$ac_objext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13934 (eval $ac_compile) 2>conftest.er1
13936 grep -v '^ *+' conftest.er1 >conftest.err
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
13941 { ac_try='test -z "$ac_c_werror_flag"
13942 || test ! -s conftest.err'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_lo=$ac_mid; break
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_hi=`expr '(' $ac_mid ')' - 1`
13960 if test $ac_mid -le $ac_hi; then
13964 ac_mid=`expr 2 '*' $ac_mid`
13966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977 # Binary search between lo and hi bounds.
13978 while test "x$ac_lo" != "x$ac_hi"; do
13979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13980 cat >conftest.$ac_ext <<_ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h. */
13986 $ac_includes_default
13990 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -z "$ac_c_werror_flag"
14007 || test ! -s conftest.err'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_lo=`expr '(' $ac_mid ')' + 1`
14026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14029 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14030 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14031 See \`config.log' for more details." >&5
14032 echo "$as_me: error: cannot compute sizeof (short int), 77
14033 See \`config.log' for more details." >&2;}
14034 { (exit 1); exit 1; }; } ;;
14037 if test "$cross_compiling" = yes; then
14038 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14039 See \`config.log' for more details." >&5
14040 echo "$as_me: error: cannot run test program while cross compiling
14041 See \`config.log' for more details." >&2;}
14042 { (exit 1); exit 1; }; }
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 $ac_includes_default
14051 long longval () { return (long) (sizeof (short int)); }
14052 unsigned long ulongval () { return (long) (sizeof (short int)); }
14054 #include <stdlib.h>
14059 FILE *f = fopen ("conftest.val", "w");
14062 if (((long) (sizeof (short int))) < 0)
14064 long i = longval ();
14065 if (i != ((long) (sizeof (short int))))
14067 fprintf (f, "%ld\n", i);
14071 unsigned long i = ulongval ();
14072 if (i != ((long) (sizeof (short int))))
14074 fprintf (f, "%lu\n", i);
14076 exit (ferror (f) || fclose (f) != 0);
14082 rm -f conftest$ac_exeext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14084 (eval $ac_link) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 ac_cv_sizeof_short_int=`cat conftest.val`
14095 echo "$as_me: program exited with status $ac_status" >&5
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14099 ( exit $ac_status )
14100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14101 See \`config.log' for more details." >&5
14102 echo "$as_me: error: cannot compute sizeof (short int), 77
14103 See \`config.log' for more details." >&2;}
14104 { (exit 1); exit 1; }; }
14106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14111 ac_cv_sizeof_short_int=0
14114 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14115 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14116 cat >>confdefs.h <<_ACEOF
14117 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14121 echo "$as_me:$LINENO: checking for int" >&5
14122 echo $ECHO_N "checking for int... $ECHO_C" >&6
14123 if test "${ac_cv_type_int+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 cat >conftest.$ac_ext <<_ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 $ac_includes_default
14144 rm -f conftest.$ac_objext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146 (eval $ac_compile) 2>conftest.er1
14148 grep -v '^ *+' conftest.er1 >conftest.err
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
14153 { ac_try='test -z "$ac_c_werror_flag"
14154 || test ! -s conftest.err'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest.$ac_objext'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14175 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14176 echo "${ECHO_T}$ac_cv_type_int" >&6
14178 echo "$as_me:$LINENO: checking size of int" >&5
14179 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14180 if test "${ac_cv_sizeof_int+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 if test "$ac_cv_type_int" = yes; then
14184 # The cast to unsigned long works around a bug in the HP C Compiler
14185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14187 # This bug is HP SR number 8606223364.
14188 if test "$cross_compiling" = yes; then
14189 # Depending upon the size, compute the lo and hi bounds.
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 $ac_includes_default
14200 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>conftest.er1
14211 grep -v '^ *+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag"
14217 || test ! -s conftest.err'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest.$ac_objext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 $ac_includes_default
14241 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14248 rm -f conftest.$ac_objext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250 (eval $ac_compile) 2>conftest.er1
14252 grep -v '^ *+' conftest.er1 >conftest.err
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
14257 { ac_try='test -z "$ac_c_werror_flag"
14258 || test ! -s conftest.err'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest.$ac_objext'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_hi=$ac_mid; break
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_lo=`expr $ac_mid + 1`
14276 if test $ac_lo -le $ac_mid; then
14280 ac_mid=`expr 2 '*' $ac_mid + 1`
14282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14298 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14329 cat >conftest.$ac_ext <<_ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14335 $ac_includes_default
14339 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
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_lo=$ac_mid; break
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_hi=`expr '(' $ac_mid ')' - 1`
14374 if test $ac_mid -le $ac_hi; then
14378 ac_mid=`expr 2 '*' $ac_mid`
14380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14391 # Binary search between lo and hi bounds.
14392 while test "x$ac_lo" != "x$ac_hi"; do
14393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14394 cat >conftest.$ac_ext <<_ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 $ac_includes_default
14404 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag"
14421 || test ! -s conftest.err'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest.$ac_objext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14438 ac_lo=`expr '(' $ac_mid ')' + 1`
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14443 ?*) ac_cv_sizeof_int=$ac_lo;;
14444 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14445 See \`config.log' for more details." >&5
14446 echo "$as_me: error: cannot compute sizeof (int), 77
14447 See \`config.log' for more details." >&2;}
14448 { (exit 1); exit 1; }; } ;;
14451 if test "$cross_compiling" = yes; then
14452 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14453 See \`config.log' for more details." >&5
14454 echo "$as_me: error: cannot run test program while cross compiling
14455 See \`config.log' for more details." >&2;}
14456 { (exit 1); exit 1; }; }
14458 cat >conftest.$ac_ext <<_ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464 $ac_includes_default
14465 long longval () { return (long) (sizeof (int)); }
14466 unsigned long ulongval () { return (long) (sizeof (int)); }
14468 #include <stdlib.h>
14473 FILE *f = fopen ("conftest.val", "w");
14476 if (((long) (sizeof (int))) < 0)
14478 long i = longval ();
14479 if (i != ((long) (sizeof (int))))
14481 fprintf (f, "%ld\n", i);
14485 unsigned long i = ulongval ();
14486 if (i != ((long) (sizeof (int))))
14488 fprintf (f, "%lu\n", i);
14490 exit (ferror (f) || fclose (f) != 0);
14496 rm -f conftest$ac_exeext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14498 (eval $ac_link) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14507 ac_cv_sizeof_int=`cat conftest.val`
14509 echo "$as_me: program exited with status $ac_status" >&5
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 ( exit $ac_status )
14514 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14515 See \`config.log' for more details." >&5
14516 echo "$as_me: error: cannot compute sizeof (int), 77
14517 See \`config.log' for more details." >&2;}
14518 { (exit 1); exit 1; }; }
14520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14528 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14529 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14530 cat >>confdefs.h <<_ACEOF
14531 #define SIZEOF_INT $ac_cv_sizeof_int
14535 echo "$as_me:$LINENO: checking for long int" >&5
14536 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14537 if test "${ac_cv_type_long_int+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 $ac_includes_default
14550 if ((long int *) 0)
14552 if (sizeof (long int))
14558 rm -f conftest.$ac_objext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14560 (eval $ac_compile) 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest.$ac_objext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_cv_type_long_int=yes
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_cv_type_long_int=no
14587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14589 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14590 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14592 echo "$as_me:$LINENO: checking size of long int" >&5
14593 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14594 if test "${ac_cv_sizeof_long_int+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 if test "$ac_cv_type_long_int" = yes; then
14598 # The cast to unsigned long works around a bug in the HP C Compiler
14599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14601 # This bug is HP SR number 8606223364.
14602 if test "$cross_compiling" = yes; then
14603 # Depending upon the size, compute the lo and hi bounds.
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 $ac_includes_default
14614 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14621 rm -f conftest.$ac_objext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623 (eval $ac_compile) 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14645 cat >conftest.$ac_ext <<_ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 $ac_includes_default
14655 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 (eval $ac_compile) 2>conftest.er1
14666 grep -v '^ *+' conftest.er1 >conftest.err
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -z "$ac_c_werror_flag"
14672 || test ! -s conftest.err'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; } &&
14678 { ac_try='test -s conftest.$ac_objext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_hi=$ac_mid; break
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_lo=`expr $ac_mid + 1`
14690 if test $ac_lo -le $ac_mid; then
14694 ac_mid=`expr 2 '*' $ac_mid + 1`
14696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 $ac_includes_default
14712 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721 (eval $ac_compile) 2>conftest.er1
14723 grep -v '^ *+' conftest.er1 >conftest.err
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_c_werror_flag"
14729 || test ! -s conftest.err'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14743 cat >conftest.$ac_ext <<_ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 $ac_includes_default
14753 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>conftest.er1
14764 grep -v '^ *+' conftest.er1 >conftest.err
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -z "$ac_c_werror_flag"
14770 || test ! -s conftest.err'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest.$ac_objext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_lo=$ac_mid; break
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ac_hi=`expr '(' $ac_mid ')' - 1`
14788 if test $ac_mid -le $ac_hi; then
14792 ac_mid=`expr 2 '*' $ac_mid`
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14805 # Binary search between lo and hi bounds.
14806 while test "x$ac_lo" != "x$ac_hi"; do
14807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14808 cat >conftest.$ac_ext <<_ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 $ac_includes_default
14818 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14825 rm -f conftest.$ac_objext
14826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14827 (eval $ac_compile) 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag"
14835 || test ! -s conftest.err'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_lo=`expr '(' $ac_mid ')' + 1`
14854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14857 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14858 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14859 See \`config.log' for more details." >&5
14860 echo "$as_me: error: cannot compute sizeof (long int), 77
14861 See \`config.log' for more details." >&2;}
14862 { (exit 1); exit 1; }; } ;;
14865 if test "$cross_compiling" = yes; then
14866 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14867 See \`config.log' for more details." >&5
14868 echo "$as_me: error: cannot run test program while cross compiling
14869 See \`config.log' for more details." >&2;}
14870 { (exit 1); exit 1; }; }
14872 cat >conftest.$ac_ext <<_ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 $ac_includes_default
14879 long longval () { return (long) (sizeof (long int)); }
14880 unsigned long ulongval () { return (long) (sizeof (long int)); }
14882 #include <stdlib.h>
14887 FILE *f = fopen ("conftest.val", "w");
14890 if (((long) (sizeof (long int))) < 0)
14892 long i = longval ();
14893 if (i != ((long) (sizeof (long int))))
14895 fprintf (f, "%ld\n", i);
14899 unsigned long i = ulongval ();
14900 if (i != ((long) (sizeof (long int))))
14902 fprintf (f, "%lu\n", i);
14904 exit (ferror (f) || fclose (f) != 0);
14910 rm -f conftest$ac_exeext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14912 (eval $ac_link) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_sizeof_long_int=`cat conftest.val`
14923 echo "$as_me: program exited with status $ac_status" >&5
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ( exit $ac_status )
14928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14929 See \`config.log' for more details." >&5
14930 echo "$as_me: error: cannot compute sizeof (long int), 77
14931 See \`config.log' for more details." >&2;}
14932 { (exit 1); exit 1; }; }
14934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14939 ac_cv_sizeof_long_int=0
14942 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14943 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14944 cat >>confdefs.h <<_ACEOF
14945 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14949 echo "$as_me:$LINENO: checking for long long int" >&5
14950 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14951 if test "${ac_cv_type_long_long_int+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 $ac_includes_default
14964 if ((long long int *) 0)
14966 if (sizeof (long long int))
14972 rm -f conftest.$ac_objext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974 (eval $ac_compile) 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -z "$ac_c_werror_flag"
14982 || test ! -s conftest.err'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; } &&
14988 { ac_try='test -s conftest.$ac_objext'
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_cv_type_long_long_int=yes
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_cv_type_long_long_int=no
15001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15003 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15004 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15006 echo "$as_me:$LINENO: checking size of long long int" >&5
15007 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15008 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 if test "$ac_cv_type_long_long_int" = yes; then
15012 # The cast to unsigned long works around a bug in the HP C Compiler
15013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15015 # This bug is HP SR number 8606223364.
15016 if test "$cross_compiling" = yes; then
15017 # Depending upon the size, compute the lo and hi bounds.
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 $ac_includes_default
15028 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15035 rm -f conftest.$ac_objext
15036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15037 (eval $ac_compile) 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try='test -z "$ac_c_werror_flag"
15045 || test ! -s conftest.err'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; } &&
15051 { ac_try='test -s conftest.$ac_objext'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15069 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078 (eval $ac_compile) 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest.$ac_objext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 ac_hi=$ac_mid; break
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 ac_lo=`expr $ac_mid + 1`
15104 if test $ac_lo -le $ac_mid; then
15108 ac_mid=`expr 2 '*' $ac_mid + 1`
15110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 cat >conftest.$ac_ext <<_ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 $ac_includes_default
15126 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15133 rm -f conftest.$ac_objext
15134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15135 (eval $ac_compile) 2>conftest.er1
15137 grep -v '^ *+' conftest.er1 >conftest.err
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } &&
15142 { ac_try='test -z "$ac_c_werror_flag"
15143 || test ! -s conftest.err'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; } &&
15149 { ac_try='test -s conftest.$ac_objext'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15157 cat >conftest.$ac_ext <<_ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 $ac_includes_default
15167 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
15174 rm -f conftest.$ac_objext
15175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15176 (eval $ac_compile) 2>conftest.er1
15178 grep -v '^ *+' conftest.er1 >conftest.err
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
15183 { ac_try='test -z "$ac_c_werror_flag"
15184 || test ! -s conftest.err'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; } &&
15190 { ac_try='test -s conftest.$ac_objext'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 ac_lo=$ac_mid; break
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15201 ac_hi=`expr '(' $ac_mid ')' - 1`
15202 if test $ac_mid -le $ac_hi; then
15206 ac_mid=`expr 2 '*' $ac_mid`
15208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15219 # Binary search between lo and hi bounds.
15220 while test "x$ac_lo" != "x$ac_hi"; do
15221 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15222 cat >conftest.$ac_ext <<_ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h. */
15228 $ac_includes_default
15232 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15239 rm -f conftest.$ac_objext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241 (eval $ac_compile) 2>conftest.er1
15243 grep -v '^ *+' conftest.er1 >conftest.err
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -z "$ac_c_werror_flag"
15249 || test ! -s conftest.err'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15266 ac_lo=`expr '(' $ac_mid ')' + 1`
15268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15271 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
15272 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15273 See \`config.log' for more details." >&5
15274 echo "$as_me: error: cannot compute sizeof (long long int), 77
15275 See \`config.log' for more details." >&2;}
15276 { (exit 1); exit 1; }; } ;;
15279 if test "$cross_compiling" = yes; then
15280 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15281 See \`config.log' for more details." >&5
15282 echo "$as_me: error: cannot run test program while cross compiling
15283 See \`config.log' for more details." >&2;}
15284 { (exit 1); exit 1; }; }
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 $ac_includes_default
15293 long longval () { return (long) (sizeof (long long int)); }
15294 unsigned long ulongval () { return (long) (sizeof (long long int)); }
15296 #include <stdlib.h>
15301 FILE *f = fopen ("conftest.val", "w");
15304 if (((long) (sizeof (long long int))) < 0)
15306 long i = longval ();
15307 if (i != ((long) (sizeof (long long int))))
15309 fprintf (f, "%ld\n", i);
15313 unsigned long i = ulongval ();
15314 if (i != ((long) (sizeof (long long int))))
15316 fprintf (f, "%lu\n", i);
15318 exit (ferror (f) || fclose (f) != 0);
15324 rm -f conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326 (eval $ac_link) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_cv_sizeof_long_long_int=`cat conftest.val`
15337 echo "$as_me: program exited with status $ac_status" >&5
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ( exit $ac_status )
15342 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15343 See \`config.log' for more details." >&5
15344 echo "$as_me: error: cannot compute sizeof (long long int), 77
15345 See \`config.log' for more details." >&2;}
15346 { (exit 1); exit 1; }; }
15348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15353 ac_cv_sizeof_long_long_int=0
15356 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15357 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15358 cat >>confdefs.h <<_ACEOF
15359 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15363 echo "$as_me:$LINENO: checking for int *" >&5
15364 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15365 if test "${ac_cv_type_int_p+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 $ac_includes_default
15380 if (sizeof (int *))
15386 rm -f conftest.$ac_objext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388 (eval $ac_compile) 2>conftest.er1
15390 grep -v '^ *+' conftest.er1 >conftest.err
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -z "$ac_c_werror_flag"
15396 || test ! -s conftest.err'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_cv_type_int_p=yes
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_cv_type_int_p=no
15415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15417 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15418 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15420 echo "$as_me:$LINENO: checking size of int *" >&5
15421 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15422 if test "${ac_cv_sizeof_int_p+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 if test "$ac_cv_type_int_p" = yes; then
15426 # The cast to unsigned long works around a bug in the HP C Compiler
15427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15429 # This bug is HP SR number 8606223364.
15430 if test "$cross_compiling" = yes; then
15431 # Depending upon the size, compute the lo and hi bounds.
15432 cat >conftest.$ac_ext <<_ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15438 $ac_includes_default
15442 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15449 rm -f conftest.$ac_objext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15451 (eval $ac_compile) 2>conftest.er1
15453 grep -v '^ *+' conftest.er1 >conftest.err
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag"
15459 || test ! -s conftest.err'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; } &&
15465 { ac_try='test -s conftest.$ac_objext'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; }; then
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 $ac_includes_default
15483 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15490 rm -f conftest.$ac_objext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15492 (eval $ac_compile) 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag"
15500 || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest.$ac_objext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_hi=$ac_mid; break
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15517 ac_lo=`expr $ac_mid + 1`
15518 if test $ac_lo -le $ac_mid; then
15522 ac_mid=`expr 2 '*' $ac_mid + 1`
15524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15530 cat >conftest.$ac_ext <<_ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 $ac_includes_default
15540 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15547 rm -f conftest.$ac_objext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549 (eval $ac_compile) 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag"
15557 || test ! -s conftest.err'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
15563 { ac_try='test -s conftest.$ac_objext'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }; then
15571 cat >conftest.$ac_ext <<_ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15577 $ac_includes_default
15581 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15588 rm -f conftest.$ac_objext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15590 (eval $ac_compile) 2>conftest.er1
15592 grep -v '^ *+' conftest.er1 >conftest.err
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag"
15598 || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest.$ac_objext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_lo=$ac_mid; break
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_hi=`expr '(' $ac_mid ')' - 1`
15616 if test $ac_mid -le $ac_hi; then
15620 ac_mid=`expr 2 '*' $ac_mid`
15622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15633 # Binary search between lo and hi bounds.
15634 while test "x$ac_lo" != "x$ac_hi"; do
15635 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 $ac_includes_default
15646 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15653 rm -f conftest.$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655 (eval $ac_compile) 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -z "$ac_c_werror_flag"
15663 || test ! -s conftest.err'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_lo=`expr '(' $ac_mid ')' + 1`
15682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15685 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15686 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15687 See \`config.log' for more details." >&5
15688 echo "$as_me: error: cannot compute sizeof (int *), 77
15689 See \`config.log' for more details." >&2;}
15690 { (exit 1); exit 1; }; } ;;
15693 if test "$cross_compiling" = yes; then
15694 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15695 See \`config.log' for more details." >&5
15696 echo "$as_me: error: cannot run test program while cross compiling
15697 See \`config.log' for more details." >&2;}
15698 { (exit 1); exit 1; }; }
15700 cat >conftest.$ac_ext <<_ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 $ac_includes_default
15707 long longval () { return (long) (sizeof (int *)); }
15708 unsigned long ulongval () { return (long) (sizeof (int *)); }
15710 #include <stdlib.h>
15715 FILE *f = fopen ("conftest.val", "w");
15718 if (((long) (sizeof (int *))) < 0)
15720 long i = longval ();
15721 if (i != ((long) (sizeof (int *))))
15723 fprintf (f, "%ld\n", i);
15727 unsigned long i = ulongval ();
15728 if (i != ((long) (sizeof (int *))))
15730 fprintf (f, "%lu\n", i);
15732 exit (ferror (f) || fclose (f) != 0);
15738 rm -f conftest$ac_exeext
15739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740 (eval $ac_link) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_sizeof_int_p=`cat conftest.val`
15751 echo "$as_me: program exited with status $ac_status" >&5
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ( exit $ac_status )
15756 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15757 See \`config.log' for more details." >&5
15758 echo "$as_me: error: cannot compute sizeof (int *), 77
15759 See \`config.log' for more details." >&2;}
15760 { (exit 1); exit 1; }; }
15762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15767 ac_cv_sizeof_int_p=0
15770 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15771 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15772 cat >>confdefs.h <<_ACEOF
15773 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15778 # Check for sys/types.h types
15779 echo "$as_me:$LINENO: checking for u_int type" >&5
15780 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15781 if test "${ac_cv_have_u_int+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 cat >conftest.$ac_ext <<_ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 #include <sys/types.h>
15800 rm -f conftest.$ac_objext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802 (eval $ac_compile) 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_cv_have_u_int="yes"
15824 echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15827 ac_cv_have_u_int="no"
15830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15833 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15834 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15835 if test "x$ac_cv_have_u_int" = "xyes" ; then
15836 cat >>confdefs.h <<\_ACEOF
15837 #define HAVE_U_INT 1
15843 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15844 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15845 if test "${ac_cv_have_intmax_t+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 cat >conftest.$ac_ext <<_ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 #include <sys/types.h>
15864 rm -f conftest.$ac_objext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15866 (eval $ac_compile) 2>conftest.er1
15868 grep -v '^ *+' conftest.er1 >conftest.err
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest.$ac_objext'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_cv_have_intmax_t="yes"
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15892 cat >conftest.$ac_ext <<_ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 #include <stdint.h>
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest.$ac_objext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 ac_cv_have_intmax_t="yes"
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ac_cv_have_intmax_t="no"
15937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15945 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15946 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15947 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_INTMAX_T 1
15956 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15957 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15958 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <sys/types.h>
15972 u_intmax_t a; a = 1;
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>conftest.er1
15981 grep -v '^ *+' conftest.er1 >conftest.err
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_have_u_intmax_t="yes"
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16005 cat >conftest.$ac_ext <<_ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include <stdint.h>
16015 u_intmax_t a; a = 1;
16020 rm -f conftest.$ac_objext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16022 (eval $ac_compile) 2>conftest.er1
16024 grep -v '^ *+' conftest.er1 >conftest.err
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -z "$ac_c_werror_flag"
16030 || test ! -s conftest.err'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } &&
16036 { ac_try='test -s conftest.$ac_objext'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_cv_have_u_intmax_t="yes"
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_cv_have_u_intmax_t="no"
16050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16058 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16059 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16060 cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_U_INTMAX_T 1
16068 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16069 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16070 if test "${ac_cv_have_intxx_t+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 cat >conftest.$ac_ext <<_ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 #include <sys/types.h>
16084 int8_t a; int16_t b; int32_t c; a = b = c = 1;
16089 rm -f conftest.$ac_objext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16091 (eval $ac_compile) 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest.$ac_objext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_cv_have_intxx_t="yes"
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_cv_have_intxx_t="no"
16119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16122 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
16123 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
16124 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
16125 cat >>confdefs.h <<\_ACEOF
16126 #define HAVE_INTXX_T 1
16132 echo "$as_me:$LINENO: checking for int64_t type" >&5
16133 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
16134 if test "${ac_cv_have_int64_t+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 cat >conftest.$ac_ext <<_ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 #include <sys/types.h>
16153 rm -f conftest.$ac_objext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155 (eval $ac_compile) 2>conftest.er1
16157 grep -v '^ *+' conftest.er1 >conftest.err
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
16162 { ac_try='test -z "$ac_c_werror_flag"
16163 || test ! -s conftest.err'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try='test -s conftest.$ac_objext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_have_int64_t="yes"
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 ac_cv_have_int64_t="no"
16183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16186 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
16187 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
16188 if test "x$ac_cv_have_int64_t" = "xyes" ; then
16189 cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_INT64_T 1
16196 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
16197 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
16198 if test "${ac_cv_have_u_intxx_t+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 cat >conftest.$ac_ext <<_ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 #include <sys/types.h>
16212 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16217 rm -f conftest.$ac_objext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16219 (eval $ac_compile) 2>conftest.er1
16221 grep -v '^ *+' conftest.er1 >conftest.err
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
16226 { ac_try='test -z "$ac_c_werror_flag"
16227 || test ! -s conftest.err'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; } &&
16233 { ac_try='test -s conftest.$ac_objext'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 ac_cv_have_u_intxx_t="yes"
16241 echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16244 ac_cv_have_u_intxx_t="no"
16247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16250 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
16251 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
16252 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
16253 cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_U_INTXX_T 1
16260 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
16261 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
16262 if test "${ac_cv_have_u_int64_t+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #include <sys/types.h>
16276 u_int64_t a; a = 1;
16281 rm -f conftest.$ac_objext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16283 (eval $ac_compile) 2>conftest.er1
16285 grep -v '^ *+' conftest.er1 >conftest.err
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
16290 { ac_try='test -z "$ac_c_werror_flag"
16291 || test ! -s conftest.err'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; } &&
16297 { ac_try='test -s conftest.$ac_objext'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 ac_cv_have_u_int64_t="yes"
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ac_cv_have_u_int64_t="no"
16311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16314 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
16315 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
16316 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
16317 cat >>confdefs.h <<\_ACEOF
16318 #define HAVE_U_INT64_T 1
16324 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
16325 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16327 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
16328 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
16329 cat >conftest.$ac_ext <<_ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335 #include <sys/bitypes.h>
16339 int8_t a; int16_t b; int32_t c;
16340 u_int8_t e; u_int16_t f; u_int32_t g;
16341 a = b = c = e = f = g = 1;
16346 rm -f conftest.$ac_objext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348 (eval $ac_compile) 2>conftest.er1
16350 grep -v '^ *+' conftest.er1 >conftest.err
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try='test -z "$ac_c_werror_flag"
16356 || test ! -s conftest.err'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_U_INTXX_T 1
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_INTXX_T 1
16376 cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_SYS_BITYPES_H 1
16380 echo "$as_me:$LINENO: result: yes" >&5
16381 echo "${ECHO_T}yes" >&6
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 echo "$as_me:$LINENO: result: no" >&5
16387 echo "${ECHO_T}no" >&6
16390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16393 if test -z "$have_u_intxx_t" ; then
16394 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
16395 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
16396 if test "${ac_cv_have_uintxx_t+set}" = set; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 cat >conftest.$ac_ext <<_ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 #include <sys/types.h>
16410 uint8_t a; uint16_t b;
16411 uint32_t c; a = b = c = 1;
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418 (eval $ac_compile) 2>conftest.er1
16420 grep -v '^ *+' conftest.er1 >conftest.err
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
16425 { ac_try='test -z "$ac_c_werror_flag"
16426 || test ! -s conftest.err'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_have_uintxx_t="yes"
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_cv_have_uintxx_t="no"
16446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16449 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
16450 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
16451 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
16452 cat >>confdefs.h <<\_ACEOF
16453 #define HAVE_UINTXX_T 1
16459 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
16460 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16462 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
16463 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
16464 cat >conftest.$ac_ext <<_ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 #include <sys/bitypes.h>
16474 int64_t a; u_int64_t b;
16480 rm -f conftest.$ac_objext
16481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482 (eval $ac_compile) 2>conftest.er1
16484 grep -v '^ *+' conftest.er1 >conftest.err
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } &&
16489 { ac_try='test -z "$ac_c_werror_flag"
16490 || test ! -s conftest.err'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 cat >>confdefs.h <<\_ACEOF
16503 #define HAVE_U_INT64_T 1
16506 cat >>confdefs.h <<\_ACEOF
16507 #define HAVE_INT64_T 1
16510 echo "$as_me:$LINENO: result: yes" >&5
16511 echo "${ECHO_T}yes" >&6
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 echo "$as_me:$LINENO: result: no" >&5
16517 echo "${ECHO_T}no" >&6
16520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16523 if (test -z "$have_uintxx_t" && \
16524 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16526 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16527 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16528 cat >conftest.$ac_ext <<_ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 #include <sys/bitypes.h>
16538 uint8_t a; uint16_t b;
16539 uint32_t c; a = b = c = 1;
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_UINTXX_T 1
16570 echo "$as_me:$LINENO: result: yes" >&5
16571 echo "${ECHO_T}yes" >&6
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 echo "$as_me:$LINENO: result: no" >&5
16577 echo "${ECHO_T}no" >&6
16580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16617 echo "$as_me:$LINENO: checking for $ac_func" >&5
16618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16619 if eval "test \"\${$as_ac_var+set}\" = set"; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 cat >conftest.$ac_ext <<_ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16630 #define $ac_func innocuous_$ac_func
16632 /* System header to define __stub macros and hopefully few prototypes,
16633 which can conflict with char $ac_func (); below.
16634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16635 <limits.h> exists even on freestanding compilers. */
16638 # include <limits.h>
16640 # include <assert.h>
16645 /* Override any gcc2 internal prototype to avoid an error. */
16650 /* We use char because int might match the return type of a gcc2
16651 builtin and then its argument prototype would still apply. */
16653 /* The GNU C library defines this for functions which it implements
16654 to always fail with ENOSYS. Some functions are actually named
16655 something starting with __ and the normal name is an alias. */
16656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16659 char (*f) () = $ac_func;
16668 return f != $ac_func;
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16675 (eval $ac_link) 2>conftest.er1
16677 grep -v '^ *+' conftest.er1 >conftest.err
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag"
16683 || test ! -s conftest.err'
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); }; } &&
16689 { ac_try='test -s conftest$ac_exeext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 eval "$as_ac_var=yes"
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 eval "$as_ac_var=no"
16702 rm -f conftest.err conftest.$ac_objext \
16703 conftest$ac_exeext conftest.$ac_ext
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16707 if test `eval echo '${'$as_ac_var'}'` = yes; then
16708 cat >>confdefs.h <<_ACEOF
16709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16713 echo 'configure: cannot find needed function.'; exit 1
16720 for ac_func in fchdir
16722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16723 echo "$as_me:$LINENO: checking for $ac_func" >&5
16724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16725 if eval "test \"\${$as_ac_var+set}\" = set"; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 cat >conftest.$ac_ext <<_ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16736 #define $ac_func innocuous_$ac_func
16738 /* System header to define __stub macros and hopefully few prototypes,
16739 which can conflict with char $ac_func (); below.
16740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16741 <limits.h> exists even on freestanding compilers. */
16744 # include <limits.h>
16746 # include <assert.h>
16751 /* Override any gcc2 internal prototype to avoid an error. */
16756 /* We use char because int might match the return type of a gcc2
16757 builtin and then its argument prototype would still apply. */
16759 /* The GNU C library defines this for functions which it implements
16760 to always fail with ENOSYS. Some functions are actually named
16761 something starting with __ and the normal name is an alias. */
16762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16765 char (*f) () = $ac_func;
16774 return f != $ac_func;
16779 rm -f conftest.$ac_objext conftest$ac_exeext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16781 (eval $ac_link) 2>conftest.er1
16783 grep -v '^ *+' conftest.er1 >conftest.err
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -z "$ac_c_werror_flag"
16789 || test ! -s conftest.err'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try='test -s conftest$ac_exeext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 eval "$as_ac_var=yes"
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 eval "$as_ac_var=no"
16808 rm -f conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16813 if test `eval echo '${'$as_ac_var'}'` = yes; then
16814 cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16817 cat >>confdefs.h <<\_ACEOF
16818 #define HAVE_FCHDIR 1
16825 for ac_func in strtoll
16827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 echo "$as_me:$LINENO: checking for $ac_func" >&5
16829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16830 if eval "test \"\${$as_ac_var+set}\" = set"; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16841 #define $ac_func innocuous_$ac_func
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char $ac_func (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
16849 # include <limits.h>
16851 # include <assert.h>
16856 /* Override any gcc2 internal prototype to avoid an error. */
16861 /* We use char because int might match the return type of a gcc2
16862 builtin and then its argument prototype would still apply. */
16864 /* The GNU C library defines this for functions which it implements
16865 to always fail with ENOSYS. Some functions are actually named
16866 something starting with __ and the normal name is an alias. */
16867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16870 char (*f) () = $ac_func;
16879 return f != $ac_func;
16884 rm -f conftest.$ac_objext conftest$ac_exeext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16886 (eval $ac_link) 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag"
16894 || test ! -s conftest.err'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest$ac_exeext'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 eval "$as_ac_var=yes"
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 eval "$as_ac_var=no"
16913 rm -f conftest.err conftest.$ac_objext \
16914 conftest$ac_exeext conftest.$ac_ext
16916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16918 if test `eval echo '${'$as_ac_var'}'` = yes; then
16919 cat >>confdefs.h <<_ACEOF
16920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16922 cat >>confdefs.h <<\_ACEOF
16923 #define HAVE_STRTOLL 1
16931 for ac_func in chflags
16933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16934 echo "$as_me:$LINENO: checking for $ac_func" >&5
16935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16936 if eval "test \"\${$as_ac_var+set}\" = set"; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16947 #define $ac_func innocuous_$ac_func
16949 /* System header to define __stub macros and hopefully few prototypes,
16950 which can conflict with char $ac_func (); below.
16951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16952 <limits.h> exists even on freestanding compilers. */
16955 # include <limits.h>
16957 # include <assert.h>
16962 /* Override any gcc2 internal prototype to avoid an error. */
16967 /* We use char because int might match the return type of a gcc2
16968 builtin and then its argument prototype would still apply. */
16970 /* The GNU C library defines this for functions which it implements
16971 to always fail with ENOSYS. Some functions are actually named
16972 something starting with __ and the normal name is an alias. */
16973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16976 char (*f) () = $ac_func;
16985 return f != $ac_func;
16990 rm -f conftest.$ac_objext conftest$ac_exeext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16992 (eval $ac_link) 2>conftest.er1
16994 grep -v '^ *+' conftest.er1 >conftest.err
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag"
17000 || test ! -s conftest.err'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest$ac_exeext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 eval "$as_ac_var=yes"
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 eval "$as_ac_var=no"
17019 rm -f conftest.err conftest.$ac_objext \
17020 conftest$ac_exeext conftest.$ac_ext
17022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17024 if test `eval echo '${'$as_ac_var'}'` = yes; then
17025 cat >>confdefs.h <<_ACEOF
17026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17037 for ac_func in snprintf vsnprintf gethostid getdomainname
17039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17040 echo "$as_me:$LINENO: checking for $ac_func" >&5
17041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17042 if eval "test \"\${$as_ac_var+set}\" = set"; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 cat >conftest.$ac_ext <<_ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17053 #define $ac_func innocuous_$ac_func
17055 /* System header to define __stub macros and hopefully few prototypes,
17056 which can conflict with char $ac_func (); below.
17057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17058 <limits.h> exists even on freestanding compilers. */
17061 # include <limits.h>
17063 # include <assert.h>
17068 /* Override any gcc2 internal prototype to avoid an error. */
17073 /* We use char because int might match the return type of a gcc2
17074 builtin and then its argument prototype would still apply. */
17076 /* The GNU C library defines this for functions which it implements
17077 to always fail with ENOSYS. Some functions are actually named
17078 something starting with __ and the normal name is an alias. */
17079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17082 char (*f) () = $ac_func;
17091 return f != $ac_func;
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17098 (eval $ac_link) 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -z "$ac_c_werror_flag"
17106 || test ! -s conftest.err'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; } &&
17112 { ac_try='test -s conftest$ac_exeext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 eval "$as_ac_var=yes"
17120 echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17123 eval "$as_ac_var=no"
17125 rm -f conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17130 if test `eval echo '${'$as_ac_var'}'` = yes; then
17131 cat >>confdefs.h <<_ACEOF
17132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17143 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
17145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17146 echo "$as_me:$LINENO: checking for $ac_func" >&5
17147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17148 if eval "test \"\${$as_ac_var+set}\" = set"; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 cat >conftest.$ac_ext <<_ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17159 #define $ac_func innocuous_$ac_func
17161 /* System header to define __stub macros and hopefully few prototypes,
17162 which can conflict with char $ac_func (); below.
17163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17164 <limits.h> exists even on freestanding compilers. */
17167 # include <limits.h>
17169 # include <assert.h>
17174 /* Override any gcc2 internal prototype to avoid an error. */
17179 /* We use char because int might match the return type of a gcc2
17180 builtin and then its argument prototype would still apply. */
17182 /* The GNU C library defines this for functions which it implements
17183 to always fail with ENOSYS. Some functions are actually named
17184 something starting with __ and the normal name is an alias. */
17185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17188 char (*f) () = $ac_func;
17197 return f != $ac_func;
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204 (eval $ac_link) 2>conftest.er1
17206 grep -v '^ *+' conftest.er1 >conftest.err
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -z "$ac_c_werror_flag"
17212 || test ! -s conftest.err'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; } &&
17218 { ac_try='test -s conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 eval "$as_ac_var=yes"
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 eval "$as_ac_var=no"
17231 rm -f conftest.err conftest.$ac_objext \
17232 conftest$ac_exeext conftest.$ac_ext
17234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17245 # If resolver functions are not in libc check for -lnsl or -lresolv.
17246 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17247 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17248 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
17258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17259 #define gethostbyname_r innocuous_gethostbyname_r
17261 /* System header to define __stub macros and hopefully few prototypes,
17262 which can conflict with char gethostbyname_r (); below.
17263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17264 <limits.h> exists even on freestanding compilers. */
17267 # include <limits.h>
17269 # include <assert.h>
17272 #undef gethostbyname_r
17274 /* Override any gcc2 internal prototype to avoid an error. */
17279 /* We use char because int might match the return type of a gcc2
17280 builtin and then its argument prototype would still apply. */
17281 char gethostbyname_r ();
17282 /* The GNU C library defines this for functions which it implements
17283 to always fail with ENOSYS. Some functions are actually named
17284 something starting with __ and the normal name is an alias. */
17285 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
17288 char (*f) () = gethostbyname_r;
17297 return f != gethostbyname_r;
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304 (eval $ac_link) 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -z "$ac_c_werror_flag"
17312 || test ! -s conftest.err'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest$ac_exeext'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 ac_cv_func_gethostbyname_r=yes
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 ac_cv_func_gethostbyname_r=no
17331 rm -f conftest.err conftest.$ac_objext \
17332 conftest$ac_exeext conftest.$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
17335 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
17336 if test $ac_cv_func_gethostbyname_r = yes; then
17337 echo "$as_me:$LINENO: result: using libc's resolver" >&5
17338 echo "${ECHO_T}using libc's resolver" >&6
17341 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
17342 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
17343 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 ac_check_lib_save_LIBS=$LIBS
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17355 /* Override any gcc2 internal prototype to avoid an error. */
17359 /* We use char because int might match the return type of a gcc2
17360 builtin and then its argument prototype would still apply. */
17361 char gethostbyname_r ();
17365 gethostbyname_r ();
17370 rm -f conftest.$ac_objext conftest$ac_exeext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372 (eval $ac_link) 2>conftest.er1
17374 grep -v '^ *+' conftest.er1 >conftest.err
17376 cat conftest.err >&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try='test -z "$ac_c_werror_flag"
17380 || test ! -s conftest.err'
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; }; then
17392 ac_cv_lib_nsl_gethostbyname_r=yes
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17397 ac_cv_lib_nsl_gethostbyname_r=no
17399 rm -f conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17401 LIBS=$ac_check_lib_save_LIBS
17403 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
17404 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
17405 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_LIBNSL 1
17415 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
17416 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
17417 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 ac_check_lib_save_LIBS=$LIBS
17421 LIBS="-lresolv $LIBS"
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17429 /* Override any gcc2 internal prototype to avoid an error. */
17433 /* We use char because int might match the return type of a gcc2
17434 builtin and then its argument prototype would still apply. */
17435 char gethostbyname_r ();
17439 gethostbyname_r ();
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446 (eval $ac_link) 2>conftest.er1
17448 grep -v '^ *+' conftest.er1 >conftest.err
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_lib_resolv_gethostbyname_r=yes
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_cv_lib_resolv_gethostbyname_r=no
17473 rm -f conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17475 LIBS=$ac_check_lib_save_LIBS
17477 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
17478 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
17479 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
17480 cat >>confdefs.h <<_ACEOF
17481 #define HAVE_LIBRESOLV 1
17484 LIBS="-lresolv $LIBS"
17492 # Find where sockets are (especially for Solaris)
17493 echo "$as_me:$LINENO: checking for socket" >&5
17494 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17495 if test "${ac_cv_func_socket+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17506 #define socket innocuous_socket
17508 /* System header to define __stub macros and hopefully few prototypes,
17509 which can conflict with char socket (); below.
17510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17511 <limits.h> exists even on freestanding compilers. */
17514 # include <limits.h>
17516 # include <assert.h>
17521 /* Override any gcc2 internal prototype to avoid an error. */
17526 /* We use char because int might match the return type of a gcc2
17527 builtin and then its argument prototype would still apply. */
17529 /* The GNU C library defines this for functions which it implements
17530 to always fail with ENOSYS. Some functions are actually named
17531 something starting with __ and the normal name is an alias. */
17532 #if defined (__stub_socket) || defined (__stub___socket)
17535 char (*f) () = socket;
17544 return f != socket;
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17551 (eval $ac_link) 2>conftest.er1
17553 grep -v '^ *+' conftest.er1 >conftest.err
17555 cat conftest.err >&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } &&
17558 { ac_try='test -z "$ac_c_werror_flag"
17559 || test ! -s conftest.err'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest$ac_exeext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 ac_cv_func_socket=yes
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ac_cv_func_socket=no
17578 rm -f conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17581 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17582 echo "${ECHO_T}$ac_cv_func_socket" >&6
17583 if test $ac_cv_func_socket = yes; then
17584 echo "$as_me:$LINENO: result: using libc's socket" >&5
17585 echo "${ECHO_T}using libc's socket" >&6
17588 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17589 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
17590 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 ac_check_lib_save_LIBS=$LIBS
17594 LIBS="-lxnet $LIBS"
17595 cat >conftest.$ac_ext <<_ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17602 /* Override any gcc2 internal prototype to avoid an error. */
17606 /* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest$ac_exeext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_lib_xnet_socket=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_lib_xnet_socket=no
17646 rm -f conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17648 LIBS=$ac_check_lib_save_LIBS
17650 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17651 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
17652 if test $ac_cv_lib_xnet_socket = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654 #define HAVE_LIBXNET 1
17657 LIBS="-lxnet $LIBS"
17662 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17663 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
17664 if test "${ac_cv_lib_socket_socket+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 ac_check_lib_save_LIBS=$LIBS
17668 LIBS="-lsocket $LIBS"
17669 cat >conftest.$ac_ext <<_ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17676 /* Override any gcc2 internal prototype to avoid an error. */
17680 /* We use char because int might match the return type of a gcc2
17681 builtin and then its argument prototype would still apply. */
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17693 (eval $ac_link) 2>conftest.er1
17695 grep -v '^ *+' conftest.er1 >conftest.err
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -z "$ac_c_werror_flag"
17701 || test ! -s conftest.err'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest$ac_exeext'
17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709 (eval $ac_try) 2>&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; }; then
17713 ac_cv_lib_socket_socket=yes
17715 echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17718 ac_cv_lib_socket_socket=no
17720 rm -f conftest.err conftest.$ac_objext \
17721 conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17724 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17725 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
17726 if test $ac_cv_lib_socket_socket = yes; then
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_LIBSOCKET 1
17731 LIBS="-lsocket $LIBS"
17736 echo "$as_me:$LINENO: checking for socket in -linet" >&5
17737 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
17738 if test "${ac_cv_lib_inet_socket+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 ac_check_lib_save_LIBS=$LIBS
17742 LIBS="-linet $LIBS"
17743 cat >conftest.$ac_ext <<_ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17750 /* Override any gcc2 internal prototype to avoid an error. */
17754 /* We use char because int might match the return type of a gcc2
17755 builtin and then its argument prototype would still apply. */
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17767 (eval $ac_link) 2>conftest.er1
17769 grep -v '^ *+' conftest.er1 >conftest.err
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag"
17775 || test ! -s conftest.err'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; } &&
17781 { ac_try='test -s conftest$ac_exeext'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 ac_cv_lib_inet_socket=yes
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 ac_cv_lib_inet_socket=no
17794 rm -f conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
17796 LIBS=$ac_check_lib_save_LIBS
17798 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17799 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
17800 if test $ac_cv_lib_inet_socket = yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define HAVE_LIBINET 1
17805 LIBS="-linet $LIBS"
17813 for ac_func in inet_pton
17815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17816 echo "$as_me:$LINENO: checking for $ac_func" >&5
17817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17818 if eval "test \"\${$as_ac_var+set}\" = set"; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 cat >conftest.$ac_ext <<_ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17829 #define $ac_func innocuous_$ac_func
17831 /* System header to define __stub macros and hopefully few prototypes,
17832 which can conflict with char $ac_func (); below.
17833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17834 <limits.h> exists even on freestanding compilers. */
17837 # include <limits.h>
17839 # include <assert.h>
17844 /* Override any gcc2 internal prototype to avoid an error. */
17849 /* We use char because int might match the return type of a gcc2
17850 builtin and then its argument prototype would still apply. */
17852 /* The GNU C library defines this for functions which it implements
17853 to always fail with ENOSYS. Some functions are actually named
17854 something starting with __ and the normal name is an alias. */
17855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17858 char (*f) () = $ac_func;
17867 return f != $ac_func;
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17874 (eval $ac_link) 2>conftest.er1
17876 grep -v '^ *+' conftest.er1 >conftest.err
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } &&
17881 { ac_try='test -z "$ac_c_werror_flag"
17882 || test ! -s conftest.err'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; } &&
17888 { ac_try='test -s conftest$ac_exeext'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 eval "$as_ac_var=yes"
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 eval "$as_ac_var=no"
17901 rm -f conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext conftest.$ac_ext
17904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17906 if test `eval echo '${'$as_ac_var'}'` = yes; then
17907 cat >>confdefs.h <<_ACEOF
17908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17910 cat >>confdefs.h <<\_ACEOF
17911 #define HAVE_INET_PTON 1
17918 for ac_func in inet_ntop
17920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921 echo "$as_me:$LINENO: checking for $ac_func" >&5
17922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_var+set}\" = set"; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 cat >conftest.$ac_ext <<_ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17934 #define $ac_func innocuous_$ac_func
17936 /* System header to define __stub macros and hopefully few prototypes,
17937 which can conflict with char $ac_func (); below.
17938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939 <limits.h> exists even on freestanding compilers. */
17942 # include <limits.h>
17944 # include <assert.h>
17949 /* Override any gcc2 internal prototype to avoid an error. */
17954 /* We use char because int might match the return type of a gcc2
17955 builtin and then its argument prototype would still apply. */
17957 /* The GNU C library defines this for functions which it implements
17958 to always fail with ENOSYS. Some functions are actually named
17959 something starting with __ and the normal name is an alias. */
17960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17963 char (*f) () = $ac_func;
17972 return f != $ac_func;
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17979 (eval $ac_link) 2>conftest.er1
17981 grep -v '^ *+' conftest.er1 >conftest.err
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
17986 { ac_try='test -z "$ac_c_werror_flag"
17987 || test ! -s conftest.err'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest$ac_exeext'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
17999 eval "$as_ac_var=yes"
18001 echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18004 eval "$as_ac_var=no"
18006 rm -f conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18011 if test `eval echo '${'$as_ac_var'}'` = yes; then
18012 cat >>confdefs.h <<_ACEOF
18013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18015 cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_INET_NTOP 1
18023 for ac_func in gethostbyname2
18025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18026 echo "$as_me:$LINENO: checking for $ac_func" >&5
18027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18028 if eval "test \"\${$as_ac_var+set}\" = set"; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 cat >conftest.$ac_ext <<_ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18039 #define $ac_func innocuous_$ac_func
18041 /* System header to define __stub macros and hopefully few prototypes,
18042 which can conflict with char $ac_func (); below.
18043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18044 <limits.h> exists even on freestanding compilers. */
18047 # include <limits.h>
18049 # include <assert.h>
18054 /* Override any gcc2 internal prototype to avoid an error. */
18059 /* We use char because int might match the return type of a gcc2
18060 builtin and then its argument prototype would still apply. */
18062 /* The GNU C library defines this for functions which it implements
18063 to always fail with ENOSYS. Some functions are actually named
18064 something starting with __ and the normal name is an alias. */
18065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18068 char (*f) () = $ac_func;
18077 return f != $ac_func;
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>conftest.er1
18086 grep -v '^ *+' conftest.er1 >conftest.err
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest$ac_exeext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 eval "$as_ac_var=yes"
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 eval "$as_ac_var=no"
18111 rm -f conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18116 if test `eval echo '${'$as_ac_var'}'` = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18120 cat >>confdefs.h <<\_ACEOF
18121 #define HAVE_GETHOSTBYNAME2 1
18128 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18129 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18130 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 cat >conftest.$ac_ext <<_ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 #include <sys/socket.h>
18143 struct sockaddr s; s.sa_len;
18148 rm -f conftest.$ac_objext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150 (eval $ac_compile) 2>conftest.er1
18152 grep -v '^ *+' conftest.er1 >conftest.err
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
18157 { ac_try='test -z "$ac_c_werror_flag"
18158 || test ! -s conftest.err'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } &&
18164 { ac_try='test -s conftest.$ac_objext'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_struct_sockaddr_sa_len=yes
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_cv_struct_sockaddr_sa_len=no
18177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18179 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18180 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18182 if test $ac_cv_struct_sockaddr_sa_len = yes; then
18184 cat >>confdefs.h <<\_ACEOF
18185 #define HAVE_SA_LEN 1
18191 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18192 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18193 if test "${ac_cv_ipv6_support+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 cat >conftest.$ac_ext <<_ACEOF
18199 cat confdefs.h >>conftest.$ac_ext
18200 cat >>conftest.$ac_ext <<_ACEOF
18201 /* end confdefs.h. */
18202 #include <sys/types.h>
18203 #include <sys/socket.h>
18204 #include <netinet/in.h>
18208 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216 (eval $ac_link) 2>conftest.er1
18218 grep -v '^ *+' conftest.er1 >conftest.err
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
18223 { ac_try='test -z "$ac_c_werror_flag"
18224 || test ! -s conftest.err'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } &&
18230 { ac_try='test -s conftest$ac_exeext'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_cv_ipv6_support=yes
18238 echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18241 ac_cv_ipv6_support=no
18243 rm -f conftest.err conftest.$ac_objext \
18244 conftest$ac_exeext conftest.$ac_ext
18246 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18247 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18249 if test "$ac_cv_ipv6_support" = yes; then
18251 cat >>confdefs.h <<\_ACEOF
18252 #define HAVE_IPV6 1
18260 for ac_func in strftime
18262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18263 echo "$as_me:$LINENO: checking for $ac_func" >&5
18264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18265 if eval "test \"\${$as_ac_var+set}\" = set"; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 cat >conftest.$ac_ext <<_ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18276 #define $ac_func innocuous_$ac_func
18278 /* System header to define __stub macros and hopefully few prototypes,
18279 which can conflict with char $ac_func (); below.
18280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18281 <limits.h> exists even on freestanding compilers. */
18284 # include <limits.h>
18286 # include <assert.h>
18291 /* Override any gcc2 internal prototype to avoid an error. */
18296 /* We use char because int might match the return type of a gcc2
18297 builtin and then its argument prototype would still apply. */
18299 /* The GNU C library defines this for functions which it implements
18300 to always fail with ENOSYS. Some functions are actually named
18301 something starting with __ and the normal name is an alias. */
18302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18305 char (*f) () = $ac_func;
18314 return f != $ac_func;
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18321 (eval $ac_link) 2>conftest.er1
18323 grep -v '^ *+' conftest.er1 >conftest.err
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -z "$ac_c_werror_flag"
18329 || test ! -s conftest.err'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 eval "$as_ac_var=yes"
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 eval "$as_ac_var=no"
18348 rm -f conftest.err conftest.$ac_objext \
18349 conftest$ac_exeext conftest.$ac_ext
18351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18353 if test `eval echo '${'$as_ac_var'}'` = yes; then
18354 cat >>confdefs.h <<_ACEOF
18355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18359 # strftime is in -lintl on SCO UNIX.
18360 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18361 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18362 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18365 ac_check_lib_save_LIBS=$LIBS
18366 LIBS="-lintl $LIBS"
18367 cat >conftest.$ac_ext <<_ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18374 /* Override any gcc2 internal prototype to avoid an error. */
18378 /* We use char because int might match the return type of a gcc2
18379 builtin and then its argument prototype would still apply. */
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18391 (eval $ac_link) 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag"
18399 || test ! -s conftest.err'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest$ac_exeext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
18411 ac_cv_lib_intl_strftime=yes
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 ac_cv_lib_intl_strftime=no
18418 rm -f conftest.err conftest.$ac_objext \
18419 conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18422 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18423 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18424 if test $ac_cv_lib_intl_strftime = yes; then
18425 cat >>confdefs.h <<\_ACEOF
18426 #define HAVE_STRFTIME 1
18429 LIBS="-lintl $LIBS"
18436 for ac_func in vprintf
18438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18439 echo "$as_me:$LINENO: checking for $ac_func" >&5
18440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18441 if eval "test \"\${$as_ac_var+set}\" = set"; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 cat >conftest.$ac_ext <<_ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18452 #define $ac_func innocuous_$ac_func
18454 /* System header to define __stub macros and hopefully few prototypes,
18455 which can conflict with char $ac_func (); below.
18456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18457 <limits.h> exists even on freestanding compilers. */
18460 # include <limits.h>
18462 # include <assert.h>
18467 /* Override any gcc2 internal prototype to avoid an error. */
18472 /* We use char because int might match the return type of a gcc2
18473 builtin and then its argument prototype would still apply. */
18475 /* The GNU C library defines this for functions which it implements
18476 to always fail with ENOSYS. Some functions are actually named
18477 something starting with __ and the normal name is an alias. */
18478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18481 char (*f) () = $ac_func;
18490 return f != $ac_func;
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18497 (eval $ac_link) 2>conftest.er1
18499 grep -v '^ *+' conftest.er1 >conftest.err
18501 cat conftest.err >&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
18504 { ac_try='test -z "$ac_c_werror_flag"
18505 || test ! -s conftest.err'
18506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507 (eval $ac_try) 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; } &&
18511 { ac_try='test -s conftest$ac_exeext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 eval "$as_ac_var=yes"
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 eval "$as_ac_var=no"
18524 rm -f conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18529 if test `eval echo '${'$as_ac_var'}'` = yes; then
18530 cat >>confdefs.h <<_ACEOF
18531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18534 echo "$as_me:$LINENO: checking for _doprnt" >&5
18535 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
18536 if test "${ac_cv_func__doprnt+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18539 cat >conftest.$ac_ext <<_ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
18546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18547 #define _doprnt innocuous__doprnt
18549 /* System header to define __stub macros and hopefully few prototypes,
18550 which can conflict with char _doprnt (); below.
18551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552 <limits.h> exists even on freestanding compilers. */
18555 # include <limits.h>
18557 # include <assert.h>
18562 /* Override any gcc2 internal prototype to avoid an error. */
18567 /* We use char because int might match the return type of a gcc2
18568 builtin and then its argument prototype would still apply. */
18570 /* The GNU C library defines this for functions which it implements
18571 to always fail with ENOSYS. Some functions are actually named
18572 something starting with __ and the normal name is an alias. */
18573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
18576 char (*f) () = _doprnt;
18585 return f != _doprnt;
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592 (eval $ac_link) 2>conftest.er1
18594 grep -v '^ *+' conftest.er1 >conftest.err
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_c_werror_flag"
18600 || test ! -s conftest.err'
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; } &&
18606 { ac_try='test -s conftest$ac_exeext'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18612 ac_cv_func__doprnt=yes
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_cv_func__doprnt=no
18619 rm -f conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18622 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
18623 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
18624 if test $ac_cv_func__doprnt = yes; then
18626 cat >>confdefs.h <<\_ACEOF
18627 #define HAVE_DOPRNT 1
18636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18637 # for constant arguments. Useless!
18638 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18639 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18640 if test "${ac_cv_working_alloca_h+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 cat >conftest.$ac_ext <<_ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18649 #include <alloca.h>
18653 char *p = (char *) alloca (2 * sizeof (int));
18658 rm -f conftest.$ac_objext conftest$ac_exeext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18660 (eval $ac_link) 2>conftest.er1
18662 grep -v '^ *+' conftest.er1 >conftest.err
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try='test -z "$ac_c_werror_flag"
18668 || test ! -s conftest.err'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_cv_working_alloca_h=yes
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18685 ac_cv_working_alloca_h=no
18687 rm -f conftest.err conftest.$ac_objext \
18688 conftest$ac_exeext conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18691 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18692 if test $ac_cv_working_alloca_h = yes; then
18694 cat >>confdefs.h <<\_ACEOF
18695 #define HAVE_ALLOCA_H 1
18700 echo "$as_me:$LINENO: checking for alloca" >&5
18701 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18702 if test "${ac_cv_func_alloca_works+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 cat >conftest.$ac_ext <<_ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18712 # define alloca __builtin_alloca
18715 # include <malloc.h>
18716 # define alloca _alloca
18719 # include <alloca.h>
18724 # ifndef alloca /* predefined by HP cc +Olibcalls */
18735 char *p = (char *) alloca (1);
18740 rm -f conftest.$ac_objext conftest$ac_exeext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18742 (eval $ac_link) 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag"
18750 || test ! -s conftest.err'
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest$ac_exeext'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762 ac_cv_func_alloca_works=yes
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18767 ac_cv_func_alloca_works=no
18769 rm -f conftest.err conftest.$ac_objext \
18770 conftest$ac_exeext conftest.$ac_ext
18772 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18773 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18775 if test $ac_cv_func_alloca_works = yes; then
18777 cat >>confdefs.h <<\_ACEOF
18778 #define HAVE_ALLOCA 1
18782 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18783 # that cause trouble. Some versions do not even contain alloca or
18784 # contain a buggy version. If you still want to use their alloca,
18785 # use ar to extract alloca.o from them instead of compiling alloca.c.
18787 ALLOCA=alloca.$ac_objext
18789 cat >>confdefs.h <<\_ACEOF
18794 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18795 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18796 if test "${ac_cv_os_cray+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 cat >conftest.$ac_ext <<_ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 #if defined(CRAY) && ! defined(CRAY2)
18812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18813 $EGREP "webecray" >/dev/null 2>&1; then
18821 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18822 echo "${ECHO_T}$ac_cv_os_cray" >&6
18823 if test $ac_cv_os_cray = yes; then
18824 for ac_func in _getb67 GETB67 getb67; do
18825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18826 echo "$as_me:$LINENO: checking for $ac_func" >&5
18827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18828 if eval "test \"\${$as_ac_var+set}\" = set"; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18839 #define $ac_func innocuous_$ac_func
18841 /* System header to define __stub macros and hopefully few prototypes,
18842 which can conflict with char $ac_func (); below.
18843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18844 <limits.h> exists even on freestanding compilers. */
18847 # include <limits.h>
18849 # include <assert.h>
18854 /* Override any gcc2 internal prototype to avoid an error. */
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18862 /* The GNU C library defines this for functions which it implements
18863 to always fail with ENOSYS. Some functions are actually named
18864 something starting with __ and the normal name is an alias. */
18865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18868 char (*f) () = $ac_func;
18877 return f != $ac_func;
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884 (eval $ac_link) 2>conftest.er1
18886 grep -v '^ *+' conftest.er1 >conftest.err
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag"
18892 || test ! -s conftest.err'
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); }; } &&
18898 { ac_try='test -s conftest$ac_exeext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 eval "$as_ac_var=yes"
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 eval "$as_ac_var=no"
18911 rm -f conftest.err conftest.$ac_objext \
18912 conftest$ac_exeext conftest.$ac_ext
18914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18916 if test `eval echo '${'$as_ac_var'}'` = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define CRAY_STACKSEG_END $ac_func
18928 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18929 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18930 if test "${ac_cv_c_stack_direction+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 if test "$cross_compiling" = yes; then
18934 ac_cv_c_stack_direction=0
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18943 find_stack_direction ()
18945 static char *addr = 0;
18950 return find_stack_direction ();
18953 return (&dummy > addr) ? 1 : -1;
18959 exit (find_stack_direction () < 0);
18962 rm -f conftest$ac_exeext
18963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964 (eval $ac_link) 2>&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_cv_c_stack_direction=1
18975 echo "$as_me: program exited with status $ac_status" >&5
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18979 ( exit $ac_status )
18980 ac_cv_c_stack_direction=-1
18982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18985 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18986 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18988 cat >>confdefs.h <<_ACEOF
18989 #define STACK_DIRECTION $ac_cv_c_stack_direction
18995 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
18996 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
18997 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
18998 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 ac_check_lib_save_LIBS=$LIBS
19003 cat >conftest.$ac_ext <<_ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19010 /* Override any gcc2 internal prototype to avoid an error. */
19014 /* We use char because int might match the return type of a gcc2
19015 builtin and then its argument prototype would still apply. */
19025 rm -f conftest.$ac_objext conftest$ac_exeext
19026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19027 (eval $ac_link) 2>conftest.er1
19029 grep -v '^ *+' conftest.er1 >conftest.err
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
19034 { ac_try='test -z "$ac_c_werror_flag"
19035 || test ! -s conftest.err'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; } &&
19041 { ac_try='test -s conftest$ac_exeext'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 ac_cv_lib_sun_getmntent=yes
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ac_cv_lib_sun_getmntent=no
19054 rm -f conftest.err conftest.$ac_objext \
19055 conftest$ac_exeext conftest.$ac_ext
19056 LIBS=$ac_check_lib_save_LIBS
19058 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19059 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19060 if test $ac_cv_lib_sun_getmntent = yes; then
19063 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19064 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19065 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 ac_check_lib_save_LIBS=$LIBS
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19077 /* Override any gcc2 internal prototype to avoid an error. */
19081 /* We use char because int might match the return type of a gcc2
19082 builtin and then its argument prototype would still apply. */
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094 (eval $ac_link) 2>conftest.er1
19096 grep -v '^ *+' conftest.er1 >conftest.err
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
19101 { ac_try='test -z "$ac_c_werror_flag"
19102 || test ! -s conftest.err'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest$ac_exeext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_cv_lib_seq_getmntent=yes
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ac_cv_lib_seq_getmntent=no
19121 rm -f conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19125 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19126 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19127 if test $ac_cv_lib_seq_getmntent = yes; then
19130 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19131 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19132 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 ac_check_lib_save_LIBS=$LIBS
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19144 /* Override any gcc2 internal prototype to avoid an error. */
19148 /* We use char because int might match the return type of a gcc2
19149 builtin and then its argument prototype would still apply. */
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19161 (eval $ac_link) 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest$ac_exeext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 ac_cv_lib_gen_getmntent=yes
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_cv_lib_gen_getmntent=no
19188 rm -f conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19192 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19193 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19194 if test $ac_cv_lib_gen_getmntent = yes; then
19203 for ac_func in getmntent
19205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19206 echo "$as_me:$LINENO: checking for $ac_func" >&5
19207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19208 if eval "test \"\${$as_ac_var+set}\" = set"; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 cat >conftest.$ac_ext <<_ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h. */
19217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19219 #define $ac_func innocuous_$ac_func
19221 /* System header to define __stub macros and hopefully few prototypes,
19222 which can conflict with char $ac_func (); below.
19223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19224 <limits.h> exists even on freestanding compilers. */
19227 # include <limits.h>
19229 # include <assert.h>
19234 /* Override any gcc2 internal prototype to avoid an error. */
19239 /* We use char because int might match the return type of a gcc2
19240 builtin and then its argument prototype would still apply. */
19242 /* The GNU C library defines this for functions which it implements
19243 to always fail with ENOSYS. Some functions are actually named
19244 something starting with __ and the normal name is an alias. */
19245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19248 char (*f) () = $ac_func;
19257 return f != $ac_func;
19262 rm -f conftest.$ac_objext conftest$ac_exeext
19263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19264 (eval $ac_link) 2>conftest.er1
19266 grep -v '^ *+' conftest.er1 >conftest.err
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } &&
19271 { ac_try='test -z "$ac_c_werror_flag"
19272 || test ! -s conftest.err'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try='test -s conftest$ac_exeext'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 eval "$as_ac_var=yes"
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 eval "$as_ac_var=no"
19291 rm -f conftest.err conftest.$ac_objext \
19292 conftest$ac_exeext conftest.$ac_ext
19294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19296 if test `eval echo '${'$as_ac_var'}'` = yes; then
19297 cat >>confdefs.h <<_ACEOF
19298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19305 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19306 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19307 if test "${ac_cv_func_closedir_void+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19310 if test "$cross_compiling" = yes; then
19311 ac_cv_func_closedir_void=yes
19313 cat >conftest.$ac_ext <<_ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h. */
19319 $ac_includes_default
19320 #include <$ac_header_dirent>
19321 #ifndef __cplusplus
19328 exit (closedir (opendir (".")) != 0);
19333 rm -f conftest$ac_exeext
19334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19335 (eval $ac_link) 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_func_closedir_void=no
19346 echo "$as_me: program exited with status $ac_status" >&5
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ( exit $ac_status )
19351 ac_cv_func_closedir_void=yes
19353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19356 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19357 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19358 if test $ac_cv_func_closedir_void = yes; then
19360 cat >>confdefs.h <<\_ACEOF
19361 #define CLOSEDIR_VOID 1
19366 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19367 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19368 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19369 echo $ECHO_N "(cached) $ECHO_C" >&6
19371 if test "$cross_compiling" = yes; then
19372 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19373 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19374 { (exit 1); exit 1; }; }
19376 cat >conftest.$ac_ext <<_ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19383 # include <unistd.h>
19389 /* If this system has a BSD-style setpgrp which takes arguments,
19390 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19391 exit successfully. */
19392 exit (setpgrp (1,1) == -1 ? 0 : 1);
19397 rm -f conftest$ac_exeext
19398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19399 (eval $ac_link) 2>&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 ac_cv_func_setpgrp_void=no
19410 echo "$as_me: program exited with status $ac_status" >&5
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19414 ( exit $ac_status )
19415 ac_cv_func_setpgrp_void=yes
19417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19420 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19421 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19422 if test $ac_cv_func_setpgrp_void = yes; then
19424 cat >>confdefs.h <<\_ACEOF
19425 #define SETPGRP_VOID 1
19429 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
19430 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
19431 if test "${ac_cv_func_fnmatch_works+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 # Some versions of Solaris, SCO, and the GNU C Library
19435 # have a broken or incompatible fnmatch.
19436 # So we run a test program. If we are cross-compiling, take no chance.
19437 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
19438 if test "$cross_compiling" = yes; then
19439 ac_cv_func_fnmatch_works=cross
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 #include <fnmatch.h>
19448 # define y(a, b, c) (fnmatch (a, b, c) == 0)
19449 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
19455 (!(y ("a*", "abc", 0)
19456 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19457 && y ("a\\\\bc", "abc", 0)
19458 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19459 && y ("*x", ".x", 0)
19460 && n ("*x", ".x", FNM_PERIOD)
19466 rm -f conftest$ac_exeext
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468 (eval $ac_link) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477 ac_cv_func_fnmatch_works=yes
19479 echo "$as_me: program exited with status $ac_status" >&5
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ( exit $ac_status )
19484 ac_cv_func_fnmatch_works=no
19486 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19489 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
19490 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
19491 if test $ac_cv_func_fnmatch_works = yes; then
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_FNMATCH 1
19503 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
19504 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
19505 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 ac_check_lib_save_LIBS=$LIBS
19509 LIBS="-lxpg4 $LIBS"
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19517 /* Override any gcc2 internal prototype to avoid an error. */
19521 /* We use char because int might match the return type of a gcc2
19522 builtin and then its argument prototype would still apply. */
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19534 (eval $ac_link) 2>conftest.er1
19536 grep -v '^ *+' conftest.er1 >conftest.err
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest$ac_exeext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_cv_lib_xpg4_setlocale=yes
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19559 ac_cv_lib_xpg4_setlocale=no
19561 rm -f conftest.err conftest.$ac_objext \
19562 conftest$ac_exeext conftest.$ac_ext
19563 LIBS=$ac_check_lib_save_LIBS
19565 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
19566 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
19567 if test $ac_cv_lib_xpg4_setlocale = yes; then
19568 LIBS="$LIBS -lxpg4"
19574 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
19575 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
19576 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 ac_check_lib_save_LIBS=$LIBS
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19588 /* Override any gcc2 internal prototype to avoid an error. */
19592 /* We use char because int might match the return type of a gcc2
19593 builtin and then its argument prototype would still apply. */
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605 (eval $ac_link) 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try='test -s conftest$ac_exeext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_lib_sun_getpwnam=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_lib_sun_getpwnam=no
19632 rm -f conftest.err conftest.$ac_objext \
19633 conftest$ac_exeext conftest.$ac_ext
19634 LIBS=$ac_check_lib_save_LIBS
19636 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
19637 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
19638 if test $ac_cv_lib_sun_getpwnam = yes; then
19639 cat >>confdefs.h <<_ACEOF
19640 #define HAVE_LIBSUN 1
19649 for ac_header in zlib.h
19651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19653 echo "$as_me:$LINENO: checking for $ac_header" >&5
19654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19661 # Is the header compilable?
19662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 $ac_includes_default
19671 #include <$ac_header>
19673 rm -f conftest.$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675 (eval $ac_compile) 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
19682 { ac_try='test -z "$ac_c_werror_flag"
19683 || test ! -s conftest.err'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 ac_header_compiler=yes
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19700 ac_header_compiler=no
19702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19704 echo "${ECHO_T}$ac_header_compiler" >&6
19706 # Is the header present?
19707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 #include <$ac_header>
19717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19720 grep -v '^ *+' conftest.er1 >conftest.err
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } >/dev/null; then
19725 if test -s conftest.err; then
19726 ac_cpp_err=$ac_c_preproc_warn_flag
19727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19734 if test -z "$ac_cpp_err"; then
19735 ac_header_preproc=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_header_preproc=no
19742 rm -f conftest.err conftest.$ac_ext
19743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19744 echo "${ECHO_T}$ac_header_preproc" >&6
19746 # So? What about this header?
19747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19753 ac_header_preproc=yes
19756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19770 ## ------------------------------------------ ##
19771 ## Report this to the AC_PACKAGE_NAME lists. ##
19772 ## ------------------------------------------ ##
19775 sed "s/^/$as_me: WARNING: /" >&2
19778 echo "$as_me:$LINENO: checking for $ac_header" >&5
19779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 eval "$as_ac_Header=\$ac_header_preproc"
19785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19790 cat >>confdefs.h <<_ACEOF
19791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19798 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19799 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19800 if test "${ac_cv_lib_z_deflate+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS=$LIBS
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any gcc2 internal prototype to avoid an error. */
19816 /* We use char because int might match the return type of a gcc2
19817 builtin and then its argument prototype would still apply. */
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19829 (eval $ac_link) 2>conftest.er1
19831 grep -v '^ *+' conftest.er1 >conftest.err
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -z "$ac_c_werror_flag"
19837 || test ! -s conftest.err'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest$ac_exeext'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_lib_z_deflate=yes
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_cv_lib_z_deflate=no
19856 rm -f conftest.err conftest.$ac_objext \
19857 conftest$ac_exeext conftest.$ac_ext
19858 LIBS=$ac_check_lib_save_LIBS
19860 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19861 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19862 if test $ac_cv_lib_z_deflate = yes; then
19867 if test x$FDLIBS = x-lz; then
19868 cat >>confdefs.h <<\_ACEOF
19869 #define HAVE_LIBZ 1
19875 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19876 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
19877 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
19878 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
19882 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
19884 # Is the header compilable?
19885 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
19886 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 $ac_includes_default
19894 #include <sys/acl.h>
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898 (eval $ac_compile) 2>conftest.er1
19900 grep -v '^ *+' conftest.er1 >conftest.err
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
19905 { ac_try='test -z "$ac_c_werror_flag"
19906 || test ! -s conftest.err'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 ac_header_compiler=yes
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ac_header_compiler=no
19925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19927 echo "${ECHO_T}$ac_header_compiler" >&6
19929 # Is the header present?
19930 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
19931 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
19932 cat >conftest.$ac_ext <<_ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 #include <sys/acl.h>
19940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19943 grep -v '^ *+' conftest.er1 >conftest.err
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } >/dev/null; then
19948 if test -s conftest.err; then
19949 ac_cpp_err=$ac_c_preproc_warn_flag
19950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19957 if test -z "$ac_cpp_err"; then
19958 ac_header_preproc=yes
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 ac_header_preproc=no
19965 rm -f conftest.err conftest.$ac_ext
19966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19967 echo "${ECHO_T}$ac_header_preproc" >&6
19969 # So? What about this header?
19970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19972 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19973 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19974 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
19975 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
19976 ac_header_preproc=yes
19979 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
19980 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
19982 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
19984 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
19986 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
19988 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
19990 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
19993 ## ------------------------------------------ ##
19994 ## Report this to the AC_PACKAGE_NAME lists. ##
19995 ## ------------------------------------------ ##
19998 sed "s/^/$as_me: WARNING: /" >&2
20001 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20002 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20003 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 ac_cv_header_sys_acl_h=$ac_header_preproc
20008 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20009 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20014 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20015 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20016 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 ac_check_lib_save_LIBS=$LIBS
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any gcc2 internal prototype to avoid an error. */
20032 /* We use char because int might match the return type of a gcc2
20033 builtin and then its argument prototype would still apply. */
20034 char acl_get_file ();
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20045 (eval $ac_link) 2>conftest.er1
20047 grep -v '^ *+' conftest.er1 >conftest.err
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
20052 { ac_try='test -z "$ac_c_werror_flag"
20053 || test ! -s conftest.err'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest$ac_exeext'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_cv_lib_acl_acl_get_file=yes
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 ac_cv_lib_acl_acl_get_file=no
20072 rm -f conftest.err conftest.$ac_objext \
20073 conftest$ac_exeext conftest.$ac_ext
20074 LIBS=$ac_check_lib_save_LIBS
20076 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20077 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20078 if test $ac_cv_lib_acl_acl_get_file = yes; then
20079 FDLIBS="-lacl $FDLIBS"
20083 if test $ac_cv_lib_acl_acl_get_file = yes; then
20084 cat >>confdefs.h <<\_ACEOF
20092 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20093 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20094 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 ac_check_lib_save_LIBS=$LIBS
20098 LIBS="-lpthread $LIBS"
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20106 /* Override any gcc2 internal prototype to avoid an error. */
20110 /* We use char because int might match the return type of a gcc2
20111 builtin and then its argument prototype would still apply. */
20112 char pthread_create ();
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20123 (eval $ac_link) 2>conftest.er1
20125 grep -v '^ *+' conftest.er1 >conftest.err
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
20130 { ac_try='test -z "$ac_c_werror_flag"
20131 || test ! -s conftest.err'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ac_cv_lib_pthread_pthread_create=yes
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_cv_lib_pthread_pthread_create=no
20150 rm -f conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20154 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20155 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20156 if test $ac_cv_lib_pthread_pthread_create = yes; then
20157 PTHREAD_LIB="-lpthread"
20159 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20160 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20161 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 ac_check_lib_save_LIBS=$LIBS
20165 LIBS="-lpthreads $LIBS"
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20173 /* Override any gcc2 internal prototype to avoid an error. */
20177 /* We use char because int might match the return type of a gcc2
20178 builtin and then its argument prototype would still apply. */
20179 char pthread_create ();
20188 rm -f conftest.$ac_objext conftest$ac_exeext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20190 (eval $ac_link) 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
20197 { ac_try='test -z "$ac_c_werror_flag"
20198 || test ! -s conftest.err'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; } &&
20204 { ac_try='test -s conftest$ac_exeext'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_cv_lib_pthreads_pthread_create=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_cv_lib_pthreads_pthread_create=no
20217 rm -f conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20221 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20222 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20223 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20224 PTHREAD_LIB="-lpthreads"
20226 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20227 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20228 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 ac_check_lib_save_LIBS=$LIBS
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20240 /* Override any gcc2 internal prototype to avoid an error. */
20244 /* We use char because int might match the return type of a gcc2
20245 builtin and then its argument prototype would still apply. */
20246 char pthread_create ();
20255 rm -f conftest.$ac_objext conftest$ac_exeext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20257 (eval $ac_link) 2>conftest.er1
20259 grep -v '^ *+' conftest.er1 >conftest.err
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest$ac_exeext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_cv_lib_c_r_pthread_create=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_cv_lib_c_r_pthread_create=no
20284 rm -f conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20288 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20289 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20290 if test $ac_cv_lib_c_r_pthread_create = yes; then
20291 PTHREAD_LIB="-lc_r"
20293 echo "$as_me:$LINENO: checking for pthread_create" >&5
20294 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20295 if test "${ac_cv_func_pthread_create+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 cat >conftest.$ac_ext <<_ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20304 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20306 #define pthread_create innocuous_pthread_create
20308 /* System header to define __stub macros and hopefully few prototypes,
20309 which can conflict with char pthread_create (); below.
20310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20311 <limits.h> exists even on freestanding compilers. */
20314 # include <limits.h>
20316 # include <assert.h>
20319 #undef pthread_create
20321 /* Override any gcc2 internal prototype to avoid an error. */
20326 /* We use char because int might match the return type of a gcc2
20327 builtin and then its argument prototype would still apply. */
20328 char pthread_create ();
20329 /* The GNU C library defines this for functions which it implements
20330 to always fail with ENOSYS. Some functions are actually named
20331 something starting with __ and the normal name is an alias. */
20332 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20335 char (*f) () = pthread_create;
20344 return f != pthread_create;
20349 rm -f conftest.$ac_objext conftest$ac_exeext
20350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20351 (eval $ac_link) 2>conftest.er1
20353 grep -v '^ *+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
20358 { ac_try='test -z "$ac_c_werror_flag"
20359 || test ! -s conftest.err'
20360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361 (eval $ac_try) 2>&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; } &&
20365 { ac_try='test -s conftest$ac_exeext'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; }; then
20371 ac_cv_func_pthread_create=yes
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20376 ac_cv_func_pthread_create=no
20378 rm -f conftest.err conftest.$ac_objext \
20379 conftest$ac_exeext conftest.$ac_ext
20381 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20382 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20395 cat >>confdefs.h <<\_ACEOF
20401 CFLAGS=${CFLAGS--O}
20402 LDFLAGS=${LDFLAGS--O}
20403 DB_LIBS="${SQL_LFLAGS}"
20405 CPPFLAGS="$CPPFLAGS"
20430 # Finally we set appropriate distribution specific
20431 # variables and defaults
20433 # PFILES are platform specific files
20434 PFILES="platforms/Makefile"
20438 hostname=`uname -n | cut -d '.' -f 1`
20439 case "$DISTNAME" in
20442 PSCMD="ps -e -o pid,comm"
20443 PFILES="${PFILES} \
20444 platforms/aix/Makefile"
20445 TAPEDRIVE="/dev/rmt0.1"
20449 PTHREAD_LIB="-lpthread -lexc"
20450 if test "${CC}" = "gcc" ; then
20457 TAPEDRIVE="/dev/nrmt0"
20460 DISTVER=`uname -a |awk '{print $3}'`
20461 TAPEDRIVE="/dev/nrmt0"
20462 PTHREAD_LIB="-pthread"
20463 CFLAGS="${CFLAGS} -pthread"
20464 PSCMD="ps -x -o pid,command"
20467 PFILES="${PFILES} \
20468 platforms/bsdi/Makefile \
20469 platforms/bsdi/bacula-fd \
20470 platforms/bsdi/bacula-sd \
20471 platforms/bsdi/bacula-dir"
20472 largefile_support="yes"
20475 DISTVER=`uname -a |awk '{print $3}'`
20476 TAPEDRIVE="/dev/nrst0"
20478 WCFLAGS="-mwindows"
20479 WLDFLAGS="-mwindows"
20483 TAPEDRIVE="/dev/nst0"
20484 PSCMD="ps -e -o pid,command"
20486 PFILES="${PFILES} \
20487 platforms/darwin/Makefile"
20490 DISTVER=`cat /etc/debian_version`
20491 TAPEDRIVE="/dev/nrst0"
20492 PSCMD="ps -e -o pid,command"
20495 DISTVER=`uname -a |awk '{print $3}'`
20496 VER=`echo $DISTVER | cut -c 1`
20497 if test x$VER = x4 ; then
20498 PTHREAD_LIB="-pthread"
20499 CFLAGS="${CFLAGS} -pthread"
20503 TAPEDRIVE="/dev/nrsa0"
20504 PSCMD="ps -x -o pid,command"
20505 PFILES="${PFILES} \
20506 platforms/freebsd/Makefile \
20507 platforms/freebsd/bacula-fd \
20508 platforms/freebsd/bacula-sd \
20509 platforms/freebsd/bacula-dir"
20510 largefile_support="yes"
20513 PSCMD="UNIX95=1 ps -e -o pid,comm"
20514 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
20516 TAPEDRIVE="/dev/rmt/0hnb"
20520 TAPEDRIVE="/dev/rmt/0cbn"
20521 PSCMD="ps -e -o pid,comm"
20522 PFILES="${PFILES} \
20523 platforms/irix/Makefile \
20524 platforms/irix/bacula-fd \
20525 platforms/irix/bacula-sd \
20526 platforms/irix/bacula-dir"
20529 DISTVER=`uname -a |awk '{print $3}'`
20532 TAPEDRIVE="/dev/nrst0"
20533 PSCMD="ps -a -o pid,command"
20534 PTHREAD_LIB="-pthread"
20535 CFLAGS="${CFLAGS} -pthread"
20538 DISTVER=`uname -a |awk '{print $3}'`
20541 TAPEDRIVE="/dev/nrst0"
20542 PSCMD="ps -a -o pid,command"
20543 PTHREAD_LIB="-pthread"
20544 CFLAGS="${CFLAGS} -pthread"
20545 PFILES="${PFILES} \
20546 platforms/openbsd/Makefile \
20547 platforms/openbsd/bacula-fd \
20548 platforms/openbsd/bacula-sd \
20549 platforms/openbsd/bacula-dir"
20552 if test -f /etc/whitebox-release ; then
20553 f=/etc/whitebox-release
20555 f=/etc/redhat-release
20557 if test `cat $f | grep release |\
20558 cut -f 3 -d ' '`x = "Enterprise"x ; then
20559 DISTVER="Enterprise "`cat $f | grep release |\
20562 DISTVER=`cat /etc/redhat-release | grep release |\
20565 TAPEDRIVE="/dev/nst0"
20566 PSCMD="ps -e -o pid,command"
20567 PFILES="${PFILES} \
20568 platforms/redhat/Makefile \
20569 platforms/redhat/bacula-fd \
20570 platforms/redhat/bacula-sd \
20571 platforms/redhat/bacula-dir \
20572 platforms/redhat/bacula.spec \
20574 hostname=`hostname -s`
20577 DISTVER=`cat /etc/mandrake-release | grep release |\
20579 TAPEDRIVE="/dev/nst0"
20580 PSCMD="ps -e -o pid,command"
20581 PFILES="${PFILES} \
20582 platforms/mandrake/Makefile \
20583 platforms/mandrake/bacula-fd \
20584 platforms/mandrake/bacula-sd \
20585 platforms/mandrake/bacula-dir \
20586 platforms/mandrake/bacula.spec \
20590 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
20591 TAPEDRIVE="/dev/nst0"
20592 PSCMD="ps -e -o pid,command"
20593 PFILES="${PFILES} \
20594 platforms/gentoo/Makefile \
20595 platforms/gentoo/bacula-fd \
20596 platforms/gentoo/bacula-sd \
20597 platforms/gentoo/bacula-dir"
20600 DISTVER=`cat /etc/slackware-version`
20601 TAPEDRIVE="/dev/nst0"
20602 PSCMD="ps -e -o pid,command"
20603 PFILES="${PFILES} \
20604 platforms/slackware/Makefile \
20605 platforms/slackware/rc.bacula-fd \
20606 platforms/slackware/rc.bacula-sd \
20607 platforms/slackware/rc.bacula-dir\
20608 platforms/slackware/functions.bacula"
20612 TAPEDRIVE="/dev/rmt/0cbn"
20613 PSCMD="ps -e -o pid,comm"
20614 PFILES="${PFILES} \
20615 platforms/solaris/Makefile \
20616 platforms/solaris/bacula-fd \
20617 platforms/solaris/bacula-sd \
20618 platforms/solaris/bacula-dir"
20619 if test x$DISTVER = x5.6 ; then
20620 cat >>confdefs.h <<\_ACEOF
20621 #define HAVE_OLD_SOCKOPT 1
20627 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
20629 TAPEDRIVE="/dev/nst0"
20630 PSCMD="ps -e -o pid,command"
20631 PFILES="${PFILES} \
20632 platforms/suse/Makefile \
20633 platforms/suse/bacula-fd \
20634 platforms/suse/bacula-sd \
20635 platforms/suse/bacula-dir \
20636 platforms/suse/bacula \
20637 platforms/suse/bacula.spec"
20642 TAPEDRIVE="/dev/nst0"
20643 PSCMD="ps -e -o pid,command"
20644 PFILES="${PFILES} \
20645 platforms/suse/Makefile \
20646 platforms/suse/bacula-fd \
20647 platforms/suse/bacula-sd \
20648 platforms/suse/bacula-dir"
20652 TAPEDRIVE="/dev/nst0"
20655 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
20661 LIBS="$PTHREAD_LIB $LIBS"
20663 cat >>confdefs.h <<_ACEOF
20667 cat >>confdefs.h <<_ACEOF
20678 MCOMMON=./autoconf/Make.common
20681 if test "x${subsysdir}" = "x${sbindir}" ; then
20684 echo "You have set both --sbindir and --with-subsys-dir"
20685 echo " equal to: ${subsysdir} "
20686 echo "This is not permitted. Please reconfigure."
20688 echo "Aborting configuration ..."
20694 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/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 doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.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/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 $PFILES"
20695 ac_config_commands="$ac_config_commands default"
20696 cat >confcache <<\_ACEOF
20697 # This file is a shell script that caches the results of configure
20698 # tests run on this system so they can be shared between configure
20699 # scripts and configure runs, see configure's option --config-cache.
20700 # It is not useful on other systems. If it contains results you don't
20701 # want to keep, you may remove or edit it.
20703 # config.status only pays attention to the cache file if you give it
20704 # the --recheck option to rerun configure.
20706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20708 # following values.
20712 # The following way of writing the cache mishandles newlines in values,
20713 # but we know of no workaround that is simple, portable, and efficient.
20714 # So, don't put newlines in cache variables' values.
20715 # Ultrix sh set writes to stderr and can't be redirected directly,
20716 # and sets the high bit in the cache file unless we assign to the vars.
20719 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20721 # `set' does not quote correctly, so add quotes (double-quote
20722 # substitution turns \\\\ into \\, and sed turns \\ into \).
20725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20728 # `set' quotes correctly as required by POSIX, so do not add quotes.
20730 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20739 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20741 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20742 if test -w $cache_file; then
20743 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20744 cat confcache >$cache_file
20746 echo "not updating unwritable cache $cache_file"
20751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20752 # Let make expand exec_prefix.
20753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20755 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20756 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20757 # trailing colons and then remove the whole line if VPATH becomes empty
20758 # (actually we leave an empty line to preserve line numbers).
20759 if test "x$srcdir" = x.; then
20760 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20761 s/:*\$(srcdir):*/:/;
20762 s/:*\${srcdir}:*/:/;
20764 s/^\([^=]*=[ ]*\):*/\1/;
20770 DEFS=-DHAVE_CONFIG_H
20774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20775 # 1. Remove the extension, and $U if already installed.
20776 ac_i=`echo "$ac_i" |
20777 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20779 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20780 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20782 LIBOBJS=$ac_libobjs
20784 LTLIBOBJS=$ac_ltlibobjs
20788 : ${CONFIG_STATUS=./config.status}
20789 ac_clean_files_save=$ac_clean_files
20790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20791 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20792 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20793 cat >$CONFIG_STATUS <<_ACEOF
20795 # Generated by $as_me.
20796 # Run this file to recreate the current configuration.
20797 # Compiler output produced by configure, useful for debugging
20798 # configure, is in config.log if it exists.
20801 ac_cs_recheck=false
20803 SHELL=\${CONFIG_SHELL-$SHELL}
20806 cat >>$CONFIG_STATUS <<\_ACEOF
20807 ## --------------------- ##
20808 ## M4sh Initialization. ##
20809 ## --------------------- ##
20811 # Be Bourne compatible
20812 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20815 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20816 # is contrary to our usage. Disable this feature.
20817 alias -g '${1+"$@"}'='"$@"'
20818 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20821 DUALCASE=1; export DUALCASE # for MKS sh
20823 # Support unset when possible.
20824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20831 # Work around bugs in pre-3.0 UWIN ksh.
20832 $as_unset ENV MAIL MAILPATH
20839 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20840 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20841 LC_TELEPHONE LC_TIME
20843 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20844 eval $as_var=C; export $as_var
20850 # Required to use basename.
20851 if expr a : '\(a\)' >/dev/null 2>&1; then
20857 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20858 as_basename=basename
20864 # Name of the executable.
20865 as_me=`$as_basename "$0" ||
20866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20867 X"$0" : 'X\(//\)$' \| \
20868 X"$0" : 'X\(/\)$' \| \
20869 . : '\(.\)' 2>/dev/null ||
20871 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20872 /^X\/\(\/\/\)$/{ s//\1/; q; }
20873 /^X\/\(\/\).*/{ s//\1/; q; }
20877 # PATH needs CR, and LINENO needs CR and PATH.
20878 # Avoid depending upon Character Ranges.
20879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20882 as_cr_digits='0123456789'
20883 as_cr_alnum=$as_cr_Letters$as_cr_digits
20885 # The user is always right.
20886 if test "${PATH_SEPARATOR+set}" != set; then
20887 echo "#! /bin/sh" >conf$$.sh
20888 echo "exit 0" >>conf$$.sh
20890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20899 as_lineno_1=$LINENO
20900 as_lineno_2=$LINENO
20901 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20902 test "x$as_lineno_1" != "x$as_lineno_2" &&
20903 test "x$as_lineno_3" = "x$as_lineno_2" || {
20904 # Find who we are. Look in the path if we contain no path at all
20907 *[\\/]* ) as_myself=$0 ;;
20908 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20909 for as_dir in $PATH
20912 test -z "$as_dir" && as_dir=.
20913 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20918 # We did not find ourselves, most probably we were run as `sh COMMAND'
20919 # in which case we are not to be found in the path.
20920 if test "x$as_myself" = x; then
20923 if test ! -f "$as_myself"; then
20924 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20925 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20926 { (exit 1); exit 1; }; }
20928 case $CONFIG_SHELL in
20930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20931 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20934 test -z "$as_dir" && as_dir=.
20935 for as_base in sh bash ksh sh5; do
20938 if ("$as_dir/$as_base" -c '
20939 as_lineno_1=$LINENO
20940 as_lineno_2=$LINENO
20941 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20942 test "x$as_lineno_1" != "x$as_lineno_2" &&
20943 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20944 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20945 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20946 CONFIG_SHELL=$as_dir/$as_base
20947 export CONFIG_SHELL
20948 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20957 # uniformly replaced by the line number. The first 'sed' inserts a
20958 # line-number line before each line; the second 'sed' does the real
20959 # work. The second script uses 'N' to pair each line-number line
20960 # with the numbered line, and appends trailing '-' during
20961 # substitution so that $LINENO is not a special case at line end.
20962 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20963 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20964 sed '=' <$as_myself |
20969 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20972 s,^['$as_cr_digits']*\n,,
20973 ' >$as_me.lineno &&
20974 chmod +x $as_me.lineno ||
20975 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20976 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20977 { (exit 1); exit 1; }; }
20979 # Don't try to exec as it changes $[0], causing all sort of problems
20980 # (the dirname of $[0] is not the place where we might find the
20981 # original and so on. Autoconf is especially sensible to this).
20983 # Exit status is that of the last command.
20988 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20989 *c*,-n*) ECHO_N= ECHO_C='
20991 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20992 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20995 if expr a : '\(a\)' >/dev/null 2>&1; then
21001 rm -f conf$$ conf$$.exe conf$$.file
21003 if ln -s conf$$.file conf$$ 2>/dev/null; then
21004 # We could just check for DJGPP; but this test a) works b) is more generic
21005 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21006 if test -f conf$$.exe; then
21007 # Don't use ln at all; we don't have any links
21012 elif ln conf$$.file conf$$ 2>/dev/null; then
21017 rm -f conf$$ conf$$.exe conf$$.file
21019 if mkdir -p . 2>/dev/null; then
21022 test -d ./-p && rmdir ./-p
21026 as_executable_p="test -f"
21028 # Sed expression to map a string onto a valid CPP name.
21029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21031 # Sed expression to map a string onto a valid variable name.
21032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21036 # We need space, tab and new line, in precisely that order.
21046 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21047 # report actual input values of CONFIG_FILES etc. instead of their
21048 # values after options handling. Logging --version etc. is OK.
21052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21053 ## Running $as_me. ##
21058 This file was extended by $as_me, which was
21059 generated by GNU Autoconf 2.59. Invocation command line was
21061 CONFIG_FILES = $CONFIG_FILES
21062 CONFIG_HEADERS = $CONFIG_HEADERS
21063 CONFIG_LINKS = $CONFIG_LINKS
21064 CONFIG_COMMANDS = $CONFIG_COMMANDS
21068 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21072 # Files that config.status was made for.
21073 if test -n "$ac_config_files"; then
21074 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21077 if test -n "$ac_config_headers"; then
21078 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21081 if test -n "$ac_config_links"; then
21082 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21085 if test -n "$ac_config_commands"; then
21086 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21089 cat >>$CONFIG_STATUS <<\_ACEOF
21092 \`$as_me' instantiates files from templates according to the
21093 current configuration.
21095 Usage: $0 [OPTIONS] [FILE]...
21097 -h, --help print this help, then exit
21098 -V, --version print version number, then exit
21099 -q, --quiet do not print progress messages
21100 -d, --debug don't remove temporary files
21101 --recheck update $as_me by reconfiguring in the same conditions
21102 --file=FILE[:TEMPLATE]
21103 instantiate the configuration file FILE
21104 --header=FILE[:TEMPLATE]
21105 instantiate the configuration header FILE
21107 Configuration files:
21110 Configuration headers:
21113 Configuration commands:
21116 Report bugs to <bug-autoconf@gnu.org>."
21119 cat >>$CONFIG_STATUS <<_ACEOF
21122 configured by $0, generated by GNU Autoconf 2.59,
21123 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21125 Copyright (C) 2003 Free Software Foundation, Inc.
21126 This config.status script is free software; the Free Software Foundation
21127 gives unlimited permission to copy, distribute and modify it."
21132 cat >>$CONFIG_STATUS <<\_ACEOF
21133 # If no file are specified by the user, then we need to provide default
21134 # value. By we need to know if files were specified by the user.
21140 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21141 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21149 *) # This is not an option, so the user has probably given explicit
21152 ac_need_defaults=false;;
21156 # Handling of the options.
21158 cat >>$CONFIG_STATUS <<\_ACEOF
21159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21161 --version | --vers* | -V )
21162 echo "$ac_cs_version"; exit 0 ;;
21164 # Conflict between --help and --header
21165 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21166 Try \`$0 --help' for more information." >&5
21167 echo "$as_me: error: ambiguous option: $1
21168 Try \`$0 --help' for more information." >&2;}
21169 { (exit 1); exit 1; }; };;
21170 --help | --hel | -h )
21171 echo "$ac_cs_usage"; exit 0 ;;
21172 --debug | --d* | -d )
21174 --file | --fil | --fi | --f )
21176 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21177 ac_need_defaults=false;;
21178 --header | --heade | --head | --hea )
21180 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21181 ac_need_defaults=false;;
21182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21186 # This is an error.
21187 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21188 Try \`$0 --help' for more information." >&5
21189 echo "$as_me: error: unrecognized option: $1
21190 Try \`$0 --help' for more information." >&2;}
21191 { (exit 1); exit 1; }; } ;;
21193 *) ac_config_targets="$ac_config_targets $1" ;;
21199 ac_configure_extra_args=
21201 if $ac_cs_silent; then
21203 ac_configure_extra_args="$ac_configure_extra_args --silent"
21207 cat >>$CONFIG_STATUS <<_ACEOF
21208 if \$ac_cs_recheck; then
21209 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21210 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21219 cat >>$CONFIG_STATUS <<\_ACEOF
21220 for ac_config_target in $ac_config_targets
21222 case "$ac_config_target" in
21223 # Handling of arguments.
21224 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21225 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21226 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21227 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21228 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21229 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21230 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21231 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21232 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21233 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21234 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21235 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21236 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21237 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21238 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21239 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21240 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21241 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21242 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21243 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21244 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21245 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21246 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21247 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21248 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21249 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21250 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21251 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21252 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21253 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21254 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21255 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21256 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21257 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21258 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21259 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21260 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21261 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21262 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21263 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21264 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21265 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21266 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21267 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21268 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21269 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21270 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21271 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21272 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21273 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21274 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21275 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21276 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21277 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21278 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21279 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21280 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21281 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21282 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21283 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21284 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21285 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21286 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21287 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21288 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21289 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21290 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21291 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21292 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21293 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21294 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21295 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21296 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21297 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21298 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21299 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21300 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21301 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21302 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21303 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21304 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21305 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21306 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21307 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21308 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21309 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21310 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21311 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21312 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21313 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21314 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21317 { (exit 1); exit 1; }; };;
21321 # If the user did not use the arguments to specify the items to instantiate,
21322 # then the envvar interface is used. Set only those that are not.
21323 # We use the long form for the default assignment because of an extremely
21324 # bizarre bug on SunOS 4.1.3.
21325 if $ac_need_defaults; then
21326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21331 # Have a temporary directory for convenience. Make it in the build tree
21332 # simply because there is no reason to put it here, and in addition,
21333 # creating and moving files from /tmp can sometimes cause problems.
21334 # Create a temporary directory, and hook for its removal unless debugging.
21337 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21338 trap '{ (exit 1); exit 1; }' 1 2 13 15
21341 # Create a (secure) tmp directory for tmp files.
21344 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21345 test -n "$tmp" && test -d "$tmp"
21348 tmp=./confstat$$-$RANDOM
21349 (umask 077 && mkdir $tmp)
21352 echo "$me: cannot create a temporary directory in ." >&2
21353 { (exit 1); exit 1; }
21358 cat >>$CONFIG_STATUS <<_ACEOF
21361 # CONFIG_FILES section.
21364 # No need to generate the scripts if there are no CONFIG_FILES.
21365 # This happens for instance when ./config.status config.h
21366 if test -n "\$CONFIG_FILES"; then
21367 # Protect against being on the right side of a sed subst in config.status.
21368 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21369 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21370 s,@SHELL@,$SHELL,;t t
21371 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21372 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21373 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21374 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21375 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21376 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21377 s,@exec_prefix@,$exec_prefix,;t t
21378 s,@prefix@,$prefix,;t t
21379 s,@program_transform_name@,$program_transform_name,;t t
21380 s,@bindir@,$bindir,;t t
21381 s,@sbindir@,$sbindir,;t t
21382 s,@libexecdir@,$libexecdir,;t t
21383 s,@datadir@,$datadir,;t t
21384 s,@sysconfdir@,$sysconfdir,;t t
21385 s,@sharedstatedir@,$sharedstatedir,;t t
21386 s,@localstatedir@,$localstatedir,;t t
21387 s,@libdir@,$libdir,;t t
21388 s,@includedir@,$includedir,;t t
21389 s,@oldincludedir@,$oldincludedir,;t t
21390 s,@infodir@,$infodir,;t t
21391 s,@mandir@,$mandir,;t t
21392 s,@build_alias@,$build_alias,;t t
21393 s,@host_alias@,$host_alias,;t t
21394 s,@target_alias@,$target_alias,;t t
21395 s,@DEFS@,$DEFS,;t t
21396 s,@ECHO_C@,$ECHO_C,;t t
21397 s,@ECHO_N@,$ECHO_N,;t t
21398 s,@ECHO_T@,$ECHO_T,;t t
21399 s,@LIBS@,$LIBS,;t t
21400 s,@BUILD_DIR@,$BUILD_DIR,;t t
21401 s,@TRUEPRG@,$TRUEPRG,;t t
21402 s,@FALSEPRG@,$FALSEPRG,;t t
21403 s,@VERSION@,$VERSION,;t t
21404 s,@DATE@,$DATE,;t t
21405 s,@LSMDATE@,$LSMDATE,;t t
21407 s,@CFLAGS@,$CFLAGS,;t t
21408 s,@LDFLAGS@,$LDFLAGS,;t t
21409 s,@CPPFLAGS@,$CPPFLAGS,;t t
21410 s,@ac_ct_CC@,$ac_ct_CC,;t t
21411 s,@EXEEXT@,$EXEEXT,;t t
21412 s,@OBJEXT@,$OBJEXT,;t t
21414 s,@CXXFLAGS@,$CXXFLAGS,;t t
21415 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21417 s,@EGREP@,$EGREP,;t t
21418 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21419 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21420 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21421 s,@RANLIB@,$RANLIB,;t t
21422 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21428 s,@ECHO@,$ECHO,;t t
21432 s,@OPENSSL@,$OPENSSL,;t t
21434 s,@PKGCONFIG@,$PKGCONFIG,;t t
21435 s,@WXCONFIG@,$WXCONFIG,;t t
21436 s,@ARFLAGS@,$ARFLAGS,;t t
21437 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21438 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21439 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21440 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21441 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21442 s,@build@,$build,;t t
21443 s,@build_cpu@,$build_cpu,;t t
21444 s,@build_vendor@,$build_vendor,;t t
21445 s,@build_os@,$build_os,;t t
21446 s,@host@,$host,;t t
21447 s,@host_cpu@,$host_cpu,;t t
21448 s,@host_vendor@,$host_vendor,;t t
21449 s,@host_os@,$host_os,;t t
21450 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21451 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21452 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21453 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21454 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21455 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21456 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21457 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21458 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21459 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21460 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21461 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21462 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21463 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21464 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21465 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21466 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21467 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21468 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21469 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21470 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21471 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21472 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21473 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21474 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21475 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21476 s,@MSGFMT@,$MSGFMT,;t t
21477 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21478 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21479 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21480 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
21481 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
21482 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
21483 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
21484 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
21485 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
21486 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
21487 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
21488 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
21489 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
21490 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
21491 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
21492 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
21493 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
21494 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
21495 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
21496 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
21497 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
21498 s,@GNOME_DIR@,$GNOME_DIR,;t t
21499 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
21500 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
21501 s,@WX_DIR@,$WX_DIR,;t t
21502 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
21503 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
21504 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
21505 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
21506 s,@STATIC_FD@,$STATIC_FD,;t t
21507 s,@STATIC_SD@,$STATIC_SD,;t t
21508 s,@STATIC_DIR@,$STATIC_DIR,;t t
21509 s,@STATIC_CONS@,$STATIC_CONS,;t t
21510 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
21511 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
21512 s,@ALL_DIRS@,$ALL_DIRS,;t t
21513 s,@CONS_INC@,$CONS_INC,;t t
21514 s,@CONS_OBJ@,$CONS_OBJ,;t t
21515 s,@CONS_SRC@,$CONS_SRC,;t t
21516 s,@CONS_LIBS@,$CONS_LIBS,;t t
21517 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
21518 s,@READLINE_SRC@,$READLINE_SRC,;t t
21519 s,@working_dir@,$working_dir,;t t
21520 s,@scriptdir@,$scriptdir,;t t
21521 s,@dump_email@,$dump_email,;t t
21522 s,@job_email@,$job_email,;t t
21523 s,@smtp_host@,$smtp_host,;t t
21524 s,@piddir@,$piddir,;t t
21525 s,@subsysdir@,$subsysdir,;t t
21526 s,@baseport@,$baseport,;t t
21527 s,@dir_port@,$dir_port,;t t
21528 s,@fd_port@,$fd_port,;t t
21529 s,@sd_port@,$sd_port,;t t
21530 s,@dir_password@,$dir_password,;t t
21531 s,@fd_password@,$fd_password,;t t
21532 s,@sd_password@,$sd_password,;t t
21533 s,@dir_user@,$dir_user,;t t
21534 s,@dir_group@,$dir_group,;t t
21535 s,@sd_user@,$sd_user,;t t
21536 s,@sd_group@,$sd_group,;t t
21537 s,@fd_user@,$fd_user,;t t
21538 s,@fd_group@,$fd_group,;t t
21539 s,@SBINPERM@,$SBINPERM,;t t
21540 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
21541 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
21542 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
21543 s,@cats@,$cats,;t t
21544 s,@DB_NAME@,$DB_NAME,;t t
21545 s,@GETCONF@,$GETCONF,;t t
21546 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
21547 s,@X_CFLAGS@,$X_CFLAGS,;t t
21548 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21549 s,@X_LIBS@,$X_LIBS,;t t
21550 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21551 s,@LIBOBJS@,$LIBOBJS,;t t
21552 s,@ALLOCA@,$ALLOCA,;t t
21553 s,@FDLIBS@,$FDLIBS,;t t
21554 s,@DEBUG@,$DEBUG,;t t
21555 s,@DINCLUDE@,$DINCLUDE,;t t
21556 s,@DLIB@,$DLIB,;t t
21557 s,@DB_LIBS@,$DB_LIBS,;t t
21558 s,@WCFLAGS@,$WCFLAGS,;t t
21559 s,@WLDFLAGS@,$WLDFLAGS,;t t
21560 s,@OBJLIST@,$OBJLIST,;t t
21561 s,@hostname@,$hostname,;t t
21562 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
21563 s,@PSCMD@,$PSCMD,;t t
21564 s,@WIN32@,$WIN32,;t t
21565 s,@MACOSX@,$MACOSX,;t t
21566 s,@DISTNAME@,$DISTNAME,;t t
21567 s,@DISTVER@,$DISTVER,;t t
21568 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21569 /@MCOMMON@/r $MCOMMON
21575 cat >>$CONFIG_STATUS <<\_ACEOF
21576 # Split the substitutions into bite-sized pieces for seds with
21577 # small command number limits, like on Digital OSF/1 and HP-UX.
21578 ac_max_sed_lines=48
21579 ac_sed_frag=1 # Number of current file.
21580 ac_beg=1 # First line for current file.
21581 ac_end=$ac_max_sed_lines # Line after last line for current file.
21584 while $ac_more_lines; do
21585 if test $ac_beg -gt 1; then
21586 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21588 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21590 if test ! -s $tmp/subs.frag; then
21591 ac_more_lines=false
21593 # The purpose of the label and of the branching condition is to
21594 # speed up the sed processing (if there are no `@' at all, there
21595 # is no need to browse any of the substitutions).
21596 # These are the two extra sed commands mentioned above.
21598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21599 if test -z "$ac_sed_cmds"; then
21600 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21602 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21604 ac_sed_frag=`expr $ac_sed_frag + 1`
21606 ac_end=`expr $ac_end + $ac_max_sed_lines`
21609 if test -z "$ac_sed_cmds"; then
21612 fi # test -n "$CONFIG_FILES"
21615 cat >>$CONFIG_STATUS <<\_ACEOF
21616 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21617 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21619 - | *:- | *:-:* ) # input from stdin
21621 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21622 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21623 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21624 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21625 * ) ac_file_in=$ac_file.in ;;
21628 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21629 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21631 X"$ac_file" : 'X\(//\)[^/]' \| \
21632 X"$ac_file" : 'X\(//\)$' \| \
21633 X"$ac_file" : 'X\(/\)' \| \
21634 . : '\(.\)' 2>/dev/null ||
21636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21638 /^X\(\/\/\)$/{ s//\1/; q; }
21639 /^X\(\/\).*/{ s//\1/; q; }
21641 { if $as_mkdir_p; then
21646 while test ! -d "$as_dir"; do
21647 as_dirs="$as_dir $as_dirs"
21648 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21650 X"$as_dir" : 'X\(//\)[^/]' \| \
21651 X"$as_dir" : 'X\(//\)$' \| \
21652 X"$as_dir" : 'X\(/\)' \| \
21653 . : '\(.\)' 2>/dev/null ||
21655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21657 /^X\(\/\/\)$/{ s//\1/; q; }
21658 /^X\(\/\).*/{ s//\1/; q; }
21661 test ! -n "$as_dirs" || mkdir $as_dirs
21662 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21664 { (exit 1); exit 1; }; }; }
21668 if test "$ac_dir" != .; then
21669 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21670 # A "../" for each directory in $ac_dir_suffix.
21671 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21673 ac_dir_suffix= ac_top_builddir=
21677 .) # No --srcdir option. We are building in place.
21679 if test -z "$ac_top_builddir"; then
21682 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21684 [\\/]* | ?:[\\/]* ) # Absolute path.
21685 ac_srcdir=$srcdir$ac_dir_suffix;
21686 ac_top_srcdir=$srcdir ;;
21687 *) # Relative path.
21688 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21689 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21692 # Do not use `cd foo && pwd` to compute absolute paths, because
21693 # the directories may not exist.
21695 .) ac_abs_builddir="$ac_dir";;
21698 .) ac_abs_builddir=`pwd`;;
21699 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21700 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21703 case $ac_abs_builddir in
21704 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21706 case ${ac_top_builddir}. in
21707 .) ac_abs_top_builddir=$ac_abs_builddir;;
21708 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21709 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21712 case $ac_abs_builddir in
21713 .) ac_abs_srcdir=$ac_srcdir;;
21716 .) ac_abs_srcdir=$ac_abs_builddir;;
21717 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21718 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21721 case $ac_abs_builddir in
21722 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21724 case $ac_top_srcdir in
21725 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21726 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21727 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21734 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21737 if test x"$ac_file" != x-; then
21738 { echo "$as_me:$LINENO: creating $ac_file" >&5
21739 echo "$as_me: creating $ac_file" >&6;}
21742 # Let's still pretend it is `configure' which instantiates (i.e., don't
21743 # use $as_me), people would be surprised to read:
21744 # /* config.h. Generated by config.status. */
21745 if test x"$ac_file" = x-; then
21748 configure_input="$ac_file. "
21750 configure_input=$configure_input"Generated from `echo $ac_file_in |
21751 sed 's,.*/,,'` by configure."
21753 # First look for the input files in the build tree, otherwise in the
21755 ac_file_inputs=`IFS=:
21756 for f in $ac_file_in; do
21758 -) echo $tmp/stdin ;;
21760 # Absolute (can't be DOS-style, as IFS=:)
21761 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21762 echo "$as_me: error: cannot find input file: $f" >&2;}
21763 { (exit 1); exit 1; }; }
21766 if test -f "$f"; then
21769 elif test -f "$srcdir/$f"; then
21774 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21775 echo "$as_me: error: cannot find input file: $f" >&2;}
21776 { (exit 1); exit 1; }; }
21779 done` || { (exit 1); exit 1; }
21781 cat >>$CONFIG_STATUS <<_ACEOF
21785 cat >>$CONFIG_STATUS <<\_ACEOF
21787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21788 s,@configure_input@,$configure_input,;t t
21789 s,@srcdir@,$ac_srcdir,;t t
21790 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21791 s,@top_srcdir@,$ac_top_srcdir,;t t
21792 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21793 s,@builddir@,$ac_builddir,;t t
21794 s,@abs_builddir@,$ac_abs_builddir,;t t
21795 s,@top_builddir@,$ac_top_builddir,;t t
21796 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21797 s,@INSTALL@,$ac_INSTALL,;t t
21798 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21800 if test x"$ac_file" != x-; then
21801 mv $tmp/out $ac_file
21809 cat >>$CONFIG_STATUS <<\_ACEOF
21812 # CONFIG_HEADER section.
21815 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21816 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21818 # ac_d sets the value in "#define NAME VALUE" lines.
21819 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21820 ac_dB='[ ].*$,\1#\2'
21823 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21824 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21825 ac_uB='$,\1#\2define\3'
21829 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21832 - | *:- | *:-:* ) # input from stdin
21834 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21835 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21836 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21838 * ) ac_file_in=$ac_file.in ;;
21841 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21842 echo "$as_me: creating $ac_file" >&6;}
21844 # First look for the input files in the build tree, otherwise in the
21846 ac_file_inputs=`IFS=:
21847 for f in $ac_file_in; do
21849 -) echo $tmp/stdin ;;
21851 # Absolute (can't be DOS-style, as IFS=:)
21852 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21853 echo "$as_me: error: cannot find input file: $f" >&2;}
21854 { (exit 1); exit 1; }; }
21855 # Do quote $f, to prevent DOS paths from being IFS'd.
21858 if test -f "$f"; then
21861 elif test -f "$srcdir/$f"; then
21866 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21867 echo "$as_me: error: cannot find input file: $f" >&2;}
21868 { (exit 1); exit 1; }; }
21871 done` || { (exit 1); exit 1; }
21872 # Remove the trailing spaces.
21873 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21877 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21878 # `conftest.undefs', that substitutes the proper values into
21879 # config.h.in to produce config.h. The first handles `#define'
21880 # templates, and the second `#undef' templates.
21881 # And first: Protect against being on the right side of a sed subst in
21882 # config.status. Protect against being in an unquoted here document
21883 # in config.status.
21884 rm -f conftest.defines conftest.undefs
21885 # Using a here document instead of a string reduces the quoting nightmare.
21886 # Putting comments in sed scripts is not portable.
21888 # `end' is used to avoid that the second main sed command (meant for
21889 # 0-ary CPP macros) applies to n-ary macro definitions.
21890 # See the Autoconf documentation for `clear'.
21891 cat >confdef2sed.sed <<\_ACEOF
21896 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21898 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21901 # If some macros were called several times there might be several times
21902 # the same #defines, which is useless. Nevertheless, we may not want to
21903 # sort them, since we want the *last* AC-DEFINE to be honored.
21904 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21905 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21906 rm -f confdef2sed.sed
21908 # This sed command replaces #undef with comments. This is necessary, for
21909 # example, in the case of _POSIX_SOURCE, which is predefined and required
21910 # on some systems where configure will not decide to define it.
21911 cat >>conftest.undefs <<\_ACEOF
21912 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21915 # Break up conftest.defines because some shells have a limit on the size
21916 # of here documents, and old seds have small limits too (100 cmds).
21917 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21918 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21919 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21920 echo ' :' >>$CONFIG_STATUS
21921 rm -f conftest.tail
21922 while grep . conftest.defines >/dev/null
21924 # Write a limited-size here document to $tmp/defines.sed.
21925 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21926 # Speed up: don't consider the non `#define' lines.
21927 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21928 # Work around the forget-to-reset-the-flag bug.
21929 echo 't clr' >>$CONFIG_STATUS
21930 echo ': clr' >>$CONFIG_STATUS
21931 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21933 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21935 mv $tmp/out $tmp/in
21937 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21938 rm -f conftest.defines
21939 mv conftest.tail conftest.defines
21941 rm -f conftest.defines
21942 echo ' fi # grep' >>$CONFIG_STATUS
21943 echo >>$CONFIG_STATUS
21945 # Break up conftest.undefs because some shells have a limit on the size
21946 # of here documents, and old seds have small limits too (100 cmds).
21947 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21948 rm -f conftest.tail
21949 while grep . conftest.undefs >/dev/null
21951 # Write a limited-size here document to $tmp/undefs.sed.
21952 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21953 # Speed up: don't consider the non `#undef'
21954 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21955 # Work around the forget-to-reset-the-flag bug.
21956 echo 't clr' >>$CONFIG_STATUS
21957 echo ': clr' >>$CONFIG_STATUS
21958 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21960 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21962 mv $tmp/out $tmp/in
21964 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21965 rm -f conftest.undefs
21966 mv conftest.tail conftest.undefs
21968 rm -f conftest.undefs
21970 cat >>$CONFIG_STATUS <<\_ACEOF
21971 # Let's still pretend it is `configure' which instantiates (i.e., don't
21972 # use $as_me), people would be surprised to read:
21973 # /* config.h. Generated by config.status. */
21974 if test x"$ac_file" = x-; then
21975 echo "/* Generated by configure. */" >$tmp/config.h
21977 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21979 cat $tmp/in >>$tmp/config.h
21981 if test x"$ac_file" != x-; then
21982 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21983 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21984 echo "$as_me: $ac_file is unchanged" >&6;}
21986 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21988 X"$ac_file" : 'X\(//\)[^/]' \| \
21989 X"$ac_file" : 'X\(//\)$' \| \
21990 X"$ac_file" : 'X\(/\)' \| \
21991 . : '\(.\)' 2>/dev/null ||
21993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21995 /^X\(\/\/\)$/{ s//\1/; q; }
21996 /^X\(\/\).*/{ s//\1/; q; }
21998 { if $as_mkdir_p; then
22003 while test ! -d "$as_dir"; do
22004 as_dirs="$as_dir $as_dirs"
22005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22007 X"$as_dir" : 'X\(//\)[^/]' \| \
22008 X"$as_dir" : 'X\(//\)$' \| \
22009 X"$as_dir" : 'X\(/\)' \| \
22010 . : '\(.\)' 2>/dev/null ||
22012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22014 /^X\(\/\/\)$/{ s//\1/; q; }
22015 /^X\(\/\).*/{ s//\1/; q; }
22018 test ! -n "$as_dirs" || mkdir $as_dirs
22019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22021 { (exit 1); exit 1; }; }; }
22024 mv $tmp/config.h $ac_file
22028 rm -f $tmp/config.h
22032 cat >>$CONFIG_STATUS <<\_ACEOF
22035 # CONFIG_COMMANDS section.
22037 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22038 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22039 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22040 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22041 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22042 X"$ac_dest" : 'X\(//\)[^/]' \| \
22043 X"$ac_dest" : 'X\(//\)$' \| \
22044 X"$ac_dest" : 'X\(/\)' \| \
22045 . : '\(.\)' 2>/dev/null ||
22047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22049 /^X\(\/\/\)$/{ s//\1/; q; }
22050 /^X\(\/\).*/{ s//\1/; q; }
22052 { if $as_mkdir_p; then
22057 while test ! -d "$as_dir"; do
22058 as_dirs="$as_dir $as_dirs"
22059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$as_dir" : 'X\(//\)[^/]' \| \
22062 X"$as_dir" : 'X\(//\)$' \| \
22063 X"$as_dir" : 'X\(/\)' \| \
22064 . : '\(.\)' 2>/dev/null ||
22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22068 /^X\(\/\/\)$/{ s//\1/; q; }
22069 /^X\(\/\).*/{ s//\1/; q; }
22072 test ! -n "$as_dirs" || mkdir $as_dirs
22073 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22074 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22075 { (exit 1); exit 1; }; }; }
22079 if test "$ac_dir" != .; then
22080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22081 # A "../" for each directory in $ac_dir_suffix.
22082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22084 ac_dir_suffix= ac_top_builddir=
22088 .) # No --srcdir option. We are building in place.
22090 if test -z "$ac_top_builddir"; then
22093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22095 [\\/]* | ?:[\\/]* ) # Absolute path.
22096 ac_srcdir=$srcdir$ac_dir_suffix;
22097 ac_top_srcdir=$srcdir ;;
22098 *) # Relative path.
22099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22103 # Do not use `cd foo && pwd` to compute absolute paths, because
22104 # the directories may not exist.
22106 .) ac_abs_builddir="$ac_dir";;
22109 .) ac_abs_builddir=`pwd`;;
22110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22114 case $ac_abs_builddir in
22115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22117 case ${ac_top_builddir}. in
22118 .) ac_abs_top_builddir=$ac_abs_builddir;;
22119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22123 case $ac_abs_builddir in
22124 .) ac_abs_srcdir=$ac_srcdir;;
22127 .) ac_abs_srcdir=$ac_abs_builddir;;
22128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22132 case $ac_abs_builddir in
22133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22135 case $ac_top_srcdir in
22136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22143 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22144 echo "$as_me: executing $ac_dest commands" >&6;}
22146 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22152 cat >>$CONFIG_STATUS <<\_ACEOF
22154 { (exit 0); exit 0; }
22156 chmod +x $CONFIG_STATUS
22157 ac_clean_files=$ac_clean_files_save
22160 # configure is writing to config.log, and then calls config.status.
22161 # config.status does its own redirection, appending to config.log.
22162 # Unfortunately, on DOS this fails, as config.log is still kept open
22163 # by configure, so config.status won't be able to write to it; its
22164 # output is simply discarded. So we exec the FD to /dev/null,
22165 # effectively closing config.log, so it can be properly (re)opened and
22166 # appended to by config.status. When coming back to configure, we
22167 # need to make the FD available again.
22168 if test "$no_create" != yes; then
22170 ac_config_status_args=
22171 test "$silent" = yes &&
22172 ac_config_status_args="$ac_config_status_args --quiet"
22174 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22176 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22177 # would make configure fail if this is the last instruction.
22178 $ac_cs_success || { (exit 1); exit 1; }
22183 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22184 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22189 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22190 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22192 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22193 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22195 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22196 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22198 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22199 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22201 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22202 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22204 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22205 chmod 755 $c/sqlite
22208 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22209 largefile_support="yes"
22213 # A whole lot of hand springs to get the compiler version.
22214 # This is because gcc changed the output in version 3.0
22216 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22217 if test "x${CCVERSION}" = "x" ; then
22218 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22220 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22221 if test x"${CXXVERSION}" = x ; then
22222 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22225 if test "x${subsysdir}" = "x${sbindir}" ; then
22228 echo "You have set --sbindir and --with-subsys-dir"
22229 echo " both equal to: ${subsysdir} "
22230 echo " This is not permitted. Please reconfigure."
22232 echo "Aborting configuration ..."
22238 if test "x${db_name}" = "xInternal" ; then
22241 echo "You have not specified either --enable-client-only or one of the"
22242 echo " supported databases: MySQL, PostgreSQL, or SQLite".
22243 echo " This is not permitted. Please reconfigure."
22245 echo "Aborting the configuration ..."
22252 Configuration on `date`:
22254 Host: $host -- ${DISTNAME} ${DISTVER}
22255 Bacula version: ${VERSION} (${DATE})
22256 Source code location: ${srcdir}
22257 Install binaries: ${sbindir}
22258 Install config files: ${sysconfdir}
22259 Scripts directory: ${scriptdir}
22260 Working directory: ${working_dir}
22261 PID directory: ${piddir}
22262 Subsys directory: ${subsysdir}
22263 C Compiler: ${CC} ${CCVERSION}
22264 C++ Compiler: ${CXX} ${CXXVERSION}
22265 Compiler flags: ${WCFLAGS} ${CFLAGS}
22266 Linker flags: ${WLDFLAGS} ${LDFLAGS}
22268 Statically Linked Tools: ${support_static_tools}
22269 Statically Linked FD: ${support_static_fd}
22270 Statically Linked SD: ${support_static_sd}
22271 Statically Linked DIR: ${support_static_dir}
22272 Statically Linked CONS: ${support_static_cons}
22273 Database type: ${db_name}
22274 Database lib: ${DB_LIBS}
22276 Job Output Email: ${job_email}
22277 Traceback Email: ${dump_email}
22278 SMTP Host Address: ${smtp_host}
22280 Director Port: ${dir_port}
22281 File daemon Port: ${fd_port}
22282 Storage daemon Port: ${sd_port}
22284 Director User: ${dir_user}
22285 Director Group: ${dir_group}
22286 Storage Daemon User: ${sd_user}
22287 Storage DaemonGroup: ${sd_group}
22288 File Daemon User: ${fd_user}
22289 File Daemon Group: ${fd_group}
22291 SQL binaries Directory ${SQL_BINDIR}
22293 Large file support: $largefile_support
22294 Bacula conio support: ${got_conio} ${CONS_LIBS}
22295 readline support: ${got_readline} ${PRTREADLINE_SRC}
22296 TCP Wrappers support: ${TCPW_MSG}
22297 ZLIB support: ${have_zlib}
22298 enable-smartalloc: ${support_smartalloc}
22299 enable-gnome: ${support_gnome} ${gnome_version}
22300 enable-wx-console: ${support_wx_console}
22301 enable-tray-monitor: ${support_tray_monitor}
22302 client-only: ${build_client_only}
22303 ACL support: ${have_acl}
22310 # cweb support: ${got_cweb} ${CWEB_SRC}
22311 # gmp support: ${got_gmp} ${GMP_SRC}