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 mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
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-mon-dir-password=PASSWORD specify Director's password used by the monitor
895 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
896 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
897 --with-dir-user=USER specify user for Director daemon
898 --with-dir-group=GROUP specify group for Director daemon
899 --with-sd-user=USER specify user for Storage daemon
900 --with-sd-group=GROUP specify group for Storage daemon
901 --with-fd-user=USER specify user for File daemon
902 --with-fd-group=GROUP specify group for File daemon
903 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
904 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
905 base install directory, defaults to /usr/local/pgsql
907 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
908 install directory, default is to search through
909 a number of common places for the MySQL files.
911 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
912 install directory, default is to search through
913 a number of common places for the MySQL files.
915 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
916 install directory, default is to search through
917 a number of common places for the SQLite files.
918 --with-x use the X Window System
920 Some influential environment variables:
921 CC C compiler command
922 CFLAGS C compiler flags
923 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
924 nonstandard directory <lib dir>
925 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
926 headers in a nonstandard directory <include dir>
927 CXX C++ compiler command
928 CXXFLAGS C++ compiler flags
931 Use these variables to override the choices made by `configure' or to help
932 it to find libraries and programs with nonstandard names/locations.
937 if test "$ac_init_help" = "recursive"; then
938 # If there are subdirs, report their specific --help.
940 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
941 test -d $ac_dir || continue
944 if test "$ac_dir" != .; then
945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
946 # A "../" for each directory in $ac_dir_suffix.
947 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
949 ac_dir_suffix= ac_top_builddir=
953 .) # No --srcdir option. We are building in place.
955 if test -z "$ac_top_builddir"; then
958 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
960 [\\/]* | ?:[\\/]* ) # Absolute path.
961 ac_srcdir=$srcdir$ac_dir_suffix;
962 ac_top_srcdir=$srcdir ;;
964 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
965 ac_top_srcdir=$ac_top_builddir$srcdir ;;
968 # Do not use `cd foo && pwd` to compute absolute paths, because
969 # the directories may not exist.
971 .) ac_abs_builddir="$ac_dir";;
974 .) ac_abs_builddir=`pwd`;;
975 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
976 *) ac_abs_builddir=`pwd`/"$ac_dir";;
979 case $ac_abs_builddir in
980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
982 case ${ac_top_builddir}. in
983 .) ac_abs_top_builddir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
985 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
988 case $ac_abs_builddir in
989 .) ac_abs_srcdir=$ac_srcdir;;
992 .) ac_abs_srcdir=$ac_abs_builddir;;
993 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
994 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
997 case $ac_abs_builddir in
998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1000 case $ac_top_srcdir in
1001 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1003 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1008 # Check for guested configure; otherwise get Cygnus style configure.
1009 if test -f $ac_srcdir/configure.gnu; then
1011 $SHELL $ac_srcdir/configure.gnu --help=recursive
1012 elif test -f $ac_srcdir/configure; then
1014 $SHELL $ac_srcdir/configure --help=recursive
1015 elif test -f $ac_srcdir/configure.ac ||
1016 test -f $ac_srcdir/configure.in; then
1018 $ac_configure --help
1020 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1026 test -n "$ac_init_help" && exit 0
1027 if $ac_init_version; then
1030 Copyright (C) 2003 Free Software Foundation, Inc.
1031 This configure script is free software; the Free Software Foundation
1032 gives unlimited permission to copy, distribute and modify it.
1038 This file contains any messages produced by compilers while
1039 running configure, to aid debugging if configure makes a mistake.
1041 It was created by $as_me, which was
1042 generated by GNU Autoconf 2.59. Invocation command line was
1053 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1054 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1055 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1056 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1057 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1059 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1060 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1062 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1063 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1064 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1065 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1066 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1067 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1068 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1076 test -z "$as_dir" && as_dir=.
1077 echo "PATH: $as_dir"
1092 # Keep a trace of the command line.
1093 # Strip out --no-create and --no-recursion so they do not pile up.
1094 # Strip out --silent because we don't want to record it for future runs.
1095 # Also quote any args containing shell meta-characters.
1096 # Make two passes to allow for proper duplicate-argument suppression.
1101 ac_must_keep_next=false
1107 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1111 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1112 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1115 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1117 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1118 if test $ac_must_keep_next = true; then
1119 ac_must_keep_next=false # Got value, back to normal.
1122 *=* | --config-cache | -C | -disable-* | --disable-* \
1123 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1124 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1125 | -with-* | --with-* | -without-* | --without-* | --x)
1126 case "$ac_configure_args0 " in
1127 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1130 -* ) ac_must_keep_next=true ;;
1133 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1134 # Get rid of the leading space.
1140 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1141 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1143 # When interrupted or exit'd, cleanup temporary files, and complete
1144 # config.log. We remove comments because anyway the quotes in there
1145 # would cause problems or look ugly.
1146 # WARNING: Be sure not to use single quotes in there, as some shells,
1147 # such as our DU 5.0 friend, will then `close' the trap.
1148 trap 'exit_status=$?
1149 # Save into config.log some information that might help in debugging.
1154 ## ---------------- ##
1155 ## Cache variables. ##
1156 ## ---------------- ##
1159 # The following way of writing the cache mishandles newlines in values,
1162 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1165 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1170 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1177 ## ----------------- ##
1178 ## Output variables. ##
1179 ## ----------------- ##
1182 for ac_var in $ac_subst_vars
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1189 if test -n "$ac_subst_files"; then
1196 for ac_var in $ac_subst_files
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1204 if test -s confdefs.h; then
1211 sed "/^$/d" confdefs.h | sort
1214 test "$ac_signal" != 0 &&
1215 echo "$as_me: caught signal $ac_signal"
1216 echo "$as_me: exit $exit_status"
1218 rm -f core *.core &&
1219 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1222 for ac_signal in 1 2 13 15; do
1223 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1227 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1228 rm -rf conftest* confdefs.h
1229 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1232 # Predefined preprocessor variables.
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_NAME "$PACKAGE_NAME"
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_STRING "$PACKAGE_STRING"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1259 # Let the site file select an alternate cache file if it wants to.
1260 # Prefer explicitly selected file to automatically selected ones.
1261 if test -z "$CONFIG_SITE"; then
1262 if test "x$prefix" != xNONE; then
1263 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1265 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1268 for ac_site_file in $CONFIG_SITE; do
1269 if test -r "$ac_site_file"; then
1270 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1271 echo "$as_me: loading site script $ac_site_file" >&6;}
1272 sed 's/^/| /' "$ac_site_file" >&5
1277 if test -r "$cache_file"; then
1278 # Some versions of bash will fail to source /dev/null (special
1279 # files actually), so we avoid doing that.
1280 if test -f "$cache_file"; then
1281 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1282 echo "$as_me: loading cache $cache_file" >&6;}
1284 [\\/]* | ?:[\\/]* ) . $cache_file;;
1285 *) . ./$cache_file;;
1289 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1290 echo "$as_me: creating cache $cache_file" >&6;}
1294 # Check that the precious variables saved in the cache have kept the same
1296 ac_cache_corrupted=false
1297 for ac_var in `(set) 2>&1 |
1298 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1300 eval ac_new_set=\$ac_env_${ac_var}_set
1301 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1302 eval ac_new_val="\$ac_env_${ac_var}_value"
1303 case $ac_old_set,$ac_new_set in
1305 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1306 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1307 ac_cache_corrupted=: ;;
1309 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1310 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1311 ac_cache_corrupted=: ;;
1314 if test "x$ac_old_val" != "x$ac_new_val"; then
1315 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1316 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1317 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1318 echo "$as_me: former value: $ac_old_val" >&2;}
1319 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1320 echo "$as_me: current value: $ac_new_val" >&2;}
1321 ac_cache_corrupted=:
1324 # Pass precious variables to config.status.
1325 if test "$ac_new_set" = set; then
1327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1328 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1329 *) ac_arg=$ac_var=$ac_new_val ;;
1331 case " $ac_configure_args " in
1332 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1333 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1337 if $ac_cache_corrupted; then
1338 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1339 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1340 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1341 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1342 { (exit 1); exit 1; }; }
1346 ac_cpp='$CPP $CPPFLAGS'
1347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1376 if test -f $ac_dir/install-sh; then
1378 ac_install_sh="$ac_aux_dir/install-sh -c"
1380 elif test -f $ac_dir/install.sh; then
1382 ac_install_sh="$ac_aux_dir/install.sh -c"
1384 elif test -f $ac_dir/shtool; then
1386 ac_install_sh="$ac_aux_dir/shtool install -c"
1390 if test -z "$ac_aux_dir"; then
1391 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1392 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1393 { (exit 1); exit 1; }; }
1395 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1407 # Extract the first word of "$ac_prog", so it can be a program name with args.
1408 set dummy $ac_prog; ac_word=$2
1409 echo "$as_me:$LINENO: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 test -z "$as_dir" && as_dir=.
1424 for ac_exec_ext in '' $ac_executable_extensions; do
1425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1426 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436 TRUEPRG=$ac_cv_path_TRUEPRG
1438 if test -n "$TRUEPRG"; then
1439 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1440 echo "${ECHO_T}$TRUEPRG" >&6
1442 echo "$as_me:$LINENO: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1446 test -n "$TRUEPRG" && break
1448 test -n "$TRUEPRG" || TRUEPRG=":"
1450 for ac_prog in false
1452 # Extract the first word of "$ac_prog", so it can be a program name with args.
1453 set dummy $ac_prog; ac_word=$2
1454 echo "$as_me:$LINENO: checking for $ac_word" >&5
1455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 FALSEPRG=$ac_cv_path_FALSEPRG
1483 if test -n "$FALSEPRG"; then
1484 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1485 echo "${ECHO_T}$FALSEPRG" >&6
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1491 test -n "$FALSEPRG" && break
1493 test -n "$FALSEPRG" || FALSEPRG=":"
1498 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1499 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1500 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1501 echo "configuring for bacula $VERSION ($DATE)"
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1547 if test -z "$ac_cv_prog_CC"; then
1549 # Extract the first word of "gcc", so it can be a program name with args.
1550 set dummy gcc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="gcc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1589 if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1592 set dummy ${ac_tool_prefix}cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="${ac_tool_prefix}cc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1627 if test -z "$ac_cv_prog_CC"; then
1629 # Extract the first word of "cc", so it can be a program name with args.
1630 set dummy cc; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 if test -n "$ac_ct_CC"; then
1637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_ac_ct_CC="cc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1670 if test -z "$CC"; then
1671 # Extract the first word of "cc", so it can be a program name with args.
1672 set dummy cc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1690 ac_prog_rejected=yes
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 if test $ac_prog_rejected = yes; then
1701 # We found a bogon in the path, so make sure we never use it.
1702 set dummy $ac_cv_prog_CC
1704 if test $# != 0; then
1705 # We chose a different compiler from the bogus one.
1706 # However, it has the same basename, so the bogon will be chosen
1707 # first if we set CC to just the basename; use the full file name.
1709 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1724 if test -z "$CC"; then
1725 if test -n "$ac_tool_prefix"; then
1728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_CC+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 if test -n "$CC"; then
1736 ac_cv_prog_CC="$CC" # Let the user override the test.
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 for ac_exec_ext in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 if test -n "$CC"; then
1756 echo "$as_me:$LINENO: result: $CC" >&5
1757 echo "${ECHO_T}$CC" >&6
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1763 test -n "$CC" && break
1766 if test -z "$CC"; then
1770 # Extract the first word of "$ac_prog", so it can be a program name with args.
1771 set dummy $ac_prog; ac_word=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 if test -n "$ac_ct_CC"; then
1778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_ac_ct_CC="$ac_prog"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1797 if test -n "$ac_ct_CC"; then
1798 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1799 echo "${ECHO_T}$ac_ct_CC" >&6
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1805 test -n "$ac_ct_CC" && break
1814 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1815 See \`config.log' for more details." >&5
1816 echo "$as_me: error: no acceptable C compiler found in \$PATH
1817 See \`config.log' for more details." >&2;}
1818 { (exit 1); exit 1; }; }
1820 # Provide some information about the compiler.
1821 echo "$as_me:$LINENO:" \
1822 "checking for C compiler version" >&5
1823 ac_compiler=`set X $ac_compile; echo $2`
1824 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1825 (eval $ac_compiler --version </dev/null >&5) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1830 (eval $ac_compiler -v </dev/null >&5) 2>&5
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1835 (eval $ac_compiler -V </dev/null >&5) 2>&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1840 cat >conftest.$ac_ext <<_ACEOF
1843 cat confdefs.h >>conftest.$ac_ext
1844 cat >>conftest.$ac_ext <<_ACEOF
1845 /* end confdefs.h. */
1855 ac_clean_files_save=$ac_clean_files
1856 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1857 # Try to create an executable without -o first, disregard a.out.
1858 # It will help us diagnose broken compilers, and finding out an intuition
1860 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1861 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1862 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1863 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1864 (eval $ac_link_default) 2>&5
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }; then
1868 # Find the output, starting from the most likely. This scheme is
1869 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1872 # Be careful to initialize this variable, since it used to be cached.
1873 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1875 # b.out is created by i960 compilers.
1876 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1878 test -f "$ac_file" || continue
1880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1883 # This is the source file.
1886 # We found the default executable, but exeext='' is most
1890 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1891 # FIXME: I believe we export ac_cv_exeext for Libtool,
1892 # but it would be cool to find out if it's true. Does anybody
1893 # maintain Libtool? --akim.
1901 echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1905 See \`config.log' for more details." >&5
1906 echo "$as_me: error: C compiler cannot create executables
1907 See \`config.log' for more details." >&2;}
1908 { (exit 77); exit 77; }; }
1911 ac_exeext=$ac_cv_exeext
1912 echo "$as_me:$LINENO: result: $ac_file" >&5
1913 echo "${ECHO_T}$ac_file" >&6
1915 # Check the compiler produces executables we can run. If not, either
1916 # the compiler is broken, or we cross compile.
1917 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1918 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1919 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1920 # If not cross compiling, check that we can run a simple program.
1921 if test "$cross_compiling" != yes; then
1922 if { ac_try='./$ac_file'
1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1930 if test "$cross_compiling" = maybe; then
1933 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1934 If you meant to cross compile, use \`--host'.
1935 See \`config.log' for more details." >&5
1936 echo "$as_me: error: cannot run C compiled programs.
1937 If you meant to cross compile, use \`--host'.
1938 See \`config.log' for more details." >&2;}
1939 { (exit 1); exit 1; }; }
1943 echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1946 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1947 ac_clean_files=$ac_clean_files_save
1948 # Check the compiler produces executables we can run. If not, either
1949 # the compiler is broken, or we cross compile.
1950 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1951 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1952 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1953 echo "${ECHO_T}$cross_compiling" >&6
1955 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1956 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1958 (eval $ac_link) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; then
1962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1963 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1964 # work properly (i.e., refer to `conftest.exe'), while it won't with
1966 for ac_file in conftest.exe conftest conftest.*; do
1967 test -f "$ac_file" || continue
1969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1977 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1978 See \`config.log' for more details." >&5
1979 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1980 See \`config.log' for more details." >&2;}
1981 { (exit 1); exit 1; }; }
1984 rm -f conftest$ac_cv_exeext
1985 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1986 echo "${ECHO_T}$ac_cv_exeext" >&6
1988 rm -f conftest.$ac_ext
1989 EXEEXT=$ac_cv_exeext
1991 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1992 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1993 if test "${ac_cv_objext+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 cat >conftest.$ac_ext <<_ACEOF
1999 cat confdefs.h >>conftest.$ac_ext
2000 cat >>conftest.$ac_ext <<_ACEOF
2001 /* end confdefs.h. */
2011 rm -f conftest.o conftest.obj
2012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2013 (eval $ac_compile) 2>&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; then
2017 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2025 echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2029 See \`config.log' for more details." >&5
2030 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2031 See \`config.log' for more details." >&2;}
2032 { (exit 1); exit 1; }; }
2035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2037 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2038 echo "${ECHO_T}$ac_cv_objext" >&6
2039 OBJEXT=$ac_cv_objext
2041 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2042 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2043 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 cat >conftest.$ac_ext <<_ACEOF
2049 cat confdefs.h >>conftest.$ac_ext
2050 cat >>conftest.$ac_ext <<_ACEOF
2051 /* end confdefs.h. */
2064 rm -f conftest.$ac_objext
2065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066 (eval $ac_compile) 2>conftest.er1
2068 grep -v '^ *+' conftest.er1 >conftest.err
2070 cat conftest.err >&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); } &&
2073 { ac_try='test -z "$ac_c_werror_flag"
2074 || test ! -s conftest.err'
2075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; } &&
2080 { ac_try='test -s conftest.$ac_objext'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2088 echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2097 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2099 GCC=`test $ac_compiler_gnu = yes && echo yes`
2100 ac_test_CFLAGS=${CFLAGS+set}
2101 ac_save_CFLAGS=$CFLAGS
2103 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2105 if test "${ac_cv_prog_cc_g+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 cat >conftest.$ac_ext <<_ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2123 rm -f conftest.$ac_objext
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>conftest.er1
2127 grep -v '^ *+' conftest.er1 >conftest.err
2129 cat conftest.err >&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); } &&
2132 { ac_try='test -z "$ac_c_werror_flag"
2133 || test ! -s conftest.err'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; } &&
2139 { ac_try='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2147 echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2154 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2155 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2156 if test "$ac_test_CFLAGS" = set; then
2157 CFLAGS=$ac_save_CFLAGS
2158 elif test $ac_cv_prog_cc_g = yes; then
2159 if test "$GCC" = yes; then
2165 if test "$GCC" = yes; then
2171 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2172 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2173 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 ac_cv_prog_cc_stdc=no
2178 cat >conftest.$ac_ext <<_ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2186 #include <sys/types.h>
2187 #include <sys/stat.h>
2188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2189 struct buf { int x; };
2190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2191 static char *e (p, i)
2197 static char *f (char * (*g) (char **, int), char **p, ...)
2202 s = g (p, va_arg (v,int));
2207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2208 function prototypes and stuff, but not '\xHH' hex character constants.
2209 These don't provoke an error unfortunately, instead are silently treated
2210 as 'x'. The following induces an error, until -std1 is added to get
2211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2212 array size at least. It's necessary to write '\x00'==0 to get something
2213 that's true only with -std1. */
2214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2216 int test (int i, double x);
2217 struct s1 {int (*f) (int a);};
2218 struct s2 {int (*f) (double a);};
2219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2230 # Don't try gcc -ansi; that turns off useful extensions and
2231 # breaks some systems' header files.
2232 # AIX -qlanglvl=ansi
2233 # Ultrix and OSF/1 -std1
2234 # HP-UX 10.20 and later -Ae
2235 # HP-UX older versions -Aa -D_HPUX_SOURCE
2236 # SVR4 -Xc -D__EXTENSIONS__
2237 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2239 CC="$ac_save_CC $ac_arg"
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2244 grep -v '^ *+' conftest.er1 >conftest.err
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 ac_cv_prog_cc_stdc=$ac_arg
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2269 rm -f conftest.err conftest.$ac_objext
2271 rm -f conftest.$ac_ext conftest.$ac_objext
2276 case "x$ac_cv_prog_cc_stdc" in
2278 echo "$as_me:$LINENO: result: none needed" >&5
2279 echo "${ECHO_T}none needed" >&6 ;;
2281 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2282 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2283 CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 # Some people use a C++ compiler to compile C. Since we use `exit',
2287 # in C++ we need to declare it. In case someone uses the same compiler
2288 # for both compiling C and C++ we need to have the C++ compiler decide
2289 # the declaration of exit, since it's the most demanding environment.
2290 cat >conftest.$ac_ext <<_ACEOF
2295 rm -f conftest.$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>conftest.er1
2299 grep -v '^ *+' conftest.er1 >conftest.err
2301 cat conftest.err >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -z "$ac_c_werror_flag"
2305 || test ! -s conftest.err'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 for ac_declaration in \
2319 'extern "C" void std::exit (int) throw (); using std::exit;' \
2320 'extern "C" void std::exit (int); using std::exit;' \
2321 'extern "C" void exit (int) throw ();' \
2322 'extern "C" void exit (int);' \
2325 cat >conftest.$ac_ext <<_ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1 >conftest.err
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 cat >conftest.$ac_ext <<_ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag"
2396 || test ! -s conftest.err'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2417 if test -n "$ac_declaration"; then
2418 echo '#ifdef __cplusplus' >>confdefs.h
2419 echo $ac_declaration >>confdefs.h
2420 echo '#endif' >>confdefs.h
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436 ac_cpp='$CXXCPP $CPPFLAGS'
2437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2440 if test -n "$ac_tool_prefix"; then
2441 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2445 echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447 if test "${ac_cv_prog_CXX+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$CXX"; then
2451 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 if test -n "$CXX"; then
2471 echo "$as_me:$LINENO: result: $CXX" >&5
2472 echo "${ECHO_T}$CXX" >&6
2474 echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2478 test -n "$CXX" && break
2481 if test -z "$CXX"; then
2483 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2485 # Extract the first word of "$ac_prog", so it can be a program name with args.
2486 set dummy $ac_prog; ac_word=$2
2487 echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2489 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$ac_ct_CXX"; then
2493 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502 ac_cv_prog_ac_ct_CXX="$ac_prog"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2512 if test -n "$ac_ct_CXX"; then
2513 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2514 echo "${ECHO_T}$ac_ct_CXX" >&6
2516 echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6
2520 test -n "$ac_ct_CXX" && break
2522 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2528 # Provide some information about the compiler.
2529 echo "$as_me:$LINENO:" \
2530 "checking for C++ compiler version" >&5
2531 ac_compiler=`set X $ac_compile; echo $2`
2532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2533 (eval $ac_compiler --version </dev/null >&5) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2538 (eval $ac_compiler -v </dev/null >&5) 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }
2542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2543 (eval $ac_compiler -V </dev/null >&5) 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }
2548 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2549 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2550 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>conftest.er1
2575 grep -v '^ *+' conftest.er1 >conftest.err
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_cxx_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2604 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2605 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2606 GXX=`test $ac_compiler_gnu = yes && echo yes`
2607 ac_test_CXXFLAGS=${CXXFLAGS+set}
2608 ac_save_CXXFLAGS=$CXXFLAGS
2610 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2611 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2612 if test "${ac_cv_prog_cxx_g+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 cat >conftest.$ac_ext <<_ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>conftest.er1
2634 grep -v '^ *+' conftest.er1 >conftest.err
2636 cat conftest.err >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try='test -z "$ac_cxx_werror_flag"
2640 || test ! -s conftest.err'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; } &&
2646 { ac_try='test -s conftest.$ac_objext'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2652 ac_cv_prog_cxx_g=yes
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2662 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2663 if test "$ac_test_CXXFLAGS" = set; then
2664 CXXFLAGS=$ac_save_CXXFLAGS
2665 elif test $ac_cv_prog_cxx_g = yes; then
2666 if test "$GXX" = yes; then
2672 if test "$GXX" = yes; then
2678 for ac_declaration in \
2680 'extern "C" void std::exit (int) throw (); using std::exit;' \
2681 'extern "C" void std::exit (int); using std::exit;' \
2682 'extern "C" void exit (int) throw ();' \
2683 'extern "C" void exit (int);' \
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_cxx_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2751 grep -v '^ *+' conftest.er1 >conftest.err
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_cxx_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2778 if test -n "$ac_declaration"; then
2779 echo '#ifdef __cplusplus' >>confdefs.h
2780 echo $ac_declaration >>confdefs.h
2781 echo '#endif' >>confdefs.h
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 if test "x$CC" != xcc; then
2791 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2792 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2794 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2795 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2797 set dummy $CC; ac_cc=`echo $2 |
2798 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2799 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 cat >conftest.$ac_ext <<_ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2817 # Make sure it works both with $CC and with simple cc.
2818 # We do the test twice because some compilers refuse to overwrite an
2819 # existing .o file with -o, though they will create one.
2820 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2821 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); };
2832 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2833 if test "x$CC" != xcc; then
2834 # Test first that cc exists at all.
2835 if { ac_try='cc -c conftest.$ac_ext >&5'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2842 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); };
2856 # cc exists but doesn't like -o.
2857 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2862 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2868 echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6
2871 echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2874 cat >>confdefs.h <<\_ACEOF
2875 #define NO_MINUS_C_MINUS_O 1
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2886 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2887 # On Suns, sometimes $CPP names a directory.
2888 if test -n "$CPP" && test -d "$CPP"; then
2891 if test -z "$CPP"; then
2892 if test "${ac_cv_prog_CPP+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 # Double quotes because CPP needs to be expanded
2896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2899 for ac_c_preproc_warn_flag in '' yes
2901 # Use a header file that comes with gcc, so configuring glibc
2902 # with a fresh cross-compiler works.
2903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2904 # <limits.h> exists even on freestanding compilers.
2905 # On the NeXT, cc -E runs the code through the compiler's parser,
2906 # not just through cpp. "Syntax error" is here to catch this case.
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2914 # include <limits.h>
2916 # include <assert.h>
2920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923 grep -v '^ *+' conftest.er1 >conftest.err
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } >/dev/null; then
2928 if test -s conftest.err; then
2929 ac_cpp_err=$ac_c_preproc_warn_flag
2930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2937 if test -z "$ac_cpp_err"; then
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 # Broken: fails on valid input.
2946 rm -f conftest.err conftest.$ac_ext
2948 # OK, works on sane cases. Now check whether non-existent headers
2949 # can be detected and how.
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #include <ac_nonexistent.h>
2958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } >/dev/null; then
2966 if test -s conftest.err; then
2967 ac_cpp_err=$ac_c_preproc_warn_flag
2968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2975 if test -z "$ac_cpp_err"; then
2976 # Broken: success on invalid input.
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 # Passes both tests.
2986 rm -f conftest.err conftest.$ac_ext
2989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2990 rm -f conftest.err conftest.$ac_ext
2991 if $ac_preproc_ok; then
3003 echo "$as_me:$LINENO: result: $CPP" >&5
3004 echo "${ECHO_T}$CPP" >&6
3006 for ac_c_preproc_warn_flag in '' yes
3008 # Use a header file that comes with gcc, so configuring glibc
3009 # with a fresh cross-compiler works.
3010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3011 # <limits.h> exists even on freestanding compilers.
3012 # On the NeXT, cc -E runs the code through the compiler's parser,
3013 # not just through cpp. "Syntax error" is here to catch this case.
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3021 # include <limits.h>
3023 # include <assert.h>
3027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null; then
3035 if test -s conftest.err; then
3036 ac_cpp_err=$ac_c_preproc_warn_flag
3037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3044 if test -z "$ac_cpp_err"; then
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 # Broken: fails on valid input.
3053 rm -f conftest.err conftest.$ac_ext
3055 # OK, works on sane cases. Now check whether non-existent headers
3056 # can be detected and how.
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 #include <ac_nonexistent.h>
3065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 grep -v '^ *+' conftest.er1 >conftest.err
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } >/dev/null; then
3073 if test -s conftest.err; then
3074 ac_cpp_err=$ac_c_preproc_warn_flag
3075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3082 if test -z "$ac_cpp_err"; then
3083 # Broken: success on invalid input.
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 # Passes both tests.
3093 rm -f conftest.err conftest.$ac_ext
3096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3097 rm -f conftest.err conftest.$ac_ext
3098 if $ac_preproc_ok; then
3101 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3104 See \`config.log' for more details." >&2;}
3105 { (exit 1); exit 1; }; }
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 echo "$as_me:$LINENO: checking for egrep" >&5
3116 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3117 if test "${ac_cv_prog_egrep+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3121 then ac_cv_prog_egrep='grep -E'
3122 else ac_cv_prog_egrep='egrep'
3125 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3126 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3127 EGREP=$ac_cv_prog_egrep
3130 if test $ac_cv_c_compiler_gnu = yes; then
3131 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3132 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3133 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 ac_pattern="Autoconf.*'x'"
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3147 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3148 ac_cv_prog_gcc_traditional=yes
3150 ac_cv_prog_gcc_traditional=no
3155 if test $ac_cv_prog_gcc_traditional = no; then
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3166 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3167 ac_cv_prog_gcc_traditional=yes
3173 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3174 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3175 if test $ac_cv_prog_gcc_traditional = yes; then
3176 CC="$CC -traditional"
3182 cat >>confdefs.h <<\_ACEOF
3188 # Find a good install program. We prefer a C program (faster),
3189 # so one script is as good as another. But avoid the broken or
3190 # incompatible versions:
3191 # SysV /etc/install, /usr/sbin/install
3192 # SunOS /usr/etc/install
3193 # IRIX /sbin/install
3195 # AmigaOS /C/install, which installs bootblocks on floppy discs
3196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3199 # OS/2's system install, which has a completely different semantic
3200 # ./install, which can be erroneously created by make from ./install.sh.
3201 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3202 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3203 if test -z "$INSTALL"; then
3204 if test "${ac_cv_path_install+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir=.
3212 # Account for people who put trailing slashes in PATH elements.
3214 ./ | .// | /cC/* | \
3215 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3216 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3219 # OSF1 and SCO ODT 3.0 have their own names for install.
3220 # Don't use installbsd from OSF since it installs stuff as root
3222 for ac_prog in ginstall scoinst install; do
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3225 if test $ac_prog = install &&
3226 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3227 # AIX install. It has an incompatible calling convention.
3229 elif test $ac_prog = install &&
3230 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3231 # program-specific install script used by HP pwplus--don't use.
3234 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3246 if test "${ac_cv_path_install+set}" = set; then
3247 INSTALL=$ac_cv_path_install
3249 # As a last resort, use the slow shell script. We don't cache a
3250 # path for INSTALL within a source directory, because that will
3251 # break other packages using the cache if that directory is
3252 # removed, or if the path is relative.
3253 INSTALL=$ac_install_sh
3256 echo "$as_me:$LINENO: result: $INSTALL" >&5
3257 echo "${ECHO_T}$INSTALL" >&6
3259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3260 # It thinks the first close brace ends the variable substitution.
3261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3265 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_prog_RANLIB+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 if test -n "$RANLIB"; then
3276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 RANLIB=$ac_cv_prog_RANLIB
3295 if test -n "$RANLIB"; then
3296 echo "$as_me:$LINENO: result: $RANLIB" >&5
3297 echo "${ECHO_T}$RANLIB" >&6
3299 echo "$as_me:$LINENO: result: no" >&5
3300 echo "${ECHO_T}no" >&6
3304 if test -z "$ac_cv_prog_RANLIB"; then
3305 ac_ct_RANLIB=$RANLIB
3306 # Extract the first word of "ranlib", so it can be a program name with args.
3307 set dummy ranlib; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$ac_ct_RANLIB"; then
3314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_RANLIB="ranlib"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3333 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3334 if test -n "$ac_ct_RANLIB"; then
3335 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3336 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3338 echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3342 RANLIB=$ac_ct_RANLIB
3344 RANLIB="$ac_cv_prog_RANLIB"
3347 # Extract the first word of "mv", so it can be a program name with args.
3348 set dummy mv; ac_word=$2
3349 echo "$as_me:$LINENO: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3351 if test "${ac_cv_path_MV+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3379 if test -n "$MV"; then
3380 echo "$as_me:$LINENO: result: $MV" >&5
3381 echo "${ECHO_T}$MV" >&6
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3387 # Extract the first word of "rm", so it can be a program name with args.
3388 set dummy rm; ac_word=$2
3389 echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3391 if test "${ac_cv_path_RM+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3419 if test -n "$RM"; then
3420 echo "$as_me:$LINENO: result: $RM" >&5
3421 echo "${ECHO_T}$RM" >&6
3423 echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6
3427 # Extract the first word of "cp", so it can be a program name with args.
3428 set dummy cp; ac_word=$2
3429 echo "$as_me:$LINENO: checking for $ac_word" >&5
3430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3431 if test "${ac_cv_path_CP+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3459 if test -n "$CP"; then
3460 echo "$as_me:$LINENO: result: $CP" >&5
3461 echo "${ECHO_T}$CP" >&6
3463 echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6
3467 # Extract the first word of "sed", so it can be a program name with args.
3468 set dummy sed; ac_word=$2
3469 echo "$as_me:$LINENO: checking for $ac_word" >&5
3470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3471 if test "${ac_cv_path_SED+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3499 if test -n "$SED"; then
3500 echo "$as_me:$LINENO: result: $SED" >&5
3501 echo "${ECHO_T}$SED" >&6
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 # Extract the first word of "awk", so it can be a program name with args.
3508 set dummy awk; ac_word=$2
3509 echo "$as_me:$LINENO: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_path_AWK+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3539 if test -n "$AWK"; then
3540 echo "$as_me:$LINENO: result: $AWK" >&5
3541 echo "${ECHO_T}$AWK" >&6
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3547 # Extract the first word of "echo", so it can be a program name with args.
3548 set dummy echo; ac_word=$2
3549 echo "$as_me:$LINENO: checking for $ac_word" >&5
3550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3551 if test "${ac_cv_path_ECHO+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3577 ECHO=$ac_cv_path_ECHO
3579 if test -n "$ECHO"; then
3580 echo "$as_me:$LINENO: result: $ECHO" >&5
3581 echo "${ECHO_T}$ECHO" >&6
3583 echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6
3587 # Extract the first word of "cmp", so it can be a program name with args.
3588 set dummy cmp; ac_word=$2
3589 echo "$as_me:$LINENO: checking for $ac_word" >&5
3590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3591 if test "${ac_cv_path_CMP+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3619 if test -n "$CMP"; then
3620 echo "$as_me:$LINENO: result: $CMP" >&5
3621 echo "${ECHO_T}$CMP" >&6
3623 echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3627 # Extract the first word of "tbl", so it can be a program name with args.
3628 set dummy tbl; ac_word=$2
3629 echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631 if test "${ac_cv_path_TBL+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3659 if test -n "$TBL"; then
3660 echo "$as_me:$LINENO: result: $TBL" >&5
3661 echo "${ECHO_T}$TBL" >&6
3663 echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 # Extract the first word of "ar", so it can be a program name with args.
3668 set dummy ar; ac_word=$2
3669 echo "$as_me:$LINENO: checking for $ac_word" >&5
3670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3671 if test "${ac_cv_path_AR+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3699 if test -n "$AR"; then
3700 echo "$as_me:$LINENO: result: $AR" >&5
3701 echo "${ECHO_T}$AR" >&6
3703 echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3707 # Extract the first word of "openssl", so it can be a program name with args.
3708 set dummy openssl; ac_word=$2
3709 echo "$as_me:$LINENO: checking for $ac_word" >&5
3710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3711 if test "${ac_cv_path_OPENSSL+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3737 OPENSSL=$ac_cv_path_OPENSSL
3739 if test -n "$OPENSSL"; then
3740 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3741 echo "${ECHO_T}$OPENSSL" >&6
3743 echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3747 # Extract the first word of "mtx", so it can be a program name with args.
3748 set dummy mtx; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_path_MTX+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3779 if test -n "$MTX"; then
3780 echo "$as_me:$LINENO: result: $MTX" >&5
3781 echo "${ECHO_T}$MTX" >&6
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3787 # Extract the first word of "pkg-config", so it can be a program name with args.
3788 set dummy pkg-config; ac_word=$2
3789 echo "$as_me:$LINENO: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3817 PKGCONFIG=$ac_cv_path_PKGCONFIG
3819 if test -n "$PKGCONFIG"; then
3820 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3821 echo "${ECHO_T}$PKGCONFIG" >&6
3823 echo "$as_me:$LINENO: result: no" >&5
3824 echo "${ECHO_T}no" >&6
3827 # Extract the first word of "wx-config", so it can be a program name with args.
3828 set dummy wx-config; ac_word=$2
3829 echo "$as_me:$LINENO: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3857 WXCONFIG=$ac_cv_path_WXCONFIG
3859 if test -n "$WXCONFIG"; then
3860 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3861 echo "${ECHO_T}$WXCONFIG" >&6
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3868 test -n "$ARFLAG" || ARFLAGS="cr"
3881 # Make sure we can run config.sub.
3882 $ac_config_sub sun4 >/dev/null 2>&1 ||
3883 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3884 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3885 { (exit 1); exit 1; }; }
3887 echo "$as_me:$LINENO: checking build system type" >&5
3888 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3889 if test "${ac_cv_build+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 ac_cv_build_alias=$build_alias
3893 test -z "$ac_cv_build_alias" &&
3894 ac_cv_build_alias=`$ac_config_guess`
3895 test -z "$ac_cv_build_alias" &&
3896 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3897 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3898 { (exit 1); exit 1; }; }
3899 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3900 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3901 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3902 { (exit 1); exit 1; }; }
3905 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3906 echo "${ECHO_T}$ac_cv_build" >&6
3908 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3909 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3910 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3914 echo "$as_me:$LINENO: checking host system type" >&5
3915 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3916 if test "${ac_cv_host+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_cv_host_alias=$host_alias
3920 test -z "$ac_cv_host_alias" &&
3921 ac_cv_host_alias=$ac_cv_build_alias
3922 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3923 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3924 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3925 { (exit 1); exit 1; }; }
3928 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3929 echo "${ECHO_T}$ac_cv_host" >&6
3931 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3932 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3933 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3937 *cygwin* ) CYGWIN=yes;;
3941 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3947 HAVE_SUN_OS_FALSE='#'
3949 HAVE_SUN_OS_TRUE='#'
3952 cat >>confdefs.h <<\_ACEOF
3953 #define HAVE_SUN_OS 1
3961 HAVE_SUN_OS_FALSE='#'
3963 HAVE_SUN_OS_TRUE='#'
3968 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3974 HAVE_OSF1_OS_FALSE='#'
3976 HAVE_OSF1_OS_TRUE='#'
3979 cat >>confdefs.h <<\_ACEOF
3980 #define HAVE_OSF1_OS 1
3988 HAVE_OSF1_OS_FALSE='#'
3990 HAVE_OSF1_OS_TRUE='#'
3995 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4001 HAVE_AIX_OS_FALSE='#'
4003 HAVE_AIX_OS_TRUE='#'
4006 cat >>confdefs.h <<\_ACEOF
4007 #define HAVE_AIX_OS 1
4015 HAVE_AIX_OS_FALSE='#'
4017 HAVE_AIX_OS_TRUE='#'
4022 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4028 HAVE_HPUX_OS_FALSE='#'
4030 HAVE_HPUX_OS_TRUE='#'
4033 cat >>confdefs.h <<\_ACEOF
4034 #define HAVE_HPUX_OS 1
4042 HAVE_HPUX_OS_FALSE='#'
4044 HAVE_HPUX_OS_TRUE='#'
4049 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4055 HAVE_LINUX_OS_FALSE='#'
4057 HAVE_LINUX_OS_TRUE='#'
4058 HAVE_LINUX_OS_FALSE=
4060 cat >>confdefs.h <<\_ACEOF
4061 #define HAVE_LINUX_OS 1
4069 HAVE_LINUX_OS_FALSE='#'
4071 HAVE_LINUX_OS_TRUE='#'
4072 HAVE_LINUX_OS_FALSE=
4076 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4081 HAVE_FREEBSD_OS_TRUE=
4082 HAVE_FREEBSD_OS_FALSE='#'
4084 HAVE_FREEBSD_OS_TRUE='#'
4085 HAVE_FREEBSD_OS_FALSE=
4087 cat >>confdefs.h <<\_ACEOF
4088 #define HAVE_FREEBSD_OS 1
4095 HAVE_FREEBSD_OS_TRUE=
4096 HAVE_FREEBSD_OS_FALSE='#'
4098 HAVE_FREEBSD_OS_TRUE='#'
4099 HAVE_FREEBSD_OS_FALSE=
4103 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4108 HAVE_NETBSD_OS_TRUE=
4109 HAVE_NETBSD_OS_FALSE='#'
4111 HAVE_NETBSD_OS_TRUE='#'
4112 HAVE_NETBSD_OS_FALSE=
4114 cat >>confdefs.h <<\_ACEOF
4115 #define HAVE_NETBSD_OS 1
4122 HAVE_NETBSD_OS_TRUE=
4123 HAVE_NETBSD_OS_FALSE='#'
4125 HAVE_NETBSD_OS_TRUE='#'
4126 HAVE_NETBSD_OS_FALSE=
4130 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4135 HAVE_OPENBSD_OS_TRUE=
4136 HAVE_OPENBSD_OS_FALSE='#'
4138 HAVE_OPENBSD_OS_TRUE='#'
4139 HAVE_OPENBSD_OS_FALSE=
4141 cat >>confdefs.h <<\_ACEOF
4142 #define HAVE_OPENBSD_OS 1
4149 HAVE_OPENBSD_OS_TRUE=
4150 HAVE_OPENBSD_OS_FALSE='#'
4152 HAVE_OPENBSD_OS_TRUE='#'
4153 HAVE_OPENBSD_OS_FALSE=
4157 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4163 HAVE_BSDI_OS_FALSE='#'
4165 HAVE_BSDI_OS_TRUE='#'
4168 cat >>confdefs.h <<\_ACEOF
4169 #define HAVE_BSDI_OS 1
4177 HAVE_BSDI_OS_FALSE='#'
4179 HAVE_BSDI_OS_TRUE='#'
4184 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4190 HAVE_SGI_OS_FALSE='#'
4192 HAVE_SGI_OS_TRUE='#'
4195 cat >>confdefs.h <<\_ACEOF
4196 #define HAVE_SGI_OS 1
4204 HAVE_SGI_OS_FALSE='#'
4206 HAVE_SGI_OS_TRUE='#'
4211 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4217 HAVE_IRIX_OS_FALSE='#'
4219 HAVE_IRIX_OS_TRUE='#'
4222 cat >>confdefs.h <<\_ACEOF
4223 #define HAVE_IRIX_OS 1
4231 HAVE_IRIX_OS_FALSE='#'
4233 HAVE_IRIX_OS_TRUE='#'
4238 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4243 HAVE_DARWIN_OS_TRUE=
4244 HAVE_DARWIN_OS_FALSE='#'
4246 HAVE_DARWIN_OS_TRUE='#'
4247 HAVE_DARWIN_OS_FALSE=
4249 cat >>confdefs.h <<\_ACEOF
4250 #define HAVE_DARWIN_OS 1
4257 HAVE_DARWIN_OS_TRUE=
4258 HAVE_DARWIN_OS_FALSE='#'
4260 HAVE_DARWIN_OS_TRUE='#'
4261 HAVE_DARWIN_OS_FALSE=
4266 # -----------------------------------------------------------
4267 # ----------------------------------------------------------
4268 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4269 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4270 if test "x$DISTNAME" != "x"
4272 echo "distname set to $DISTNAME"
4273 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4276 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4279 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4282 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4285 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4288 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4291 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4294 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4297 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4300 elif test -f /etc/SuSE-release
4303 elif test -d /etc/SuSEconfig
4306 elif test -f /etc/mandrake-release
4309 elif test -f /etc/whitebox-release
4312 elif test -f /etc/redhat-release
4315 elif test -f /etc/gentoo-release
4318 elif test -f /etc/debian_version
4321 elif test -f /etc/slackware-version
4324 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4327 elif test -f /etc/engarde-version
4330 elif test "$CYGWIN" = yes
4333 cat >>confdefs.h <<\_ACEOF
4334 #define HAVE_CYGWIN 1
4340 echo "$as_me:$LINENO: result: done" >&5
4341 echo "${ECHO_T}done" >&6
4344 # -----------------------------------------------------------
4345 # ----------------------------------------------------------
4350 INSIDE_GNOME_COMMON_TRUE=
4351 INSIDE_GNOME_COMMON_FALSE='#'
4353 INSIDE_GNOME_COMMON_TRUE='#'
4354 INSIDE_GNOME_COMMON_FALSE=
4357 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4359 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4362 # ------------------------------------------------------------------
4363 # If the user has not set --prefix, we set our default to nothing.
4364 # In this case, if the user has not set --sysconfdir, we set it
4365 # to the package default of /etc/bacula. If either --prefix or
4366 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4367 # ------------------------------------------------------------------
4368 if test x${prefix} = xNONE ; then
4369 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4370 sysconfdir=/etc/bacula
4374 sysconfdir=`eval echo ${sysconfdir}`
4376 # -------------------------------------------------------------------------
4377 # If the user has not set --exec-prefix, we default to ${prefix}
4378 # -------------------------------------------------------------------------
4379 if test x${exec_prefix} = xNONE ; then
4380 exec_prefix=${prefix}
4383 # ------------------------------------------------------------------
4384 # If the user has not set --sbindir, we set our default as /sbin
4385 # ------------------------------------------------------------------
4386 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4387 sbindir=${exec_prefix}/sbin
4389 sbindir=`eval echo ${sbindir}`
4391 # ------------------------------------------------------------------
4392 # All list of languages for which a translation exist. Each
4393 # language is separated by a space.
4394 # ------------------------------------------------------------------
4397 for ac_prog in msgfmt
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400 set dummy $ac_prog; ac_word=$2
4401 echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4403 if test "${ac_cv_path_MSGFMT+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 MSGFMT=$ac_cv_path_MSGFMT
4430 if test -n "$MSGFMT"; then
4431 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4432 echo "${ECHO_T}$MSGFMT" >&6
4434 echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6
4438 test -n "$MSGFMT" && break
4440 test -n "$MSGFMT" || MSGFMT="no"
4442 if test "$MSGFMT" = "no"
4444 echo 'msgfmt program not found, disabling NLS !'
4446 USE_INCLUDED_LIBINTL=no
4454 support_postgresql=no
4455 support_smartalloc=yes
4456 support_readline=yes
4459 support_wx_console=no
4461 support_static_tools=no
4462 support_static_fd=no
4463 support_static_sd=no
4464 support_static_dir=no
4465 support_static_cons=no
4466 build_client_only=no
4472 # -------------------------------------------
4473 # gnome (default off)
4474 # -------------------------------------------
4475 # Check whether --enable-gnome or --disable-gnome was given.
4476 if test "${enable_gnome+set}" = set; then
4477 enableval="$enable_gnome"
4478 if test x$enableval = xyes; then
4484 if test x$support_gnome = xyes; then
4485 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4487 if test $pkg = 0; then
4488 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4489 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4490 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4491 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4496 GNOME_DIR=src/gnome2-console
4497 gnome_version="Version 2.x"
4510 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4511 if test "${with_gnome_includes+set}" = set; then
4512 withval="$with_gnome_includes"
4514 CFLAGS="$CFLAGS -I$withval"
4519 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4520 if test "${with_gnome_libs+set}" = set; then
4521 withval="$with_gnome_libs"
4523 LDFLAGS="$LDFLAGS -L$withval"
4524 gnome_prefix=$withval
4529 # Check whether --with-gnome or --without-gnome was given.
4530 if test "${with_gnome+set}" = set; then
4531 withval="$with_gnome"
4532 if test x$withval = xyes; then
4536 if test "x$withval" = xno; then
4540 LDFLAGS="$LDFLAGS -L$withval/lib"
4541 CFLAGS="$CFLAGS -I$withval/include"
4542 gnome_prefix=$withval/lib
4549 if test "x$want_gnome" = xyes; then
4551 # Extract the first word of "gnome-config", so it can be a program name with args.
4552 set dummy gnome-config; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 case $GNOME_CONFIG in
4560 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4581 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4583 if test -n "$GNOME_CONFIG"; then
4584 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4585 echo "${ECHO_T}$GNOME_CONFIG" >&6
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4591 if test "$GNOME_CONFIG" = "no"; then
4592 no_gnome_config="yes"
4594 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4595 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4596 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4597 echo "$as_me:$LINENO: result: yes" >&5
4598 echo "${ECHO_T}yes" >&6
4601 # Extract the first word of "orbit-config", so it can be a program name with args.
4602 set dummy orbit-config; ac_word=$2
4603 echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4605 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 case $ORBIT_CONFIG in
4610 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4631 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4633 if test -n "$ORBIT_CONFIG"; then
4634 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4635 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4641 # Extract the first word of "orbit-idl", so it can be a program name with args.
4642 set dummy orbit-idl; ac_word=$2
4643 echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4671 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4673 if test -n "$ORBIT_IDL"; then
4674 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4675 echo "${ECHO_T}$ORBIT_IDL" >&6
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4681 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4682 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4683 if test "${gnome_cv_orbit_found+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4688 gnome_cv_orbit_found=no
4690 gnome_cv_orbit_found=yes
4694 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4695 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4698 if test x$gnome_cv_orbit_found = xyes; then
4700 HAVE_ORBIT_FALSE='#'
4705 if test x$gnome_cv_orbit_found = xyes; then
4707 ORBIT_CFLAGS=`orbit-config --cflags client server`
4708 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4712 if test xfail = xfailure; then
4713 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4714 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4715 { (exit 1); exit 1; }; }
4719 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4720 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4721 if test "${gnome_cv_gnorba_found+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 gnome_cv_gnorba_found=no
4726 if test x$gnome_cv_orbit_found = xyes; then
4727 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4728 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4729 if test -n "$GNORBA_LIBS"; then
4730 gnome_cv_gnorba_found=yes
4735 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4736 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4739 if test x$gnome_cv_gnorba_found = xyes; then
4741 HAVE_GNORBA_FALSE='#'
4743 HAVE_GNORBA_TRUE='#'
4746 if test x$gnome_cv_orbit_found = xyes; then
4748 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4749 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4753 if test xfail = xfailure; then
4754 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4755 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4756 { (exit 1); exit 1; }; }
4760 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4761 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4762 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4763 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4764 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4765 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4766 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4769 echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6
4771 no_gnome_config="yes"
4775 if test x$exec_prefix = xNONE; then
4776 if test x$prefix = xNONE; then
4777 gnome_prefix=$ac_default_prefix/lib
4779 gnome_prefix=$prefix/lib
4782 gnome_prefix=`eval echo \`echo $libdir\``
4785 if test "$no_gnome_config" = "yes"; then
4786 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4787 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4788 if test -f $gnome_prefix/gnomeConf.sh; then
4789 echo "$as_me:$LINENO: result: found" >&5
4790 echo "${ECHO_T}found" >&6
4791 echo "loading gnome configuration from" \
4792 "$gnome_prefix/gnomeConf.sh"
4793 . $gnome_prefix/gnomeConf.sh
4796 echo "$as_me:$LINENO: result: not found" >&5
4797 echo "${ECHO_T}not found" >&6
4798 if test xfail = xfail; then
4799 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4800 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4801 { (exit 1); exit 1; }; }
4810 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4811 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4815 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4816 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4817 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4820 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4821 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4822 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4825 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4826 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4827 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4829 echo "$as_me:$LINENO: result: unknown library" >&5
4830 echo "${ECHO_T}unknown library" >&6
4832 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4833 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4838 GNOME_DIR=src/gnome-console
4839 gnome_version="Version 1.4"
4845 # -------------------------------------------
4846 # wx-console (default off)
4847 # -------------------------------------------
4848 # Check whether --enable-wx-console or --disable-wx-console was given.
4849 if test "${enable_wx_console+set}" = set; then
4850 enableval="$enable_wx_console"
4851 if test x$enableval = xyes; then
4852 support_wx_console=yes
4857 if test x$support_wx_console = xyes; then
4858 abc=`$WXCONFIG --cppflags`
4860 if test $pkg = 0; then
4861 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4862 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4865 WX_DIR=src/wx-console
4868 echo "wx-config program not found. wx-console disabled."
4870 support_wx_console=no
4876 # -------------------------------------------
4877 # tray-monitor (default off)
4878 # -------------------------------------------
4879 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4880 if test "${enable_tray_monitor+set}" = set; then
4881 enableval="$enable_tray_monitor"
4882 if test x$enableval = xyes; then
4883 support_tray_monitor=yes
4888 if test x$support_tray_monitor = xyes; then
4889 abc=`$PKGCONFIG --exists gtk+-2.0`
4891 if test $pkg = 0; then
4892 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4893 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4896 TRAY_MONITOR_DIR=src/tray-monitor
4897 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4899 if test $pkg = 0; then
4900 cat >>confdefs.h <<\_ACEOF
4901 #define HAVE_GTK_2_4 1
4909 # -------------------------------------------
4910 # smartalloc (default off)
4911 # -------------------------------------------
4912 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4913 if test "${enable_smartalloc+set}" = set; then
4914 enableval="$enable_smartalloc"
4915 if test x$enableval = xno; then
4916 support_smartalloc=no
4920 if test x$support_smartalloc = xyes; then
4921 cat >>confdefs.h <<\_ACEOF
4922 #define SMARTALLOC 1
4927 # -------------------------------------------
4928 # static-tools (default off)
4929 # -------------------------------------------
4930 # Check whether --enable-static-tools or --disable-static-tools was given.
4931 if test "${enable_static_tools+set}" = set; then
4932 enableval="$enable_static_tools"
4933 if test x$enableval = xyes; then
4934 support_static_tools=yes
4939 if test x$support_static_tools = xyes; then
4940 TTOOL_LDFLAGS="-static"
4944 # -------------------------------------------
4945 # static-fd (default off)
4946 # -------------------------------------------
4947 # Check whether --enable-static-fd or --disable-static-fd was given.
4948 if test "${enable_static_fd+set}" = set; then
4949 enableval="$enable_static_fd"
4950 if test x$enableval = xyes; then
4951 support_static_fd=yes
4956 if test x$support_static_fd = xyes; then
4957 STATIC_FD="static-bacula-fd"
4961 # -------------------------------------------
4962 # static-sd (default off)
4963 # -------------------------------------------
4964 # Check whether --enable-static-sd or --disable-static-sd was given.
4965 if test "${enable_static_sd+set}" = set; then
4966 enableval="$enable_static_sd"
4967 if test x$enableval = xyes; then
4968 support_static_sd=yes
4973 if test x$support_static_sd = xyes; then
4974 STATIC_SD="static-bacula-sd"
4978 # -------------------------------------------
4979 # static-dir (default off)
4980 # -------------------------------------------
4981 # Check whether --enable-static-dir or --disable-static-dir was given.
4982 if test "${enable_static_dir+set}" = set; then
4983 enableval="$enable_static_dir"
4984 if test x$enableval = xyes; then
4985 support_static_dir=yes
4990 if test x$support_static_dir = xyes; then
4991 STATIC_DIR="static-bacula-dir"
4995 # -------------------------------------------
4996 # static-cons (default off)
4997 # -------------------------------------------
4998 # Check whether --enable-static-cons or --disable-static-cons was given.
4999 if test "${enable_static_cons+set}" = set; then
5000 enableval="$enable_static_cons"
5001 if test x$enableval = xyes; then
5002 support_static_cons=yes
5009 if test x$support_static_cons = xyes; then
5010 STATIC_CONS="static-bconsole"
5011 STATIC_GNOME_CONS="static-gnome-console"
5012 STATIC_WX_CONS="static-wx-console"
5018 # -------------------------------------------
5019 # client_only (default off)
5020 # -------------------------------------------
5021 # Check whether --enable-client-only or --disable-client-only was given.
5022 if test "${enable_client_only+set}" = set; then
5023 enableval="$enable_client_only"
5024 if test x$enableval = xyes; then
5025 build_client_only=yes
5030 if test x$build_client_only = xno; then
5037 # ---------------------------------------------------
5038 # Check for conio (Bacula readline substitute)(
5039 # ---------------------------------------------------
5040 # this allows you to turn it completely off
5041 # Check whether --enable-conio or --disable-conio was given.
5042 if test "${enable_conio+set}" = set; then
5043 enableval="$enable_conio"
5044 if test x$enableval = xno; then
5050 if test x$support_conio = xyes; then
5051 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5053 if test "${ac_cv_header_stdc+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 cat >conftest.$ac_ext <<_ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>conftest.er1
5079 grep -v '^ *+' conftest.er1 >conftest.err
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try='test -z "$ac_c_werror_flag"
5085 || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_cv_header_stdc=yes
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 ac_cv_header_stdc=no
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106 if test $ac_cv_header_stdc = yes; then
5107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5118 $EGREP "memchr" >/dev/null 2>&1; then
5121 ac_cv_header_stdc=no
5127 if test $ac_cv_header_stdc = yes; then
5128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5129 cat >conftest.$ac_ext <<_ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5139 $EGREP "free" >/dev/null 2>&1; then
5142 ac_cv_header_stdc=no
5148 if test $ac_cv_header_stdc = yes; then
5149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5150 if test "$cross_compiling" = yes; then
5153 cat >conftest.$ac_ext <<_ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5160 #if ((' ' & 0x0FF) == 0x020)
5161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5164 # define ISLOWER(c) \
5165 (('a' <= (c) && (c) <= 'i') \
5166 || ('j' <= (c) && (c) <= 'r') \
5167 || ('s' <= (c) && (c) <= 'z'))
5168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5176 for (i = 0; i < 256; i++)
5177 if (XOR (islower (i), ISLOWER (i))
5178 || toupper (i) != TOUPPER (i))
5183 rm -f conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5196 echo "$as_me: program exited with status $ac_status" >&5
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5201 ac_cv_header_stdc=no
5203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5207 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5209 if test $ac_cv_header_stdc = yes; then
5211 cat >>confdefs.h <<\_ACEOF
5212 #define STDC_HEADERS 1
5217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5228 inttypes.h stdint.h unistd.h
5230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5231 echo "$as_me:$LINENO: checking for $ac_header" >&5
5232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 cat >conftest.$ac_ext <<_ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5244 #include <$ac_header>
5246 rm -f conftest.$ac_objext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>conftest.er1
5250 grep -v '^ *+' conftest.er1 >conftest.err
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_c_werror_flag"
5256 || test ! -s conftest.err'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 eval "$as_ac_Header=yes"
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 eval "$as_ac_Header=no"
5275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5280 cat >>confdefs.h <<_ACEOF
5281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5289 if test "${ac_cv_header_termcap_h+set}" = set; then
5290 echo "$as_me:$LINENO: checking for termcap.h" >&5
5291 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5292 if test "${ac_cv_header_termcap_h+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5296 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5298 # Is the header compilable?
5299 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5300 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5301 cat >conftest.$ac_ext <<_ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 $ac_includes_default
5308 #include <termcap.h>
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5314 grep -v '^ *+' conftest.er1 >conftest.err
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_header_compiler=yes
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 ac_header_compiler=no
5339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5341 echo "${ECHO_T}$ac_header_compiler" >&6
5343 # Is the header present?
5344 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5345 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 #include <termcap.h>
5354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5357 grep -v '^ *+' conftest.er1 >conftest.err
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } >/dev/null; then
5362 if test -s conftest.err; then
5363 ac_cpp_err=$ac_c_preproc_warn_flag
5364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5371 if test -z "$ac_cpp_err"; then
5372 ac_header_preproc=yes
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 ac_header_preproc=no
5379 rm -f conftest.err conftest.$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5381 echo "${ECHO_T}$ac_header_preproc" >&6
5383 # So? What about this header?
5384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5386 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5387 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5389 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5390 ac_header_preproc=yes
5393 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5394 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5396 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5398 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5400 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5402 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5404 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5407 ## ------------------------------------------ ##
5408 ## Report this to the AC_PACKAGE_NAME lists. ##
5409 ## ------------------------------------------ ##
5412 sed "s/^/$as_me: WARNING: /" >&2
5415 echo "$as_me:$LINENO: checking for termcap.h" >&5
5416 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5417 if test "${ac_cv_header_termcap_h+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 ac_cv_header_termcap_h=$ac_header_preproc
5422 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5423 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5426 if test $ac_cv_header_termcap_h = yes; then
5427 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5428 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5429 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_check_lib_save_LIBS=$LIBS
5433 LIBS="-ltermcap $LIBS"
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5441 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>conftest.er1
5460 grep -v '^ *+' conftest.er1 >conftest.err
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -z "$ac_c_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try='test -s conftest$ac_exeext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_lib_termcap_tgetent=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_cv_lib_termcap_tgetent=no
5485 rm -f conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487 LIBS=$ac_check_lib_save_LIBS
5489 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5490 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5491 if test $ac_cv_lib_termcap_tgetent = yes; then
5492 CONS_LIBS="-ltermcap"
5498 cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_CONIO 1
5504 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5505 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5506 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_check_lib_save_LIBS=$LIBS
5510 LIBS="-lncurses $LIBS"
5511 cat >conftest.$ac_ext <<_ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5518 /* Override any gcc2 internal prototype to avoid an error. */
5522 /* We use char because int might match the return type of a gcc2
5523 builtin and then its argument prototype would still apply. */
5533 rm -f conftest.$ac_objext conftest$ac_exeext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535 (eval $ac_link) 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -z "$ac_c_werror_flag"
5543 || test ! -s conftest.err'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest$ac_exeext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_lib_ncurses_tgetent=yes
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 ac_cv_lib_ncurses_tgetent=no
5562 rm -f conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5566 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5567 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5568 if test $ac_cv_lib_ncurses_tgetent = yes; then
5569 CONS_LIBS="-lncurses"
5575 cat >>confdefs.h <<\_ACEOF
5576 #define HAVE_CONIO 1
5581 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5589 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5596 # ---------------------------------------------------
5597 # Check for readline support/directory (default off)
5598 # ---------------------------------------------------
5599 # this allows you to turn it completely off
5600 # Check whether --enable-readline or --disable-readline was given.
5601 if test "${enable_readline+set}" = set; then
5602 enableval="$enable_readline"
5603 if test x$enableval = xno; then
5610 if test x$support_readline = xyes; then
5612 # Check whether --with-readline or --without-readline was given.
5613 if test "${with_readline+set}" = set; then
5614 withval="$with_readline"
5616 case "$with_readline" in
5619 if test "$with_readline" != "yes"; then
5620 CONS_INC="-I${with_readline}"
5621 CONS_LDFLAGS="-L$with_readline"
5623 with_readline="/usr/include/readline"
5625 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5627 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5628 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5635 # Is the header compilable?
5636 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5637 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 $ac_includes_default
5645 #include <${with_readline}/readline.h>
5647 rm -f conftest.$ac_objext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649 (eval $ac_compile) 2>conftest.er1
5651 grep -v '^ *+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest.$ac_objext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_header_compiler=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_header_compiler=no
5676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5678 echo "${ECHO_T}$ac_header_compiler" >&6
5680 # Is the header present?
5681 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5682 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 #include <${with_readline}/readline.h>
5691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5694 grep -v '^ *+' conftest.er1 >conftest.err
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev/null; then
5699 if test -s conftest.err; then
5700 ac_cpp_err=$ac_c_preproc_warn_flag
5701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5708 if test -z "$ac_cpp_err"; then
5709 ac_header_preproc=yes
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5714 ac_header_preproc=no
5716 rm -f conftest.err conftest.$ac_ext
5717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5718 echo "${ECHO_T}$ac_header_preproc" >&6
5720 # So? What about this header?
5721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5723 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5724 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
5726 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
5727 ac_header_preproc=yes
5730 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5731 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5733 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5734 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
5735 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
5736 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
5737 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5739 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5740 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
5741 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
5744 ## ------------------------------------------ ##
5745 ## Report this to the AC_PACKAGE_NAME lists. ##
5746 ## ------------------------------------------ ##
5749 sed "s/^/$as_me: WARNING: /" >&2
5752 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5753 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 eval "$as_ac_Header=\$ac_header_preproc"
5759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_READLINE 1
5768 CONS_LIBS="-lreadline -ltermcap"
5773 echo "readline.h not found. readline turned off ..."
5785 # check for standard readline library
5786 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5787 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5788 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5789 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5793 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5795 # Is the header compilable?
5796 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5797 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 #include </usr/include/readline/readline.h>
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag"
5817 || test ! -s conftest.err'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; } &&
5823 { ac_try='test -s conftest.$ac_objext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_header_compiler=yes
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 ac_header_compiler=no
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5838 echo "${ECHO_T}$ac_header_compiler" >&6
5840 # Is the header present?
5841 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5842 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5843 cat >conftest.$ac_ext <<_ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 #include </usr/include/readline/readline.h>
5851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null; then
5859 if test -s conftest.err; then
5860 ac_cpp_err=$ac_c_preproc_warn_flag
5861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5868 if test -z "$ac_cpp_err"; then
5869 ac_header_preproc=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_header_preproc=no
5876 rm -f conftest.err conftest.$ac_ext
5877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5878 echo "${ECHO_T}$ac_header_preproc" >&6
5880 # So? What about this header?
5881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5883 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5884 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
5886 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
5887 ac_header_preproc=yes
5890 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5891 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5893 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
5895 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
5897 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5900 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
5901 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
5904 ## ------------------------------------------ ##
5905 ## Report this to the AC_PACKAGE_NAME lists. ##
5906 ## ------------------------------------------ ##
5909 sed "s/^/$as_me: WARNING: /" >&2
5912 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5913 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5914 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5919 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5920 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5923 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5924 cat >>confdefs.h <<\_ACEOF
5925 #define HAVE_READLINE 1
5929 CONS_INC="-I/usr/include/readline"
5930 CONS_LIBS="-lreadline -ltermcap"
5934 # Did not find standard library, so try Bacula's default
5935 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5937 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5938 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5945 # Is the header compilable?
5946 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5947 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5948 cat >conftest.$ac_ext <<_ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 $ac_includes_default
5955 #include <${TOP_DIR}/depkgs/readline/readline.h>
5957 rm -f conftest.$ac_objext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5959 (eval $ac_compile) 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -z "$ac_c_werror_flag"
5967 || test ! -s conftest.err'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; } &&
5973 { ac_try='test -s conftest.$ac_objext'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 ac_header_compiler=yes
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 ac_header_compiler=no
5986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5988 echo "${ECHO_T}$ac_header_compiler" >&6
5990 # Is the header present?
5991 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5992 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <${TOP_DIR}/depkgs/readline/readline.h>
6001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6004 grep -v '^ *+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } >/dev/null; then
6009 if test -s conftest.err; then
6010 ac_cpp_err=$ac_c_preproc_warn_flag
6011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6018 if test -z "$ac_cpp_err"; then
6019 ac_header_preproc=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_header_preproc=no
6026 rm -f conftest.err conftest.$ac_ext
6027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6028 echo "${ECHO_T}$ac_header_preproc" >&6
6030 # So? What about this header?
6031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6033 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6034 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6036 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6037 ac_header_preproc=yes
6040 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6041 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6043 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6045 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6047 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6049 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6051 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6054 ## ------------------------------------------ ##
6055 ## Report this to the AC_PACKAGE_NAME lists. ##
6056 ## ------------------------------------------ ##
6059 sed "s/^/$as_me: WARNING: /" >&2
6062 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6063 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 eval "$as_ac_Header=\$ac_header_preproc"
6069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6074 cat >>confdefs.h <<\_ACEOF
6075 #define HAVE_READLINE 1
6079 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6080 CONS_LIBS="-lreadline -lhistory -ltermcap"
6081 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6082 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6086 echo "readline.h not found. readline turned off ..."
6112 # Minimal stuff for readline Makefile configuration
6115 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6116 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6117 if test "${ac_cv_header_stat_broken+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 #include <sys/stat.h>
6129 #if defined(S_ISBLK) && defined(S_IFDIR)
6130 # if S_ISBLK (S_IFDIR)
6135 #if defined(S_ISBLK) && defined(S_IFCHR)
6136 # if S_ISBLK (S_IFCHR)
6141 #if defined(S_ISLNK) && defined(S_IFREG)
6142 # if S_ISLNK (S_IFREG)
6147 #if defined(S_ISSOCK) && defined(S_IFREG)
6148 # if S_ISSOCK (S_IFREG)
6154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6155 $EGREP "You lose" >/dev/null 2>&1; then
6156 ac_cv_header_stat_broken=yes
6158 ac_cv_header_stat_broken=no
6163 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6164 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6165 if test $ac_cv_header_stat_broken = yes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define STAT_MACROS_BROKEN 1
6179 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6180 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6181 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6182 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 cat >conftest.$ac_ext <<_ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <sys/types.h>
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 eval "$as_ac_Header=yes"
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 eval "$as_ac_Header=no"
6233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6242 ac_header_dirent=$ac_hdr; break
6246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6247 if test $ac_header_dirent = dirent.h; then
6248 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6250 if test "${ac_cv_search_opendir+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 ac_func_search_save_LIBS=$LIBS
6254 ac_cv_search_opendir=no
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 (eval $ac_link) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest$ac_exeext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_search_opendir="none required"
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6305 rm -f conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 if test "$ac_cv_search_opendir" = no; then
6308 for ac_lib in dir; do
6309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6317 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>conftest.er1
6336 grep -v '^ *+' conftest.er1 >conftest.err
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_c_werror_flag"
6342 || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_cv_search_opendir="-l$ac_lib"
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6361 rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6365 LIBS=$ac_func_search_save_LIBS
6367 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6368 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6369 if test "$ac_cv_search_opendir" != no; then
6370 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6375 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6376 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6377 if test "${ac_cv_search_opendir+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 ac_func_search_save_LIBS=$LIBS
6381 ac_cv_search_opendir=no
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6389 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6404 rm -f conftest.$ac_objext conftest$ac_exeext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6406 (eval $ac_link) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest$ac_exeext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_search_opendir="none required"
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6432 rm -f conftest.err conftest.$ac_objext \
6433 conftest$ac_exeext conftest.$ac_ext
6434 if test "$ac_cv_search_opendir" = no; then
6436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -z "$ac_c_werror_flag"
6469 || test ! -s conftest.err'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_search_opendir="-l$ac_lib"
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6488 rm -f conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6492 LIBS=$ac_func_search_save_LIBS
6494 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6495 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6496 if test "$ac_cv_search_opendir" != no; then
6497 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6511 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6514 echo "$as_me:$LINENO: checking for $ac_func" >&5
6515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6516 if eval "test \"\${$as_ac_var+set}\" = set"; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 cat >conftest.$ac_ext <<_ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6527 #define $ac_func innocuous_$ac_func
6529 /* System header to define __stub macros and hopefully few prototypes,
6530 which can conflict with char $ac_func (); below.
6531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6532 <limits.h> exists even on freestanding compilers. */
6535 # include <limits.h>
6537 # include <assert.h>
6542 /* Override any gcc2 internal prototype to avoid an error. */
6547 /* We use char because int might match the return type of a gcc2
6548 builtin and then its argument prototype would still apply. */
6550 /* The GNU C library defines this for functions which it implements
6551 to always fail with ENOSYS. Some functions are actually named
6552 something starting with __ and the normal name is an alias. */
6553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6556 char (*f) () = $ac_func;
6565 return f != $ac_func;
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_c_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 eval "$as_ac_var=yes"
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 eval "$as_ac_var=no"
6599 rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6604 if test `eval echo '${'$as_ac_var'}'` = yes; then
6605 cat >>confdefs.h <<_ACEOF
6606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6614 for ac_func in nanosleep nl_langinfo
6616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6617 echo "$as_me:$LINENO: checking for $ac_func" >&5
6618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6619 if eval "test \"\${$as_ac_var+set}\" = set"; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.$ac_ext <<_ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6630 #define $ac_func innocuous_$ac_func
6632 /* System header to define __stub macros and hopefully few prototypes,
6633 which can conflict with char $ac_func (); below.
6634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6635 <limits.h> exists even on freestanding compilers. */
6638 # include <limits.h>
6640 # include <assert.h>
6645 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6653 /* The GNU C library defines this for functions which it implements
6654 to always fail with ENOSYS. Some functions are actually named
6655 something starting with __ and the normal name is an alias. */
6656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659 char (*f) () = $ac_func;
6668 return f != $ac_func;
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>conftest.er1
6677 grep -v '^ *+' conftest.er1 >conftest.err
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } &&
6682 { ac_try='test -z "$ac_c_werror_flag"
6683 || test ! -s conftest.err'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; } &&
6689 { ac_try='test -s conftest$ac_exeext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 eval "$as_ac_var=yes"
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 eval "$as_ac_var=no"
6702 rm -f conftest.err conftest.$ac_objext \
6703 conftest$ac_exeext conftest.$ac_ext
6705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6707 if test `eval echo '${'$as_ac_var'}'` = yes; then
6708 cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6716 for ac_header in varargs.h
6718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720 echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6728 # Is the header compilable?
6729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6738 #include <$ac_header>
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>conftest.er1
6744 grep -v '^ *+' conftest.er1 >conftest.err
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag"
6750 || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest.$ac_objext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_header_compiler=yes
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_header_compiler=no
6769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6771 echo "${ECHO_T}$ac_header_compiler" >&6
6773 # Is the header present?
6774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <$ac_header>
6784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6787 grep -v '^ *+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } >/dev/null; then
6792 if test -s conftest.err; then
6793 ac_cpp_err=$ac_c_preproc_warn_flag
6794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6801 if test -z "$ac_cpp_err"; then
6802 ac_header_preproc=yes
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6807 ac_header_preproc=no
6809 rm -f conftest.err conftest.$ac_ext
6810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6811 echo "${ECHO_T}$ac_header_preproc" >&6
6813 # So? What about this header?
6814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6820 ac_header_preproc=yes
6823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6837 ## ------------------------------------------ ##
6838 ## Report this to the AC_PACKAGE_NAME lists. ##
6839 ## ------------------------------------------ ##
6842 sed "s/^/$as_me: WARNING: /" >&2
6845 echo "$as_me:$LINENO: checking for $ac_header" >&5
6846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 eval "$as_ac_Header=\$ac_header_preproc"
6852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6857 cat >>confdefs.h <<_ACEOF
6858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 # End of readline/conio stuff
6867 # -----------------------------------------------------------------------
6870 # ---------------------------------------------------
6871 # Check for GMP support/directory
6872 # ---------------------------------------------------
6876 # [ --with-gmp[=DIR] Specify gmp library directory],
6878 # case "$with_gmp" in
6881 # if test "$with_gmp" != "yes"; then
6882 # GMP_INC="-I$with_gmp"
6884 # GMP_LDFLAGS="-L$with_gmp"
6886 # with_gmp="/usr/include"
6888 # AC_CHECK_HEADER($with_gmp/gmp.h,
6889 # [ AC_MSG_RESULT(yes)
6890 # AC_DEFINE(HAVE_GMP)
6894 # [ AC_MSG_ERROR([*** gmp library missing])
6900 # # check for standard gmp library
6901 # AC_CHECK_HEADER(/usr/include/gmp.h,
6902 # [ AC_MSG_RESULT(yes)
6903 # AC_DEFINE(HAVE_GMP)
6908 # # Did not find standard library, so use our own
6909 # AC_MSG_RESULT(yes)
6910 # AC_DEFINE(HAVE_GMP)
6913 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6915 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6916 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6922 #AC_SUBST(GMP_LDFLAGS)
6926 # -----------------------------------------------------------------------
6929 # ---------------------------------------------------
6930 # Check for CWEB support/directory
6931 # ---------------------------------------------------
6936 # [ --with-cweb[=DIR] Specify cweb library directory],
6938 # case "$with_cweb" in
6941 # if test "$with_cweb" != "yes"; then
6942 # CWEB_INC="-I$with_cweb"
6943 # CWEB_LIBS="-lcweb"
6944 # CWEB_LDFLAGS="-L$with_cweb"
6946 # with_cweb="/usr/include"
6948 # AC_CHECK_HEADER($with_cweb/cweb.h,
6949 # [ AC_MSG_RESULT(yes)
6950 # AC_DEFINE(HAVE_CWEB)
6951 # CWEB_LIBS="-lcweb"
6954 # [ AC_MSG_ERROR([*** cweb library missing])
6960 # # check for standard cweb library
6961 # AC_CHECK_HEADER(/usr/include/cweb.h,
6962 # [ AC_MSG_RESULT(yes)
6963 # AC_DEFINE(HAVE_CWEB)
6966 # CWEB_LIBS="-lcweb"
6968 # # Did not find starndard library, so use our own
6969 # AC_MSG_RESULT(yes)
6970 # AC_DEFINE(HAVE_CWEB)
6973 # CWEB=${TOP_DIR}/depkgs/cweb
6974 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6975 # CWEB_LIBS="-lcweb"
6976 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6977 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6983 #AC_SUBST(CWEB_LIBS)
6984 #AC_SUBST(CWEB_LDFLAGS)
6988 # -----------------------------------------------------------------------
6992 # -----------------------------------------------------------
6993 # Check whether user wants TCP wrappers support (default off)
6994 # -----------------------------------------------------------
6997 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6998 if test "${with_tcp_wrappers+set}" = set; then
6999 withval="$with_tcp_wrappers"
7001 if test "x$withval" != "xno" ; then
7003 LIBS="$saved_LIBS -lwrap"
7004 echo "$as_me:$LINENO: checking for libwrap" >&5
7005 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7006 cat >conftest.$ac_ext <<_ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7013 int deny_severity = 0;
7014 int allow_severity = 0;
7015 struct request_info *req;
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag"
7034 || test ! -s conftest.err'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; } &&
7040 { ac_try='test -s conftest$ac_exeext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048 echo "${ECHO_T}yes" >&6
7049 cat >>confdefs.h <<\_ACEOF
7050 #define HAVE_LIBWRAP 1
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7060 LIBS="$saved_LIBS -lwrap -lnsl"
7061 cat >conftest.$ac_ext <<_ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7068 int deny_severity = 0;
7069 int allow_severity = 0;
7070 struct request_info *req;
7079 rm -f conftest.$ac_objext conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>conftest.er1
7083 grep -v '^ *+' conftest.er1 >conftest.err
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -z "$ac_c_werror_flag"
7089 || test ! -s conftest.err'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest$ac_exeext'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7102 echo "$as_me:$LINENO: result: yes" >&5
7103 echo "${ECHO_T}yes" >&6
7104 cat >>confdefs.h <<\_ACEOF
7105 #define HAVE_LIBWRAP 1
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7114 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7115 echo "$as_me: error: *** libwrap missing" >&2;}
7116 { (exit 1); exit 1; }; }
7119 rm -f conftest.err conftest.$ac_objext \
7120 conftest$ac_exeext conftest.$ac_ext
7123 rm -f conftest.err conftest.$ac_objext \
7124 conftest$ac_exeext conftest.$ac_ext
7130 # ------------------------------------------
7131 # Where to place working dir
7132 # ------------------------------------------
7133 working_dir=`eval echo ${prefix}/var/bacula/working`
7135 # Check whether --with-working-dir or --without-working-dir was given.
7136 if test "${with_working_dir+set}" = set; then
7137 withval="$with_working_dir"
7139 if test "x$withval" != "xno" ; then
7140 working_dir=$withval
7149 # ------------------------------------------
7150 # Where to place scriptdir (script files)
7151 # ------------------------------------------
7152 scriptdir=`eval echo ${sysconfdir}`
7154 # Check whether --with-scriptdir or --without-scriptdir was given.
7155 if test "${with_scriptdir+set}" = set; then
7156 withval="$with_scriptdir"
7158 if test "x$withval" != "xno" ; then
7168 # ------------------------------------------
7169 # Where to send dump email
7170 # ------------------------------------------
7171 dump_email=root@localhost
7173 # Check whether --with-dump-email or --without-dump-email was given.
7174 if test "${with_dump_email+set}" = set; then
7175 withval="$with_dump_email"
7177 if test "x$withval" != "xno" ; then
7186 # ------------------------------------------
7187 # Where to send job email
7188 # ------------------------------------------
7189 job_email=root@localhost
7191 # Check whether --with-job-email or --without-job-email was given.
7192 if test "${with_job_email+set}" = set; then
7193 withval="$with_job_email"
7195 if test "x$withval" != "xno" ; then
7204 # ------------------------------------------
7205 # Where to find smtp host
7206 # ------------------------------------------
7209 # Check whether --with-smtp_host or --without-smtp_host was given.
7210 if test "${with_smtp_host+set}" = set; then
7211 withval="$with_smtp_host"
7213 if test "x$withval" != "xno" ; then
7223 # ------------------------------------
7224 # Where to place pid files
7225 # ------------------------------------
7228 # Check whether --with-pid-dir or --without-pid-dir was given.
7229 if test "${with_pid_dir+set}" = set; then
7230 withval="$with_pid_dir"
7232 if test "x$withval" != "xno" ; then
7239 cat >>confdefs.h <<_ACEOF
7240 #define _PATH_BACULA_PIDDIR "$piddir"
7246 # ------------------------------------
7247 # Where to place subsys "lock file"
7248 # ------------------------------------
7249 subsysdir=/var/run/subsys
7251 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7252 if test "${with_subsys_dir+set}" = set; then
7253 withval="$with_subsys_dir"
7255 if test "x$withval" != "xno" ; then
7266 # ------------------------------------
7267 # Where to start assigning ports
7268 # ------------------------------------
7271 # Check whether --with-baseport or --without-baseport was given.
7272 if test "${with_baseport+set}" = set; then
7273 withval="$with_baseport"
7275 if test "x$withval" != "xno" ; then
7283 dir_port=`expr $baseport`
7284 fd_port=`expr $baseport + 1`
7285 sd_port=`expr $fd_port + 1`
7292 # ------------------------------------------
7293 # Generate passwords
7294 # ------------------------------------------
7297 # Check whether --with-dir-password or --without-dir-password was given.
7298 if test "${with_dir_password+set}" = set; then
7299 withval="$with_dir_password"
7301 if test "x$withval" != "xno" ; then
7302 dir_password=$withval
7308 if test "x$dir_password" = "x" ; then
7309 if test "x$OPENSSL" = "xnone" ; then
7310 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7311 key=`autoconf/randpass 33`
7313 key=`openssl rand -base64 33`
7320 # Check whether --with-fd-password or --without-fd-password was given.
7321 if test "${with_fd_password+set}" = set; then
7322 withval="$with_fd_password"
7324 if test "x$withval" != "xno" ; then
7325 fd_password=$withval
7331 if test "x$fd_password" = "x" ; then
7332 if test "x$OPENSSL" = "xnone" ; then
7333 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7334 key=`autoconf/randpass 37`
7336 key=`openssl rand -base64 33`
7343 # Check whether --with-sd-password or --without-sd-password was given.
7344 if test "${with_sd_password+set}" = set; then
7345 withval="$with_sd_password"
7347 if test "x$withval" != "xno" ; then
7348 sd_password=$withval
7354 if test "x$sd_password" = "x" ; then
7355 if test "x$OPENSSL" = "xnone" ; then
7356 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7357 key=`autoconf/randpass 41`
7359 key=`openssl rand -base64 33`
7366 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7367 if test "${with_mon_dir_password+set}" = set; then
7368 withval="$with_mon_dir_password"
7370 if test "x$withval" != "xno" ; then
7371 mon_dir_password=$withval
7377 if test "x$mon_dir_password" = "x" ; then
7378 if test "x$OPENSSL" = "xnone" ; then
7379 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7380 key=`autoconf/randpass 33`
7382 key=`openssl rand -base64 33`
7384 mon_dir_password=$key
7389 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7390 if test "${with_mon_fd_password+set}" = set; then
7391 withval="$with_mon_fd_password"
7393 if test "x$withval" != "xno" ; then
7394 mon_fd_password=$withval
7400 if test "x$mon_fd_password" = "x" ; then
7401 if test "x$OPENSSL" = "xnone" ; then
7402 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7403 key=`autoconf/randpass 37`
7405 key=`openssl rand -base64 33`
7407 mon_fd_password=$key
7412 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7413 if test "${with_mon_sd_password+set}" = set; then
7414 withval="$with_mon_sd_password"
7416 if test "x$withval" != "xno" ; then
7417 mon_sd_password=$withval
7423 if test "x$mon_sd_password" = "x" ; then
7424 if test "x$OPENSSL" = "xnone" ; then
7425 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7426 key=`autoconf/randpass 41`
7428 key=`openssl rand -base64 33`
7430 mon_sd_password=$key
7441 # Handle users and groups for each daemon
7445 # Check whether --with-dir_user or --without-dir_user was given.
7446 if test "${with_dir_user+set}" = set; then
7447 withval="$with_dir_user"
7449 if test "x$withval" != "x" ; then
7458 # Check whether --with-dir_group or --without-dir_group was given.
7459 if test "${with_dir_group+set}" = set; then
7460 withval="$with_dir_group"
7462 if test "x$withval" != "x" ; then
7471 # Check whether --with-sd_user or --without-sd_user was given.
7472 if test "${with_sd_user+set}" = set; then
7473 withval="$with_sd_user"
7475 if test "x$withval" != "x" ; then
7484 # Check whether --with-sd_group or --without-sd_group was given.
7485 if test "${with_sd_group+set}" = set; then
7486 withval="$with_sd_group"
7488 if test "x$withval" != "x" ; then
7497 # Check whether --with-fd_user or --without-fd_user was given.
7498 if test "${with_fd_user+set}" = set; then
7499 withval="$with_fd_user"
7501 if test "x$withval" != "x" ; then
7510 # Check whether --with-fd_group or --without-fd_group was given.
7511 if test "${with_fd_group+set}" = set; then
7512 withval="$with_fd_group"
7514 if test "x$withval" != "x" ; then
7532 # allow setting default executable permissions
7536 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7537 if test "${with_sbin_perm+set}" = set; then
7538 withval="$with_sbin_perm"
7540 if test "x$withval" != "x" ; then
7549 # ------------------------------------------------
7550 # Bacula check for various SQL database engines
7551 # ------------------------------------------------
7554 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7555 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7557 # Check whether --with-postgresql or --without-postgresql was given.
7558 if test "${with_postgresql+set}" = set; then
7559 withval="$with_postgresql"
7561 if test "$withval" != "no"; then
7562 if test "$db_found" = "yes"; then
7563 echo "$as_me:$LINENO: result: error" >&5
7564 echo "${ECHO_T}error" >&6
7565 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7566 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7567 { (exit 1); exit 1; }; };
7569 if test "$withval" = "yes"; then
7570 if test -f /usr/local/include/libpq-fe.h; then
7571 POSTGRESQL_INCDIR=/usr/local/include
7572 POSTGRESQL_LIBDIR=/usr/local/lib
7573 POSTGRESQL_BINDIR=/usr/local/bin
7574 elif test -f /usr/include/libpq-fe.h; then
7575 POSTGRESQL_INCDIR=/usr/include
7576 POSTGRESQL_LIBDIR=/usr/lib
7577 POSTGRESQL_BINDIR=/usr/bin
7578 elif test -f /usr/include/pgsql/libpq-fe.h; then
7579 POSTGRESQL_INCDIR=/usr/include/pgsql
7580 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7581 POSTGRESQL_BINDIR=/usr/bin
7582 elif test -f /usr/include/postgresql/libpq-fe.h; then
7583 POSTGRESQL_INCDIR=/usr/include/postgresql
7584 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7585 POSTGRESQL_BINDIR=/usr/bin
7587 echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6
7589 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7590 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7591 { (exit 1); exit 1; }; }
7593 elif test -f $withval/include/libpq-fe.h; then
7594 POSTGRESQL_INCDIR=$withval/include
7595 POSTGRESQL_LIBDIR=$withval/lib
7596 POSTGRESQL_BINDIR=$withval/bin
7598 echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7600 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7601 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7602 { (exit 1); exit 1; }; }
7604 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7605 echo "$as_me:$LINENO: checking for crypt" >&5
7606 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7607 if test "${ac_cv_func_crypt+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 cat >conftest.$ac_ext <<_ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
7617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7618 #define crypt innocuous_crypt
7620 /* System header to define __stub macros and hopefully few prototypes,
7621 which can conflict with char crypt (); below.
7622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7623 <limits.h> exists even on freestanding compilers. */
7626 # include <limits.h>
7628 # include <assert.h>
7633 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_crypt) || defined (__stub___crypt)
7647 char (*f) () = crypt;
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>conftest.er1
7665 grep -v '^ *+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try='test -z "$ac_c_werror_flag"
7671 || test ! -s conftest.err'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; } &&
7677 { ac_try='test -s conftest$ac_exeext'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 ac_cv_func_crypt=yes
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7690 rm -f conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7693 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7694 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7695 if test $ac_cv_func_crypt = yes; then
7698 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7699 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7700 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 ac_check_lib_save_LIBS=$LIBS
7704 LIBS="-lcrypt $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 /* Override any gcc2 internal prototype to avoid an error. */
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>conftest.er1
7731 grep -v '^ *+' conftest.er1 >conftest.err
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_lib_crypt_crypt=yes
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_lib_crypt_crypt=no
7756 rm -f conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7760 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7761 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7762 if test $ac_cv_lib_crypt_crypt = yes; then
7763 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7768 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7769 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7770 SQL_BINDIR=$POSTGRESQL_BINDIR
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_POSTGRESQL 1
7775 echo "$as_me:$LINENO: result: yes" >&5
7776 echo "${ECHO_T}yes" >&6
7778 support_postgresql=yes
7782 echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6
7788 echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7800 echo "$as_me:$LINENO: checking for MySQL support" >&5
7801 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7803 # Check whether --with-mysql or --without-mysql was given.
7804 if test "${with_mysql+set}" = set; then
7805 withval="$with_mysql"
7807 if test "$withval" != "no"; then
7808 if test "$withval" = "yes"; then
7809 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7810 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7811 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7812 MYSQL_BINDIR=/usr/local/mysql/bin
7813 elif test -f /usr/include/mysql/mysql.h; then
7814 MYSQL_INCDIR=/usr/include/mysql
7815 MYSQL_LIBDIR=/usr/lib/mysql
7816 MYSQL_BINDIR=/usr/bin
7817 elif test -f /usr/include/mysql.h; then
7818 MYSQL_INCDIR=/usr/include
7819 MYSQL_LIBDIR=/usr/lib
7820 MYSQL_BINDIR=/usr/bin
7821 elif test -f /usr/local/include/mysql/mysql.h; then
7822 MYSQL_INCDIR=/usr/local/include/mysql
7823 MYSQL_LIBDIR=/usr/local/lib/mysql
7824 MYSQL_BINDIR=/usr/local/bin
7825 elif test -f /usr/local/include/mysql.h; then
7826 MYSQL_INCDIR=/usr/local/include
7827 MYSQL_LIBDIR=/usr/local/lib
7828 MYSQL_BINDIR=/usr/local/bin
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7833 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7834 { (exit 1); exit 1; }; }
7837 if test -f $withval/include/mysql/mysql.h; then
7838 MYSQL_INCDIR=$withval/include/mysql
7839 MYSQL_LIBDIR=$withval/lib/mysql
7840 MYSQL_BINDIR=$withval/bin
7841 elif test -f $withval/include/mysql.h; then
7842 MYSQL_INCDIR=$withval/include
7843 MYSQL_LIBDIR=$withval/lib
7844 MYSQL_BINDIR=$withval/bin
7846 echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6
7848 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7849 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7850 { (exit 1); exit 1; }; }
7853 SQL_INCLUDE=-I$MYSQL_INCDIR
7854 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7855 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7856 cat >>confdefs.h <<\_ACEOF
7857 #define HAVE_THREAD_SAFE_MYSQL 1
7861 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7863 SQL_BINDIR=$MYSQL_BINDIR
7865 cat >>confdefs.h <<\_ACEOF
7866 #define HAVE_MYSQL 1
7869 echo "$as_me:$LINENO: result: yes" >&5
7870 echo "${ECHO_T}yes" >&6
7877 echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6
7885 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7886 if test "${with_embedded_mysql+set}" = set; then
7887 withval="$with_embedded_mysql"
7889 if test "$withval" != "no"; then
7890 if test "$withval" = "yes"; then
7891 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7892 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7893 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7894 MYSQL_BINDIR=/usr/local/mysql/bin
7895 elif test -f /usr/include/mysql/mysql.h; then
7896 MYSQL_INCDIR=/usr/include/mysql
7897 MYSQL_LIBDIR=/usr/lib/mysql
7898 MYSQL_BINDIR=/usr/bin
7899 elif test -f /usr/include/mysql.h; then
7900 MYSQL_INCDIR=/usr/include
7901 MYSQL_LIBDIR=/usr/lib
7902 MYSQL_BINDIR=/usr/bin
7903 elif test -f /usr/local/include/mysql/mysql.h; then
7904 MYSQL_INCDIR=/usr/local/include/mysql
7905 MYSQL_LIBDIR=/usr/local/lib/mysql
7906 MYSQL_BINDIR=/usr/local/bin
7907 elif test -f /usr/local/include/mysql.h; then
7908 MYSQL_INCDIR=/usr/local/include
7909 MYSQL_LIBDIR=/usr/local/lib
7910 MYSQL_BINDIR=/usr/local/bin
7912 echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6
7914 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7915 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7916 { (exit 1); exit 1; }; }
7919 if test -f $withval/include/mysql/mysql.h; then
7920 MYSQL_INCDIR=$withval/include/mysql
7921 MYSQL_LIBDIR=$withval/lib/mysql
7922 MYSQL_BINDIR=$withval/bin
7923 elif test -f $withval/include/mysql.h; then
7924 MYSQL_INCDIR=$withval/include
7925 MYSQL_LIBDIR=$withval/lib
7926 MYSQL_BINDIR=$withval/bin
7928 echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6
7930 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7931 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7932 { (exit 1); exit 1; }; }
7935 SQL_INCLUDE=-I$MYSQL_INCDIR
7936 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7937 SQL_BINDIR=$MYSQL_BINDIR
7939 cat >>confdefs.h <<\_ACEOF
7940 #define HAVE_MYSQL 1
7943 cat >>confdefs.h <<\_ACEOF
7944 #define HAVE_EMBEDDED_MYSQL 1
7947 echo "$as_me:$LINENO: result: yes" >&5
7948 echo "${ECHO_T}yes" >&6
7955 echo "$as_me:$LINENO: result: no" >&5
7956 echo "${ECHO_T}no" >&6
7971 echo "$as_me:$LINENO: checking for SQLite support" >&5
7972 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7974 # Check whether --with-sqlite or --without-sqlite was given.
7975 if test "${with_sqlite+set}" = set; then
7976 withval="$with_sqlite"
7978 if test "$withval" != "no"; then
7979 if test "$withval" = "yes"; then
7980 if test -f /usr/local/include/sqlite.h; then
7981 SQLITE_INCDIR=/usr/local/include
7982 SQLITE_LIBDIR=/usr/local/lib
7983 SQLITE_BINDIR=/usr/local/bin
7984 elif test -f /usr/include/sqlite.h; then
7985 SQLITE_INCDIR=/usr/include
7986 SQLITE_LIBDIR=/usr/lib
7987 SQLITE_BINDIR=/usr/bin
7989 echo "$as_me:$LINENO: result: no" >&5
7990 echo "${ECHO_T}no" >&6
7991 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7992 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7993 { (exit 1); exit 1; }; }
7996 if test -f $withval/sqlite.h; then
7997 SQLITE_INCDIR=$withval
7998 SQLITE_LIBDIR=$withval
7999 SQLITE_BINDIR=$withval
8001 echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6
8003 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8004 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8005 { (exit 1); exit 1; }; }
8008 SQL_INCLUDE=-I$SQLITE_INCDIR
8009 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8010 SQL_BINDIR=$SQLITE_BINDIR
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_SQLITE 1
8016 echo "$as_me:$LINENO: result: yes" >&5
8017 echo "${ECHO_T}yes" >&6
8024 echo "$as_me:$LINENO: result: no" >&5
8025 echo "${ECHO_T}no" >&6
8030 echo "$as_me:$LINENO: result: no" >&5
8031 echo "${ECHO_T}no" >&6
8043 cat >>confdefs.h <<\_ACEOF
8044 #define PROTOTYPES 1
8048 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8049 if test -z "$CCOPTS"; then
8050 CCOPTS='-g -O2 -Wall'
8058 largefile_support="no"
8060 # Check whether --enable-largefile or --disable-largefile was given.
8061 if test "${enable_largefile+set}" = set; then
8062 enableval="$enable_largefile"
8065 if test "$enable_largefile" != no; then
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8069 echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8071 if test "${ac_cv_prog_GETCONF+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 if test -n "$GETCONF"; then
8075 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 GETCONF=$ac_cv_prog_GETCONF
8094 if test -n "$GETCONF"; then
8095 echo "$as_me:$LINENO: result: $GETCONF" >&5
8096 echo "${ECHO_T}$GETCONF" >&6
8098 echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6
8103 if test -z "$ac_cv_prog_GETCONF"; then
8104 ac_ct_GETCONF=$GETCONF
8105 # Extract the first word of "getconf", so it can be a program name with args.
8106 set dummy getconf; ac_word=$2
8107 echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8109 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 if test -n "$ac_ct_GETCONF"; then
8113 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_GETCONF="getconf"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8132 if test -n "$ac_ct_GETCONF"; then
8133 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8134 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8136 echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6
8140 GETCONF=$ac_ct_GETCONF
8142 GETCONF="$ac_cv_prog_GETCONF"
8145 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8146 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8147 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8151 ac_cv_sys_largefile_CFLAGS=no
8153 # IRIX 6.2 and later require cc -n32.
8154 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8155 if test "$GCC" != yes; then
8156 ac_cv_sys_largefile_CFLAGS=-n32
8159 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>conftest.er1
8179 grep -v '^ *+' conftest.er1 >conftest.err
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -z "$ac_c_werror_flag"
8185 || test ! -s conftest.err'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_cv_sys_largefile_CFLAGS=no
8204 rm -f conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8210 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8211 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8212 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8213 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8214 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8218 ac_cv_sys_largefile_LDFLAGS=no
8222 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8223 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8224 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8225 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8226 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8230 ac_cv_sys_largefile_LIBS=no
8234 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8235 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8237 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8240 -D_FILE_OFFSET_BITS=*) ;;
8241 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8242 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8248 '') CPPFLAGS="$ac_flag" ;;
8249 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8257 '') CFLAGS="$ac_flag" ;;
8258 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8263 case "$ac_cv_sys_largefile_LDFLAGS" in
8267 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8268 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8271 case "$ac_cv_sys_largefile_LIBS" in
8275 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8276 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8279 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8280 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8281 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 ac_cv_sys_file_offset_bits=no
8286 # HP-UX 10.20 and later
8287 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8288 ac_cv_sys_file_offset_bits=64 ;;
8290 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8292 -D_FILE_OFFSET_BITS)
8293 ac_cv_sys_file_offset_bits=1 ;;
8294 -D_FILE_OFFSET_BITS=*)
8295 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8300 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8301 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8302 if test "$ac_cv_sys_file_offset_bits" != no; then
8304 cat >>confdefs.h <<_ACEOF
8305 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8309 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8310 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8311 if test "${ac_cv_sys_largefile_source+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_cv_sys_largefile_source=no
8316 # HP-UX 10.20 and later
8317 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8318 ac_cv_sys_largefile_source=1 ;;
8320 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8322 -D_LARGEFILE_SOURCE)
8323 ac_cv_sys_largefile_source=1 ;;
8324 -D_LARGEFILE_SOURCE=*)
8325 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8330 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8331 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8332 if test "$ac_cv_sys_largefile_source" != no; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8339 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8340 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8341 if test "${ac_cv_sys_large_files+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 ac_cv_sys_large_files=no
8347 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8348 ac_cv_sys_large_files=1 ;;
8350 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8353 ac_cv_sys_large_files=1 ;;
8355 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8360 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8361 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8362 if test "$ac_cv_sys_large_files" != no; then
8364 cat >>confdefs.h <<_ACEOF
8365 #define _LARGE_FILES $ac_cv_sys_large_files
8373 echo "$as_me:$LINENO: checking for X" >&5
8374 echo $ECHO_N "checking for X... $ECHO_C" >&6
8377 # Check whether --with-x or --without-x was given.
8378 if test "${with_x+set}" = set; then
8382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8383 if test "x$with_x" = xno; then
8384 # The user explicitly disabled X.
8387 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8388 # Both variables are already set.
8391 if test "${ac_cv_have_x+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 # One or both of the vars are not set, and there is no cached value.
8395 ac_x_includes=no ac_x_libraries=no
8397 if mkdir conftest.dir; then
8399 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8400 cat >Imakefile <<'_ACEOF'
8402 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8404 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8406 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8408 for ac_extension in a so sl; do
8409 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8410 test -f $ac_im_libdir/libX11.$ac_extension; then
8411 ac_im_usrlibdir=$ac_im_libdir; break
8414 # Screen out bogus values from the imake configuration. They are
8415 # bogus both because they are the default anyway, and because
8416 # using them would break gcc on systems where it needs fixed includes.
8417 case $ac_im_incroot in
8419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8421 case $ac_im_usrlibdir in
8423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8430 # Standard set of common directories for X headers.
8431 # Check X11 before X11Rn because it is often a symlink to the current release.
8443 /usr/local/X11/include
8444 /usr/local/X11R6/include
8445 /usr/local/X11R5/include
8446 /usr/local/X11R4/include
8448 /usr/local/include/X11
8449 /usr/local/include/X11R6
8450 /usr/local/include/X11R5
8451 /usr/local/include/X11R4
8455 /usr/XFree86/include/X11
8459 /usr/unsupported/include
8461 /usr/local/x11r5/include
8462 /usr/lpp/Xamples/include
8464 /usr/openwin/include
8465 /usr/openwin/share/include'
8467 if test "$ac_x_includes" = no; then
8468 # Guess where to find include files, by looking for Intrinsic.h.
8469 # First, try using that file with no special directory specified.
8470 cat >conftest.$ac_ext <<_ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <X11/Intrinsic.h>
8478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } >/dev/null; then
8486 if test -s conftest.err; then
8487 ac_cpp_err=$ac_c_preproc_warn_flag
8488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8495 if test -z "$ac_cpp_err"; then
8496 # We can compile using X headers with no special include directory.
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 for ac_dir in $ac_x_header_dirs; do
8503 if test -r "$ac_dir/X11/Intrinsic.h"; then
8504 ac_x_includes=$ac_dir
8509 rm -f conftest.err conftest.$ac_ext
8510 fi # $ac_x_includes = no
8512 if test "$ac_x_libraries" = no; then
8513 # Check for the libraries.
8514 # See if we find them without any special options.
8515 # Don't add to $LIBS permanently.
8518 cat >conftest.$ac_ext <<_ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <X11/Intrinsic.h>
8533 rm -f conftest.$ac_objext conftest$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>conftest.er1
8537 grep -v '^ *+' conftest.er1 >conftest.err
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag"
8543 || test ! -s conftest.err'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8556 # We can link X programs with no special library path.
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8563 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8565 # Don't even attempt the hair of trying to link an X program!
8566 for ac_extension in a so sl; do
8567 if test -r $ac_dir/libXt.$ac_extension; then
8568 ac_x_libraries=$ac_dir
8574 rm -f conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 fi # $ac_x_libraries = no
8578 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8579 # Didn't find X anywhere. Cache the known absence of X.
8580 ac_cv_have_x="have_x=no"
8582 # Record where we found X for the cache.
8583 ac_cv_have_x="have_x=yes \
8584 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8589 eval "$ac_cv_have_x"
8592 if test "$have_x" != yes; then
8593 echo "$as_me:$LINENO: result: $have_x" >&5
8594 echo "${ECHO_T}$have_x" >&6
8597 # If each of the values was on the command line, it overrides each guess.
8598 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8599 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8600 # Update the cache value to reflect the command line values.
8601 ac_cv_have_x="have_x=yes \
8602 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8603 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8604 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8607 if test "$no_x" = yes; then
8608 # Not all programs may use this symbol, but it does not hurt to define it.
8610 cat >>confdefs.h <<\_ACEOF
8611 #define X_DISPLAY_MISSING 1
8614 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8616 if test -n "$x_includes"; then
8617 X_CFLAGS="$X_CFLAGS -I$x_includes"
8620 # It would also be nice to do this for all -L options, not just this one.
8621 if test -n "$x_libraries"; then
8622 X_LIBS="$X_LIBS -L$x_libraries"
8623 # For Solaris; some versions of Sun CC require a space after -R and
8624 # others require no space. Words are not sufficient . . . .
8625 case `(uname -sr) 2>/dev/null` in
8627 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8628 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8629 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8630 cat >conftest.$ac_ext <<_ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8645 rm -f conftest.$ac_objext conftest$ac_exeext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647 (eval $ac_link) 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -z "$ac_c_werror_flag"
8655 || test ! -s conftest.err'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest$ac_exeext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8674 rm -f conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 if test $ac_R_nospace = yes; then
8677 echo "$as_me:$LINENO: result: no" >&5
8678 echo "${ECHO_T}no" >&6
8679 X_LIBS="$X_LIBS -R$x_libraries"
8681 LIBS="$ac_xsave_LIBS -R $x_libraries"
8682 cat >conftest.$ac_ext <<_ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699 (eval $ac_link) 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag"
8707 || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8726 rm -f conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 if test $ac_R_space = yes; then
8729 echo "$as_me:$LINENO: result: yes" >&5
8730 echo "${ECHO_T}yes" >&6
8731 X_LIBS="$X_LIBS -R $x_libraries"
8733 echo "$as_me:$LINENO: result: neither works" >&5
8734 echo "${ECHO_T}neither works" >&6
8741 # Check for system-dependent libraries X programs must link with.
8742 # Do this before checking for the system-independent R6 libraries
8743 # (-lICE), since we may need -lsocket or whatever for X linking.
8745 if test "$ISC" = yes; then
8746 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8748 # Martyn Johnson says this is needed for Ultrix, if the X
8749 # libraries were built with DECnet support. And Karl Berry says
8750 # the Alpha needs dnet_stub (dnet does not exist).
8751 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8759 /* Override any gcc2 internal prototype to avoid an error. */
8763 /* We use char because int might match the return type of a gcc2
8764 builtin and then its argument prototype would still apply. */
8765 char XOpenDisplay ();
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8802 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8803 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 ac_check_lib_save_LIBS=$LIBS
8808 cat >conftest.$ac_ext <<_ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8815 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832 (eval $ac_link) 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest$ac_exeext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_lib_dnet_dnet_ntoa=yes
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8857 ac_cv_lib_dnet_dnet_ntoa=no
8859 rm -f conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861 LIBS=$ac_check_lib_save_LIBS
8863 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8864 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8865 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8866 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8869 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8870 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8871 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8872 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 ac_check_lib_save_LIBS=$LIBS
8876 LIBS="-ldnet_stub $LIBS"
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 /* Override any gcc2 internal prototype to avoid an error. */
8888 /* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>conftest.er1
8903 grep -v '^ *+' conftest.er1 >conftest.err
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag"
8909 || test ! -s conftest.err'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 ac_cv_lib_dnet_stub_dnet_ntoa=no
8928 rm -f conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 LIBS=$ac_check_lib_save_LIBS
8932 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8933 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8934 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8935 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8940 rm -f conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8942 LIBS="$ac_xsave_LIBS"
8944 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8945 # to get the SysV transport functions.
8946 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8948 # The nsl library prevents programs from opening the X display
8949 # on Irix 5.2, according to T.E. Dickey.
8950 # The functions gethostbyname, getservbyname, and inet_addr are
8951 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8952 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8953 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8954 if test "${ac_cv_func_gethostbyname+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8965 #define gethostbyname innocuous_gethostbyname
8967 /* System header to define __stub macros and hopefully few prototypes,
8968 which can conflict with char gethostbyname (); below.
8969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8970 <limits.h> exists even on freestanding compilers. */
8973 # include <limits.h>
8975 # include <assert.h>
8978 #undef gethostbyname
8980 /* Override any gcc2 internal prototype to avoid an error. */
8985 /* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8987 char gethostbyname ();
8988 /* The GNU C library defines this for functions which it implements
8989 to always fail with ENOSYS. Some functions are actually named
8990 something starting with __ and the normal name is an alias. */
8991 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8994 char (*f) () = gethostbyname;
9003 return f != gethostbyname;
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9010 (eval $ac_link) 2>conftest.er1
9012 grep -v '^ *+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag"
9018 || test ! -s conftest.err'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
9024 { ac_try='test -s conftest$ac_exeext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_cv_func_gethostbyname=yes
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ac_cv_func_gethostbyname=no
9037 rm -f conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
9040 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9041 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9043 if test $ac_cv_func_gethostbyname = no; then
9044 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9045 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9046 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 ac_check_lib_save_LIBS=$LIBS
9051 cat >conftest.$ac_ext <<_ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9058 /* Override any gcc2 internal prototype to avoid an error. */
9062 /* We use char because int might match the return type of a gcc2
9063 builtin and then its argument prototype would still apply. */
9064 char gethostbyname ();
9073 rm -f conftest.$ac_objext conftest$ac_exeext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075 (eval $ac_link) 2>conftest.er1
9077 grep -v '^ *+' conftest.er1 >conftest.err
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -z "$ac_c_werror_flag"
9083 || test ! -s conftest.err'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_cv_lib_nsl_gethostbyname=yes
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 ac_cv_lib_nsl_gethostbyname=no
9102 rm -f conftest.err conftest.$ac_objext \
9103 conftest$ac_exeext conftest.$ac_ext
9104 LIBS=$ac_check_lib_save_LIBS
9106 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9107 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9108 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9109 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9112 if test $ac_cv_lib_nsl_gethostbyname = no; then
9113 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9114 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9115 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 ac_check_lib_save_LIBS=$LIBS
9120 cat >conftest.$ac_ext <<_ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9127 /* Override any gcc2 internal prototype to avoid an error. */
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9133 char gethostbyname ();
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_cv_lib_bsd_gethostbyname=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_cv_lib_bsd_gethostbyname=no
9171 rm -f conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9175 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9176 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9177 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9178 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9184 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9185 # socket/setsockopt and other routines are undefined under SCO ODT
9186 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9187 # on later versions), says Simon Leinen: it contains gethostby*
9188 # variants that don't use the name server (or something). -lsocket
9189 # must be given before -lnsl if both are needed. We assume that
9190 # if connect needs -lnsl, so does gethostbyname.
9191 echo "$as_me:$LINENO: checking for connect" >&5
9192 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9193 if test "${ac_cv_func_connect+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 cat >conftest.$ac_ext <<_ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9204 #define connect innocuous_connect
9206 /* System header to define __stub macros and hopefully few prototypes,
9207 which can conflict with char connect (); below.
9208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9209 <limits.h> exists even on freestanding compilers. */
9212 # include <limits.h>
9214 # include <assert.h>
9219 /* Override any gcc2 internal prototype to avoid an error. */
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9227 /* The GNU C library defines this for functions which it implements
9228 to always fail with ENOSYS. Some functions are actually named
9229 something starting with __ and the normal name is an alias. */
9230 #if defined (__stub_connect) || defined (__stub___connect)
9233 char (*f) () = connect;
9242 return f != connect;
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249 (eval $ac_link) 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -z "$ac_c_werror_flag"
9257 || test ! -s conftest.err'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; } &&
9263 { ac_try='test -s conftest$ac_exeext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 ac_cv_func_connect=yes
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 ac_cv_func_connect=no
9276 rm -f conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9280 echo "${ECHO_T}$ac_cv_func_connect" >&6
9282 if test $ac_cv_func_connect = no; then
9283 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9284 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9285 if test "${ac_cv_lib_socket_connect+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 ac_check_lib_save_LIBS=$LIBS
9289 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9290 cat >conftest.$ac_ext <<_ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9297 /* Override any gcc2 internal prototype to avoid an error. */
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_cv_lib_socket_connect=yes
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_cv_lib_socket_connect=no
9341 rm -f conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 LIBS=$ac_check_lib_save_LIBS
9345 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9346 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9347 if test $ac_cv_lib_socket_connect = yes; then
9348 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9353 # Guillermo Gomez says -lposix is necessary on A/UX.
9354 echo "$as_me:$LINENO: checking for remove" >&5
9355 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9356 if test "${ac_cv_func_remove+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9367 #define remove innocuous_remove
9369 /* System header to define __stub macros and hopefully few prototypes,
9370 which can conflict with char remove (); below.
9371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9372 <limits.h> exists even on freestanding compilers. */
9375 # include <limits.h>
9377 # include <assert.h>
9382 /* Override any gcc2 internal prototype to avoid an error. */
9387 /* We use char because int might match the return type of a gcc2
9388 builtin and then its argument prototype would still apply. */
9390 /* The GNU C library defines this for functions which it implements
9391 to always fail with ENOSYS. Some functions are actually named
9392 something starting with __ and the normal name is an alias. */
9393 #if defined (__stub_remove) || defined (__stub___remove)
9396 char (*f) () = remove;
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9414 grep -v '^ *+' conftest.er1 >conftest.err
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag"
9420 || test ! -s conftest.err'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 ac_cv_func_remove=yes
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_cv_func_remove=no
9439 rm -f conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9443 echo "${ECHO_T}$ac_cv_func_remove" >&6
9445 if test $ac_cv_func_remove = no; then
9446 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9447 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9448 if test "${ac_cv_lib_posix_remove+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 ac_check_lib_save_LIBS=$LIBS
9452 LIBS="-lposix $LIBS"
9453 cat >conftest.$ac_ext <<_ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9460 /* Override any gcc2 internal prototype to avoid an error. */
9464 /* We use char because int might match the return type of a gcc2
9465 builtin and then its argument prototype would still apply. */
9475 rm -f conftest.$ac_objext conftest$ac_exeext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9477 (eval $ac_link) 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag"
9485 || test ! -s conftest.err'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; } &&
9491 { ac_try='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 ac_cv_lib_posix_remove=yes
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 ac_cv_lib_posix_remove=no
9504 rm -f conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 LIBS=$ac_check_lib_save_LIBS
9508 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9509 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9510 if test $ac_cv_lib_posix_remove = yes; then
9511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9516 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9517 echo "$as_me:$LINENO: checking for shmat" >&5
9518 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9519 if test "${ac_cv_func_shmat+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9530 #define shmat innocuous_shmat
9532 /* System header to define __stub macros and hopefully few prototypes,
9533 which can conflict with char shmat (); below.
9534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9535 <limits.h> exists even on freestanding compilers. */
9538 # include <limits.h>
9540 # include <assert.h>
9545 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9553 /* The GNU C library defines this for functions which it implements
9554 to always fail with ENOSYS. Some functions are actually named
9555 something starting with __ and the normal name is an alias. */
9556 #if defined (__stub_shmat) || defined (__stub___shmat)
9559 char (*f) () = shmat;
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -z "$ac_c_werror_flag"
9583 || test ! -s conftest.err'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; } &&
9589 { ac_try='test -s conftest$ac_exeext'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_cv_func_shmat=yes
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9602 rm -f conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9605 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9606 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9608 if test $ac_cv_func_shmat = no; then
9609 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9610 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9611 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 ac_check_lib_save_LIBS=$LIBS
9616 cat >conftest.$ac_ext <<_ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9623 /* Override any gcc2 internal prototype to avoid an error. */
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9638 rm -f conftest.$ac_objext conftest$ac_exeext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>conftest.er1
9642 grep -v '^ *+' conftest.er1 >conftest.err
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag"
9648 || test ! -s conftest.err'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest$ac_exeext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_cv_lib_ipc_shmat=yes
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_lib_ipc_shmat=no
9667 rm -f conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669 LIBS=$ac_check_lib_save_LIBS
9671 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9672 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9673 if test $ac_cv_lib_ipc_shmat = yes; then
9674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9680 # Check for libraries that X11R6 Xt/Xaw programs need.
9681 ac_save_LDFLAGS=$LDFLAGS
9682 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9683 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9684 # check for ICE first), but we must link in the order -lSM -lICE or
9685 # we get undefined symbols. So assume we have SM if we have ICE.
9686 # These have to be linked with before -lX11, unlike the other
9687 # libraries we check for below, so use a different variable.
9688 # John Interrante, Karl Berry
9689 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9690 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9691 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 ac_check_lib_save_LIBS=$LIBS
9695 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9703 /* Override any gcc2 internal prototype to avoid an error. */
9707 /* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
9709 char IceConnectionNumber ();
9713 IceConnectionNumber ();
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_cv_lib_ICE_IceConnectionNumber=yes
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_cv_lib_ICE_IceConnectionNumber=no
9747 rm -f conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_lib_save_LIBS
9751 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9752 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9753 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9754 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9757 LDFLAGS=$ac_save_LDFLAGS
9817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9819 echo "$as_me:$LINENO: checking for $ac_header" >&5
9820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9827 # Is the header compilable?
9828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9830 cat >conftest.$ac_ext <<_ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 $ac_includes_default
9837 #include <$ac_header>
9839 rm -f conftest.$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841 (eval $ac_compile) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_header_compiler=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_header_compiler=no
9868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9870 echo "${ECHO_T}$ac_header_compiler" >&6
9872 # Is the header present?
9873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 #include <$ac_header>
9883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9886 grep -v '^ *+' conftest.er1 >conftest.err
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } >/dev/null; then
9891 if test -s conftest.err; then
9892 ac_cpp_err=$ac_c_preproc_warn_flag
9893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9900 if test -z "$ac_cpp_err"; then
9901 ac_header_preproc=yes
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 ac_header_preproc=no
9908 rm -f conftest.err conftest.$ac_ext
9909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9910 echo "${ECHO_T}$ac_header_preproc" >&6
9912 # So? What about this header?
9913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9919 ac_header_preproc=yes
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9936 ## ------------------------------------------ ##
9937 ## Report this to the AC_PACKAGE_NAME lists. ##
9938 ## ------------------------------------------ ##
9941 sed "s/^/$as_me: WARNING: /" >&2
9944 echo "$as_me:$LINENO: checking for $ac_header" >&5
9945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 eval "$as_ac_Header=\$ac_header_preproc"
9951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9956 cat >>confdefs.h <<_ACEOF
9957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9964 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9965 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9966 if test "${ac_cv_header_stdc+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9988 rm -f conftest.$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990 (eval $ac_compile) 2>conftest.er1
9992 grep -v '^ *+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag"
9998 || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest.$ac_objext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_header_stdc=yes
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_header_stdc=no
10017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10019 if test $ac_cv_header_stdc = yes; then
10020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <string.h>
10030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10031 $EGREP "memchr" >/dev/null 2>&1; then
10034 ac_cv_header_stdc=no
10040 if test $ac_cv_header_stdc = yes; then
10041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10042 cat >conftest.$ac_ext <<_ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <stdlib.h>
10051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10052 $EGREP "free" >/dev/null 2>&1; then
10055 ac_cv_header_stdc=no
10061 if test $ac_cv_header_stdc = yes; then
10062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10063 if test "$cross_compiling" = yes; then
10066 cat >conftest.$ac_ext <<_ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10073 #if ((' ' & 0x0FF) == 0x020)
10074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10077 # define ISLOWER(c) \
10078 (('a' <= (c) && (c) <= 'i') \
10079 || ('j' <= (c) && (c) <= 'r') \
10080 || ('s' <= (c) && (c) <= 'z'))
10081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10089 for (i = 0; i < 256; i++)
10090 if (XOR (islower (i), ISLOWER (i))
10091 || toupper (i) != TOUPPER (i))
10096 rm -f conftest$ac_exeext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10098 (eval $ac_link) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10109 echo "$as_me: program exited with status $ac_status" >&5
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ( exit $ac_status )
10114 ac_cv_header_stdc=no
10116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10120 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10121 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10122 if test $ac_cv_header_stdc = yes; then
10124 cat >>confdefs.h <<\_ACEOF
10125 #define STDC_HEADERS 1
10130 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10131 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10132 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 cat >conftest.$ac_ext <<_ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 #include <sys/types.h>
10145 return makedev(0, 0);
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152 (eval $ac_link) 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag"
10160 || test ! -s conftest.err'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_header_sys_types_h_makedev=yes
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_cv_header_sys_types_h_makedev=no
10179 rm -f conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10184 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10186 if test $ac_cv_header_sys_types_h_makedev = no; then
10187 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10188 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10189 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10190 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10194 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10196 # Is the header compilable?
10197 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10198 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10199 cat >conftest.$ac_ext <<_ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 $ac_includes_default
10206 #include <sys/mkdev.h>
10208 rm -f conftest.$ac_objext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210 (eval $ac_compile) 2>conftest.er1
10212 grep -v '^ *+' conftest.er1 >conftest.err
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag"
10218 || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest.$ac_objext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_header_compiler=yes
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_header_compiler=no
10237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10239 echo "${ECHO_T}$ac_header_compiler" >&6
10241 # Is the header present?
10242 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10243 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <sys/mkdev.h>
10252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10255 grep -v '^ *+' conftest.er1 >conftest.err
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } >/dev/null; then
10260 if test -s conftest.err; then
10261 ac_cpp_err=$ac_c_preproc_warn_flag
10262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10269 if test -z "$ac_cpp_err"; then
10270 ac_header_preproc=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_header_preproc=no
10277 rm -f conftest.err conftest.$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10279 echo "${ECHO_T}$ac_header_preproc" >&6
10281 # So? What about this header?
10282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10284 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10285 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
10287 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
10288 ac_header_preproc=yes
10291 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10292 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10294 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
10296 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
10298 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10300 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
10302 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
10305 ## ------------------------------------------ ##
10306 ## Report this to the AC_PACKAGE_NAME lists. ##
10307 ## ------------------------------------------ ##
10310 sed "s/^/$as_me: WARNING: /" >&2
10313 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10314 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10315 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10321 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10324 if test $ac_cv_header_sys_mkdev_h = yes; then
10326 cat >>confdefs.h <<\_ACEOF
10327 #define MAJOR_IN_MKDEV 1
10334 if test $ac_cv_header_sys_mkdev_h = no; then
10335 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10336 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10337 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10338 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10342 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10344 # Is the header compilable?
10345 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10346 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10347 cat >conftest.$ac_ext <<_ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10353 $ac_includes_default
10354 #include <sys/sysmacros.h>
10356 rm -f conftest.$ac_objext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358 (eval $ac_compile) 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -z "$ac_c_werror_flag"
10366 || test ! -s conftest.err'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; } &&
10372 { ac_try='test -s conftest.$ac_objext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_header_compiler=yes
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ac_header_compiler=no
10385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10387 echo "${ECHO_T}$ac_header_compiler" >&6
10389 # Is the header present?
10390 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10391 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 #include <sys/sysmacros.h>
10400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10403 grep -v '^ *+' conftest.er1 >conftest.err
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } >/dev/null; then
10408 if test -s conftest.err; then
10409 ac_cpp_err=$ac_c_preproc_warn_flag
10410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10417 if test -z "$ac_cpp_err"; then
10418 ac_header_preproc=yes
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_header_preproc=no
10425 rm -f conftest.err conftest.$ac_ext
10426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10427 echo "${ECHO_T}$ac_header_preproc" >&6
10429 # So? What about this header?
10430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10432 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10433 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
10435 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
10436 ac_header_preproc=yes
10439 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10440 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10441 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10442 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
10444 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
10446 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
10447 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10448 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10449 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
10450 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
10453 ## ------------------------------------------ ##
10454 ## Report this to the AC_PACKAGE_NAME lists. ##
10455 ## ------------------------------------------ ##
10458 sed "s/^/$as_me: WARNING: /" >&2
10461 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10462 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10463 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10469 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10472 if test $ac_cv_header_sys_sysmacros_h = yes; then
10474 cat >>confdefs.h <<\_ACEOF
10475 #define MAJOR_IN_SYSMACROS 1
10489 ac_header_dirent=no
10490 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10491 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10492 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10493 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 #include <sys/types.h>
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 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_objext'
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 eval "$as_ac_Header=yes"
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 eval "$as_ac_Header=no"
10544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10549 cat >>confdefs.h <<_ACEOF
10550 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10553 ac_header_dirent=$ac_hdr; break
10557 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10558 if test $ac_header_dirent = dirent.h; then
10559 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10560 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10561 if test "${ac_cv_search_opendir+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 ac_func_search_save_LIBS=$LIBS
10565 ac_cv_search_opendir=no
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10573 /* Override any gcc2 internal prototype to avoid an error. */
10577 /* We use char because int might match the return type of a gcc2
10578 builtin and then its argument prototype would still apply. */
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590 (eval $ac_link) 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
10597 { ac_try='test -z "$ac_c_werror_flag"
10598 || test ! -s conftest.err'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; } &&
10604 { ac_try='test -s conftest$ac_exeext'
10605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; }; then
10610 ac_cv_search_opendir="none required"
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10616 rm -f conftest.err conftest.$ac_objext \
10617 conftest$ac_exeext conftest.$ac_ext
10618 if test "$ac_cv_search_opendir" = no; then
10619 for ac_lib in dir; do
10620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 /* Override any gcc2 internal prototype to avoid an error. */
10632 /* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag"
10653 || test ! -s conftest.err'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest$ac_exeext'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 ac_cv_search_opendir="-l$ac_lib"
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10672 rm -f conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_func_search_save_LIBS
10678 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10679 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10680 if test "$ac_cv_search_opendir" != no; then
10681 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10686 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10687 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10688 if test "${ac_cv_search_opendir+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 ac_func_search_save_LIBS=$LIBS
10692 ac_cv_search_opendir=no
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10700 /* Override any gcc2 internal prototype to avoid an error. */
10704 /* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717 (eval $ac_link) 2>conftest.er1
10719 grep -v '^ *+' conftest.er1 >conftest.err
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag"
10725 || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest$ac_exeext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_search_opendir="none required"
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10743 rm -f conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 if test "$ac_cv_search_opendir" = no; then
10746 for ac_lib in x; do
10747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10748 cat >conftest.$ac_ext <<_ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10755 /* Override any gcc2 internal prototype to avoid an error. */
10759 /* We use char because int might match the return type of a gcc2
10760 builtin and then its argument prototype would still apply. */
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772 (eval $ac_link) 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_search_opendir="-l$ac_lib"
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10799 rm -f conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_func_search_save_LIBS
10805 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10806 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10807 if test "$ac_cv_search_opendir" != no; then
10808 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10814 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10815 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10816 if test "${ac_cv_header_stat_broken+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <sys/types.h>
10826 #include <sys/stat.h>
10828 #if defined(S_ISBLK) && defined(S_IFDIR)
10829 # if S_ISBLK (S_IFDIR)
10834 #if defined(S_ISBLK) && defined(S_IFCHR)
10835 # if S_ISBLK (S_IFCHR)
10840 #if defined(S_ISLNK) && defined(S_IFREG)
10841 # if S_ISLNK (S_IFREG)
10846 #if defined(S_ISSOCK) && defined(S_IFREG)
10847 # if S_ISSOCK (S_IFREG)
10853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10854 $EGREP "You lose" >/dev/null 2>&1; then
10855 ac_cv_header_stat_broken=yes
10857 ac_cv_header_stat_broken=no
10862 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10863 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10864 if test $ac_cv_header_stat_broken = yes; then
10866 cat >>confdefs.h <<\_ACEOF
10867 #define STAT_MACROS_BROKEN 1
10872 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10873 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10874 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <sys/types.h>
10884 #include <sys/wait.h>
10885 #ifndef WEXITSTATUS
10886 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10889 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10897 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10902 rm -f conftest.$ac_objext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904 (eval $ac_compile) 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag"
10912 || test ! -s conftest.err'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_header_sys_wait_h=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_header_sys_wait_h=no
10931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10933 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10934 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10935 if test $ac_cv_header_sys_wait_h = yes; then
10937 cat >>confdefs.h <<\_ACEOF
10938 #define HAVE_SYS_WAIT_H 1
10943 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10944 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10945 if test "${ac_cv_header_time+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 #include <sys/types.h>
10955 #include <sys/time.h>
10961 if ((struct tm *) 0)
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_header_time=yes
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_cv_header_time=no
10996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10998 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10999 echo "${ECHO_T}$ac_cv_header_time" >&6
11000 if test $ac_cv_header_time = yes; then
11002 cat >>confdefs.h <<\_ACEOF
11003 #define TIME_WITH_SYS_TIME 1
11009 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11010 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11011 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 cat >conftest.$ac_ext <<_ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11020 $ac_includes_default
11024 static struct stat ac_aggr;
11025 if (ac_aggr.st_blksize)
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033 (eval $ac_compile) 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_c_werror_flag"
11041 || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_member_struct_stat_st_blksize=yes
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 cat >conftest.$ac_ext <<_ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 $ac_includes_default
11068 static struct stat ac_aggr;
11069 if (sizeof ac_aggr.st_blksize)
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest.$ac_objext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_member_struct_stat_st_blksize=yes
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_cv_member_struct_stat_st_blksize=no
11104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11108 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11109 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11110 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11112 cat >>confdefs.h <<_ACEOF
11113 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_ST_BLKSIZE 1
11124 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11125 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11126 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 $ac_includes_default
11139 static struct stat ac_aggr;
11140 if (ac_aggr.st_blocks)
11146 rm -f conftest.$ac_objext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148 (eval $ac_compile) 2>conftest.er1
11150 grep -v '^ *+' conftest.er1 >conftest.err
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag"
11156 || test ! -s conftest.err'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; } &&
11162 { ac_try='test -s conftest.$ac_objext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_member_struct_stat_st_blocks=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 $ac_includes_default
11183 static struct stat ac_aggr;
11184 if (sizeof ac_aggr.st_blocks)
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>conftest.er1
11194 grep -v '^ *+' conftest.er1 >conftest.err
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
11199 { ac_try='test -z "$ac_c_werror_flag"
11200 || test ! -s conftest.err'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; } &&
11206 { ac_try='test -s conftest.$ac_objext'
11207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; }; then
11212 ac_cv_member_struct_stat_st_blocks=yes
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 ac_cv_member_struct_stat_st_blocks=no
11219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11223 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11224 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11225 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11227 cat >>confdefs.h <<_ACEOF
11228 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11232 cat >>confdefs.h <<\_ACEOF
11233 #define HAVE_ST_BLOCKS 1
11238 "fileblocks.$ac_objext" | \
11239 *" fileblocks.$ac_objext" | \
11240 "fileblocks.$ac_objext "* | \
11241 *" fileblocks.$ac_objext "* ) ;;
11242 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
11248 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11249 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11250 if test "${ac_cv_struct_tm+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 cat >conftest.$ac_ext <<_ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <sys/types.h>
11265 struct tm *tp; tp->tm_sec;
11270 rm -f conftest.$ac_objext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272 (eval $ac_compile) 2>conftest.er1
11274 grep -v '^ *+' conftest.er1 >conftest.err
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag"
11280 || test ! -s conftest.err'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest.$ac_objext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_cv_struct_tm=time.h
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ac_cv_struct_tm=sys/time.h
11299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11301 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11302 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11303 if test $ac_cv_struct_tm = sys/time.h; then
11305 cat >>confdefs.h <<\_ACEOF
11306 #define TM_IN_SYS_TIME 1
11311 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11312 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11313 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #include <sys/types.h>
11323 #include <$ac_cv_struct_tm>
11329 static struct tm ac_aggr;
11330 if (ac_aggr.tm_zone)
11336 rm -f conftest.$ac_objext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11338 (eval $ac_compile) 2>conftest.er1
11340 grep -v '^ *+' conftest.er1 >conftest.err
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -z "$ac_c_werror_flag"
11346 || test ! -s conftest.err'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; } &&
11352 { ac_try='test -s conftest.$ac_objext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 ac_cv_member_struct_tm_tm_zone=yes
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 cat >conftest.$ac_ext <<_ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 #include <sys/types.h>
11370 #include <$ac_cv_struct_tm>
11376 static struct tm ac_aggr;
11377 if (sizeof ac_aggr.tm_zone)
11383 rm -f conftest.$ac_objext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
11392 { ac_try='test -z "$ac_c_werror_flag"
11393 || test ! -s conftest.err'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_cv_member_struct_tm_tm_zone=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_cv_member_struct_tm_tm_zone=no
11412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11416 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11417 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11418 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define HAVE_STRUCT_TM_TM_ZONE 1
11427 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11429 cat >>confdefs.h <<\_ACEOF
11430 #define HAVE_TM_ZONE 1
11434 echo "$as_me:$LINENO: checking for tzname" >&5
11435 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11436 if test "${ac_cv_var_tzname+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11446 #ifndef tzname /* For SGI. */
11447 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11460 (eval $ac_link) 2>conftest.er1
11462 grep -v '^ *+' conftest.er1 >conftest.err
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } &&
11467 { ac_try='test -z "$ac_c_werror_flag"
11468 || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest$ac_exeext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_var_tzname=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_cv_var_tzname=no
11487 rm -f conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11490 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11491 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11492 if test $ac_cv_var_tzname = yes; then
11494 cat >>confdefs.h <<\_ACEOF
11495 #define HAVE_TZNAME 1
11502 echo "$as_me:$LINENO: checking for utime.h" >&5
11503 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11504 if test "${ba_cv_header_utime_h+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11514 #include <sys/types.h>
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>conftest.er1
11528 grep -v '^ *+' conftest.er1 >conftest.err
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } &&
11533 { ac_try='test -z "$ac_c_werror_flag"
11534 || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ba_cv_header_utime_h=yes
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 ba_cv_header_utime_h=no
11553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11555 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11556 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11557 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11558 #define HAVE_UTIME_H 1
11562 echo "$as_me:$LINENO: checking for socklen_t" >&5
11563 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11564 if test "${ba_cv_header_socklen_t+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11574 #include <sys/types.h>
11575 #include <sys/socket.h>
11584 rm -f conftest.$ac_objext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11586 (eval $ac_compile) 2>conftest.er1
11588 grep -v '^ *+' conftest.er1 >conftest.err
11590 cat conftest.err >&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } &&
11593 { ac_try='test -z "$ac_c_werror_flag"
11594 || test ! -s conftest.err'
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; } &&
11600 { ac_try='test -s conftest.$ac_objext'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11606 ba_cv_header_socklen_t=yes
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11611 ba_cv_header_socklen_t=no
11613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11616 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11617 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11618 #define HAVE_SOCKLEN_T 1
11622 echo "$as_me:$LINENO: checking for bigendian" >&5
11623 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11624 if test "${ba_cv_bigendian+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 if test "$cross_compiling" = yes; then
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11638 rm -f conftest$ac_exeext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11640 (eval $ac_link) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ba_cv_bigendian=yes
11651 echo "$as_me: program exited with status $ac_status" >&5
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ( exit $ac_status )
11658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11661 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11662 echo "${ECHO_T}$ba_cv_bigendian" >&6
11663 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11664 #define HAVE_BIGENDIAN 1
11669 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11670 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11671 if test "${ac_cv_c_const+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 cat >conftest.$ac_ext <<_ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11684 /* FIXME: Include the comments suggested by Paul. */
11685 #ifndef __cplusplus
11686 /* Ultrix mips cc rejects this. */
11687 typedef int charset[2];
11689 /* SunOS 4.1.1 cc rejects this. */
11690 char const *const *ccp;
11692 /* NEC SVR4.0.2 mips cc rejects this. */
11693 struct point {int x, y;};
11694 static struct point const zero = {0,0};
11695 /* AIX XL C 1.02.0.0 rejects this.
11696 It does not let you subtract one const X* pointer from another in
11697 an arm of an if-expression whose if-part is not a constant
11699 const char *g = "string";
11700 ccp = &g + (g ? g-g : 0);
11701 /* HPUX 7.0 cc rejects these. */
11704 ccp = (char const *const *) p;
11705 { /* SCO 3.2v4 cc rejects this. */
11707 char const *s = 0 ? (char *) 0 : (char const *) 0;
11711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11712 int x[] = {25, 17};
11713 const int *foo = &x[0];
11716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11717 typedef const int *iptr;
11721 { /* AIX XL C 1.02.0.0 rejects this saying
11722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11723 struct s { int j; const int *ap[3]; };
11724 struct s *b; b->j = 5;
11726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11727 const int foo = 10;
11735 rm -f conftest.$ac_objext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest.$ac_objext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11766 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11767 echo "${ECHO_T}$ac_cv_c_const" >&6
11768 if test $ac_cv_c_const = no; then
11770 cat >>confdefs.h <<\_ACEOF
11778 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11779 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11781 # The order of these tests is important.
11782 cat >conftest.$ac_ext <<_ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11788 #include <sys/statvfs.h>
11789 #include <sys/fstyp.h>
11791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11794 grep -v '^ *+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } >/dev/null; then
11799 if test -s conftest.err; then
11800 ac_cpp_err=$ac_c_preproc_warn_flag
11801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11808 if test -z "$ac_cpp_err"; then
11809 cat >>confdefs.h <<\_ACEOF
11810 #define FSTYPE_STATVFS 1
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11819 rm -f conftest.err conftest.$ac_ext
11820 if test $fstype = no; then
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <sys/statfs.h>
11828 #include <sys/fstyp.h>
11830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } >/dev/null; then
11838 if test -s conftest.err; then
11839 ac_cpp_err=$ac_c_preproc_warn_flag
11840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11847 if test -z "$ac_cpp_err"; then
11848 cat >>confdefs.h <<\_ACEOF
11849 #define FSTYPE_USG_STATFS 1
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11858 rm -f conftest.err conftest.$ac_ext
11860 if test $fstype = no; then
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 #include <sys/statfs.h>
11868 #include <sys/vmount.h>
11870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } >/dev/null; then
11878 if test -s conftest.err; then
11879 ac_cpp_err=$ac_c_preproc_warn_flag
11880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11887 if test -z "$ac_cpp_err"; then
11888 cat >>confdefs.h <<\_ACEOF
11889 #define FSTYPE_AIX_STATFS 1
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11898 rm -f conftest.err conftest.$ac_ext
11900 if test $fstype = no; then
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 #include <mntent.h>
11909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11912 grep -v '^ *+' conftest.er1 >conftest.err
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } >/dev/null; then
11917 if test -s conftest.err; then
11918 ac_cpp_err=$ac_c_preproc_warn_flag
11919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11926 if test -z "$ac_cpp_err"; then
11927 cat >>confdefs.h <<\_ACEOF
11928 #define FSTYPE_MNTENT 1
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11937 rm -f conftest.err conftest.$ac_ext
11939 if test $fstype = no; then
11940 cat >conftest.$ac_ext <<_ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 #include <sys/mount.h>
11949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11950 $EGREP "f_type;" >/dev/null 2>&1; then
11951 cat >>confdefs.h <<\_ACEOF
11952 #define FSTYPE_STATFS 1
11959 if test $fstype = no; then
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 #include <sys/mount.h>
11967 #include <sys/fs_types.h>
11969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } >/dev/null; then
11977 if test -s conftest.err; then
11978 ac_cpp_err=$ac_c_preproc_warn_flag
11979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11986 if test -z "$ac_cpp_err"; then
11987 cat >>confdefs.h <<\_ACEOF
11988 #define FSTYPE_GETMNT 1
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11997 rm -f conftest.err conftest.$ac_ext
11999 echo "$as_me:$LINENO: result: $fstype" >&5
12000 echo "${ECHO_T}$fstype" >&6
12002 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12003 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12004 if test "${ac_cv_type_signal+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 cat >conftest.$ac_ext <<_ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 #include <sys/types.h>
12014 #include <signal.h>
12019 extern "C" void (*signal (int, void (*)(int)))(int);
12021 void (*signal ()) ();
12032 rm -f conftest.$ac_objext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12034 (eval $ac_compile) 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag"
12042 || test ! -s conftest.err'
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); }; } &&
12048 { ac_try='test -s conftest.$ac_objext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_type_signal=void
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_cv_type_signal=int
12061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12063 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12064 echo "${ECHO_T}$ac_cv_type_signal" >&6
12066 cat >>confdefs.h <<_ACEOF
12067 #define RETSIGTYPE $ac_cv_type_signal
12072 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12073 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12074 if test "${bash_cv_signal_vintage+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <signal.h>
12090 struct sigaction sa;
12091 sigemptyset(&ss); sigsuspend(&ss);
12092 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12093 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101 (eval $ac_link) 2>conftest.er1
12103 grep -v '^ *+' conftest.er1 >conftest.err
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag"
12109 || test ! -s conftest.err'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 bash_cv_signal_vintage=posix
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12127 cat >conftest.$ac_ext <<_ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 #include <signal.h>
12138 int mask = sigmask(SIGINT);
12139 sigsetmask(mask); sigblock(mask); sigpause(mask);
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147 (eval $ac_link) 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_c_werror_flag"
12155 || test ! -s conftest.err'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; } &&
12161 { ac_try='test -s conftest$ac_exeext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 bash_cv_signal_vintage=4.2bsd
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12173 cat >conftest.$ac_ext <<_ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 #include <signal.h>
12181 RETSIGTYPE foo() { }
12186 int mask = sigmask(SIGINT);
12187 sigset(SIGINT, foo); sigrelse(SIGINT);
12188 sighold(SIGINT); sigpause(SIGINT);
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>conftest.er1
12198 grep -v '^ *+' conftest.er1 >conftest.err
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag"
12204 || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest$ac_exeext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 bash_cv_signal_vintage=svr3
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 bash_cv_signal_vintage=v7
12224 rm -f conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12228 rm -f conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12232 rm -f conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12238 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12239 if test "$bash_cv_signal_vintage" = posix; then
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_POSIX_SIGNALS 1
12244 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12245 cat >>confdefs.h <<\_ACEOF
12246 #define HAVE_BSD_SIGNALS 1
12249 elif test "$bash_cv_signal_vintage" = svr3; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_USG_SIGHOLD 1
12256 echo "$as_me:$LINENO: checking for mode_t" >&5
12257 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12258 if test "${ac_cv_type_mode_t+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 cat >conftest.$ac_ext <<_ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12267 $ac_includes_default
12273 if (sizeof (mode_t))
12279 rm -f conftest.$ac_objext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12281 (eval $ac_compile) 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag"
12289 || test ! -s conftest.err'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest.$ac_objext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 ac_cv_type_mode_t=yes
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 ac_cv_type_mode_t=no
12308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12310 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12311 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12312 if test $ac_cv_type_mode_t = yes; then
12316 cat >>confdefs.h <<_ACEOF
12322 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12323 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12324 if test "${ac_cv_type_uid_t+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <sys/types.h>
12336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12337 $EGREP "uid_t" >/dev/null 2>&1; then
12338 ac_cv_type_uid_t=yes
12340 ac_cv_type_uid_t=no
12345 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12346 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12347 if test $ac_cv_type_uid_t = no; then
12349 cat >>confdefs.h <<\_ACEOF
12354 cat >>confdefs.h <<\_ACEOF
12360 echo "$as_me:$LINENO: checking for size_t" >&5
12361 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12362 if test "${ac_cv_type_size_t+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 $ac_includes_default
12377 if (sizeof (size_t))
12383 rm -f conftest.$ac_objext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12385 (eval $ac_compile) 2>conftest.er1
12387 grep -v '^ *+' conftest.er1 >conftest.err
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -z "$ac_c_werror_flag"
12393 || test ! -s conftest.err'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; } &&
12399 { ac_try='test -s conftest.$ac_objext'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ac_cv_type_size_t=yes
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ac_cv_type_size_t=no
12412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12414 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12415 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12416 if test $ac_cv_type_size_t = yes; then
12420 cat >>confdefs.h <<_ACEOF
12421 #define size_t unsigned
12426 echo "$as_me:$LINENO: checking for pid_t" >&5
12427 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12428 if test "${ac_cv_type_pid_t+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12437 $ac_includes_default
12443 if (sizeof (pid_t))
12449 rm -f conftest.$ac_objext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451 (eval $ac_compile) 2>conftest.er1
12453 grep -v '^ *+' conftest.er1 >conftest.err
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
12458 { ac_try='test -z "$ac_c_werror_flag"
12459 || test ! -s conftest.err'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_cv_type_pid_t=yes
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_cv_type_pid_t=no
12478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12480 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12481 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12482 if test $ac_cv_type_pid_t = yes; then
12486 cat >>confdefs.h <<_ACEOF
12492 echo "$as_me:$LINENO: checking for off_t" >&5
12493 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12494 if test "${ac_cv_type_off_t+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 cat >conftest.$ac_ext <<_ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 $ac_includes_default
12509 if (sizeof (off_t))
12515 rm -f conftest.$ac_objext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12517 (eval $ac_compile) 2>conftest.er1
12519 grep -v '^ *+' conftest.er1 >conftest.err
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -z "$ac_c_werror_flag"
12525 || test ! -s conftest.err'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest.$ac_objext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 ac_cv_type_off_t=yes
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ac_cv_type_off_t=no
12544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12547 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12548 if test $ac_cv_type_off_t = yes; then
12552 cat >>confdefs.h <<_ACEOF
12558 echo "$as_me:$LINENO: checking for ino_t" >&5
12559 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12560 if test "${ac_cv_type_ino_t+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12569 $ac_includes_default
12575 if (sizeof (ino_t))
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583 (eval $ac_compile) 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag"
12591 || test ! -s conftest.err'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_type_ino_t=yes
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_cv_type_ino_t=no
12610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12612 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12613 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12614 if test $ac_cv_type_ino_t = yes; then
12618 cat >>confdefs.h <<_ACEOF
12619 #define ino_t unsigned long
12624 echo "$as_me:$LINENO: checking for dev_t" >&5
12625 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12626 if test "${ac_cv_type_dev_t+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 $ac_includes_default
12641 if (sizeof (dev_t))
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest.$ac_objext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_cv_type_dev_t=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_cv_type_dev_t=no
12676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12678 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12679 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12680 if test $ac_cv_type_dev_t = yes; then
12684 cat >>confdefs.h <<_ACEOF
12685 #define dev_t unsigned long
12690 echo "$as_me:$LINENO: checking for daddr_t" >&5
12691 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12692 if test "${ac_cv_type_daddr_t+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 cat >conftest.$ac_ext <<_ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 $ac_includes_default
12707 if (sizeof (daddr_t))
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_c_werror_flag"
12723 || test ! -s conftest.err'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; } &&
12729 { ac_try='test -s conftest.$ac_objext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 ac_cv_type_daddr_t=yes
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ac_cv_type_daddr_t=no
12742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12744 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12745 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12746 if test $ac_cv_type_daddr_t = yes; then
12750 cat >>confdefs.h <<_ACEOF
12751 #define daddr_t long
12756 echo "$as_me:$LINENO: checking for major_t" >&5
12757 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12758 if test "${ac_cv_type_major_t+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 cat >conftest.$ac_ext <<_ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12767 $ac_includes_default
12773 if (sizeof (major_t))
12779 rm -f conftest.$ac_objext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781 (eval $ac_compile) 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest.$ac_objext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_type_major_t=yes
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ac_cv_type_major_t=no
12808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12810 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12811 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12812 if test $ac_cv_type_major_t = yes; then
12816 cat >>confdefs.h <<_ACEOF
12817 #define major_t int
12822 echo "$as_me:$LINENO: checking for minor_t" >&5
12823 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12824 if test "${ac_cv_type_minor_t+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 cat >conftest.$ac_ext <<_ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 $ac_includes_default
12839 if (sizeof (minor_t))
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_c_werror_flag"
12855 || test ! -s conftest.err'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest.$ac_objext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 ac_cv_type_minor_t=yes
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 ac_cv_type_minor_t=no
12874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12876 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12877 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12878 if test $ac_cv_type_minor_t = yes; then
12882 cat >>confdefs.h <<_ACEOF
12883 #define minor_t int
12888 echo "$as_me:$LINENO: checking for ssize_t" >&5
12889 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12890 if test "${ac_cv_type_ssize_t+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 cat >conftest.$ac_ext <<_ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 $ac_includes_default
12905 if (sizeof (ssize_t))
12911 rm -f conftest.$ac_objext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12913 (eval $ac_compile) 2>conftest.er1
12915 grep -v '^ *+' conftest.er1 >conftest.err
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
12920 { ac_try='test -z "$ac_c_werror_flag"
12921 || test ! -s conftest.err'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; } &&
12927 { ac_try='test -s conftest.$ac_objext'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_type_ssize_t=yes
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ac_cv_type_ssize_t=no
12940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12942 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12943 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12944 if test $ac_cv_type_ssize_t = yes; then
12948 cat >>confdefs.h <<_ACEOF
12949 #define ssize_t int
12954 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12955 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12956 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 cat >conftest.$ac_ext <<_ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 $ac_includes_default
12969 static struct stat ac_aggr;
12970 if (ac_aggr.st_blocks)
12976 rm -f conftest.$ac_objext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12978 (eval $ac_compile) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1 >conftest.err
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest.$ac_objext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 ac_cv_member_struct_stat_st_blocks=yes
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 $ac_includes_default
13013 static struct stat ac_aggr;
13014 if (sizeof ac_aggr.st_blocks)
13020 rm -f conftest.$ac_objext
13021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022 (eval $ac_compile) 2>conftest.er1
13024 grep -v '^ *+' conftest.er1 >conftest.err
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -z "$ac_c_werror_flag"
13030 || test ! -s conftest.err'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; } &&
13036 { ac_try='test -s conftest.$ac_objext'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
13042 ac_cv_member_struct_stat_st_blocks=yes
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13047 ac_cv_member_struct_stat_st_blocks=no
13049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13054 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13055 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13057 cat >>confdefs.h <<_ACEOF
13058 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13062 cat >>confdefs.h <<\_ACEOF
13063 #define HAVE_ST_BLOCKS 1
13068 "fileblocks.$ac_objext" | \
13069 *" fileblocks.$ac_objext" | \
13070 "fileblocks.$ac_objext "* | \
13071 *" fileblocks.$ac_objext "* ) ;;
13072 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13079 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13080 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13081 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 cat >conftest.$ac_ext <<_ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 $ac_includes_default
13094 static struct stat ac_aggr;
13095 if (ac_aggr.st_rdev)
13101 rm -f conftest.$ac_objext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103 (eval $ac_compile) 2>conftest.er1
13105 grep -v '^ *+' conftest.er1 >conftest.err
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -z "$ac_c_werror_flag"
13111 || test ! -s conftest.err'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_cv_member_struct_stat_st_rdev=yes
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 $ac_includes_default
13138 static struct stat ac_aggr;
13139 if (sizeof ac_aggr.st_rdev)
13145 rm -f conftest.$ac_objext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>conftest.er1
13149 grep -v '^ *+' conftest.er1 >conftest.err
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -z "$ac_c_werror_flag"
13155 || test ! -s conftest.err'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; } &&
13161 { ac_try='test -s conftest.$ac_objext'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_member_struct_stat_st_rdev=yes
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ac_cv_member_struct_stat_st_rdev=no
13174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13178 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13179 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13180 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13182 cat >>confdefs.h <<_ACEOF
13183 #define HAVE_STRUCT_STAT_ST_RDEV 1
13187 cat >>confdefs.h <<\_ACEOF
13188 #define HAVE_ST_RDEV 1
13194 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13195 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13196 if test "${ac_cv_struct_tm+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 cat >conftest.$ac_ext <<_ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #include <sys/types.h>
13211 struct tm *tp; tp->tm_sec;
13216 rm -f conftest.$ac_objext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13218 (eval $ac_compile) 2>conftest.er1
13220 grep -v '^ *+' conftest.er1 >conftest.err
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest.$ac_objext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_struct_tm=time.h
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 ac_cv_struct_tm=sys/time.h
13245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13247 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13248 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13249 if test $ac_cv_struct_tm = sys/time.h; then
13251 cat >>confdefs.h <<\_ACEOF
13252 #define TM_IN_SYS_TIME 1
13257 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13258 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13259 if test "${ac_cv_c_const+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 cat >conftest.$ac_ext <<_ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13272 /* FIXME: Include the comments suggested by Paul. */
13273 #ifndef __cplusplus
13274 /* Ultrix mips cc rejects this. */
13275 typedef int charset[2];
13277 /* SunOS 4.1.1 cc rejects this. */
13278 char const *const *ccp;
13280 /* NEC SVR4.0.2 mips cc rejects this. */
13281 struct point {int x, y;};
13282 static struct point const zero = {0,0};
13283 /* AIX XL C 1.02.0.0 rejects this.
13284 It does not let you subtract one const X* pointer from another in
13285 an arm of an if-expression whose if-part is not a constant
13287 const char *g = "string";
13288 ccp = &g + (g ? g-g : 0);
13289 /* HPUX 7.0 cc rejects these. */
13292 ccp = (char const *const *) p;
13293 { /* SCO 3.2v4 cc rejects this. */
13295 char const *s = 0 ? (char *) 0 : (char const *) 0;
13299 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13300 int x[] = {25, 17};
13301 const int *foo = &x[0];
13304 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13305 typedef const int *iptr;
13309 { /* AIX XL C 1.02.0.0 rejects this saying
13310 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13311 struct s { int j; const int *ap[3]; };
13312 struct s *b; b->j = 5;
13314 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13315 const int foo = 10;
13323 rm -f conftest.$ac_objext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag"
13333 || test ! -s conftest.err'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest.$ac_objext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13354 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13355 echo "${ECHO_T}$ac_cv_c_const" >&6
13356 if test $ac_cv_c_const = no; then
13358 cat >>confdefs.h <<\_ACEOF
13366 echo "$as_me:$LINENO: checking for char" >&5
13367 echo $ECHO_N "checking for char... $ECHO_C" >&6
13368 if test "${ac_cv_type_char+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 $ac_includes_default
13389 rm -f conftest.$ac_objext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391 (eval $ac_compile) 2>conftest.er1
13393 grep -v '^ *+' conftest.er1 >conftest.err
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try='test -z "$ac_c_werror_flag"
13399 || test ! -s conftest.err'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; } &&
13405 { ac_try='test -s conftest.$ac_objext'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 ac_cv_type_char=yes
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13420 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13421 echo "${ECHO_T}$ac_cv_type_char" >&6
13423 echo "$as_me:$LINENO: checking size of char" >&5
13424 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13425 if test "${ac_cv_sizeof_char+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 if test "$ac_cv_type_char" = yes; then
13429 # The cast to unsigned long works around a bug in the HP C Compiler
13430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13432 # This bug is HP SR number 8606223364.
13433 if test "$cross_compiling" = yes; then
13434 # Depending upon the size, compute the lo and hi bounds.
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13441 $ac_includes_default
13445 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13452 rm -f conftest.$ac_objext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13454 (eval $ac_compile) 2>conftest.er1
13456 grep -v '^ *+' conftest.er1 >conftest.err
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } &&
13461 { ac_try='test -z "$ac_c_werror_flag"
13462 || test ! -s conftest.err'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; } &&
13468 { ac_try='test -s conftest.$ac_objext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13476 cat >conftest.$ac_ext <<_ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 $ac_includes_default
13486 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13493 rm -f conftest.$ac_objext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13495 (eval $ac_compile) 2>conftest.er1
13497 grep -v '^ *+' conftest.er1 >conftest.err
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
13502 { ac_try='test -z "$ac_c_werror_flag"
13503 || test ! -s conftest.err'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } &&
13509 { ac_try='test -s conftest.$ac_objext'
13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; }; then
13515 ac_hi=$ac_mid; break
13517 echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13520 ac_lo=`expr $ac_mid + 1`
13521 if test $ac_lo -le $ac_mid; then
13525 ac_mid=`expr 2 '*' $ac_mid + 1`
13527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13530 echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 $ac_includes_default
13543 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag"
13560 || test ! -s conftest.err'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 $ac_includes_default
13584 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13591 rm -f conftest.$ac_objext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593 (eval $ac_compile) 2>conftest.er1
13595 grep -v '^ *+' conftest.er1 >conftest.err
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } &&
13600 { ac_try='test -z "$ac_c_werror_flag"
13601 || test ! -s conftest.err'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; } &&
13607 { ac_try='test -s conftest.$ac_objext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_lo=$ac_mid; break
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 ac_hi=`expr '(' $ac_mid ')' - 1`
13619 if test $ac_mid -le $ac_hi; then
13623 ac_mid=`expr 2 '*' $ac_mid`
13625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13636 # Binary search between lo and hi bounds.
13637 while test "x$ac_lo" != "x$ac_hi"; do
13638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 $ac_includes_default
13649 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13656 rm -f conftest.$ac_objext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658 (eval $ac_compile) 2>conftest.er1
13660 grep -v '^ *+' conftest.er1 >conftest.err
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -z "$ac_c_werror_flag"
13666 || test ! -s conftest.err'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; } &&
13672 { ac_try='test -s conftest.$ac_objext'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ac_lo=`expr '(' $ac_mid ')' + 1`
13685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13688 ?*) ac_cv_sizeof_char=$ac_lo;;
13689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13690 See \`config.log' for more details." >&5
13691 echo "$as_me: error: cannot compute sizeof (char), 77
13692 See \`config.log' for more details." >&2;}
13693 { (exit 1); exit 1; }; } ;;
13696 if test "$cross_compiling" = yes; then
13697 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: cannot run test program while cross compiling
13700 See \`config.log' for more details." >&2;}
13701 { (exit 1); exit 1; }; }
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 $ac_includes_default
13710 long longval () { return (long) (sizeof (char)); }
13711 unsigned long ulongval () { return (long) (sizeof (char)); }
13713 #include <stdlib.h>
13718 FILE *f = fopen ("conftest.val", "w");
13721 if (((long) (sizeof (char))) < 0)
13723 long i = longval ();
13724 if (i != ((long) (sizeof (char))))
13726 fprintf (f, "%ld\n", i);
13730 unsigned long i = ulongval ();
13731 if (i != ((long) (sizeof (char))))
13733 fprintf (f, "%lu\n", i);
13735 exit (ferror (f) || fclose (f) != 0);
13741 rm -f conftest$ac_exeext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13743 (eval $ac_link) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_char=`cat conftest.val`
13754 echo "$as_me: program exited with status $ac_status" >&5
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ( exit $ac_status )
13759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13760 See \`config.log' for more details." >&5
13761 echo "$as_me: error: cannot compute sizeof (char), 77
13762 See \`config.log' for more details." >&2;}
13763 { (exit 1); exit 1; }; }
13765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13770 ac_cv_sizeof_char=0
13773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13774 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13775 cat >>confdefs.h <<_ACEOF
13776 #define SIZEOF_CHAR $ac_cv_sizeof_char
13780 echo "$as_me:$LINENO: checking for short int" >&5
13781 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13782 if test "${ac_cv_type_short_int+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 cat >conftest.$ac_ext <<_ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13795 if ((short int *) 0)
13797 if (sizeof (short int))
13803 rm -f conftest.$ac_objext
13804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13805 (eval $ac_compile) 2>conftest.er1
13807 grep -v '^ *+' conftest.er1 >conftest.err
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } &&
13812 { ac_try='test -z "$ac_c_werror_flag"
13813 || test ! -s conftest.err'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_cv_type_short_int=yes
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_cv_type_short_int=no
13832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13834 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13835 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13837 echo "$as_me:$LINENO: checking size of short int" >&5
13838 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13839 if test "${ac_cv_sizeof_short_int+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 if test "$ac_cv_type_short_int" = yes; then
13843 # The cast to unsigned long works around a bug in the HP C Compiler
13844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13846 # This bug is HP SR number 8606223364.
13847 if test "$cross_compiling" = yes; then
13848 # Depending upon the size, compute the lo and hi bounds.
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 $ac_includes_default
13859 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13866 rm -f conftest.$ac_objext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13868 (eval $ac_compile) 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag"
13876 || test ! -s conftest.err'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest.$ac_objext'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13890 cat >conftest.$ac_ext <<_ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13896 $ac_includes_default
13900 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13907 rm -f conftest.$ac_objext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13909 (eval $ac_compile) 2>conftest.er1
13911 grep -v '^ *+' conftest.er1 >conftest.err
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_c_werror_flag"
13917 || test ! -s conftest.err'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest.$ac_objext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 ac_hi=$ac_mid; break
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13934 ac_lo=`expr $ac_mid + 1`
13935 if test $ac_lo -le $ac_mid; then
13939 ac_mid=`expr 2 '*' $ac_mid + 1`
13941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 $ac_includes_default
13957 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13964 rm -f conftest.$ac_objext
13965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13966 (eval $ac_compile) 2>conftest.er1
13968 grep -v '^ *+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag"
13974 || test ! -s conftest.err'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; } &&
13980 { ac_try='test -s conftest.$ac_objext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13988 cat >conftest.$ac_ext <<_ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 $ac_includes_default
13998 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14005 rm -f conftest.$ac_objext
14006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14007 (eval $ac_compile) 2>conftest.er1
14009 grep -v '^ *+' conftest.er1 >conftest.err
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -z "$ac_c_werror_flag"
14015 || test ! -s conftest.err'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest.$ac_objext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 ac_lo=$ac_mid; break
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 ac_hi=`expr '(' $ac_mid ')' - 1`
14033 if test $ac_mid -le $ac_hi; then
14037 ac_mid=`expr 2 '*' $ac_mid`
14039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14050 # Binary search between lo and hi bounds.
14051 while test "x$ac_lo" != "x$ac_hi"; do
14052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14053 cat >conftest.$ac_ext <<_ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 $ac_includes_default
14063 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>conftest.er1
14074 grep -v '^ *+' conftest.er1 >conftest.err
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest.$ac_objext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ac_lo=`expr '(' $ac_mid ')' + 1`
14099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14102 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14104 See \`config.log' for more details." >&5
14105 echo "$as_me: error: cannot compute sizeof (short int), 77
14106 See \`config.log' for more details." >&2;}
14107 { (exit 1); exit 1; }; } ;;
14110 if test "$cross_compiling" = yes; then
14111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14112 See \`config.log' for more details." >&5
14113 echo "$as_me: error: cannot run test program while cross compiling
14114 See \`config.log' for more details." >&2;}
14115 { (exit 1); exit 1; }; }
14117 cat >conftest.$ac_ext <<_ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 $ac_includes_default
14124 long longval () { return (long) (sizeof (short int)); }
14125 unsigned long ulongval () { return (long) (sizeof (short int)); }
14127 #include <stdlib.h>
14132 FILE *f = fopen ("conftest.val", "w");
14135 if (((long) (sizeof (short int))) < 0)
14137 long i = longval ();
14138 if (i != ((long) (sizeof (short int))))
14140 fprintf (f, "%ld\n", i);
14144 unsigned long i = ulongval ();
14145 if (i != ((long) (sizeof (short int))))
14147 fprintf (f, "%lu\n", i);
14149 exit (ferror (f) || fclose (f) != 0);
14155 rm -f conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157 (eval $ac_link) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
14166 ac_cv_sizeof_short_int=`cat conftest.val`
14168 echo "$as_me: program exited with status $ac_status" >&5
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ( exit $ac_status )
14173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14174 See \`config.log' for more details." >&5
14175 echo "$as_me: error: cannot compute sizeof (short int), 77
14176 See \`config.log' for more details." >&2;}
14177 { (exit 1); exit 1; }; }
14179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14184 ac_cv_sizeof_short_int=0
14187 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14188 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14189 cat >>confdefs.h <<_ACEOF
14190 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14194 echo "$as_me:$LINENO: checking for int" >&5
14195 echo $ECHO_N "checking for int... $ECHO_C" >&6
14196 if test "${ac_cv_type_int+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 cat >conftest.$ac_ext <<_ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14205 $ac_includes_default
14217 rm -f conftest.$ac_objext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14219 (eval $ac_compile) 2>conftest.er1
14221 grep -v '^ *+' conftest.er1 >conftest.err
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try='test -z "$ac_c_werror_flag"
14227 || test ! -s conftest.err'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; } &&
14233 { ac_try='test -s conftest.$ac_objext'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14248 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14249 echo "${ECHO_T}$ac_cv_type_int" >&6
14251 echo "$as_me:$LINENO: checking size of int" >&5
14252 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14253 if test "${ac_cv_sizeof_int+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 if test "$ac_cv_type_int" = yes; then
14257 # The cast to unsigned long works around a bug in the HP C Compiler
14258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14260 # This bug is HP SR number 8606223364.
14261 if test "$cross_compiling" = yes; then
14262 # Depending upon the size, compute the lo and hi bounds.
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 $ac_includes_default
14273 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14280 rm -f conftest.$ac_objext
14281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14282 (eval $ac_compile) 2>conftest.er1
14284 grep -v '^ *+' conftest.er1 >conftest.err
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag"
14290 || test ! -s conftest.err'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest.$ac_objext'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14304 cat >conftest.$ac_ext <<_ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 $ac_includes_default
14314 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14325 grep -v '^ *+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_hi=$ac_mid; break
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_lo=`expr $ac_mid + 1`
14349 if test $ac_lo -le $ac_mid; then
14353 ac_mid=`expr 2 '*' $ac_mid + 1`
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14358 echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14361 cat >conftest.$ac_ext <<_ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 $ac_includes_default
14371 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14378 rm -f conftest.$ac_objext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380 (eval $ac_compile) 2>conftest.er1
14382 grep -v '^ *+' conftest.er1 >conftest.err
14384 cat conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -z "$ac_c_werror_flag"
14388 || test ! -s conftest.err'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest.$ac_objext'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14402 cat >conftest.$ac_ext <<_ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 $ac_includes_default
14412 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14419 rm -f conftest.$ac_objext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>conftest.er1
14423 grep -v '^ *+' conftest.er1 >conftest.err
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try='test -z "$ac_c_werror_flag"
14429 || test ! -s conftest.err'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_lo=$ac_mid; break
14443 echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14446 ac_hi=`expr '(' $ac_mid ')' - 1`
14447 if test $ac_mid -le $ac_hi; then
14451 ac_mid=`expr 2 '*' $ac_mid`
14453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14464 # Binary search between lo and hi bounds.
14465 while test "x$ac_lo" != "x$ac_hi"; do
14466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14467 cat >conftest.$ac_ext <<_ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 $ac_includes_default
14477 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14484 rm -f conftest.$ac_objext
14485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14486 (eval $ac_compile) 2>conftest.er1
14488 grep -v '^ *+' conftest.er1 >conftest.err
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -z "$ac_c_werror_flag"
14494 || test ! -s conftest.err'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; } &&
14500 { ac_try='test -s conftest.$ac_objext'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 ac_lo=`expr '(' $ac_mid ')' + 1`
14513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14516 ?*) ac_cv_sizeof_int=$ac_lo;;
14517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14518 See \`config.log' for more details." >&5
14519 echo "$as_me: error: cannot compute sizeof (int), 77
14520 See \`config.log' for more details." >&2;}
14521 { (exit 1); exit 1; }; } ;;
14524 if test "$cross_compiling" = yes; then
14525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14526 See \`config.log' for more details." >&5
14527 echo "$as_me: error: cannot run test program while cross compiling
14528 See \`config.log' for more details." >&2;}
14529 { (exit 1); exit 1; }; }
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 $ac_includes_default
14538 long longval () { return (long) (sizeof (int)); }
14539 unsigned long ulongval () { return (long) (sizeof (int)); }
14541 #include <stdlib.h>
14546 FILE *f = fopen ("conftest.val", "w");
14549 if (((long) (sizeof (int))) < 0)
14551 long i = longval ();
14552 if (i != ((long) (sizeof (int))))
14554 fprintf (f, "%ld\n", i);
14558 unsigned long i = ulongval ();
14559 if (i != ((long) (sizeof (int))))
14561 fprintf (f, "%lu\n", i);
14563 exit (ferror (f) || fclose (f) != 0);
14569 rm -f conftest$ac_exeext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14571 (eval $ac_link) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_int=`cat conftest.val`
14582 echo "$as_me: program exited with status $ac_status" >&5
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ( exit $ac_status )
14587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14588 See \`config.log' for more details." >&5
14589 echo "$as_me: error: cannot compute sizeof (int), 77
14590 See \`config.log' for more details." >&2;}
14591 { (exit 1); exit 1; }; }
14593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14602 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14603 cat >>confdefs.h <<_ACEOF
14604 #define SIZEOF_INT $ac_cv_sizeof_int
14608 echo "$as_me:$LINENO: checking for long int" >&5
14609 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14610 if test "${ac_cv_type_long_int+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 $ac_includes_default
14623 if ((long int *) 0)
14625 if (sizeof (long int))
14631 rm -f conftest.$ac_objext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14633 (eval $ac_compile) 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag"
14641 || test ! -s conftest.err'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_cv_type_long_int=yes
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_cv_type_long_int=no
14660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14662 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14663 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14665 echo "$as_me:$LINENO: checking size of long int" >&5
14666 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14667 if test "${ac_cv_sizeof_long_int+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 if test "$ac_cv_type_long_int" = yes; then
14671 # The cast to unsigned long works around a bug in the HP C Compiler
14672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14674 # This bug is HP SR number 8606223364.
14675 if test "$cross_compiling" = yes; then
14676 # Depending upon the size, compute the lo and hi bounds.
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 $ac_includes_default
14687 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>conftest.er1
14698 grep -v '^ *+' conftest.er1 >conftest.err
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 $ac_includes_default
14728 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14735 rm -f conftest.$ac_objext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag"
14745 || test ! -s conftest.err'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_hi=$ac_mid; break
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14762 ac_lo=`expr $ac_mid + 1`
14763 if test $ac_lo -le $ac_mid; then
14767 ac_mid=`expr 2 '*' $ac_mid + 1`
14769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 cat >conftest.$ac_ext <<_ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 $ac_includes_default
14785 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag"
14802 || test ! -s conftest.err'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; } &&
14808 { ac_try='test -s conftest.$ac_objext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 $ac_includes_default
14826 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14833 rm -f conftest.$ac_objext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835 (eval $ac_compile) 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_c_werror_flag"
14843 || test ! -s conftest.err'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; } &&
14849 { ac_try='test -s conftest.$ac_objext'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_lo=$ac_mid; break
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_hi=`expr '(' $ac_mid ')' - 1`
14861 if test $ac_mid -le $ac_hi; then
14865 ac_mid=`expr 2 '*' $ac_mid`
14867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14878 # Binary search between lo and hi bounds.
14879 while test "x$ac_lo" != "x$ac_hi"; do
14880 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14881 cat >conftest.$ac_ext <<_ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 $ac_includes_default
14891 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14898 rm -f conftest.$ac_objext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900 (eval $ac_compile) 2>conftest.er1
14902 grep -v '^ *+' conftest.er1 >conftest.err
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_lo=`expr '(' $ac_mid ')' + 1`
14927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14930 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14931 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14932 See \`config.log' for more details." >&5
14933 echo "$as_me: error: cannot compute sizeof (long int), 77
14934 See \`config.log' for more details." >&2;}
14935 { (exit 1); exit 1; }; } ;;
14938 if test "$cross_compiling" = yes; then
14939 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14940 See \`config.log' for more details." >&5
14941 echo "$as_me: error: cannot run test program while cross compiling
14942 See \`config.log' for more details." >&2;}
14943 { (exit 1); exit 1; }; }
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 $ac_includes_default
14952 long longval () { return (long) (sizeof (long int)); }
14953 unsigned long ulongval () { return (long) (sizeof (long int)); }
14955 #include <stdlib.h>
14960 FILE *f = fopen ("conftest.val", "w");
14963 if (((long) (sizeof (long int))) < 0)
14965 long i = longval ();
14966 if (i != ((long) (sizeof (long int))))
14968 fprintf (f, "%ld\n", i);
14972 unsigned long i = ulongval ();
14973 if (i != ((long) (sizeof (long int))))
14975 fprintf (f, "%lu\n", i);
14977 exit (ferror (f) || fclose (f) != 0);
14983 rm -f conftest$ac_exeext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14985 (eval $ac_link) 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_int=`cat conftest.val`
14996 echo "$as_me: program exited with status $ac_status" >&5
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 ( exit $ac_status )
15001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15002 See \`config.log' for more details." >&5
15003 echo "$as_me: error: cannot compute sizeof (long int), 77
15004 See \`config.log' for more details." >&2;}
15005 { (exit 1); exit 1; }; }
15007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15012 ac_cv_sizeof_long_int=0
15015 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15016 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15017 cat >>confdefs.h <<_ACEOF
15018 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15022 echo "$as_me:$LINENO: checking for long long int" >&5
15023 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15024 if test "${ac_cv_type_long_long_int+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 cat >conftest.$ac_ext <<_ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033 $ac_includes_default
15037 if ((long long int *) 0)
15039 if (sizeof (long long int))
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>conftest.er1
15049 grep -v '^ *+' conftest.er1 >conftest.err
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -z "$ac_c_werror_flag"
15055 || test ! -s conftest.err'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_cv_type_long_long_int=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_cv_type_long_long_int=no
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15076 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15077 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15079 echo "$as_me:$LINENO: checking size of long long int" >&5
15080 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15081 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 if test "$ac_cv_type_long_long_int" = yes; then
15085 # The cast to unsigned long works around a bug in the HP C Compiler
15086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15088 # This bug is HP SR number 8606223364.
15089 if test "$cross_compiling" = yes; then
15090 # Depending upon the size, compute the lo and hi bounds.
15091 cat >conftest.$ac_ext <<_ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 $ac_includes_default
15101 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15108 rm -f conftest.$ac_objext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110 (eval $ac_compile) 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag"
15118 || test ! -s conftest.err'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15132 cat >conftest.$ac_ext <<_ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 $ac_includes_default
15142 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15149 rm -f conftest.$ac_objext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151 (eval $ac_compile) 2>conftest.er1
15153 grep -v '^ *+' conftest.er1 >conftest.err
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -z "$ac_c_werror_flag"
15159 || test ! -s conftest.err'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_hi=$ac_mid; break
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_lo=`expr $ac_mid + 1`
15177 if test $ac_lo -le $ac_mid; then
15181 ac_mid=`expr 2 '*' $ac_mid + 1`
15183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 cat >conftest.$ac_ext <<_ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 $ac_includes_default
15199 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15206 rm -f conftest.$ac_objext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15208 (eval $ac_compile) 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -z "$ac_c_werror_flag"
15216 || test ! -s conftest.err'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
15222 { ac_try='test -s conftest.$ac_objext'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 $ac_includes_default
15240 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
15247 rm -f conftest.$ac_objext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15249 (eval $ac_compile) 2>conftest.er1
15251 grep -v '^ *+' conftest.er1 >conftest.err
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -z "$ac_c_werror_flag"
15257 || test ! -s conftest.err'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; } &&
15263 { ac_try='test -s conftest.$ac_objext'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_lo=$ac_mid; break
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_hi=`expr '(' $ac_mid ')' - 1`
15275 if test $ac_mid -le $ac_hi; then
15279 ac_mid=`expr 2 '*' $ac_mid`
15281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15292 # Binary search between lo and hi bounds.
15293 while test "x$ac_lo" != "x$ac_hi"; do
15294 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15295 cat >conftest.$ac_ext <<_ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 $ac_includes_default
15305 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15312 rm -f conftest.$ac_objext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_lo=`expr '(' $ac_mid ')' + 1`
15341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15344 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
15345 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15346 See \`config.log' for more details." >&5
15347 echo "$as_me: error: cannot compute sizeof (long long int), 77
15348 See \`config.log' for more details." >&2;}
15349 { (exit 1); exit 1; }; } ;;
15352 if test "$cross_compiling" = yes; then
15353 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15354 See \`config.log' for more details." >&5
15355 echo "$as_me: error: cannot run test program while cross compiling
15356 See \`config.log' for more details." >&2;}
15357 { (exit 1); exit 1; }; }
15359 cat >conftest.$ac_ext <<_ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 $ac_includes_default
15366 long longval () { return (long) (sizeof (long long int)); }
15367 unsigned long ulongval () { return (long) (sizeof (long long int)); }
15369 #include <stdlib.h>
15374 FILE *f = fopen ("conftest.val", "w");
15377 if (((long) (sizeof (long long int))) < 0)
15379 long i = longval ();
15380 if (i != ((long) (sizeof (long long int))))
15382 fprintf (f, "%ld\n", i);
15386 unsigned long i = ulongval ();
15387 if (i != ((long) (sizeof (long long int))))
15389 fprintf (f, "%lu\n", i);
15391 exit (ferror (f) || fclose (f) != 0);
15397 rm -f conftest$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399 (eval $ac_link) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_long_int=`cat conftest.val`
15410 echo "$as_me: program exited with status $ac_status" >&5
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ( exit $ac_status )
15415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15416 See \`config.log' for more details." >&5
15417 echo "$as_me: error: cannot compute sizeof (long long int), 77
15418 See \`config.log' for more details." >&2;}
15419 { (exit 1); exit 1; }; }
15421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15426 ac_cv_sizeof_long_long_int=0
15429 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15430 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15431 cat >>confdefs.h <<_ACEOF
15432 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15436 echo "$as_me:$LINENO: checking for int *" >&5
15437 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15438 if test "${ac_cv_type_int_p+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 $ac_includes_default
15453 if (sizeof (int *))
15459 rm -f conftest.$ac_objext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461 (eval $ac_compile) 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_type_int_p=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_cv_type_int_p=no
15488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15490 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15491 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15493 echo "$as_me:$LINENO: checking size of int *" >&5
15494 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15495 if test "${ac_cv_sizeof_int_p+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 if test "$ac_cv_type_int_p" = yes; then
15499 # The cast to unsigned long works around a bug in the HP C Compiler
15500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15502 # This bug is HP SR number 8606223364.
15503 if test "$cross_compiling" = yes; then
15504 # Depending upon the size, compute the lo and hi bounds.
15505 cat >conftest.$ac_ext <<_ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 $ac_includes_default
15515 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524 (eval $ac_compile) 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -z "$ac_c_werror_flag"
15532 || test ! -s conftest.err'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 $ac_includes_default
15556 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15563 rm -f conftest.$ac_objext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15565 (eval $ac_compile) 2>conftest.er1
15567 grep -v '^ *+' conftest.er1 >conftest.err
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -z "$ac_c_werror_flag"
15573 || test ! -s conftest.err'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest.$ac_objext'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 ac_hi=$ac_mid; break
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 ac_lo=`expr $ac_mid + 1`
15591 if test $ac_lo -le $ac_mid; then
15595 ac_mid=`expr 2 '*' $ac_mid + 1`
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 $ac_includes_default
15613 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15620 rm -f conftest.$ac_objext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15622 (eval $ac_compile) 2>conftest.er1
15624 grep -v '^ *+' conftest.er1 >conftest.err
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
15629 { ac_try='test -z "$ac_c_werror_flag"
15630 || test ! -s conftest.err'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest.$ac_objext'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15644 cat >conftest.$ac_ext <<_ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h. */
15650 $ac_includes_default
15654 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15661 rm -f conftest.$ac_objext
15662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663 (eval $ac_compile) 2>conftest.er1
15665 grep -v '^ *+' conftest.er1 >conftest.err
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -z "$ac_c_werror_flag"
15671 || test ! -s conftest.err'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; } &&
15677 { ac_try='test -s conftest.$ac_objext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_lo=$ac_mid; break
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_hi=`expr '(' $ac_mid ')' - 1`
15689 if test $ac_mid -le $ac_hi; then
15693 ac_mid=`expr 2 '*' $ac_mid`
15695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15706 # Binary search between lo and hi bounds.
15707 while test "x$ac_lo" != "x$ac_hi"; do
15708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 $ac_includes_default
15719 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>conftest.er1
15730 grep -v '^ *+' conftest.er1 >conftest.err
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_lo=`expr '(' $ac_mid ')' + 1`
15755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15759 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15760 See \`config.log' for more details." >&5
15761 echo "$as_me: error: cannot compute sizeof (int *), 77
15762 See \`config.log' for more details." >&2;}
15763 { (exit 1); exit 1; }; } ;;
15766 if test "$cross_compiling" = yes; then
15767 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15768 See \`config.log' for more details." >&5
15769 echo "$as_me: error: cannot run test program while cross compiling
15770 See \`config.log' for more details." >&2;}
15771 { (exit 1); exit 1; }; }
15773 cat >conftest.$ac_ext <<_ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 $ac_includes_default
15780 long longval () { return (long) (sizeof (int *)); }
15781 unsigned long ulongval () { return (long) (sizeof (int *)); }
15783 #include <stdlib.h>
15788 FILE *f = fopen ("conftest.val", "w");
15791 if (((long) (sizeof (int *))) < 0)
15793 long i = longval ();
15794 if (i != ((long) (sizeof (int *))))
15796 fprintf (f, "%ld\n", i);
15800 unsigned long i = ulongval ();
15801 if (i != ((long) (sizeof (int *))))
15803 fprintf (f, "%lu\n", i);
15805 exit (ferror (f) || fclose (f) != 0);
15811 rm -f conftest$ac_exeext
15812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15813 (eval $ac_link) 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_int_p=`cat conftest.val`
15824 echo "$as_me: program exited with status $ac_status" >&5
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15828 ( exit $ac_status )
15829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15830 See \`config.log' for more details." >&5
15831 echo "$as_me: error: cannot compute sizeof (int *), 77
15832 See \`config.log' for more details." >&2;}
15833 { (exit 1); exit 1; }; }
15835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15840 ac_cv_sizeof_int_p=0
15843 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15844 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15845 cat >>confdefs.h <<_ACEOF
15846 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15851 # Check for sys/types.h types
15852 echo "$as_me:$LINENO: checking for u_int type" >&5
15853 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15854 if test "${ac_cv_have_u_int+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 cat >conftest.$ac_ext <<_ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 #include <sys/types.h>
15873 rm -f conftest.$ac_objext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875 (eval $ac_compile) 2>conftest.er1
15877 grep -v '^ *+' conftest.er1 >conftest.err
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_c_werror_flag"
15883 || test ! -s conftest.err'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_have_u_int="yes"
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 ac_cv_have_u_int="no"
15903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15906 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15907 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15908 if test "x$ac_cv_have_u_int" = "xyes" ; then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_U_INT 1
15916 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15917 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15918 if test "${ac_cv_have_intmax_t+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 #include <sys/types.h>
15937 rm -f conftest.$ac_objext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>conftest.er1
15941 grep -v '^ *+' conftest.er1 >conftest.err
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag"
15947 || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest.$ac_objext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_cv_have_intmax_t="yes"
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 #include <stdint.h>
15980 rm -f conftest.$ac_objext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15982 (eval $ac_compile) 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -z "$ac_c_werror_flag"
15990 || test ! -s conftest.err'
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; } &&
15996 { ac_try='test -s conftest.$ac_objext'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002 ac_cv_have_intmax_t="yes"
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 ac_cv_have_intmax_t="no"
16010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16018 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16019 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16020 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16021 cat >>confdefs.h <<\_ACEOF
16022 #define HAVE_INTMAX_T 1
16029 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16030 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16031 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 cat >conftest.$ac_ext <<_ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 #include <sys/types.h>
16045 u_intmax_t a; a = 1;
16050 rm -f conftest.$ac_objext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag"
16060 || test ! -s conftest.err'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } &&
16066 { ac_try='test -s conftest.$ac_objext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 ac_cv_have_u_intmax_t="yes"
16074 echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 #include <stdint.h>
16088 u_intmax_t a; a = 1;
16093 rm -f conftest.$ac_objext
16094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16095 (eval $ac_compile) 2>conftest.er1
16097 grep -v '^ *+' conftest.er1 >conftest.err
16099 cat conftest.err >&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
16102 { ac_try='test -z "$ac_c_werror_flag"
16103 || test ! -s conftest.err'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; } &&
16109 { ac_try='test -s conftest.$ac_objext'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 ac_cv_have_u_intmax_t="yes"
16117 echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16120 ac_cv_have_u_intmax_t="no"
16123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16130 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16131 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16132 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16133 cat >>confdefs.h <<\_ACEOF
16134 #define HAVE_U_INTMAX_T 1
16141 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16142 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16143 if test "${ac_cv_have_intxx_t+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 #include <sys/types.h>
16157 int8_t a; int16_t b; int32_t c; a = b = c = 1;
16162 rm -f conftest.$ac_objext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164 (eval $ac_compile) 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag"
16172 || test ! -s conftest.err'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest.$ac_objext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_cv_have_intxx_t="yes"
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16189 ac_cv_have_intxx_t="no"
16192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16195 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
16196 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
16197 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
16198 cat >>confdefs.h <<\_ACEOF
16199 #define HAVE_INTXX_T 1
16205 echo "$as_me:$LINENO: checking for int64_t type" >&5
16206 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
16207 if test "${ac_cv_have_int64_t+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 cat >conftest.$ac_ext <<_ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16217 #include <sys/types.h>
16226 rm -f conftest.$ac_objext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16228 (eval $ac_compile) 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -z "$ac_c_werror_flag"
16236 || test ! -s conftest.err'
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_cv_have_int64_t="yes"
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ac_cv_have_int64_t="no"
16256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16259 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
16260 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
16261 if test "x$ac_cv_have_int64_t" = "xyes" ; then
16262 cat >>confdefs.h <<\_ACEOF
16263 #define HAVE_INT64_T 1
16269 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
16270 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
16271 if test "${ac_cv_have_u_intxx_t+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 #include <sys/types.h>
16285 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16290 rm -f conftest.$ac_objext
16291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16292 (eval $ac_compile) 2>conftest.er1
16294 grep -v '^ *+' conftest.er1 >conftest.err
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -z "$ac_c_werror_flag"
16300 || test ! -s conftest.err'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; } &&
16306 { ac_try='test -s conftest.$ac_objext'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_cv_have_u_intxx_t="yes"
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_cv_have_u_intxx_t="no"
16320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16323 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
16324 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
16325 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
16326 cat >>confdefs.h <<\_ACEOF
16327 #define HAVE_U_INTXX_T 1
16333 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
16334 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
16335 if test "${ac_cv_have_u_int64_t+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <sys/types.h>
16349 u_int64_t a; a = 1;
16354 rm -f conftest.$ac_objext
16355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16356 (eval $ac_compile) 2>conftest.er1
16358 grep -v '^ *+' conftest.er1 >conftest.err
16360 cat conftest.err >&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } &&
16363 { ac_try='test -z "$ac_c_werror_flag"
16364 || test ! -s conftest.err'
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; } &&
16370 { ac_try='test -s conftest.$ac_objext'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 ac_cv_have_u_int64_t="yes"
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_cv_have_u_int64_t="no"
16384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16387 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
16388 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
16389 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
16390 cat >>confdefs.h <<\_ACEOF
16391 #define HAVE_U_INT64_T 1
16397 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
16398 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16400 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
16401 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
16402 cat >conftest.$ac_ext <<_ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16408 #include <sys/bitypes.h>
16412 int8_t a; int16_t b; int32_t c;
16413 u_int8_t e; u_int16_t f; u_int32_t g;
16414 a = b = c = e = f = g = 1;
16419 rm -f conftest.$ac_objext
16420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16421 (eval $ac_compile) 2>conftest.er1
16423 grep -v '^ *+' conftest.er1 >conftest.err
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } &&
16428 { ac_try='test -z "$ac_c_werror_flag"
16429 || test ! -s conftest.err'
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; } &&
16435 { ac_try='test -s conftest.$ac_objext'
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; }; then
16441 cat >>confdefs.h <<\_ACEOF
16442 #define HAVE_U_INTXX_T 1
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_INTXX_T 1
16449 cat >>confdefs.h <<\_ACEOF
16450 #define HAVE_SYS_BITYPES_H 1
16453 echo "$as_me:$LINENO: result: yes" >&5
16454 echo "${ECHO_T}yes" >&6
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 echo "$as_me:$LINENO: result: no" >&5
16460 echo "${ECHO_T}no" >&6
16463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16466 if test -z "$have_u_intxx_t" ; then
16467 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
16468 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
16469 if test "${ac_cv_have_uintxx_t+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 cat >conftest.$ac_ext <<_ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 #include <sys/types.h>
16483 uint8_t a; uint16_t b;
16484 uint32_t c; a = b = c = 1;
16489 rm -f conftest.$ac_objext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16491 (eval $ac_compile) 2>conftest.er1
16493 grep -v '^ *+' conftest.er1 >conftest.err
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_have_uintxx_t="yes"
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 ac_cv_have_uintxx_t="no"
16519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16522 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
16523 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
16524 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
16525 cat >>confdefs.h <<\_ACEOF
16526 #define HAVE_UINTXX_T 1
16532 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
16533 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16535 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
16536 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
16537 cat >conftest.$ac_ext <<_ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16543 #include <sys/bitypes.h>
16547 int64_t a; u_int64_t b;
16553 rm -f conftest.$ac_objext
16554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16555 (eval $ac_compile) 2>conftest.er1
16557 grep -v '^ *+' conftest.er1 >conftest.err
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } &&
16562 { ac_try='test -z "$ac_c_werror_flag"
16563 || test ! -s conftest.err'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; } &&
16569 { ac_try='test -s conftest.$ac_objext'
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_U_INT64_T 1
16579 cat >>confdefs.h <<\_ACEOF
16580 #define HAVE_INT64_T 1
16583 echo "$as_me:$LINENO: result: yes" >&5
16584 echo "${ECHO_T}yes" >&6
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 echo "$as_me:$LINENO: result: no" >&5
16590 echo "${ECHO_T}no" >&6
16593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16596 if (test -z "$have_uintxx_t" && \
16597 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16599 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16600 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16601 cat >conftest.$ac_ext <<_ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 #include <sys/bitypes.h>
16611 uint8_t a; uint16_t b;
16612 uint32_t c; a = b = c = 1;
16617 rm -f conftest.$ac_objext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16619 (eval $ac_compile) 2>conftest.er1
16621 grep -v '^ *+' conftest.er1 >conftest.err
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 cat >>confdefs.h <<\_ACEOF
16640 #define HAVE_UINTXX_T 1
16643 echo "$as_me:$LINENO: result: yes" >&5
16644 echo "${ECHO_T}yes" >&6
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 echo "$as_me:$LINENO: result: no" >&5
16650 echo "${ECHO_T}no" >&6
16653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16690 echo "$as_me:$LINENO: checking for $ac_func" >&5
16691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_var+set}\" = set"; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16703 #define $ac_func innocuous_$ac_func
16705 /* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char $ac_func (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16711 # include <limits.h>
16713 # include <assert.h>
16718 /* Override any gcc2 internal prototype to avoid an error. */
16723 /* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16732 char (*f) () = $ac_func;
16741 return f != $ac_func;
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest$ac_exeext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 eval "$as_ac_var=yes"
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 eval "$as_ac_var=no"
16775 rm -f conftest.err conftest.$ac_objext \
16776 conftest$ac_exeext conftest.$ac_ext
16778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16780 if test `eval echo '${'$as_ac_var'}'` = yes; then
16781 cat >>confdefs.h <<_ACEOF
16782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16786 echo 'configure: cannot find needed function.'; exit 1
16793 for ac_func in fchdir
16795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16796 echo "$as_me:$LINENO: checking for $ac_func" >&5
16797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16798 if eval "test \"\${$as_ac_var+set}\" = set"; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 cat >conftest.$ac_ext <<_ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16809 #define $ac_func innocuous_$ac_func
16811 /* System header to define __stub macros and hopefully few prototypes,
16812 which can conflict with char $ac_func (); below.
16813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16814 <limits.h> exists even on freestanding compilers. */
16817 # include <limits.h>
16819 # include <assert.h>
16824 /* Override any gcc2 internal prototype to avoid an error. */
16829 /* We use char because int might match the return type of a gcc2
16830 builtin and then its argument prototype would still apply. */
16832 /* The GNU C library defines this for functions which it implements
16833 to always fail with ENOSYS. Some functions are actually named
16834 something starting with __ and the normal name is an alias. */
16835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16838 char (*f) () = $ac_func;
16847 return f != $ac_func;
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>conftest.er1
16856 grep -v '^ *+' conftest.er1 >conftest.err
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest$ac_exeext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 eval "$as_ac_var=yes"
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 eval "$as_ac_var=no"
16881 rm -f conftest.err conftest.$ac_objext \
16882 conftest$ac_exeext conftest.$ac_ext
16884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16886 if test `eval echo '${'$as_ac_var'}'` = yes; then
16887 cat >>confdefs.h <<_ACEOF
16888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16890 cat >>confdefs.h <<\_ACEOF
16891 #define HAVE_FCHDIR 1
16898 for ac_func in strtoll
16900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16901 echo "$as_me:$LINENO: checking for $ac_func" >&5
16902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16903 if eval "test \"\${$as_ac_var+set}\" = set"; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16914 #define $ac_func innocuous_$ac_func
16916 /* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char $ac_func (); below.
16918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919 <limits.h> exists even on freestanding compilers. */
16922 # include <limits.h>
16924 # include <assert.h>
16929 /* Override any gcc2 internal prototype to avoid an error. */
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16943 char (*f) () = $ac_func;
16952 return f != $ac_func;
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>conftest.er1
16961 grep -v '^ *+' conftest.er1 >conftest.err
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 eval "$as_ac_var=yes"
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 eval "$as_ac_var=no"
16986 rm -f conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16991 if test `eval echo '${'$as_ac_var'}'` = yes; then
16992 cat >>confdefs.h <<_ACEOF
16993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_STRTOLL 1
17004 for ac_func in chflags
17006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17007 echo "$as_me:$LINENO: checking for $ac_func" >&5
17008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17009 if eval "test \"\${$as_ac_var+set}\" = set"; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 cat >conftest.$ac_ext <<_ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17020 #define $ac_func innocuous_$ac_func
17022 /* System header to define __stub macros and hopefully few prototypes,
17023 which can conflict with char $ac_func (); below.
17024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17025 <limits.h> exists even on freestanding compilers. */
17028 # include <limits.h>
17030 # include <assert.h>
17035 /* Override any gcc2 internal prototype to avoid an error. */
17040 /* We use char because int might match the return type of a gcc2
17041 builtin and then its argument prototype would still apply. */
17043 /* The GNU C library defines this for functions which it implements
17044 to always fail with ENOSYS. Some functions are actually named
17045 something starting with __ and the normal name is an alias. */
17046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17049 char (*f) () = $ac_func;
17058 return f != $ac_func;
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17065 (eval $ac_link) 2>conftest.er1
17067 grep -v '^ *+' conftest.er1 >conftest.err
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_c_werror_flag"
17073 || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 eval "$as_ac_var=yes"
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 eval "$as_ac_var=no"
17092 rm -f conftest.err conftest.$ac_objext \
17093 conftest$ac_exeext conftest.$ac_ext
17095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17097 if test `eval echo '${'$as_ac_var'}'` = yes; then
17098 cat >>confdefs.h <<_ACEOF
17099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17110 for ac_func in snprintf vsnprintf gethostid getdomainname
17112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113 echo "$as_me:$LINENO: checking for $ac_func" >&5
17114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17115 if eval "test \"\${$as_ac_var+set}\" = set"; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17126 #define $ac_func innocuous_$ac_func
17128 /* System header to define __stub macros and hopefully few prototypes,
17129 which can conflict with char $ac_func (); below.
17130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17131 <limits.h> exists even on freestanding compilers. */
17134 # include <limits.h>
17136 # include <assert.h>
17141 /* Override any gcc2 internal prototype to avoid an error. */
17146 /* We use char because int might match the return type of a gcc2
17147 builtin and then its argument prototype would still apply. */
17149 /* The GNU C library defines this for functions which it implements
17150 to always fail with ENOSYS. Some functions are actually named
17151 something starting with __ and the normal name is an alias. */
17152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17155 char (*f) () = $ac_func;
17164 return f != $ac_func;
17169 rm -f conftest.$ac_objext conftest$ac_exeext
17170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17171 (eval $ac_link) 2>conftest.er1
17173 grep -v '^ *+' conftest.er1 >conftest.err
17175 cat conftest.err >&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
17178 { ac_try='test -z "$ac_c_werror_flag"
17179 || test ! -s conftest.err'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest$ac_exeext'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 eval "$as_ac_var=yes"
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 eval "$as_ac_var=no"
17198 rm -f conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
17201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17203 if test `eval echo '${'$as_ac_var'}'` = yes; then
17204 cat >>confdefs.h <<_ACEOF
17205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17216 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
17218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17219 echo "$as_me:$LINENO: checking for $ac_func" >&5
17220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17221 if eval "test \"\${$as_ac_var+set}\" = set"; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 cat >conftest.$ac_ext <<_ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17232 #define $ac_func innocuous_$ac_func
17234 /* System header to define __stub macros and hopefully few prototypes,
17235 which can conflict with char $ac_func (); below.
17236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17237 <limits.h> exists even on freestanding compilers. */
17240 # include <limits.h>
17242 # include <assert.h>
17247 /* Override any gcc2 internal prototype to avoid an error. */
17252 /* We use char because int might match the return type of a gcc2
17253 builtin and then its argument prototype would still apply. */
17255 /* The GNU C library defines this for functions which it implements
17256 to always fail with ENOSYS. Some functions are actually named
17257 something starting with __ and the normal name is an alias. */
17258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17261 char (*f) () = $ac_func;
17270 return f != $ac_func;
17275 rm -f conftest.$ac_objext conftest$ac_exeext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17277 (eval $ac_link) 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag"
17285 || test ! -s conftest.err'
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest$ac_exeext'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 eval "$as_ac_var=yes"
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 eval "$as_ac_var=no"
17304 rm -f conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17309 if test `eval echo '${'$as_ac_var'}'` = yes; then
17310 cat >>confdefs.h <<_ACEOF
17311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17318 # If resolver functions are not in libc check for -lnsl or -lresolv.
17319 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17320 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17321 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 cat >conftest.$ac_ext <<_ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
17331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17332 #define gethostbyname_r innocuous_gethostbyname_r
17334 /* System header to define __stub macros and hopefully few prototypes,
17335 which can conflict with char gethostbyname_r (); below.
17336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17337 <limits.h> exists even on freestanding compilers. */
17340 # include <limits.h>
17342 # include <assert.h>
17345 #undef gethostbyname_r
17347 /* Override any gcc2 internal prototype to avoid an error. */
17352 /* We use char because int might match the return type of a gcc2
17353 builtin and then its argument prototype would still apply. */
17354 char gethostbyname_r ();
17355 /* The GNU C library defines this for functions which it implements
17356 to always fail with ENOSYS. Some functions are actually named
17357 something starting with __ and the normal name is an alias. */
17358 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
17361 char (*f) () = gethostbyname_r;
17370 return f != gethostbyname_r;
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17377 (eval $ac_link) 2>conftest.er1
17379 grep -v '^ *+' conftest.er1 >conftest.err
17381 cat conftest.err >&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } &&
17384 { ac_try='test -z "$ac_c_werror_flag"
17385 || test ! -s conftest.err'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; } &&
17391 { ac_try='test -s conftest$ac_exeext'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_cv_func_gethostbyname_r=yes
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 ac_cv_func_gethostbyname_r=no
17404 rm -f conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17407 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
17408 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
17409 if test $ac_cv_func_gethostbyname_r = yes; then
17410 echo "$as_me:$LINENO: result: using libc's resolver" >&5
17411 echo "${ECHO_T}using libc's resolver" >&6
17414 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
17415 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
17416 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 ac_check_lib_save_LIBS=$LIBS
17421 cat >conftest.$ac_ext <<_ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17428 /* Override any gcc2 internal prototype to avoid an error. */
17432 /* We use char because int might match the return type of a gcc2
17433 builtin and then its argument prototype would still apply. */
17434 char gethostbyname_r ();
17438 gethostbyname_r ();
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>conftest.er1
17447 grep -v '^ *+' conftest.er1 >conftest.err
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -z "$ac_c_werror_flag"
17453 || test ! -s conftest.err'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_lib_nsl_gethostbyname_r=yes
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17470 ac_cv_lib_nsl_gethostbyname_r=no
17472 rm -f conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17474 LIBS=$ac_check_lib_save_LIBS
17476 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
17477 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
17478 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
17479 cat >>confdefs.h <<_ACEOF
17480 #define HAVE_LIBNSL 1
17488 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
17489 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
17490 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 ac_check_lib_save_LIBS=$LIBS
17494 LIBS="-lresolv $LIBS"
17495 cat >conftest.$ac_ext <<_ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17502 /* Override any gcc2 internal prototype to avoid an error. */
17506 /* We use char because int might match the return type of a gcc2
17507 builtin and then its argument prototype would still apply. */
17508 char gethostbyname_r ();
17512 gethostbyname_r ();
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_c_werror_flag"
17527 || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest$ac_exeext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_lib_resolv_gethostbyname_r=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_cv_lib_resolv_gethostbyname_r=no
17546 rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
17551 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
17552 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
17553 cat >>confdefs.h <<_ACEOF
17554 #define HAVE_LIBRESOLV 1
17557 LIBS="-lresolv $LIBS"
17565 # Find where sockets are (especially for Solaris)
17566 echo "$as_me:$LINENO: checking for socket" >&5
17567 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17568 if test "${ac_cv_func_socket+set}" = set; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 cat >conftest.$ac_ext <<_ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17579 #define socket innocuous_socket
17581 /* System header to define __stub macros and hopefully few prototypes,
17582 which can conflict with char socket (); below.
17583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17584 <limits.h> exists even on freestanding compilers. */
17587 # include <limits.h>
17589 # include <assert.h>
17594 /* Override any gcc2 internal prototype to avoid an error. */
17599 /* We use char because int might match the return type of a gcc2
17600 builtin and then its argument prototype would still apply. */
17602 /* The GNU C library defines this for functions which it implements
17603 to always fail with ENOSYS. Some functions are actually named
17604 something starting with __ and the normal name is an alias. */
17605 #if defined (__stub_socket) || defined (__stub___socket)
17608 char (*f) () = socket;
17617 return f != socket;
17622 rm -f conftest.$ac_objext conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624 (eval $ac_link) 2>conftest.er1
17626 grep -v '^ *+' conftest.er1 >conftest.err
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try='test -z "$ac_c_werror_flag"
17632 || test ! -s conftest.err'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest$ac_exeext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_cv_func_socket=yes
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 ac_cv_func_socket=no
17651 rm -f conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17654 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17655 echo "${ECHO_T}$ac_cv_func_socket" >&6
17656 if test $ac_cv_func_socket = yes; then
17657 echo "$as_me:$LINENO: result: using libc's socket" >&5
17658 echo "${ECHO_T}using libc's socket" >&6
17661 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17662 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
17663 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 ac_check_lib_save_LIBS=$LIBS
17667 LIBS="-lxnet $LIBS"
17668 cat >conftest.$ac_ext <<_ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17675 /* Override any gcc2 internal prototype to avoid an error. */
17679 /* We use char because int might match the return type of a gcc2
17680 builtin and then its argument prototype would still apply. */
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692 (eval $ac_link) 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag"
17700 || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest$ac_exeext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_lib_xnet_socket=yes
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_cv_lib_xnet_socket=no
17719 rm -f conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17723 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17724 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
17725 if test $ac_cv_lib_xnet_socket = yes; then
17726 cat >>confdefs.h <<_ACEOF
17727 #define HAVE_LIBXNET 1
17730 LIBS="-lxnet $LIBS"
17735 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17736 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
17737 if test "${ac_cv_lib_socket_socket+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 ac_check_lib_save_LIBS=$LIBS
17741 LIBS="-lsocket $LIBS"
17742 cat >conftest.$ac_ext <<_ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17749 /* Override any gcc2 internal prototype to avoid an error. */
17753 /* We use char because int might match the return type of a gcc2
17754 builtin and then its argument prototype would still apply. */
17764 rm -f conftest.$ac_objext conftest$ac_exeext
17765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766 (eval $ac_link) 2>conftest.er1
17768 grep -v '^ *+' conftest.er1 >conftest.err
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_cv_lib_socket_socket=yes
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 ac_cv_lib_socket_socket=no
17793 rm -f conftest.err conftest.$ac_objext \
17794 conftest$ac_exeext conftest.$ac_ext
17795 LIBS=$ac_check_lib_save_LIBS
17797 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17798 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
17799 if test $ac_cv_lib_socket_socket = yes; then
17800 cat >>confdefs.h <<_ACEOF
17801 #define HAVE_LIBSOCKET 1
17804 LIBS="-lsocket $LIBS"
17809 echo "$as_me:$LINENO: checking for socket in -linet" >&5
17810 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
17811 if test "${ac_cv_lib_inet_socket+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 ac_check_lib_save_LIBS=$LIBS
17815 LIBS="-linet $LIBS"
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17823 /* Override any gcc2 internal prototype to avoid an error. */
17827 /* We use char because int might match the return type of a gcc2
17828 builtin and then its argument prototype would still apply. */
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17840 (eval $ac_link) 2>conftest.er1
17842 grep -v '^ *+' conftest.er1 >conftest.err
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_cv_lib_inet_socket=yes
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_cv_lib_inet_socket=no
17867 rm -f conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17871 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17872 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
17873 if test $ac_cv_lib_inet_socket = yes; then
17874 cat >>confdefs.h <<_ACEOF
17875 #define HAVE_LIBINET 1
17878 LIBS="-linet $LIBS"
17886 for ac_func in inet_pton
17888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17889 echo "$as_me:$LINENO: checking for $ac_func" >&5
17890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17891 if eval "test \"\${$as_ac_var+set}\" = set"; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17902 #define $ac_func innocuous_$ac_func
17904 /* System header to define __stub macros and hopefully few prototypes,
17905 which can conflict with char $ac_func (); below.
17906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17907 <limits.h> exists even on freestanding compilers. */
17910 # include <limits.h>
17912 # include <assert.h>
17917 /* Override any gcc2 internal prototype to avoid an error. */
17922 /* We use char because int might match the return type of a gcc2
17923 builtin and then its argument prototype would still apply. */
17925 /* The GNU C library defines this for functions which it implements
17926 to always fail with ENOSYS. Some functions are actually named
17927 something starting with __ and the normal name is an alias. */
17928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17931 char (*f) () = $ac_func;
17940 return f != $ac_func;
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17947 (eval $ac_link) 2>conftest.er1
17949 grep -v '^ *+' conftest.er1 >conftest.err
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
17954 { ac_try='test -z "$ac_c_werror_flag"
17955 || test ! -s conftest.err'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest$ac_exeext'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 eval "$as_ac_var=yes"
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 eval "$as_ac_var=no"
17974 rm -f conftest.err conftest.$ac_objext \
17975 conftest$ac_exeext conftest.$ac_ext
17977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17979 if test `eval echo '${'$as_ac_var'}'` = yes; then
17980 cat >>confdefs.h <<_ACEOF
17981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17983 cat >>confdefs.h <<\_ACEOF
17984 #define HAVE_INET_PTON 1
17991 for ac_func in inet_ntop
17993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17994 echo "$as_me:$LINENO: checking for $ac_func" >&5
17995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17996 if eval "test \"\${$as_ac_var+set}\" = set"; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 cat >conftest.$ac_ext <<_ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18007 #define $ac_func innocuous_$ac_func
18009 /* System header to define __stub macros and hopefully few prototypes,
18010 which can conflict with char $ac_func (); below.
18011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012 <limits.h> exists even on freestanding compilers. */
18015 # include <limits.h>
18017 # include <assert.h>
18022 /* Override any gcc2 internal prototype to avoid an error. */
18027 /* We use char because int might match the return type of a gcc2
18028 builtin and then its argument prototype would still apply. */
18030 /* The GNU C library defines this for functions which it implements
18031 to always fail with ENOSYS. Some functions are actually named
18032 something starting with __ and the normal name is an alias. */
18033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18036 char (*f) () = $ac_func;
18045 return f != $ac_func;
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>conftest.er1
18054 grep -v '^ *+' conftest.er1 >conftest.err
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag"
18060 || test ! -s conftest.err'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest$ac_exeext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 eval "$as_ac_var=yes"
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 eval "$as_ac_var=no"
18079 rm -f conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18084 if test `eval echo '${'$as_ac_var'}'` = yes; then
18085 cat >>confdefs.h <<_ACEOF
18086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18088 cat >>confdefs.h <<\_ACEOF
18089 #define HAVE_INET_NTOP 1
18096 for ac_func in gethostbyname2
18098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18099 echo "$as_me:$LINENO: checking for $ac_func" >&5
18100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18101 if eval "test \"\${$as_ac_var+set}\" = set"; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 cat >conftest.$ac_ext <<_ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18112 #define $ac_func innocuous_$ac_func
18114 /* System header to define __stub macros and hopefully few prototypes,
18115 which can conflict with char $ac_func (); below.
18116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18117 <limits.h> exists even on freestanding compilers. */
18120 # include <limits.h>
18122 # include <assert.h>
18127 /* Override any gcc2 internal prototype to avoid an error. */
18132 /* We use char because int might match the return type of a gcc2
18133 builtin and then its argument prototype would still apply. */
18135 /* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18141 char (*f) () = $ac_func;
18150 return f != $ac_func;
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18157 (eval $ac_link) 2>conftest.er1
18159 grep -v '^ *+' conftest.er1 >conftest.err
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag"
18165 || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 eval "$as_ac_var=yes"
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 eval "$as_ac_var=no"
18184 rm -f conftest.err conftest.$ac_objext \
18185 conftest$ac_exeext conftest.$ac_ext
18187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18189 if test `eval echo '${'$as_ac_var'}'` = yes; then
18190 cat >>confdefs.h <<_ACEOF
18191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18193 cat >>confdefs.h <<\_ACEOF
18194 #define HAVE_GETHOSTBYNAME2 1
18201 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18202 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18203 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18206 cat >conftest.$ac_ext <<_ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 #include <sys/socket.h>
18216 struct sockaddr s; s.sa_len;
18221 rm -f conftest.$ac_objext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223 (eval $ac_compile) 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag"
18231 || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest.$ac_objext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 ac_cv_struct_sockaddr_sa_len=yes
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 ac_cv_struct_sockaddr_sa_len=no
18250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18252 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18253 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18255 if test $ac_cv_struct_sockaddr_sa_len = yes; then
18257 cat >>confdefs.h <<\_ACEOF
18258 #define HAVE_SA_LEN 1
18264 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18265 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18266 if test "${ac_cv_ipv6_support+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 cat >conftest.$ac_ext <<_ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 #include <sys/types.h>
18276 #include <sys/socket.h>
18277 #include <netinet/in.h>
18281 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18289 (eval $ac_link) 2>conftest.er1
18291 grep -v '^ *+' conftest.er1 >conftest.err
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
18296 { ac_try='test -z "$ac_c_werror_flag"
18297 || test ! -s conftest.err'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest$ac_exeext'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_ipv6_support=yes
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 ac_cv_ipv6_support=no
18316 rm -f conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
18319 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18320 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18322 if test "$ac_cv_ipv6_support" = yes; then
18324 cat >>confdefs.h <<\_ACEOF
18325 #define HAVE_IPV6 1
18333 for ac_func in strftime
18335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18336 echo "$as_me:$LINENO: checking for $ac_func" >&5
18337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18338 if eval "test \"\${$as_ac_var+set}\" = set"; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 cat >conftest.$ac_ext <<_ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18349 #define $ac_func innocuous_$ac_func
18351 /* System header to define __stub macros and hopefully few prototypes,
18352 which can conflict with char $ac_func (); below.
18353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18354 <limits.h> exists even on freestanding compilers. */
18357 # include <limits.h>
18359 # include <assert.h>
18364 /* Override any gcc2 internal prototype to avoid an error. */
18369 /* We use char because int might match the return type of a gcc2
18370 builtin and then its argument prototype would still apply. */
18372 /* The GNU C library defines this for functions which it implements
18373 to always fail with ENOSYS. Some functions are actually named
18374 something starting with __ and the normal name is an alias. */
18375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18378 char (*f) () = $ac_func;
18387 return f != $ac_func;
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18394 (eval $ac_link) 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -z "$ac_c_werror_flag"
18402 || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 eval "$as_ac_var=yes"
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18419 eval "$as_ac_var=no"
18421 rm -f conftest.err conftest.$ac_objext \
18422 conftest$ac_exeext conftest.$ac_ext
18424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18426 if test `eval echo '${'$as_ac_var'}'` = yes; then
18427 cat >>confdefs.h <<_ACEOF
18428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18432 # strftime is in -lintl on SCO UNIX.
18433 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18434 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18435 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 ac_check_lib_save_LIBS=$LIBS
18439 LIBS="-lintl $LIBS"
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18447 /* Override any gcc2 internal prototype to avoid an error. */
18451 /* We use char because int might match the return type of a gcc2
18452 builtin and then its argument prototype would still apply. */
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464 (eval $ac_link) 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_c_werror_flag"
18472 || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_lib_intl_strftime=yes
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_cv_lib_intl_strftime=no
18491 rm -f conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18493 LIBS=$ac_check_lib_save_LIBS
18495 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18496 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18497 if test $ac_cv_lib_intl_strftime = yes; then
18498 cat >>confdefs.h <<\_ACEOF
18499 #define HAVE_STRFTIME 1
18502 LIBS="-lintl $LIBS"
18509 for ac_func in vprintf
18511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18512 echo "$as_me:$LINENO: checking for $ac_func" >&5
18513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18514 if eval "test \"\${$as_ac_var+set}\" = set"; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18525 #define $ac_func innocuous_$ac_func
18527 /* System header to define __stub macros and hopefully few prototypes,
18528 which can conflict with char $ac_func (); below.
18529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18530 <limits.h> exists even on freestanding compilers. */
18533 # include <limits.h>
18535 # include <assert.h>
18540 /* Override any gcc2 internal prototype to avoid an error. */
18545 /* We use char because int might match the return type of a gcc2
18546 builtin and then its argument prototype would still apply. */
18548 /* The GNU C library defines this for functions which it implements
18549 to always fail with ENOSYS. Some functions are actually named
18550 something starting with __ and the normal name is an alias. */
18551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18554 char (*f) () = $ac_func;
18563 return f != $ac_func;
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18570 (eval $ac_link) 2>conftest.er1
18572 grep -v '^ *+' conftest.er1 >conftest.err
18574 cat conftest.err >&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
18577 { ac_try='test -z "$ac_c_werror_flag"
18578 || test ! -s conftest.err'
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; } &&
18584 { ac_try='test -s conftest$ac_exeext'
18585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586 (eval $ac_try) 2>&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590 eval "$as_ac_var=yes"
18592 echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18595 eval "$as_ac_var=no"
18597 rm -f conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
18600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18602 if test `eval echo '${'$as_ac_var'}'` = yes; then
18603 cat >>confdefs.h <<_ACEOF
18604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18607 echo "$as_me:$LINENO: checking for _doprnt" >&5
18608 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
18609 if test "${ac_cv_func__doprnt+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 cat >conftest.$ac_ext <<_ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
18619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18620 #define _doprnt innocuous__doprnt
18622 /* System header to define __stub macros and hopefully few prototypes,
18623 which can conflict with char _doprnt (); below.
18624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18625 <limits.h> exists even on freestanding compilers. */
18628 # include <limits.h>
18630 # include <assert.h>
18635 /* Override any gcc2 internal prototype to avoid an error. */
18640 /* We use char because int might match the return type of a gcc2
18641 builtin and then its argument prototype would still apply. */
18643 /* The GNU C library defines this for functions which it implements
18644 to always fail with ENOSYS. Some functions are actually named
18645 something starting with __ and the normal name is an alias. */
18646 #if defined (__stub__doprnt) || defined (__stub____doprnt)
18649 char (*f) () = _doprnt;
18658 return f != _doprnt;
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18665 (eval $ac_link) 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag"
18673 || test ! -s conftest.err'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; } &&
18679 { ac_try='test -s conftest$ac_exeext'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
18685 ac_cv_func__doprnt=yes
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_cv_func__doprnt=no
18692 rm -f conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18695 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
18696 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
18697 if test $ac_cv_func__doprnt = yes; then
18699 cat >>confdefs.h <<\_ACEOF
18700 #define HAVE_DOPRNT 1
18709 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18710 # for constant arguments. Useless!
18711 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18712 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18713 if test "${ac_cv_working_alloca_h+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 cat >conftest.$ac_ext <<_ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18722 #include <alloca.h>
18726 char *p = (char *) alloca (2 * sizeof (int));
18731 rm -f conftest.$ac_objext conftest$ac_exeext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18733 (eval $ac_link) 2>conftest.er1
18735 grep -v '^ *+' conftest.er1 >conftest.err
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_c_werror_flag"
18741 || test ! -s conftest.err'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } &&
18747 { ac_try='test -s conftest$ac_exeext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_working_alloca_h=yes
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 ac_cv_working_alloca_h=no
18760 rm -f conftest.err conftest.$ac_objext \
18761 conftest$ac_exeext conftest.$ac_ext
18763 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18764 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18765 if test $ac_cv_working_alloca_h = yes; then
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE_ALLOCA_H 1
18773 echo "$as_me:$LINENO: checking for alloca" >&5
18774 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18775 if test "${ac_cv_func_alloca_works+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 cat >conftest.$ac_ext <<_ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18785 # define alloca __builtin_alloca
18788 # include <malloc.h>
18789 # define alloca _alloca
18792 # include <alloca.h>
18797 # ifndef alloca /* predefined by HP cc +Olibcalls */
18808 char *p = (char *) alloca (1);
18813 rm -f conftest.$ac_objext conftest$ac_exeext
18814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18815 (eval $ac_link) 2>conftest.er1
18817 grep -v '^ *+' conftest.er1 >conftest.err
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } &&
18822 { ac_try='test -z "$ac_c_werror_flag"
18823 || test ! -s conftest.err'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; } &&
18829 { ac_try='test -s conftest$ac_exeext'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 ac_cv_func_alloca_works=yes
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18840 ac_cv_func_alloca_works=no
18842 rm -f conftest.err conftest.$ac_objext \
18843 conftest$ac_exeext conftest.$ac_ext
18845 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18846 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18848 if test $ac_cv_func_alloca_works = yes; then
18850 cat >>confdefs.h <<\_ACEOF
18851 #define HAVE_ALLOCA 1
18855 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18856 # that cause trouble. Some versions do not even contain alloca or
18857 # contain a buggy version. If you still want to use their alloca,
18858 # use ar to extract alloca.o from them instead of compiling alloca.c.
18860 ALLOCA=alloca.$ac_objext
18862 cat >>confdefs.h <<\_ACEOF
18867 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18868 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18869 if test "${ac_cv_os_cray+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 cat >conftest.$ac_ext <<_ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 #if defined(CRAY) && ! defined(CRAY2)
18885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18886 $EGREP "webecray" >/dev/null 2>&1; then
18894 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18895 echo "${ECHO_T}$ac_cv_os_cray" >&6
18896 if test $ac_cv_os_cray = yes; then
18897 for ac_func in _getb67 GETB67 getb67; do
18898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18899 echo "$as_me:$LINENO: checking for $ac_func" >&5
18900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18901 if eval "test \"\${$as_ac_var+set}\" = set"; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 cat >conftest.$ac_ext <<_ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18912 #define $ac_func innocuous_$ac_func
18914 /* System header to define __stub macros and hopefully few prototypes,
18915 which can conflict with char $ac_func (); below.
18916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18917 <limits.h> exists even on freestanding compilers. */
18920 # include <limits.h>
18922 # include <assert.h>
18927 /* Override any gcc2 internal prototype to avoid an error. */
18932 /* We use char because int might match the return type of a gcc2
18933 builtin and then its argument prototype would still apply. */
18935 /* The GNU C library defines this for functions which it implements
18936 to always fail with ENOSYS. Some functions are actually named
18937 something starting with __ and the normal name is an alias. */
18938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18941 char (*f) () = $ac_func;
18950 return f != $ac_func;
18955 rm -f conftest.$ac_objext conftest$ac_exeext
18956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18957 (eval $ac_link) 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -z "$ac_c_werror_flag"
18965 || test ! -s conftest.err'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest$ac_exeext'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18977 eval "$as_ac_var=yes"
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 eval "$as_ac_var=no"
18984 rm -f conftest.err conftest.$ac_objext \
18985 conftest$ac_exeext conftest.$ac_ext
18987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18989 if test `eval echo '${'$as_ac_var'}'` = yes; then
18991 cat >>confdefs.h <<_ACEOF
18992 #define CRAY_STACKSEG_END $ac_func
19001 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19002 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19003 if test "${ac_cv_c_stack_direction+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 if test "$cross_compiling" = yes; then
19007 ac_cv_c_stack_direction=0
19009 cat >conftest.$ac_ext <<_ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19016 find_stack_direction ()
19018 static char *addr = 0;
19023 return find_stack_direction ();
19026 return (&dummy > addr) ? 1 : -1;
19032 exit (find_stack_direction () < 0);
19035 rm -f conftest$ac_exeext
19036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19037 (eval $ac_link) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 ac_cv_c_stack_direction=1
19048 echo "$as_me: program exited with status $ac_status" >&5
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ( exit $ac_status )
19053 ac_cv_c_stack_direction=-1
19055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19058 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19059 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19061 cat >>confdefs.h <<_ACEOF
19062 #define STACK_DIRECTION $ac_cv_c_stack_direction
19068 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19069 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19070 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19071 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 ac_check_lib_save_LIBS=$LIBS
19076 cat >conftest.$ac_ext <<_ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19083 /* Override any gcc2 internal prototype to avoid an error. */
19087 /* We use char because int might match the return type of a gcc2
19088 builtin and then its argument prototype would still apply. */
19098 rm -f conftest.$ac_objext conftest$ac_exeext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19100 (eval $ac_link) 2>conftest.er1
19102 grep -v '^ *+' conftest.er1 >conftest.err
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
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); }; } &&
19114 { ac_try='test -s conftest$ac_exeext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_lib_sun_getmntent=yes
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_cv_lib_sun_getmntent=no
19127 rm -f conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129 LIBS=$ac_check_lib_save_LIBS
19131 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19132 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19133 if test $ac_cv_lib_sun_getmntent = yes; then
19136 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19137 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19138 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 ac_check_lib_save_LIBS=$LIBS
19143 cat >conftest.$ac_ext <<_ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19150 /* Override any gcc2 internal prototype to avoid an error. */
19154 /* We use char because int might match the return type of a gcc2
19155 builtin and then its argument prototype would still apply. */
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19167 (eval $ac_link) 2>conftest.er1
19169 grep -v '^ *+' conftest.er1 >conftest.err
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try='test -z "$ac_c_werror_flag"
19175 || test ! -s conftest.err'
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); }; } &&
19181 { ac_try='test -s conftest$ac_exeext'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 ac_cv_lib_seq_getmntent=yes
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 ac_cv_lib_seq_getmntent=no
19194 rm -f conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19196 LIBS=$ac_check_lib_save_LIBS
19198 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19199 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19200 if test $ac_cv_lib_seq_getmntent = yes; then
19203 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19204 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19205 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19208 ac_check_lib_save_LIBS=$LIBS
19210 cat >conftest.$ac_ext <<_ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19217 /* Override any gcc2 internal prototype to avoid an error. */
19221 /* We use char because int might match the return type of a gcc2
19222 builtin and then its argument prototype would still apply. */
19232 rm -f conftest.$ac_objext conftest$ac_exeext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19234 (eval $ac_link) 2>conftest.er1
19236 grep -v '^ *+' conftest.er1 >conftest.err
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag"
19242 || test ! -s conftest.err'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try='test -s conftest$ac_exeext'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_cv_lib_gen_getmntent=yes
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_cv_lib_gen_getmntent=no
19261 rm -f conftest.err conftest.$ac_objext \
19262 conftest$ac_exeext conftest.$ac_ext
19263 LIBS=$ac_check_lib_save_LIBS
19265 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19266 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19267 if test $ac_cv_lib_gen_getmntent = yes; then
19276 for ac_func in getmntent
19278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19279 echo "$as_me:$LINENO: checking for $ac_func" >&5
19280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19281 if eval "test \"\${$as_ac_var+set}\" = set"; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 cat >conftest.$ac_ext <<_ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19292 #define $ac_func innocuous_$ac_func
19294 /* System header to define __stub macros and hopefully few prototypes,
19295 which can conflict with char $ac_func (); below.
19296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19297 <limits.h> exists even on freestanding compilers. */
19300 # include <limits.h>
19302 # include <assert.h>
19307 /* Override any gcc2 internal prototype to avoid an error. */
19312 /* We use char because int might match the return type of a gcc2
19313 builtin and then its argument prototype would still apply. */
19315 /* The GNU C library defines this for functions which it implements
19316 to always fail with ENOSYS. Some functions are actually named
19317 something starting with __ and the normal name is an alias. */
19318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19321 char (*f) () = $ac_func;
19330 return f != $ac_func;
19335 rm -f conftest.$ac_objext conftest$ac_exeext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337 (eval $ac_link) 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } &&
19344 { ac_try='test -z "$ac_c_werror_flag"
19345 || test ! -s conftest.err'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest$ac_exeext'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; }; then
19357 eval "$as_ac_var=yes"
19359 echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 eval "$as_ac_var=no"
19364 rm -f conftest.err conftest.$ac_objext \
19365 conftest$ac_exeext conftest.$ac_ext
19367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19369 if test `eval echo '${'$as_ac_var'}'` = yes; then
19370 cat >>confdefs.h <<_ACEOF
19371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19378 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19379 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19380 if test "${ac_cv_func_closedir_void+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 if test "$cross_compiling" = yes; then
19384 ac_cv_func_closedir_void=yes
19386 cat >conftest.$ac_ext <<_ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 $ac_includes_default
19393 #include <$ac_header_dirent>
19394 #ifndef __cplusplus
19401 exit (closedir (opendir (".")) != 0);
19406 rm -f conftest$ac_exeext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19408 (eval $ac_link) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_cv_func_closedir_void=no
19419 echo "$as_me: program exited with status $ac_status" >&5
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 ( exit $ac_status )
19424 ac_cv_func_closedir_void=yes
19426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19429 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19430 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19431 if test $ac_cv_func_closedir_void = yes; then
19433 cat >>confdefs.h <<\_ACEOF
19434 #define CLOSEDIR_VOID 1
19439 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19440 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19441 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 if test "$cross_compiling" = yes; then
19445 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19446 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19447 { (exit 1); exit 1; }; }
19449 cat >conftest.$ac_ext <<_ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19456 # include <unistd.h>
19462 /* If this system has a BSD-style setpgrp which takes arguments,
19463 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19464 exit successfully. */
19465 exit (setpgrp (1,1) == -1 ? 0 : 1);
19470 rm -f conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_func_setpgrp_void=no
19483 echo "$as_me: program exited with status $ac_status" >&5
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ( exit $ac_status )
19488 ac_cv_func_setpgrp_void=yes
19490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19493 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19494 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19495 if test $ac_cv_func_setpgrp_void = yes; then
19497 cat >>confdefs.h <<\_ACEOF
19498 #define SETPGRP_VOID 1
19502 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
19503 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
19504 if test "${ac_cv_func_fnmatch_works+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 # Some versions of Solaris, SCO, and the GNU C Library
19508 # have a broken or incompatible fnmatch.
19509 # So we run a test program. If we are cross-compiling, take no chance.
19510 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
19511 if test "$cross_compiling" = yes; then
19512 ac_cv_func_fnmatch_works=cross
19514 cat >conftest.$ac_ext <<_ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19520 #include <fnmatch.h>
19521 # define y(a, b, c) (fnmatch (a, b, c) == 0)
19522 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
19528 (!(y ("a*", "abc", 0)
19529 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19530 && y ("a\\\\bc", "abc", 0)
19531 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19532 && y ("*x", ".x", 0)
19533 && n ("*x", ".x", FNM_PERIOD)
19539 rm -f conftest$ac_exeext
19540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19541 (eval $ac_link) 2>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 ac_cv_func_fnmatch_works=yes
19552 echo "$as_me: program exited with status $ac_status" >&5
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19556 ( exit $ac_status )
19557 ac_cv_func_fnmatch_works=no
19559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
19563 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
19564 if test $ac_cv_func_fnmatch_works = yes; then
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_FNMATCH 1
19576 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
19577 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
19578 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 ac_check_lib_save_LIBS=$LIBS
19582 LIBS="-lxpg4 $LIBS"
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19590 /* Override any gcc2 internal prototype to avoid an error. */
19594 /* We use char because int might match the return type of a gcc2
19595 builtin and then its argument prototype would still apply. */
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19607 (eval $ac_link) 2>conftest.er1
19609 grep -v '^ *+' conftest.er1 >conftest.err
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -z "$ac_c_werror_flag"
19615 || test ! -s conftest.err'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest$ac_exeext'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 ac_cv_lib_xpg4_setlocale=yes
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ac_cv_lib_xpg4_setlocale=no
19634 rm -f conftest.err conftest.$ac_objext \
19635 conftest$ac_exeext conftest.$ac_ext
19636 LIBS=$ac_check_lib_save_LIBS
19638 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
19639 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
19640 if test $ac_cv_lib_xpg4_setlocale = yes; then
19641 LIBS="$LIBS -lxpg4"
19647 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
19648 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
19649 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 ac_check_lib_save_LIBS=$LIBS
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19661 /* Override any gcc2 internal prototype to avoid an error. */
19665 /* We use char because int might match the return type of a gcc2
19666 builtin and then its argument prototype would still apply. */
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678 (eval $ac_link) 2>conftest.er1
19680 grep -v '^ *+' conftest.er1 >conftest.err
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest$ac_exeext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_cv_lib_sun_getpwnam=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 ac_cv_lib_sun_getpwnam=no
19705 rm -f conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS
19709 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
19710 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
19711 if test $ac_cv_lib_sun_getpwnam = yes; then
19712 cat >>confdefs.h <<_ACEOF
19713 #define HAVE_LIBSUN 1
19722 for ac_header in zlib.h
19724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo "$as_me:$LINENO: checking for $ac_header" >&5
19727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19734 # Is the header compilable?
19735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19737 cat >conftest.$ac_ext <<_ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 $ac_includes_default
19744 #include <$ac_header>
19746 rm -f conftest.$ac_objext
19747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19748 (eval $ac_compile) 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -z "$ac_c_werror_flag"
19756 || test ! -s conftest.err'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; } &&
19762 { ac_try='test -s conftest.$ac_objext'
19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; }; then
19768 ac_header_compiler=yes
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_header_compiler=no
19775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19777 echo "${ECHO_T}$ac_header_compiler" >&6
19779 # Is the header present?
19780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 #include <$ac_header>
19790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } >/dev/null; then
19798 if test -s conftest.err; then
19799 ac_cpp_err=$ac_c_preproc_warn_flag
19800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19807 if test -z "$ac_cpp_err"; then
19808 ac_header_preproc=yes
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 ac_header_preproc=no
19815 rm -f conftest.err conftest.$ac_ext
19816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19817 echo "${ECHO_T}$ac_header_preproc" >&6
19819 # So? What about this header?
19820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19826 ac_header_preproc=yes
19829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19843 ## ------------------------------------------ ##
19844 ## Report this to the AC_PACKAGE_NAME lists. ##
19845 ## ------------------------------------------ ##
19848 sed "s/^/$as_me: WARNING: /" >&2
19851 echo "$as_me:$LINENO: checking for $ac_header" >&5
19852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 eval "$as_ac_Header=\$ac_header_preproc"
19858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19863 cat >>confdefs.h <<_ACEOF
19864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19871 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19872 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19873 if test "${ac_cv_lib_z_deflate+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 ac_check_lib_save_LIBS=$LIBS
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19885 /* Override any gcc2 internal prototype to avoid an error. */
19889 /* We use char because int might match the return type of a gcc2
19890 builtin and then its argument prototype would still apply. */
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19902 (eval $ac_link) 2>conftest.er1
19904 grep -v '^ *+' conftest.er1 >conftest.err
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest$ac_exeext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_cv_lib_z_deflate=yes
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_cv_lib_z_deflate=no
19929 rm -f conftest.err conftest.$ac_objext \
19930 conftest$ac_exeext conftest.$ac_ext
19931 LIBS=$ac_check_lib_save_LIBS
19933 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19934 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19935 if test $ac_cv_lib_z_deflate = yes; then
19940 if test x$FDLIBS = x-lz; then
19941 cat >>confdefs.h <<\_ACEOF
19942 #define HAVE_LIBZ 1
19948 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19949 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
19950 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
19951 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
19955 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
19957 # Is the header compilable?
19958 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
19959 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 $ac_includes_default
19967 #include <sys/acl.h>
19969 rm -f conftest.$ac_objext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19973 grep -v '^ *+' conftest.er1 >conftest.err
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
19978 { ac_try='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_header_compiler=yes
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19996 ac_header_compiler=no
19998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20000 echo "${ECHO_T}$ac_header_compiler" >&6
20002 # Is the header present?
20003 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20004 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20005 cat >conftest.$ac_ext <<_ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 #include <sys/acl.h>
20013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } >/dev/null; then
20021 if test -s conftest.err; then
20022 ac_cpp_err=$ac_c_preproc_warn_flag
20023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20030 if test -z "$ac_cpp_err"; then
20031 ac_header_preproc=yes
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_header_preproc=no
20038 rm -f conftest.err conftest.$ac_ext
20039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20040 echo "${ECHO_T}$ac_header_preproc" >&6
20042 # So? What about this header?
20043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20045 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20046 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20048 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20049 ac_header_preproc=yes
20052 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20053 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20054 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20055 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20057 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20059 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20060 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20061 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20062 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20063 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20066 ## ------------------------------------------ ##
20067 ## Report this to the AC_PACKAGE_NAME lists. ##
20068 ## ------------------------------------------ ##
20071 sed "s/^/$as_me: WARNING: /" >&2
20074 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20075 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20076 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 ac_cv_header_sys_acl_h=$ac_header_preproc
20081 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20082 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20087 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20088 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20089 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 ac_check_lib_save_LIBS=$LIBS
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20101 /* Override any gcc2 internal prototype to avoid an error. */
20105 /* We use char because int might match the return type of a gcc2
20106 builtin and then its argument prototype would still apply. */
20107 char acl_get_file ();
20116 rm -f conftest.$ac_objext conftest$ac_exeext
20117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20118 (eval $ac_link) 2>conftest.er1
20120 grep -v '^ *+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -z "$ac_c_werror_flag"
20126 || test ! -s conftest.err'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; } &&
20132 { ac_try='test -s conftest$ac_exeext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ac_cv_lib_acl_acl_get_file=yes
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 ac_cv_lib_acl_acl_get_file=no
20145 rm -f conftest.err conftest.$ac_objext \
20146 conftest$ac_exeext conftest.$ac_ext
20147 LIBS=$ac_check_lib_save_LIBS
20149 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20150 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20151 if test $ac_cv_lib_acl_acl_get_file = yes; then
20152 FDLIBS="-lacl $FDLIBS"
20156 if test $ac_cv_lib_acl_acl_get_file = yes; then
20157 cat >>confdefs.h <<\_ACEOF
20165 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20166 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20167 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 ac_check_lib_save_LIBS=$LIBS
20171 LIBS="-lpthread $LIBS"
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20179 /* Override any gcc2 internal prototype to avoid an error. */
20183 /* We use char because int might match the return type of a gcc2
20184 builtin and then its argument prototype would still apply. */
20185 char pthread_create ();
20194 rm -f conftest.$ac_objext conftest$ac_exeext
20195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20196 (eval $ac_link) 2>conftest.er1
20198 grep -v '^ *+' conftest.er1 >conftest.err
20200 cat conftest.err >&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } &&
20203 { ac_try='test -z "$ac_c_werror_flag"
20204 || test ! -s conftest.err'
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); }; } &&
20210 { ac_try='test -s conftest$ac_exeext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 ac_cv_lib_pthread_pthread_create=yes
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20221 ac_cv_lib_pthread_pthread_create=no
20223 rm -f conftest.err conftest.$ac_objext \
20224 conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20227 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20228 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20229 if test $ac_cv_lib_pthread_pthread_create = yes; then
20230 PTHREAD_LIB="-lpthread"
20232 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20233 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20234 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 ac_check_lib_save_LIBS=$LIBS
20238 LIBS="-lpthreads $LIBS"
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20246 /* Override any gcc2 internal prototype to avoid an error. */
20250 /* We use char because int might match the return type of a gcc2
20251 builtin and then its argument prototype would still apply. */
20252 char pthread_create ();
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263 (eval $ac_link) 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } &&
20270 { ac_try='test -z "$ac_c_werror_flag"
20271 || test ! -s conftest.err'
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); }; } &&
20277 { ac_try='test -s conftest$ac_exeext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_lib_pthreads_pthread_create=yes
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_cv_lib_pthreads_pthread_create=no
20290 rm -f conftest.err conftest.$ac_objext \
20291 conftest$ac_exeext conftest.$ac_ext
20292 LIBS=$ac_check_lib_save_LIBS
20294 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20295 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20296 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20297 PTHREAD_LIB="-lpthreads"
20299 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20300 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20301 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 ac_check_lib_save_LIBS=$LIBS
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20313 /* Override any gcc2 internal prototype to avoid an error. */
20317 /* We use char because int might match the return type of a gcc2
20318 builtin and then its argument prototype would still apply. */
20319 char pthread_create ();
20328 rm -f conftest.$ac_objext conftest$ac_exeext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20330 (eval $ac_link) 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
20337 { ac_try='test -z "$ac_c_werror_flag"
20338 || test ! -s conftest.err'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest$ac_exeext'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 ac_cv_lib_c_r_pthread_create=yes
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20355 ac_cv_lib_c_r_pthread_create=no
20357 rm -f conftest.err conftest.$ac_objext \
20358 conftest$ac_exeext conftest.$ac_ext
20359 LIBS=$ac_check_lib_save_LIBS
20361 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20362 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20363 if test $ac_cv_lib_c_r_pthread_create = yes; then
20364 PTHREAD_LIB="-lc_r"
20366 echo "$as_me:$LINENO: checking for pthread_create" >&5
20367 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20368 if test "${ac_cv_func_pthread_create+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20379 #define pthread_create innocuous_pthread_create
20381 /* System header to define __stub macros and hopefully few prototypes,
20382 which can conflict with char pthread_create (); below.
20383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20384 <limits.h> exists even on freestanding compilers. */
20387 # include <limits.h>
20389 # include <assert.h>
20392 #undef pthread_create
20394 /* Override any gcc2 internal prototype to avoid an error. */
20399 /* We use char because int might match the return type of a gcc2
20400 builtin and then its argument prototype would still apply. */
20401 char pthread_create ();
20402 /* The GNU C library defines this for functions which it implements
20403 to always fail with ENOSYS. Some functions are actually named
20404 something starting with __ and the normal name is an alias. */
20405 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20408 char (*f) () = pthread_create;
20417 return f != pthread_create;
20422 rm -f conftest.$ac_objext conftest$ac_exeext
20423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20424 (eval $ac_link) 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } &&
20431 { ac_try='test -z "$ac_c_werror_flag"
20432 || test ! -s conftest.err'
20433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434 (eval $ac_try) 2>&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; } &&
20438 { ac_try='test -s conftest$ac_exeext'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
20444 ac_cv_func_pthread_create=yes
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_cv_func_pthread_create=no
20451 rm -f conftest.err conftest.$ac_objext \
20452 conftest$ac_exeext conftest.$ac_ext
20454 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20455 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20468 cat >>confdefs.h <<\_ACEOF
20474 CFLAGS=${CFLAGS--O}
20475 LDFLAGS=${LDFLAGS--O}
20476 DB_LIBS="${SQL_LFLAGS}"
20478 CPPFLAGS="$CPPFLAGS"
20503 # Finally we set appropriate distribution specific
20504 # variables and defaults
20506 # PFILES are platform specific files
20507 PFILES="platforms/Makefile"
20511 hostname=`uname -n | cut -d '.' -f 1`
20512 case "$DISTNAME" in
20515 PSCMD="ps -e -o pid,comm"
20516 PFILES="${PFILES} \
20517 platforms/aix/Makefile"
20518 TAPEDRIVE="/dev/rmt0.1"
20522 PTHREAD_LIB="-lpthread -lexc"
20523 if test "${CC}" = "gcc" ; then
20530 TAPEDRIVE="/dev/nrmt0"
20533 DISTVER=`uname -a |awk '{print $3}'`
20534 TAPEDRIVE="/dev/nrmt0"
20535 PTHREAD_LIB="-pthread"
20536 CFLAGS="${CFLAGS} -pthread"
20537 PSCMD="ps -x -o pid,command"
20540 PFILES="${PFILES} \
20541 platforms/bsdi/Makefile \
20542 platforms/bsdi/bacula-fd \
20543 platforms/bsdi/bacula-sd \
20544 platforms/bsdi/bacula-dir"
20545 largefile_support="yes"
20548 DISTVER=`uname -a |awk '{print $3}'`
20549 TAPEDRIVE="/dev/nrst0"
20551 WCFLAGS="-mwindows"
20552 WLDFLAGS="-mwindows"
20556 TAPEDRIVE="/dev/nst0"
20557 PSCMD="ps -e -o pid,command"
20559 PFILES="${PFILES} \
20560 platforms/darwin/Makefile"
20563 DISTVER=`cat /etc/debian_version`
20564 TAPEDRIVE="/dev/nrst0"
20565 PSCMD="ps -e -o pid,command"
20568 DISTVER=`uname -a |awk '{print $3}'`
20569 VER=`echo $DISTVER | cut -c 1`
20570 if test x$VER = x4 ; then
20571 PTHREAD_LIB="-pthread"
20572 CFLAGS="${CFLAGS} -pthread"
20576 TAPEDRIVE="/dev/nrsa0"
20577 PSCMD="ps -x -o pid,command"
20578 PFILES="${PFILES} \
20579 platforms/freebsd/Makefile \
20580 platforms/freebsd/bacula-fd \
20581 platforms/freebsd/bacula-sd \
20582 platforms/freebsd/bacula-dir"
20583 largefile_support="yes"
20586 PSCMD="UNIX95=1 ps -e -o pid,comm"
20587 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
20589 TAPEDRIVE="/dev/rmt/0hnb"
20593 TAPEDRIVE="/dev/rmt/0cbn"
20594 PSCMD="ps -e -o pid,comm"
20595 PFILES="${PFILES} \
20596 platforms/irix/Makefile \
20597 platforms/irix/bacula-fd \
20598 platforms/irix/bacula-sd \
20599 platforms/irix/bacula-dir"
20602 DISTVER=`uname -a |awk '{print $3}'`
20605 TAPEDRIVE="/dev/nrst0"
20606 PSCMD="ps -a -o pid,command"
20607 PTHREAD_LIB="-pthread"
20608 CFLAGS="${CFLAGS} -pthread"
20611 DISTVER=`uname -a |awk '{print $3}'`
20614 TAPEDRIVE="/dev/nrst0"
20615 PSCMD="ps -a -o pid,command"
20616 PTHREAD_LIB="-pthread"
20617 CFLAGS="${CFLAGS} -pthread"
20618 PFILES="${PFILES} \
20619 platforms/openbsd/Makefile \
20620 platforms/openbsd/bacula-fd \
20621 platforms/openbsd/bacula-sd \
20622 platforms/openbsd/bacula-dir"
20625 if test -f /etc/whitebox-release ; then
20626 f=/etc/whitebox-release
20628 f=/etc/redhat-release
20630 if test `cat $f | grep release |\
20631 cut -f 3 -d ' '`x = "Enterprise"x ; then
20632 DISTVER="Enterprise "`cat $f | grep release |\
20635 DISTVER=`cat /etc/redhat-release | grep release |\
20638 TAPEDRIVE="/dev/nst0"
20639 PSCMD="ps -e -o pid,command"
20640 PFILES="${PFILES} \
20641 platforms/redhat/Makefile \
20642 platforms/redhat/bacula-fd \
20643 platforms/redhat/bacula-sd \
20644 platforms/redhat/bacula-dir \
20645 platforms/redhat/bacula.spec \
20647 hostname=`hostname -s`
20650 DISTVER=`cat /etc/mandrake-release | grep release |\
20652 TAPEDRIVE="/dev/nst0"
20653 PSCMD="ps -e -o pid,command"
20654 PFILES="${PFILES} \
20655 platforms/mandrake/Makefile \
20656 platforms/mandrake/bacula-fd \
20657 platforms/mandrake/bacula-sd \
20658 platforms/mandrake/bacula-dir \
20659 platforms/mandrake/bacula.spec \
20663 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
20664 TAPEDRIVE="/dev/nst0"
20665 PSCMD="ps -e -o pid,command"
20666 PFILES="${PFILES} \
20667 platforms/gentoo/Makefile \
20668 platforms/gentoo/bacula-fd \
20669 platforms/gentoo/bacula-sd \
20670 platforms/gentoo/bacula-dir"
20673 DISTVER=`cat /etc/slackware-version`
20674 TAPEDRIVE="/dev/nst0"
20675 PSCMD="ps -e -o pid,command"
20676 PFILES="${PFILES} \
20677 platforms/slackware/Makefile \
20678 platforms/slackware/rc.bacula-fd \
20679 platforms/slackware/rc.bacula-sd \
20680 platforms/slackware/rc.bacula-dir\
20681 platforms/slackware/functions.bacula"
20685 TAPEDRIVE="/dev/rmt/0cbn"
20686 PSCMD="ps -e -o pid,comm"
20687 PFILES="${PFILES} \
20688 platforms/solaris/Makefile \
20689 platforms/solaris/bacula-fd \
20690 platforms/solaris/bacula-sd \
20691 platforms/solaris/bacula-dir"
20692 if test x$DISTVER = x5.6 ; then
20693 cat >>confdefs.h <<\_ACEOF
20694 #define HAVE_OLD_SOCKOPT 1
20700 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
20702 TAPEDRIVE="/dev/nst0"
20703 PSCMD="ps -e -o pid,command"
20704 PFILES="${PFILES} \
20705 platforms/suse/Makefile \
20706 platforms/suse/bacula-fd \
20707 platforms/suse/bacula-sd \
20708 platforms/suse/bacula-dir \
20709 platforms/suse/bacula \
20710 platforms/suse/bacula.spec"
20715 TAPEDRIVE="/dev/nst0"
20716 PSCMD="ps -e -o pid,command"
20717 PFILES="${PFILES} \
20718 platforms/suse/Makefile \
20719 platforms/suse/bacula-fd \
20720 platforms/suse/bacula-sd \
20721 platforms/suse/bacula-dir"
20725 TAPEDRIVE="/dev/nst0"
20728 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
20734 LIBS="$PTHREAD_LIB $LIBS"
20736 cat >>confdefs.h <<_ACEOF
20740 cat >>confdefs.h <<_ACEOF
20751 MCOMMON=./autoconf/Make.common
20754 if test "x${subsysdir}" = "x${sbindir}" ; then
20757 echo "You have set both --sbindir and --with-subsys-dir"
20758 echo " equal to: ${subsysdir} "
20759 echo "This is not permitted. Please reconfigure."
20761 echo "Aborting configuration ..."
20767 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"
20768 ac_config_commands="$ac_config_commands default"
20769 cat >confcache <<\_ACEOF
20770 # This file is a shell script that caches the results of configure
20771 # tests run on this system so they can be shared between configure
20772 # scripts and configure runs, see configure's option --config-cache.
20773 # It is not useful on other systems. If it contains results you don't
20774 # want to keep, you may remove or edit it.
20776 # config.status only pays attention to the cache file if you give it
20777 # the --recheck option to rerun configure.
20779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20781 # following values.
20785 # The following way of writing the cache mishandles newlines in values,
20786 # but we know of no workaround that is simple, portable, and efficient.
20787 # So, don't put newlines in cache variables' values.
20788 # Ultrix sh set writes to stderr and can't be redirected directly,
20789 # and sets the high bit in the cache file unless we assign to the vars.
20792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20794 # `set' does not quote correctly, so add quotes (double-quote
20795 # substitution turns \\\\ into \\, and sed turns \\ into \).
20798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20801 # `set' quotes correctly as required by POSIX, so do not add quotes.
20803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20814 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20815 if test -w $cache_file; then
20816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20817 cat confcache >$cache_file
20819 echo "not updating unwritable cache $cache_file"
20824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20825 # Let make expand exec_prefix.
20826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20830 # trailing colons and then remove the whole line if VPATH becomes empty
20831 # (actually we leave an empty line to preserve line numbers).
20832 if test "x$srcdir" = x.; then
20833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20834 s/:*\$(srcdir):*/:/;
20835 s/:*\${srcdir}:*/:/;
20837 s/^\([^=]*=[ ]*\):*/\1/;
20843 DEFS=-DHAVE_CONFIG_H
20847 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20848 # 1. Remove the extension, and $U if already installed.
20849 ac_i=`echo "$ac_i" |
20850 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20852 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20853 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20855 LIBOBJS=$ac_libobjs
20857 LTLIBOBJS=$ac_ltlibobjs
20861 : ${CONFIG_STATUS=./config.status}
20862 ac_clean_files_save=$ac_clean_files
20863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20864 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20865 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20866 cat >$CONFIG_STATUS <<_ACEOF
20868 # Generated by $as_me.
20869 # Run this file to recreate the current configuration.
20870 # Compiler output produced by configure, useful for debugging
20871 # configure, is in config.log if it exists.
20874 ac_cs_recheck=false
20876 SHELL=\${CONFIG_SHELL-$SHELL}
20879 cat >>$CONFIG_STATUS <<\_ACEOF
20880 ## --------------------- ##
20881 ## M4sh Initialization. ##
20882 ## --------------------- ##
20884 # Be Bourne compatible
20885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20888 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20889 # is contrary to our usage. Disable this feature.
20890 alias -g '${1+"$@"}'='"$@"'
20891 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20894 DUALCASE=1; export DUALCASE # for MKS sh
20896 # Support unset when possible.
20897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20904 # Work around bugs in pre-3.0 UWIN ksh.
20905 $as_unset ENV MAIL MAILPATH
20912 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20913 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20914 LC_TELEPHONE LC_TIME
20916 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20917 eval $as_var=C; export $as_var
20923 # Required to use basename.
20924 if expr a : '\(a\)' >/dev/null 2>&1; then
20930 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20931 as_basename=basename
20937 # Name of the executable.
20938 as_me=`$as_basename "$0" ||
20939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20940 X"$0" : 'X\(//\)$' \| \
20941 X"$0" : 'X\(/\)$' \| \
20942 . : '\(.\)' 2>/dev/null ||
20944 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20945 /^X\/\(\/\/\)$/{ s//\1/; q; }
20946 /^X\/\(\/\).*/{ s//\1/; q; }
20950 # PATH needs CR, and LINENO needs CR and PATH.
20951 # Avoid depending upon Character Ranges.
20952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20955 as_cr_digits='0123456789'
20956 as_cr_alnum=$as_cr_Letters$as_cr_digits
20958 # The user is always right.
20959 if test "${PATH_SEPARATOR+set}" != set; then
20960 echo "#! /bin/sh" >conf$$.sh
20961 echo "exit 0" >>conf$$.sh
20963 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20972 as_lineno_1=$LINENO
20973 as_lineno_2=$LINENO
20974 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20975 test "x$as_lineno_1" != "x$as_lineno_2" &&
20976 test "x$as_lineno_3" = "x$as_lineno_2" || {
20977 # Find who we are. Look in the path if we contain no path at all
20980 *[\\/]* ) as_myself=$0 ;;
20981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20982 for as_dir in $PATH
20985 test -z "$as_dir" && as_dir=.
20986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20991 # We did not find ourselves, most probably we were run as `sh COMMAND'
20992 # in which case we are not to be found in the path.
20993 if test "x$as_myself" = x; then
20996 if test ! -f "$as_myself"; then
20997 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20998 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20999 { (exit 1); exit 1; }; }
21001 case $CONFIG_SHELL in
21003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21004 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21007 test -z "$as_dir" && as_dir=.
21008 for as_base in sh bash ksh sh5; do
21011 if ("$as_dir/$as_base" -c '
21012 as_lineno_1=$LINENO
21013 as_lineno_2=$LINENO
21014 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21015 test "x$as_lineno_1" != "x$as_lineno_2" &&
21016 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21017 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21018 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21019 CONFIG_SHELL=$as_dir/$as_base
21020 export CONFIG_SHELL
21021 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21029 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21030 # uniformly replaced by the line number. The first 'sed' inserts a
21031 # line-number line before each line; the second 'sed' does the real
21032 # work. The second script uses 'N' to pair each line-number line
21033 # with the numbered line, and appends trailing '-' during
21034 # substitution so that $LINENO is not a special case at line end.
21035 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21036 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21037 sed '=' <$as_myself |
21042 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21045 s,^['$as_cr_digits']*\n,,
21046 ' >$as_me.lineno &&
21047 chmod +x $as_me.lineno ||
21048 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21049 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21050 { (exit 1); exit 1; }; }
21052 # Don't try to exec as it changes $[0], causing all sort of problems
21053 # (the dirname of $[0] is not the place where we might find the
21054 # original and so on. Autoconf is especially sensible to this).
21056 # Exit status is that of the last command.
21061 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21062 *c*,-n*) ECHO_N= ECHO_C='
21064 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21065 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21068 if expr a : '\(a\)' >/dev/null 2>&1; then
21074 rm -f conf$$ conf$$.exe conf$$.file
21076 if ln -s conf$$.file conf$$ 2>/dev/null; then
21077 # We could just check for DJGPP; but this test a) works b) is more generic
21078 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21079 if test -f conf$$.exe; then
21080 # Don't use ln at all; we don't have any links
21085 elif ln conf$$.file conf$$ 2>/dev/null; then
21090 rm -f conf$$ conf$$.exe conf$$.file
21092 if mkdir -p . 2>/dev/null; then
21095 test -d ./-p && rmdir ./-p
21099 as_executable_p="test -f"
21101 # Sed expression to map a string onto a valid CPP name.
21102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21104 # Sed expression to map a string onto a valid variable name.
21105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21109 # We need space, tab and new line, in precisely that order.
21119 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21120 # report actual input values of CONFIG_FILES etc. instead of their
21121 # values after options handling. Logging --version etc. is OK.
21125 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21126 ## Running $as_me. ##
21131 This file was extended by $as_me, which was
21132 generated by GNU Autoconf 2.59. Invocation command line was
21134 CONFIG_FILES = $CONFIG_FILES
21135 CONFIG_HEADERS = $CONFIG_HEADERS
21136 CONFIG_LINKS = $CONFIG_LINKS
21137 CONFIG_COMMANDS = $CONFIG_COMMANDS
21141 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21145 # Files that config.status was made for.
21146 if test -n "$ac_config_files"; then
21147 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21150 if test -n "$ac_config_headers"; then
21151 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21154 if test -n "$ac_config_links"; then
21155 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21158 if test -n "$ac_config_commands"; then
21159 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21162 cat >>$CONFIG_STATUS <<\_ACEOF
21165 \`$as_me' instantiates files from templates according to the
21166 current configuration.
21168 Usage: $0 [OPTIONS] [FILE]...
21170 -h, --help print this help, then exit
21171 -V, --version print version number, then exit
21172 -q, --quiet do not print progress messages
21173 -d, --debug don't remove temporary files
21174 --recheck update $as_me by reconfiguring in the same conditions
21175 --file=FILE[:TEMPLATE]
21176 instantiate the configuration file FILE
21177 --header=FILE[:TEMPLATE]
21178 instantiate the configuration header FILE
21180 Configuration files:
21183 Configuration headers:
21186 Configuration commands:
21189 Report bugs to <bug-autoconf@gnu.org>."
21192 cat >>$CONFIG_STATUS <<_ACEOF
21195 configured by $0, generated by GNU Autoconf 2.59,
21196 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21198 Copyright (C) 2003 Free Software Foundation, Inc.
21199 This config.status script is free software; the Free Software Foundation
21200 gives unlimited permission to copy, distribute and modify it."
21205 cat >>$CONFIG_STATUS <<\_ACEOF
21206 # If no file are specified by the user, then we need to provide default
21207 # value. By we need to know if files were specified by the user.
21213 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21214 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21222 *) # This is not an option, so the user has probably given explicit
21225 ac_need_defaults=false;;
21229 # Handling of the options.
21231 cat >>$CONFIG_STATUS <<\_ACEOF
21232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21234 --version | --vers* | -V )
21235 echo "$ac_cs_version"; exit 0 ;;
21237 # Conflict between --help and --header
21238 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21239 Try \`$0 --help' for more information." >&5
21240 echo "$as_me: error: ambiguous option: $1
21241 Try \`$0 --help' for more information." >&2;}
21242 { (exit 1); exit 1; }; };;
21243 --help | --hel | -h )
21244 echo "$ac_cs_usage"; exit 0 ;;
21245 --debug | --d* | -d )
21247 --file | --fil | --fi | --f )
21249 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21250 ac_need_defaults=false;;
21251 --header | --heade | --head | --hea )
21253 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21254 ac_need_defaults=false;;
21255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21256 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21259 # This is an error.
21260 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21261 Try \`$0 --help' for more information." >&5
21262 echo "$as_me: error: unrecognized option: $1
21263 Try \`$0 --help' for more information." >&2;}
21264 { (exit 1); exit 1; }; } ;;
21266 *) ac_config_targets="$ac_config_targets $1" ;;
21272 ac_configure_extra_args=
21274 if $ac_cs_silent; then
21276 ac_configure_extra_args="$ac_configure_extra_args --silent"
21280 cat >>$CONFIG_STATUS <<_ACEOF
21281 if \$ac_cs_recheck; then
21282 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21283 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21293 for ac_config_target in $ac_config_targets
21295 case "$ac_config_target" in
21296 # Handling of arguments.
21297 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21298 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21299 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21300 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21301 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21302 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21303 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21304 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21305 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21306 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21307 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21308 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21309 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21310 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21311 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21312 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21313 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21314 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21315 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21316 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21317 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21318 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21319 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21320 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21321 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21322 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21323 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21324 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21325 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21326 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21327 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21328 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21329 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21330 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21331 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21332 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21333 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21334 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21335 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21336 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21337 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21338 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21339 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21340 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21341 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21342 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21343 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21344 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21345 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21346 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21347 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21348 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21349 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21350 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21351 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21352 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21353 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21354 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21355 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21356 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21357 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21358 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21359 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21360 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21361 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21362 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21363 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21364 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21365 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21366 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21367 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21368 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21369 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21370 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21371 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21372 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21373 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21374 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21375 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21376 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21377 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21378 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21379 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21380 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21381 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21382 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21383 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21384 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21385 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21386 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21387 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21388 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21389 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21390 { (exit 1); exit 1; }; };;
21394 # If the user did not use the arguments to specify the items to instantiate,
21395 # then the envvar interface is used. Set only those that are not.
21396 # We use the long form for the default assignment because of an extremely
21397 # bizarre bug on SunOS 4.1.3.
21398 if $ac_need_defaults; then
21399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21404 # Have a temporary directory for convenience. Make it in the build tree
21405 # simply because there is no reason to put it here, and in addition,
21406 # creating and moving files from /tmp can sometimes cause problems.
21407 # Create a temporary directory, and hook for its removal unless debugging.
21410 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21411 trap '{ (exit 1); exit 1; }' 1 2 13 15
21414 # Create a (secure) tmp directory for tmp files.
21417 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21418 test -n "$tmp" && test -d "$tmp"
21421 tmp=./confstat$$-$RANDOM
21422 (umask 077 && mkdir $tmp)
21425 echo "$me: cannot create a temporary directory in ." >&2
21426 { (exit 1); exit 1; }
21431 cat >>$CONFIG_STATUS <<_ACEOF
21434 # CONFIG_FILES section.
21437 # No need to generate the scripts if there are no CONFIG_FILES.
21438 # This happens for instance when ./config.status config.h
21439 if test -n "\$CONFIG_FILES"; then
21440 # Protect against being on the right side of a sed subst in config.status.
21441 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21442 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21443 s,@SHELL@,$SHELL,;t t
21444 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21445 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21446 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21447 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21448 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21449 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21450 s,@exec_prefix@,$exec_prefix,;t t
21451 s,@prefix@,$prefix,;t t
21452 s,@program_transform_name@,$program_transform_name,;t t
21453 s,@bindir@,$bindir,;t t
21454 s,@sbindir@,$sbindir,;t t
21455 s,@libexecdir@,$libexecdir,;t t
21456 s,@datadir@,$datadir,;t t
21457 s,@sysconfdir@,$sysconfdir,;t t
21458 s,@sharedstatedir@,$sharedstatedir,;t t
21459 s,@localstatedir@,$localstatedir,;t t
21460 s,@libdir@,$libdir,;t t
21461 s,@includedir@,$includedir,;t t
21462 s,@oldincludedir@,$oldincludedir,;t t
21463 s,@infodir@,$infodir,;t t
21464 s,@mandir@,$mandir,;t t
21465 s,@build_alias@,$build_alias,;t t
21466 s,@host_alias@,$host_alias,;t t
21467 s,@target_alias@,$target_alias,;t t
21468 s,@DEFS@,$DEFS,;t t
21469 s,@ECHO_C@,$ECHO_C,;t t
21470 s,@ECHO_N@,$ECHO_N,;t t
21471 s,@ECHO_T@,$ECHO_T,;t t
21472 s,@LIBS@,$LIBS,;t t
21473 s,@BUILD_DIR@,$BUILD_DIR,;t t
21474 s,@TRUEPRG@,$TRUEPRG,;t t
21475 s,@FALSEPRG@,$FALSEPRG,;t t
21476 s,@VERSION@,$VERSION,;t t
21477 s,@DATE@,$DATE,;t t
21478 s,@LSMDATE@,$LSMDATE,;t t
21480 s,@CFLAGS@,$CFLAGS,;t t
21481 s,@LDFLAGS@,$LDFLAGS,;t t
21482 s,@CPPFLAGS@,$CPPFLAGS,;t t
21483 s,@ac_ct_CC@,$ac_ct_CC,;t t
21484 s,@EXEEXT@,$EXEEXT,;t t
21485 s,@OBJEXT@,$OBJEXT,;t t
21487 s,@CXXFLAGS@,$CXXFLAGS,;t t
21488 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21490 s,@EGREP@,$EGREP,;t t
21491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21494 s,@RANLIB@,$RANLIB,;t t
21495 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21501 s,@ECHO@,$ECHO,;t t
21505 s,@OPENSSL@,$OPENSSL,;t t
21507 s,@PKGCONFIG@,$PKGCONFIG,;t t
21508 s,@WXCONFIG@,$WXCONFIG,;t t
21509 s,@ARFLAGS@,$ARFLAGS,;t t
21510 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21511 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21512 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21513 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21514 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21515 s,@build@,$build,;t t
21516 s,@build_cpu@,$build_cpu,;t t
21517 s,@build_vendor@,$build_vendor,;t t
21518 s,@build_os@,$build_os,;t t
21519 s,@host@,$host,;t t
21520 s,@host_cpu@,$host_cpu,;t t
21521 s,@host_vendor@,$host_vendor,;t t
21522 s,@host_os@,$host_os,;t t
21523 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21524 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21525 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21526 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21527 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21528 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21529 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21530 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21531 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21532 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21533 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21534 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21535 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21536 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21537 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21538 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21539 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21540 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21541 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21542 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21543 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21544 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21545 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21546 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21547 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21548 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21549 s,@MSGFMT@,$MSGFMT,;t t
21550 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21551 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21552 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21553 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
21554 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
21555 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
21556 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
21557 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
21558 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
21559 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
21560 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
21561 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
21562 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
21563 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
21564 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
21565 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
21566 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
21567 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
21568 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
21569 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
21570 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
21571 s,@GNOME_DIR@,$GNOME_DIR,;t t
21572 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
21573 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
21574 s,@WX_DIR@,$WX_DIR,;t t
21575 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
21576 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
21577 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
21578 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
21579 s,@STATIC_FD@,$STATIC_FD,;t t
21580 s,@STATIC_SD@,$STATIC_SD,;t t
21581 s,@STATIC_DIR@,$STATIC_DIR,;t t
21582 s,@STATIC_CONS@,$STATIC_CONS,;t t
21583 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
21584 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
21585 s,@ALL_DIRS@,$ALL_DIRS,;t t
21586 s,@CONS_INC@,$CONS_INC,;t t
21587 s,@CONS_OBJ@,$CONS_OBJ,;t t
21588 s,@CONS_SRC@,$CONS_SRC,;t t
21589 s,@CONS_LIBS@,$CONS_LIBS,;t t
21590 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
21591 s,@READLINE_SRC@,$READLINE_SRC,;t t
21592 s,@working_dir@,$working_dir,;t t
21593 s,@scriptdir@,$scriptdir,;t t
21594 s,@dump_email@,$dump_email,;t t
21595 s,@job_email@,$job_email,;t t
21596 s,@smtp_host@,$smtp_host,;t t
21597 s,@piddir@,$piddir,;t t
21598 s,@subsysdir@,$subsysdir,;t t
21599 s,@baseport@,$baseport,;t t
21600 s,@dir_port@,$dir_port,;t t
21601 s,@fd_port@,$fd_port,;t t
21602 s,@sd_port@,$sd_port,;t t
21603 s,@dir_password@,$dir_password,;t t
21604 s,@fd_password@,$fd_password,;t t
21605 s,@sd_password@,$sd_password,;t t
21606 s,@mon_dir_password@,$mon_dir_password,;t t
21607 s,@mon_fd_password@,$mon_fd_password,;t t
21608 s,@mon_sd_password@,$mon_sd_password,;t t
21609 s,@dir_user@,$dir_user,;t t
21610 s,@dir_group@,$dir_group,;t t
21611 s,@sd_user@,$sd_user,;t t
21612 s,@sd_group@,$sd_group,;t t
21613 s,@fd_user@,$fd_user,;t t
21614 s,@fd_group@,$fd_group,;t t
21615 s,@SBINPERM@,$SBINPERM,;t t
21616 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
21617 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
21618 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
21619 s,@cats@,$cats,;t t
21620 s,@DB_NAME@,$DB_NAME,;t t
21621 s,@GETCONF@,$GETCONF,;t t
21622 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
21623 s,@X_CFLAGS@,$X_CFLAGS,;t t
21624 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21625 s,@X_LIBS@,$X_LIBS,;t t
21626 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21627 s,@LIBOBJS@,$LIBOBJS,;t t
21628 s,@ALLOCA@,$ALLOCA,;t t
21629 s,@FDLIBS@,$FDLIBS,;t t
21630 s,@DEBUG@,$DEBUG,;t t
21631 s,@DINCLUDE@,$DINCLUDE,;t t
21632 s,@DLIB@,$DLIB,;t t
21633 s,@DB_LIBS@,$DB_LIBS,;t t
21634 s,@WCFLAGS@,$WCFLAGS,;t t
21635 s,@WLDFLAGS@,$WLDFLAGS,;t t
21636 s,@OBJLIST@,$OBJLIST,;t t
21637 s,@hostname@,$hostname,;t t
21638 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
21639 s,@PSCMD@,$PSCMD,;t t
21640 s,@WIN32@,$WIN32,;t t
21641 s,@MACOSX@,$MACOSX,;t t
21642 s,@DISTNAME@,$DISTNAME,;t t
21643 s,@DISTVER@,$DISTVER,;t t
21644 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21645 /@MCOMMON@/r $MCOMMON
21651 cat >>$CONFIG_STATUS <<\_ACEOF
21652 # Split the substitutions into bite-sized pieces for seds with
21653 # small command number limits, like on Digital OSF/1 and HP-UX.
21654 ac_max_sed_lines=48
21655 ac_sed_frag=1 # Number of current file.
21656 ac_beg=1 # First line for current file.
21657 ac_end=$ac_max_sed_lines # Line after last line for current file.
21660 while $ac_more_lines; do
21661 if test $ac_beg -gt 1; then
21662 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21664 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21666 if test ! -s $tmp/subs.frag; then
21667 ac_more_lines=false
21669 # The purpose of the label and of the branching condition is to
21670 # speed up the sed processing (if there are no `@' at all, there
21671 # is no need to browse any of the substitutions).
21672 # These are the two extra sed commands mentioned above.
21674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21675 if test -z "$ac_sed_cmds"; then
21676 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21678 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21680 ac_sed_frag=`expr $ac_sed_frag + 1`
21682 ac_end=`expr $ac_end + $ac_max_sed_lines`
21685 if test -z "$ac_sed_cmds"; then
21688 fi # test -n "$CONFIG_FILES"
21691 cat >>$CONFIG_STATUS <<\_ACEOF
21692 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21693 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21695 - | *:- | *:-:* ) # input from stdin
21697 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21699 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21701 * ) ac_file_in=$ac_file.in ;;
21704 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21705 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21707 X"$ac_file" : 'X\(//\)[^/]' \| \
21708 X"$ac_file" : 'X\(//\)$' \| \
21709 X"$ac_file" : 'X\(/\)' \| \
21710 . : '\(.\)' 2>/dev/null ||
21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21714 /^X\(\/\/\)$/{ s//\1/; q; }
21715 /^X\(\/\).*/{ s//\1/; q; }
21717 { if $as_mkdir_p; then
21722 while test ! -d "$as_dir"; do
21723 as_dirs="$as_dir $as_dirs"
21724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21726 X"$as_dir" : 'X\(//\)[^/]' \| \
21727 X"$as_dir" : 'X\(//\)$' \| \
21728 X"$as_dir" : 'X\(/\)' \| \
21729 . : '\(.\)' 2>/dev/null ||
21731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21733 /^X\(\/\/\)$/{ s//\1/; q; }
21734 /^X\(\/\).*/{ s//\1/; q; }
21737 test ! -n "$as_dirs" || mkdir $as_dirs
21738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21739 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21740 { (exit 1); exit 1; }; }; }
21744 if test "$ac_dir" != .; then
21745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21746 # A "../" for each directory in $ac_dir_suffix.
21747 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21749 ac_dir_suffix= ac_top_builddir=
21753 .) # No --srcdir option. We are building in place.
21755 if test -z "$ac_top_builddir"; then
21758 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21760 [\\/]* | ?:[\\/]* ) # Absolute path.
21761 ac_srcdir=$srcdir$ac_dir_suffix;
21762 ac_top_srcdir=$srcdir ;;
21763 *) # Relative path.
21764 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21765 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21768 # Do not use `cd foo && pwd` to compute absolute paths, because
21769 # the directories may not exist.
21771 .) ac_abs_builddir="$ac_dir";;
21774 .) ac_abs_builddir=`pwd`;;
21775 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21776 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21779 case $ac_abs_builddir in
21780 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21782 case ${ac_top_builddir}. in
21783 .) ac_abs_top_builddir=$ac_abs_builddir;;
21784 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21785 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21788 case $ac_abs_builddir in
21789 .) ac_abs_srcdir=$ac_srcdir;;
21792 .) ac_abs_srcdir=$ac_abs_builddir;;
21793 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21794 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21797 case $ac_abs_builddir in
21798 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21800 case $ac_top_srcdir in
21801 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21802 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21803 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21810 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21813 if test x"$ac_file" != x-; then
21814 { echo "$as_me:$LINENO: creating $ac_file" >&5
21815 echo "$as_me: creating $ac_file" >&6;}
21818 # Let's still pretend it is `configure' which instantiates (i.e., don't
21819 # use $as_me), people would be surprised to read:
21820 # /* config.h. Generated by config.status. */
21821 if test x"$ac_file" = x-; then
21824 configure_input="$ac_file. "
21826 configure_input=$configure_input"Generated from `echo $ac_file_in |
21827 sed 's,.*/,,'` by configure."
21829 # First look for the input files in the build tree, otherwise in the
21831 ac_file_inputs=`IFS=:
21832 for f in $ac_file_in; do
21834 -) echo $tmp/stdin ;;
21836 # Absolute (can't be DOS-style, as IFS=:)
21837 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21838 echo "$as_me: error: cannot find input file: $f" >&2;}
21839 { (exit 1); exit 1; }; }
21842 if test -f "$f"; then
21845 elif test -f "$srcdir/$f"; then
21850 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21851 echo "$as_me: error: cannot find input file: $f" >&2;}
21852 { (exit 1); exit 1; }; }
21855 done` || { (exit 1); exit 1; }
21857 cat >>$CONFIG_STATUS <<_ACEOF
21861 cat >>$CONFIG_STATUS <<\_ACEOF
21863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21864 s,@configure_input@,$configure_input,;t t
21865 s,@srcdir@,$ac_srcdir,;t t
21866 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21867 s,@top_srcdir@,$ac_top_srcdir,;t t
21868 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21869 s,@builddir@,$ac_builddir,;t t
21870 s,@abs_builddir@,$ac_abs_builddir,;t t
21871 s,@top_builddir@,$ac_top_builddir,;t t
21872 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21873 s,@INSTALL@,$ac_INSTALL,;t t
21874 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21876 if test x"$ac_file" != x-; then
21877 mv $tmp/out $ac_file
21885 cat >>$CONFIG_STATUS <<\_ACEOF
21888 # CONFIG_HEADER section.
21891 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21892 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21894 # ac_d sets the value in "#define NAME VALUE" lines.
21895 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21896 ac_dB='[ ].*$,\1#\2'
21899 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21900 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21901 ac_uB='$,\1#\2define\3'
21905 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21908 - | *:- | *:-:* ) # input from stdin
21910 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21912 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21914 * ) ac_file_in=$ac_file.in ;;
21917 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21918 echo "$as_me: creating $ac_file" >&6;}
21920 # First look for the input files in the build tree, otherwise in the
21922 ac_file_inputs=`IFS=:
21923 for f in $ac_file_in; do
21925 -) echo $tmp/stdin ;;
21927 # Absolute (can't be DOS-style, as IFS=:)
21928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21929 echo "$as_me: error: cannot find input file: $f" >&2;}
21930 { (exit 1); exit 1; }; }
21931 # Do quote $f, to prevent DOS paths from being IFS'd.
21934 if test -f "$f"; then
21937 elif test -f "$srcdir/$f"; then
21942 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21943 echo "$as_me: error: cannot find input file: $f" >&2;}
21944 { (exit 1); exit 1; }; }
21947 done` || { (exit 1); exit 1; }
21948 # Remove the trailing spaces.
21949 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21953 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21954 # `conftest.undefs', that substitutes the proper values into
21955 # config.h.in to produce config.h. The first handles `#define'
21956 # templates, and the second `#undef' templates.
21957 # And first: Protect against being on the right side of a sed subst in
21958 # config.status. Protect against being in an unquoted here document
21959 # in config.status.
21960 rm -f conftest.defines conftest.undefs
21961 # Using a here document instead of a string reduces the quoting nightmare.
21962 # Putting comments in sed scripts is not portable.
21964 # `end' is used to avoid that the second main sed command (meant for
21965 # 0-ary CPP macros) applies to n-ary macro definitions.
21966 # See the Autoconf documentation for `clear'.
21967 cat >confdef2sed.sed <<\_ACEOF
21972 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21974 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21977 # If some macros were called several times there might be several times
21978 # the same #defines, which is useless. Nevertheless, we may not want to
21979 # sort them, since we want the *last* AC-DEFINE to be honored.
21980 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21981 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21982 rm -f confdef2sed.sed
21984 # This sed command replaces #undef with comments. This is necessary, for
21985 # example, in the case of _POSIX_SOURCE, which is predefined and required
21986 # on some systems where configure will not decide to define it.
21987 cat >>conftest.undefs <<\_ACEOF
21988 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21991 # Break up conftest.defines because some shells have a limit on the size
21992 # of here documents, and old seds have small limits too (100 cmds).
21993 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21994 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21995 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21996 echo ' :' >>$CONFIG_STATUS
21997 rm -f conftest.tail
21998 while grep . conftest.defines >/dev/null
22000 # Write a limited-size here document to $tmp/defines.sed.
22001 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22002 # Speed up: don't consider the non `#define' lines.
22003 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22004 # Work around the forget-to-reset-the-flag bug.
22005 echo 't clr' >>$CONFIG_STATUS
22006 echo ': clr' >>$CONFIG_STATUS
22007 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22009 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22011 mv $tmp/out $tmp/in
22013 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22014 rm -f conftest.defines
22015 mv conftest.tail conftest.defines
22017 rm -f conftest.defines
22018 echo ' fi # grep' >>$CONFIG_STATUS
22019 echo >>$CONFIG_STATUS
22021 # Break up conftest.undefs because some shells have a limit on the size
22022 # of here documents, and old seds have small limits too (100 cmds).
22023 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22024 rm -f conftest.tail
22025 while grep . conftest.undefs >/dev/null
22027 # Write a limited-size here document to $tmp/undefs.sed.
22028 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22029 # Speed up: don't consider the non `#undef'
22030 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22031 # Work around the forget-to-reset-the-flag bug.
22032 echo 't clr' >>$CONFIG_STATUS
22033 echo ': clr' >>$CONFIG_STATUS
22034 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22036 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22038 mv $tmp/out $tmp/in
22040 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22041 rm -f conftest.undefs
22042 mv conftest.tail conftest.undefs
22044 rm -f conftest.undefs
22046 cat >>$CONFIG_STATUS <<\_ACEOF
22047 # Let's still pretend it is `configure' which instantiates (i.e., don't
22048 # use $as_me), people would be surprised to read:
22049 # /* config.h. Generated by config.status. */
22050 if test x"$ac_file" = x-; then
22051 echo "/* Generated by configure. */" >$tmp/config.h
22053 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22055 cat $tmp/in >>$tmp/config.h
22057 if test x"$ac_file" != x-; then
22058 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22059 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22060 echo "$as_me: $ac_file is unchanged" >&6;}
22062 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22064 X"$ac_file" : 'X\(//\)[^/]' \| \
22065 X"$ac_file" : 'X\(//\)$' \| \
22066 X"$ac_file" : 'X\(/\)' \| \
22067 . : '\(.\)' 2>/dev/null ||
22069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22071 /^X\(\/\/\)$/{ s//\1/; q; }
22072 /^X\(\/\).*/{ s//\1/; q; }
22074 { if $as_mkdir_p; then
22079 while test ! -d "$as_dir"; do
22080 as_dirs="$as_dir $as_dirs"
22081 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22083 X"$as_dir" : 'X\(//\)[^/]' \| \
22084 X"$as_dir" : 'X\(//\)$' \| \
22085 X"$as_dir" : 'X\(/\)' \| \
22086 . : '\(.\)' 2>/dev/null ||
22088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22090 /^X\(\/\/\)$/{ s//\1/; q; }
22091 /^X\(\/\).*/{ s//\1/; q; }
22094 test ! -n "$as_dirs" || mkdir $as_dirs
22095 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22096 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22097 { (exit 1); exit 1; }; }; }
22100 mv $tmp/config.h $ac_file
22104 rm -f $tmp/config.h
22108 cat >>$CONFIG_STATUS <<\_ACEOF
22111 # CONFIG_COMMANDS section.
22113 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22114 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22115 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22116 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22117 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22118 X"$ac_dest" : 'X\(//\)[^/]' \| \
22119 X"$ac_dest" : 'X\(//\)$' \| \
22120 X"$ac_dest" : 'X\(/\)' \| \
22121 . : '\(.\)' 2>/dev/null ||
22123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22125 /^X\(\/\/\)$/{ s//\1/; q; }
22126 /^X\(\/\).*/{ s//\1/; q; }
22128 { if $as_mkdir_p; then
22133 while test ! -d "$as_dir"; do
22134 as_dirs="$as_dir $as_dirs"
22135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22137 X"$as_dir" : 'X\(//\)[^/]' \| \
22138 X"$as_dir" : 'X\(//\)$' \| \
22139 X"$as_dir" : 'X\(/\)' \| \
22140 . : '\(.\)' 2>/dev/null ||
22142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22144 /^X\(\/\/\)$/{ s//\1/; q; }
22145 /^X\(\/\).*/{ s//\1/; q; }
22148 test ! -n "$as_dirs" || mkdir $as_dirs
22149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22151 { (exit 1); exit 1; }; }; }
22155 if test "$ac_dir" != .; then
22156 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22157 # A "../" for each directory in $ac_dir_suffix.
22158 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22160 ac_dir_suffix= ac_top_builddir=
22164 .) # No --srcdir option. We are building in place.
22166 if test -z "$ac_top_builddir"; then
22169 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22171 [\\/]* | ?:[\\/]* ) # Absolute path.
22172 ac_srcdir=$srcdir$ac_dir_suffix;
22173 ac_top_srcdir=$srcdir ;;
22174 *) # Relative path.
22175 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22176 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22179 # Do not use `cd foo && pwd` to compute absolute paths, because
22180 # the directories may not exist.
22182 .) ac_abs_builddir="$ac_dir";;
22185 .) ac_abs_builddir=`pwd`;;
22186 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22187 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22190 case $ac_abs_builddir in
22191 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22193 case ${ac_top_builddir}. in
22194 .) ac_abs_top_builddir=$ac_abs_builddir;;
22195 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22196 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22199 case $ac_abs_builddir in
22200 .) ac_abs_srcdir=$ac_srcdir;;
22203 .) ac_abs_srcdir=$ac_abs_builddir;;
22204 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22205 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22208 case $ac_abs_builddir in
22209 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22211 case $ac_top_srcdir in
22212 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22213 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22214 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22219 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22220 echo "$as_me: executing $ac_dest commands" >&6;}
22222 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22228 cat >>$CONFIG_STATUS <<\_ACEOF
22230 { (exit 0); exit 0; }
22232 chmod +x $CONFIG_STATUS
22233 ac_clean_files=$ac_clean_files_save
22236 # configure is writing to config.log, and then calls config.status.
22237 # config.status does its own redirection, appending to config.log.
22238 # Unfortunately, on DOS this fails, as config.log is still kept open
22239 # by configure, so config.status won't be able to write to it; its
22240 # output is simply discarded. So we exec the FD to /dev/null,
22241 # effectively closing config.log, so it can be properly (re)opened and
22242 # appended to by config.status. When coming back to configure, we
22243 # need to make the FD available again.
22244 if test "$no_create" != yes; then
22246 ac_config_status_args=
22247 test "$silent" = yes &&
22248 ac_config_status_args="$ac_config_status_args --quiet"
22250 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22252 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22253 # would make configure fail if this is the last instruction.
22254 $ac_cs_success || { (exit 1); exit 1; }
22259 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22260 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22265 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22266 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22268 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22269 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22271 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22272 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22274 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22275 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22277 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22278 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22280 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22281 chmod 755 $c/sqlite
22284 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22285 largefile_support="yes"
22289 # A whole lot of hand springs to get the compiler version.
22290 # This is because gcc changed the output in version 3.0
22292 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22293 if test "x${CCVERSION}" = "x" ; then
22294 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22296 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22297 if test x"${CXXVERSION}" = x ; then
22298 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22301 if test "x${subsysdir}" = "x${sbindir}" ; then
22304 echo "You have set --sbindir and --with-subsys-dir"
22305 echo " both equal to: ${subsysdir} "
22306 echo " This is not permitted. Please reconfigure."
22308 echo "Aborting configuration ..."
22314 if test "x${db_name}" = "xInternal" ; then
22317 echo "You have not specified either --enable-client-only or one of the"
22318 echo " supported databases: MySQL, PostgreSQL, or SQLite".
22319 echo " This is not permitted. Please reconfigure."
22321 echo "Aborting the configuration ..."
22328 Configuration on `date`:
22330 Host: $host -- ${DISTNAME} ${DISTVER}
22331 Bacula version: ${VERSION} (${DATE})
22332 Source code location: ${srcdir}
22333 Install binaries: ${sbindir}
22334 Install config files: ${sysconfdir}
22335 Scripts directory: ${scriptdir}
22336 Working directory: ${working_dir}
22337 PID directory: ${piddir}
22338 Subsys directory: ${subsysdir}
22339 C Compiler: ${CC} ${CCVERSION}
22340 C++ Compiler: ${CXX} ${CXXVERSION}
22341 Compiler flags: ${WCFLAGS} ${CFLAGS}
22342 Linker flags: ${WLDFLAGS} ${LDFLAGS}
22344 Statically Linked Tools: ${support_static_tools}
22345 Statically Linked FD: ${support_static_fd}
22346 Statically Linked SD: ${support_static_sd}
22347 Statically Linked DIR: ${support_static_dir}
22348 Statically Linked CONS: ${support_static_cons}
22349 Database type: ${db_name}
22350 Database lib: ${DB_LIBS}
22352 Job Output Email: ${job_email}
22353 Traceback Email: ${dump_email}
22354 SMTP Host Address: ${smtp_host}
22356 Director Port: ${dir_port}
22357 File daemon Port: ${fd_port}
22358 Storage daemon Port: ${sd_port}
22360 Director User: ${dir_user}
22361 Director Group: ${dir_group}
22362 Storage Daemon User: ${sd_user}
22363 Storage DaemonGroup: ${sd_group}
22364 File Daemon User: ${fd_user}
22365 File Daemon Group: ${fd_group}
22367 SQL binaries Directory ${SQL_BINDIR}
22369 Large file support: $largefile_support
22370 Bacula conio support: ${got_conio} ${CONS_LIBS}
22371 readline support: ${got_readline} ${PRTREADLINE_SRC}
22372 TCP Wrappers support: ${TCPW_MSG}
22373 ZLIB support: ${have_zlib}
22374 enable-smartalloc: ${support_smartalloc}
22375 enable-gnome: ${support_gnome} ${gnome_version}
22376 enable-wx-console: ${support_wx_console}
22377 enable-tray-monitor: ${support_tray_monitor}
22378 client-only: ${build_client_only}
22379 ACL support: ${have_acl}
22386 # cweb support: ${got_cweb} ${CWEB_SRC}
22387 # gmp support: ${got_gmp} ${GMP_SRC}