2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --disable-nls do not use Native Language Support
868 --disable-rpath do not hardcode runtime library paths
869 --enable-gnome enable build of gnome-console GUI disabled
870 --enable-wx-console enable build of wxWidgets console disabled
871 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
872 --enable-smartalloc enable smartalloc debugging support disabled
873 --enable-static-tools enable static tape tools disabled
874 --enable-static-fd enable static File daemon disabled
875 --enable-static-sd enable static Storage daemon disabled
876 --enable-static-dir enable static Director disabled
877 --enable-static-cons enable static Console disabled
878 --enable-client-only build client (File daemon) only disabled
879 --enable-build-dird enable building of dird (Director) enabled
880 --enable-build-stored enable building of stored (Storage daemon) enabled
881 --disable-conio disable conio support enabled
883 --disable-readline disable readline support disable
885 --disable-largefile omit support for large files
888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
892 --without-libiconv-prefix don't search for libiconv in includedir and libdir
893 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
894 --without-libintl-prefix don't search for libintl in includedir and libdir
895 --with-readline=DIR specify readline library directory
897 --with-python=DIR Include Python support. DIR is the Python base
898 install directory, default is to search through
899 a number of common places for the Python files.
900 --with-tcp-wrappers=DIR enable tcpwrappers support
902 Include OpenSSL support. DIR is the OpenSSL base
903 --with-working-dir=PATH specify path of Bacula working directory
904 --with-scriptdir=PATH specify path of Bacula scripts directory
905 --with-dump-email=EMAIL dump email address
906 --with-job-email=EMAIL job output email address
907 --with-smtp-host=HOST SMTP mail host address
908 --with-pid-dir=PATH specify location of Bacula pid files
909 --with-subsys-dir=PATH specify location of Bacula subsys file
910 --with-baseport=PORT specify base port address for daemons
911 --with-dir-password=PASSWORD specify Director's password
912 --with-fd-password=PASSWORD specify Client's password
913 --with-sd-password=PASSWORD specify Storage daemon's password
914 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
915 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
916 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
917 --with-dir-user=USER specify user for Director daemon
918 --with-dir-group=GROUP specify group for Director daemon
919 --with-sd-user=USER specify user for Storage daemon
920 --with-sd-group=GROUP specify group for Storage daemon
921 --with-fd-user=USER specify user for File daemon
922 --with-fd-group=GROUP specify group for File daemon
923 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
924 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
925 base install directory, defaults to /usr/local/pgsql
927 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
928 install directory, default is to search through
929 a number of common places for the MySQL files.
931 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
932 install directory, default is to search through
933 a number of common places for the MySQL files.
935 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
936 install directory, default is to search through
937 a number of common places for the SQLite3 files.
939 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
940 install directory, default is to search through
941 a number of common places for the SQLite files.
942 --with-x use the X Window System
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CXX C++ compiler command
952 CXXFLAGS C++ compiler flags
954 WXCONFIG wx-config command. On some systems, you must set it to
955 wx-config-2.6 to use wxWidgets 2.6.
956 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 ac_dir_suffix= ac_top_builddir=
980 .) # No --srcdir option. We are building in place.
982 if test -z "$ac_top_builddir"; then
985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
998 .) ac_abs_builddir="$ac_dir";;
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1045 $ac_configure --help
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1128 ac_must_keep_next=false
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157 -* ) ac_must_keep_next=true ;;
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176 # Save into config.log some information that might help in debugging.
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1186 # The following way of writing the cache mishandles newlines in values,
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1209 for ac_var in $ac_subst_vars
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -n "$ac_subst_files"; then
1223 for ac_var in $ac_subst_files
1225 eval ac_val=$`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -s confdefs.h; then
1238 sed "/^$/d" confdefs.h | sort
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1245 rm -f core *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1321 # Check that the precious variables saved in the cache have kept the same
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1403 if test -f $ac_dir/install-sh; then
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 elif test -f $ac_dir/install.sh; then
1409 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 elif test -f $ac_dir/shtool; then
1413 ac_install_sh="$ac_aux_dir/shtool install -c"
1417 if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1420 { (exit 1); exit 1; }; }
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1434 # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 TRUEPRG=$ac_cv_path_TRUEPRG
1465 if test -n "$TRUEPRG"; then
1466 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1467 echo "${ECHO_T}$TRUEPRG" >&6
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1473 test -n "$TRUEPRG" && break
1475 test -n "$TRUEPRG" || TRUEPRG=":"
1477 for ac_prog in false
1479 # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 FALSEPRG=$ac_cv_path_FALSEPRG
1510 if test -n "$FALSEPRG"; then
1511 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1512 echo "${ECHO_T}$FALSEPRG" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1518 test -n "$FALSEPRG" && break
1520 test -n "$FALSEPRG" || FALSEPRG=":"
1525 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 echo "configuring for bacula $VERSION ($DATE)"
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 if test -n "$ac_tool_prefix"; then
1538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1574 if test -z "$ac_cv_prog_CC"; then
1576 # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 if test -n "$ac_ct_CC"; then
1584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593 ac_cv_prog_ac_ct_CC="gcc"
1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1619 set dummy ${ac_tool_prefix}cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_CC="${ac_tool_prefix}cc"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$ac_cv_prog_CC"; then
1656 # Extract the first word of "cc", so it can be a program name with args.
1657 set dummy cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="cc"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1697 if test -z "$CC"; then
1698 # Extract the first word of "cc", so it can be a program name with args.
1699 set dummy cc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$CC"; then
1706 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1717 ac_prog_rejected=yes
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 if test $ac_prog_rejected = yes; then
1728 # We found a bogon in the path, so make sure we never use it.
1729 set dummy $ac_cv_prog_CC
1731 if test $# != 0; then
1732 # We chose a different compiler from the bogus one.
1733 # However, it has the same basename, so the bogon will be chosen
1734 # first if we set CC to just the basename; use the full file name.
1736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$CC"; then
1752 if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 if test -n "$CC"; then
1783 echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1790 test -n "$CC" && break
1793 if test -z "$CC"; then
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$ac_ct_CC"; then
1805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_ac_ct_CC="$ac_prog"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1832 test -n "$ac_ct_CC" && break
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1847 # Provide some information about the compiler.
1848 echo "$as_me:$LINENO:" \
1849 "checking for C compiler version" >&5
1850 ac_compiler=`set X $ac_compile; echo $2`
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1852 (eval $ac_compiler --version </dev/null >&5) 2>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1857 (eval $ac_compiler -v </dev/null >&5) 2>&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1862 (eval $ac_compiler -V </dev/null >&5) 2>&5
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }
1867 cat >conftest.$ac_ext <<_ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h. */
1882 ac_clean_files_save=$ac_clean_files
1883 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1884 # Try to create an executable without -o first, disregard a.out.
1885 # It will help us diagnose broken compilers, and finding out an intuition
1887 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1888 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1889 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1890 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1891 (eval $ac_link_default) 2>&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; then
1895 # Find the output, starting from the most likely. This scheme is
1896 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1899 # Be careful to initialize this variable, since it used to be cached.
1900 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902 # b.out is created by i960 compilers.
1903 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905 test -f "$ac_file" || continue
1907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1910 # This is the source file.
1913 # We found the default executable, but exeext='' is most
1917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918 # FIXME: I believe we export ac_cv_exeext for Libtool,
1919 # but it would be cool to find out if it's true. Does anybody
1920 # maintain Libtool? --akim.
1928 echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&2;}
1935 { (exit 77); exit 77; }; }
1938 ac_exeext=$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_file" >&5
1940 echo "${ECHO_T}$ac_file" >&6
1942 # Check the compiler produces executables we can run. If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1945 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1946 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1947 # If not cross compiling, check that we can run a simple program.
1948 if test "$cross_compiling" != yes; then
1949 if { ac_try='./$ac_file'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1957 if test "$cross_compiling" = maybe; then
1960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&2;}
1966 { (exit 1); exit 1; }; }
1970 echo "$as_me:$LINENO: result: yes" >&5
1971 echo "${ECHO_T}yes" >&6
1973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1974 ac_clean_files=$ac_clean_files_save
1975 # Check the compiler produces executables we can run. If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1980 echo "${ECHO_T}$cross_compiling" >&6
1982 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1985 (eval $ac_link) 2>&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; then
1989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1991 # work properly (i.e., refer to `conftest.exe'), while it won't with
1993 for ac_file in conftest.exe conftest conftest.*; do
1994 test -f "$ac_file" || continue
1996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&2;}
2008 { (exit 1); exit 1; }; }
2011 rm -f conftest$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2013 echo "${ECHO_T}$ac_cv_exeext" >&6
2015 rm -f conftest.$ac_ext
2016 EXEEXT=$ac_cv_exeext
2018 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2020 if test "${ac_cv_objext+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 cat >conftest.$ac_ext <<_ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h. */
2038 rm -f conftest.o conftest.obj
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2052 echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065 echo "${ECHO_T}$ac_cv_objext" >&6
2066 OBJEXT=$ac_cv_objext
2068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2070 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 cat >conftest.$ac_ext <<_ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h. */
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>conftest.er1
2095 grep -v '^ *+' conftest.er1 >conftest.err
2097 cat conftest.err >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -z "$ac_c_werror_flag"
2101 || test ! -s conftest.err'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; } &&
2107 { ac_try='test -s conftest.$ac_objext'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2115 echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 cat >conftest.$ac_ext <<_ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2154 grep -v '^ *+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2174 echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2183 if test "$ac_test_CFLAGS" = set; then
2184 CFLAGS=$ac_save_CFLAGS
2185 elif test $ac_cv_prog_cc_g = yes; then
2186 if test "$GCC" = yes; then
2192 if test "$GCC" = yes; then
2198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 ac_cv_prog_cc_stdc=no
2205 cat >conftest.$ac_ext <<_ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2213 #include <sys/types.h>
2214 #include <sys/stat.h>
2215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2216 struct buf { int x; };
2217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2229 s = g (p, va_arg (v,int));
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2235 function prototypes and stuff, but not '\xHH' hex character constants.
2236 These don't provoke an error unfortunately, instead are silently treated
2237 as 'x'. The following induces an error, until -std1 is added to get
2238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2239 array size at least. It's necessary to write '\x00'==0 to get something
2240 that's true only with -std1. */
2241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2257 # Don't try gcc -ansi; that turns off useful extensions and
2258 # breaks some systems' header files.
2259 # AIX -qlanglvl=ansi
2260 # Ultrix and OSF/1 -std1
2261 # HP-UX 10.20 and later -Ae
2262 # HP-UX older versions -Aa -D_HPUX_SOURCE
2263 # SVR4 -Xc -D__EXTENSIONS__
2264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2266 CC="$ac_save_CC $ac_arg"
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>conftest.er1
2271 grep -v '^ *+' conftest.er1 >conftest.err
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 ac_cv_prog_cc_stdc=$ac_arg
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2296 rm -f conftest.err conftest.$ac_objext
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2303 case "x$ac_cv_prog_cc_stdc" in
2305 echo "$as_me:$LINENO: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310 CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 # Some people use a C++ compiler to compile C. Since we use `exit',
2314 # in C++ we need to declare it. In case someone uses the same compiler
2315 # for both compiling C and C++ we need to have the C++ compiler decide
2316 # the declaration of exit, since it's the most demanding environment.
2317 cat >conftest.$ac_ext <<_ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 for ac_declaration in \
2346 'extern "C" void std::exit (int) throw (); using std::exit;' \
2347 'extern "C" void std::exit (int); using std::exit;' \
2348 'extern "C" void exit (int) throw ();' \
2349 'extern "C" void exit (int);' \
2352 cat >conftest.$ac_ext <<_ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag"
2378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 cat >conftest.$ac_ext <<_ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 if test -n "$ac_declaration"; then
2445 echo '#ifdef __cplusplus' >>confdefs.h
2446 echo $ac_declaration >>confdefs.h
2447 echo '#endif' >>confdefs.h
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 ac_cpp='$CXXCPP $CPPFLAGS'
2464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CXX+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$CXX"; then
2478 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test -n "$CXX"; then
2498 echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2505 test -n "$CXX" && break
2508 if test -z "$CXX"; then
2510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_CXX"; then
2520 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_CXX="$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2539 if test -n "$ac_ct_CXX"; then
2540 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2541 echo "${ECHO_T}$ac_ct_CXX" >&6
2543 echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2547 test -n "$ac_ct_CXX" && break
2549 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2555 # Provide some information about the compiler.
2556 echo "$as_me:$LINENO:" \
2557 "checking for C++ compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2560 (eval $ac_compiler --version </dev/null >&5) 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2565 (eval $ac_compiler -v </dev/null >&5) 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2570 (eval $ac_compiler -V </dev/null >&5) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2575 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2576 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_cxx_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2633 GXX=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CXXFLAGS=${CXXFLAGS+set}
2635 ac_save_CXXFLAGS=$CXXFLAGS
2637 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cxx_g+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_cxx_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 ac_cv_prog_cxx_g=yes
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2690 if test "$ac_test_CXXFLAGS" = set; then
2691 CXXFLAGS=$ac_save_CXXFLAGS
2692 elif test $ac_cv_prog_cxx_g = yes; then
2693 if test "$GXX" = yes; then
2699 if test "$GXX" = yes; then
2705 for ac_declaration in \
2707 'extern "C" void std::exit (int) throw (); using std::exit;' \
2708 'extern "C" void std::exit (int); using std::exit;' \
2709 'extern "C" void exit (int) throw ();' \
2710 'extern "C" void exit (int);' \
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_cxx_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 if test -n "$ac_declaration"; then
2806 echo '#ifdef __cplusplus' >>confdefs.h
2807 echo $ac_declaration >>confdefs.h
2808 echo '#endif' >>confdefs.h
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test "x$CC" != xcc; then
2818 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2821 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2822 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2824 set dummy $CC; ac_cc=`echo $2 |
2825 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2826 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2844 # Make sure it works both with $CC and with simple cc.
2845 # We do the test twice because some compilers refuse to overwrite an
2846 # existing .o file with -o, though they will create one.
2847 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2859 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2860 if test "x$CC" != xcc; then
2861 # Test first that cc exists at all.
2862 if { ac_try='cc -c conftest.$ac_ext >&5'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2869 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); };
2883 # cc exists but doesn't like -o.
2884 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2889 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2895 echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2901 cat >>confdefs.h <<\_ACEOF
2902 #define NO_MINUS_C_MINUS_O 1
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914 # On Suns, sometimes $CPP names a directory.
2915 if test -n "$CPP" && test -d "$CPP"; then
2918 if test -z "$CPP"; then
2919 if test "${ac_cv_prog_CPP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 # Double quotes because CPP needs to be expanded
2923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926 for ac_c_preproc_warn_flag in '' yes
2928 # Use a header file that comes with gcc, so configuring glibc
2929 # with a fresh cross-compiler works.
2930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931 # <limits.h> exists even on freestanding compilers.
2932 # On the NeXT, cc -E runs the code through the compiler's parser,
2933 # not just through cpp. "Syntax error" is here to catch this case.
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2941 # include <limits.h>
2943 # include <assert.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 if test -z "$ac_cpp_err"; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Broken: fails on valid input.
2973 rm -f conftest.err conftest.$ac_ext
2975 # OK, works on sane cases. Now check whether non-existent headers
2976 # can be detected and how.
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <ac_nonexistent.h>
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null; then
2993 if test -s conftest.err; then
2994 ac_cpp_err=$ac_c_preproc_warn_flag
2995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 if test -z "$ac_cpp_err"; then
3003 # Broken: success on invalid input.
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Passes both tests.
3013 rm -f conftest.err conftest.$ac_ext
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then
3030 echo "$as_me:$LINENO: result: $CPP" >&5
3031 echo "${ECHO_T}$CPP" >&6
3033 for ac_c_preproc_warn_flag in '' yes
3035 # Use a header file that comes with gcc, so configuring glibc
3036 # with a fresh cross-compiler works.
3037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038 # <limits.h> exists even on freestanding compilers.
3039 # On the NeXT, cc -E runs the code through the compiler's parser,
3040 # not just through cpp. "Syntax error" is here to catch this case.
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3048 # include <limits.h>
3050 # include <assert.h>
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } >/dev/null; then
3062 if test -s conftest.err; then
3063 ac_cpp_err=$ac_c_preproc_warn_flag
3064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 if test -z "$ac_cpp_err"; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 # Broken: fails on valid input.
3080 rm -f conftest.err conftest.$ac_ext
3082 # OK, works on sane cases. Now check whether non-existent headers
3083 # can be detected and how.
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <ac_nonexistent.h>
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 if test -z "$ac_cpp_err"; then
3110 # Broken: success on invalid input.
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Passes both tests.
3120 rm -f conftest.err conftest.$ac_ext
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3128 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 echo "$as_me:$LINENO: checking for egrep" >&5
3143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3144 if test "${ac_cv_prog_egrep+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3148 then ac_cv_prog_egrep='grep -E'
3149 else ac_cv_prog_egrep='egrep'
3152 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3153 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3154 EGREP=$ac_cv_prog_egrep
3157 if test $ac_cv_c_compiler_gnu = yes; then
3158 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3159 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3160 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 ac_pattern="Autoconf.*'x'"
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3175 ac_cv_prog_gcc_traditional=yes
3177 ac_cv_prog_gcc_traditional=no
3182 if test $ac_cv_prog_gcc_traditional = no; then
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3194 ac_cv_prog_gcc_traditional=yes
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3201 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3202 if test $ac_cv_prog_gcc_traditional = yes; then
3203 CC="$CC -traditional"
3207 if test "x$CC" = xgcc; then
3208 cat >>confdefs.h <<\_ACEOF
3213 # Extract the first word of "$CXX", so it can be a program name with args.
3214 set dummy $CXX; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_CXX+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3245 if test -n "$CXX"; then
3246 echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 if test ! -e $CXX; then
3254 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3255 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3256 { (exit 1); exit 1; }; }
3259 # Find a good install program. We prefer a C program (faster),
3260 # so one script is as good as another. But avoid the broken or
3261 # incompatible versions:
3262 # SysV /etc/install, /usr/sbin/install
3263 # SunOS /usr/etc/install
3264 # IRIX /sbin/install
3266 # AmigaOS /C/install, which installs bootblocks on floppy discs
3267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3270 # OS/2's system install, which has a completely different semantic
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3274 if test -z "$INSTALL"; then
3275 if test "${ac_cv_path_install+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 # Account for people who put trailing slashes in PATH elements.
3285 ./ | .// | /cC/* | \
3286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3290 # OSF1 and SCO ODT 3.0 have their own names for install.
3291 # Don't use installbsd from OSF since it installs stuff as root
3293 for ac_prog in ginstall scoinst install; do
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3296 if test $ac_prog = install &&
3297 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3298 # AIX install. It has an incompatible calling convention.
3300 elif test $ac_prog = install &&
3301 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3302 # program-specific install script used by HP pwplus--don't use.
3305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3317 if test "${ac_cv_path_install+set}" = set; then
3318 INSTALL=$ac_cv_path_install
3320 # As a last resort, use the slow shell script. We don't cache a
3321 # path for INSTALL within a source directory, because that will
3322 # break other packages using the cache if that directory is
3323 # removed, or if the path is relative.
3324 INSTALL=$ac_install_sh
3327 echo "$as_me:$LINENO: result: $INSTALL" >&5
3328 echo "${ECHO_T}$INSTALL" >&6
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3338 if test -n "$ac_tool_prefix"; then
3339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_RANLIB+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 if test -n "$RANLIB"; then
3347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 RANLIB=$ac_cv_prog_RANLIB
3366 if test -n "$RANLIB"; then
3367 echo "$as_me:$LINENO: result: $RANLIB" >&5
3368 echo "${ECHO_T}$RANLIB" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3375 if test -z "$ac_cv_prog_RANLIB"; then
3376 ac_ct_RANLIB=$RANLIB
3377 # Extract the first word of "ranlib", so it can be a program name with args.
3378 set dummy ranlib; ac_word=$2
3379 echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 if test -n "$ac_ct_RANLIB"; then
3385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_ac_ct_RANLIB="ranlib"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3405 if test -n "$ac_ct_RANLIB"; then
3406 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3407 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3409 echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3413 RANLIB=$ac_ct_RANLIB
3415 RANLIB="$ac_cv_prog_RANLIB"
3418 # Extract the first word of "mv", so it can be a program name with args.
3419 set dummy mv; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_MV+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3450 if test -n "$MV"; then
3451 echo "$as_me:$LINENO: result: $MV" >&5
3452 echo "${ECHO_T}$MV" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 # Extract the first word of "rm", so it can be a program name with args.
3459 set dummy rm; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_RM+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3490 if test -n "$RM"; then
3491 echo "$as_me:$LINENO: result: $RM" >&5
3492 echo "${ECHO_T}$RM" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "cp", so it can be a program name with args.
3499 set dummy cp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CP+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3530 if test -n "$CP"; then
3531 echo "$as_me:$LINENO: result: $CP" >&5
3532 echo "${ECHO_T}$CP" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 # Extract the first word of "sed", so it can be a program name with args.
3539 set dummy sed; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_SED+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3570 if test -n "$SED"; then
3571 echo "$as_me:$LINENO: result: $SED" >&5
3572 echo "${ECHO_T}$SED" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "echo", so it can be a program name with args.
3579 set dummy echo; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_ECHO+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3608 ECHO=$ac_cv_path_ECHO
3610 if test -n "$ECHO"; then
3611 echo "$as_me:$LINENO: result: $ECHO" >&5
3612 echo "${ECHO_T}$ECHO" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 # Extract the first word of "cmp", so it can be a program name with args.
3619 set dummy cmp; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_CMP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3650 if test -n "$CMP"; then
3651 echo "$as_me:$LINENO: result: $CMP" >&5
3652 echo "${ECHO_T}$CMP" >&6
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3658 # Extract the first word of "tbl", so it can be a program name with args.
3659 set dummy tbl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_TBL+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3690 if test -n "$TBL"; then
3691 echo "$as_me:$LINENO: result: $TBL" >&5
3692 echo "${ECHO_T}$TBL" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 # Extract the first word of "ar", so it can be a program name with args.
3699 set dummy ar; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_AR+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3730 if test -n "$AR"; then
3731 echo "$as_me:$LINENO: result: $AR" >&5
3732 echo "${ECHO_T}$AR" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3738 # Extract the first word of "openssl", so it can be a program name with args.
3739 set dummy openssl; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_OPENSSL+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3768 OPENSSL=$ac_cv_path_OPENSSL
3770 if test -n "$OPENSSL"; then
3771 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3772 echo "${ECHO_T}$OPENSSL" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # Extract the first word of "mtx", so it can be a program name with args.
3779 set dummy mtx; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_path_MTX+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3810 if test -n "$MTX"; then
3811 echo "$as_me:$LINENO: result: $MTX" >&5
3812 echo "${ECHO_T}$MTX" >&6
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3818 # Extract the first word of "df", so it can be a program name with args.
3819 set dummy df; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_path_DF+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3850 if test -n "$DF"; then
3851 echo "$as_me:$LINENO: result: $DF" >&5
3852 echo "${ECHO_T}$DF" >&6
3854 echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3858 # Extract the first word of "mkisofs", so it can be a program name with args.
3859 set dummy mkisofs; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_MKISOFS+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3888 MKISOFS=$ac_cv_path_MKISOFS
3890 if test -n "$MKISOFS"; then
3891 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3892 echo "${ECHO_T}$MKISOFS" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3898 # Extract the first word of "python", so it can be a program name with args.
3899 set dummy python; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_path_PYTHON+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3928 PYTHON=$ac_cv_path_PYTHON
3930 if test -n "$PYTHON"; then
3931 echo "$as_me:$LINENO: result: $PYTHON" >&5
3932 echo "${ECHO_T}$PYTHON" >&6
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3938 # Extract the first word of "growisofs", so it can be a program name with args.
3939 set dummy growisofs; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3968 GROWISOFS=$ac_cv_path_GROWISOFS
3970 if test -n "$GROWISOFS"; then
3971 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3972 echo "${ECHO_T}$GROWISOFS" >&6
3974 echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3978 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3979 set dummy dvd+rw-mediainfo; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 case $DVDRWMEDIAINFO in
3987 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4008 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4010 if test -n "$DVDRWMEDIAINFO"; then
4011 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4012 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4014 echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4018 # Extract the first word of "pkg-config", so it can be a program name with args.
4019 set dummy pkg-config; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4048 PKGCONFIG=$ac_cv_path_PKGCONFIG
4050 if test -n "$PKGCONFIG"; then
4051 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4052 echo "${ECHO_T}$PKGCONFIG" >&6
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4059 if test "x$WXCONFIG" = x; then
4062 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4063 set dummy ${WXCONFIG}; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 test -z "$as_dir" && as_dir=.
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4092 WXCONFIG=$ac_cv_path_WXCONFIG
4094 if test -n "$WXCONFIG"; then
4095 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4096 echo "${ECHO_T}$WXCONFIG" >&6
4098 echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4103 # Extract the first word of "cdrecord", so it can be a program name with args.
4104 set dummy cdrecord; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_CDRECORD+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4133 CDRECORD=$ac_cv_path_CDRECORD
4135 if test -n "$CDRECORD"; then
4136 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4137 echo "${ECHO_T}$CDRECORD" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 # Extract the first word of "pidof", so it can be a program name with args.
4144 set dummy pidof; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_PIDOF+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4173 PIDOF=$ac_cv_path_PIDOF
4175 if test -n "$PIDOF"; then
4176 echo "$as_me:$LINENO: result: $PIDOF" >&5
4177 echo "${ECHO_T}$PIDOF" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4183 for ac_prog in gawk mawk nawk awk
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_AWK+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test -n "$AWK"; then
4193 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_AWK="$ac_prog"
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 if test -n "$AWK"; then
4213 echo "$as_me:$LINENO: result: $AWK" >&5
4214 echo "${ECHO_T}$AWK" >&6
4216 echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6
4220 test -n "$AWK" && break
4223 # Some AWK programs fail, so test it and warn the user
4224 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4225 { if ((prog == $2) || (("(" prog ")") == $2) ||
4226 (("" prog "") == $2) ||
4227 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4229 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4230 The regex engine of $AWK is too broken to be used you
4231 might want to install GNU AWK.
4232 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4233 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4234 The regex engine of $AWK is too broken to be used you
4235 might want to install GNU AWK.
4236 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4237 { (exit 1); exit 1; }; }
4240 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4241 set dummy $THE_AWK; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_path_AWK+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4272 if test -n "$AWK"; then
4273 echo "$as_me:$LINENO: result: $AWK" >&5
4274 echo "${ECHO_T}$AWK" >&6
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4281 test -n "$ARFLAG" || ARFLAGS="cr"
4292 # Make sure we can run config.sub.
4293 $ac_config_sub sun4 >/dev/null 2>&1 ||
4294 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4295 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4296 { (exit 1); exit 1; }; }
4298 echo "$as_me:$LINENO: checking build system type" >&5
4299 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4300 if test "${ac_cv_build+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 ac_cv_build_alias=$build_alias
4304 test -z "$ac_cv_build_alias" &&
4305 ac_cv_build_alias=`$ac_config_guess`
4306 test -z "$ac_cv_build_alias" &&
4307 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4308 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4309 { (exit 1); exit 1; }; }
4310 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4311 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4312 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4313 { (exit 1); exit 1; }; }
4316 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4317 echo "${ECHO_T}$ac_cv_build" >&6
4319 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4320 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4321 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4325 echo "$as_me:$LINENO: checking host system type" >&5
4326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4327 if test "${ac_cv_host+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 ac_cv_host_alias=$host_alias
4331 test -z "$ac_cv_host_alias" &&
4332 ac_cv_host_alias=$ac_cv_build_alias
4333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4336 { (exit 1); exit 1; }; }
4339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4340 echo "${ECHO_T}$ac_cv_host" >&6
4342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4348 *cygwin* ) CYGWIN=yes;;
4352 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4358 HAVE_SUN_OS_FALSE='#'
4360 HAVE_SUN_OS_TRUE='#'
4363 cat >>confdefs.h <<\_ACEOF
4364 #define HAVE_SUN_OS 1
4372 HAVE_SUN_OS_FALSE='#'
4374 HAVE_SUN_OS_TRUE='#'
4379 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4385 HAVE_OSF1_OS_FALSE='#'
4387 HAVE_OSF1_OS_TRUE='#'
4390 cat >>confdefs.h <<\_ACEOF
4391 #define HAVE_OSF1_OS 1
4399 HAVE_OSF1_OS_FALSE='#'
4401 HAVE_OSF1_OS_TRUE='#'
4406 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4412 HAVE_AIX_OS_FALSE='#'
4414 HAVE_AIX_OS_TRUE='#'
4417 cat >>confdefs.h <<\_ACEOF
4418 #define HAVE_AIX_OS 1
4426 HAVE_AIX_OS_FALSE='#'
4428 HAVE_AIX_OS_TRUE='#'
4433 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4439 HAVE_HPUX_OS_FALSE='#'
4441 HAVE_HPUX_OS_TRUE='#'
4444 cat >>confdefs.h <<\_ACEOF
4445 #define HAVE_HPUX_OS 1
4453 HAVE_HPUX_OS_FALSE='#'
4455 HAVE_HPUX_OS_TRUE='#'
4460 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4466 HAVE_LINUX_OS_FALSE='#'
4468 HAVE_LINUX_OS_TRUE='#'
4469 HAVE_LINUX_OS_FALSE=
4471 cat >>confdefs.h <<\_ACEOF
4472 #define HAVE_LINUX_OS 1
4480 HAVE_LINUX_OS_FALSE='#'
4482 HAVE_LINUX_OS_TRUE='#'
4483 HAVE_LINUX_OS_FALSE=
4487 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4492 HAVE_FREEBSD_OS_TRUE=
4493 HAVE_FREEBSD_OS_FALSE='#'
4495 HAVE_FREEBSD_OS_TRUE='#'
4496 HAVE_FREEBSD_OS_FALSE=
4498 cat >>confdefs.h <<\_ACEOF
4499 #define HAVE_FREEBSD_OS 1
4506 HAVE_FREEBSD_OS_TRUE=
4507 HAVE_FREEBSD_OS_FALSE='#'
4509 HAVE_FREEBSD_OS_TRUE='#'
4510 HAVE_FREEBSD_OS_FALSE=
4514 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4519 HAVE_NETBSD_OS_TRUE=
4520 HAVE_NETBSD_OS_FALSE='#'
4522 HAVE_NETBSD_OS_TRUE='#'
4523 HAVE_NETBSD_OS_FALSE=
4525 cat >>confdefs.h <<\_ACEOF
4526 #define HAVE_NETBSD_OS 1
4533 HAVE_NETBSD_OS_TRUE=
4534 HAVE_NETBSD_OS_FALSE='#'
4536 HAVE_NETBSD_OS_TRUE='#'
4537 HAVE_NETBSD_OS_FALSE=
4541 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4546 HAVE_OPENBSD_OS_TRUE=
4547 HAVE_OPENBSD_OS_FALSE='#'
4549 HAVE_OPENBSD_OS_TRUE='#'
4550 HAVE_OPENBSD_OS_FALSE=
4552 cat >>confdefs.h <<\_ACEOF
4553 #define HAVE_OPENBSD_OS 1
4560 HAVE_OPENBSD_OS_TRUE=
4561 HAVE_OPENBSD_OS_FALSE='#'
4563 HAVE_OPENBSD_OS_TRUE='#'
4564 HAVE_OPENBSD_OS_FALSE=
4568 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4574 HAVE_BSDI_OS_FALSE='#'
4576 HAVE_BSDI_OS_TRUE='#'
4579 cat >>confdefs.h <<\_ACEOF
4580 #define HAVE_BSDI_OS 1
4588 HAVE_BSDI_OS_FALSE='#'
4590 HAVE_BSDI_OS_TRUE='#'
4595 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4601 HAVE_SGI_OS_FALSE='#'
4603 HAVE_SGI_OS_TRUE='#'
4606 cat >>confdefs.h <<\_ACEOF
4607 #define HAVE_SGI_OS 1
4615 HAVE_SGI_OS_FALSE='#'
4617 HAVE_SGI_OS_TRUE='#'
4622 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4628 HAVE_IRIX_OS_FALSE='#'
4630 HAVE_IRIX_OS_TRUE='#'
4633 cat >>confdefs.h <<\_ACEOF
4634 #define HAVE_IRIX_OS 1
4642 HAVE_IRIX_OS_FALSE='#'
4644 HAVE_IRIX_OS_TRUE='#'
4649 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4654 HAVE_DARWIN_OS_TRUE=
4655 HAVE_DARWIN_OS_FALSE='#'
4657 HAVE_DARWIN_OS_TRUE='#'
4658 HAVE_DARWIN_OS_FALSE=
4660 cat >>confdefs.h <<\_ACEOF
4661 #define HAVE_DARWIN_OS 1
4668 HAVE_DARWIN_OS_TRUE=
4669 HAVE_DARWIN_OS_FALSE='#'
4671 HAVE_DARWIN_OS_TRUE='#'
4672 HAVE_DARWIN_OS_FALSE=
4677 # -----------------------------------------------------------
4678 # ----------------------------------------------------------
4679 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4680 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4681 if test "x$DISTNAME" != "x"
4683 echo "distname set to $DISTNAME"
4684 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4687 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4690 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4693 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4696 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4699 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4702 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4705 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4708 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4711 elif test -f /etc/SuSE-release
4714 elif test -d /etc/SuSEconfig
4717 elif test -f /etc/mandrake-release
4720 elif test -f /etc/whitebox-release
4723 elif test -f /etc/redhat-release
4726 elif test -f /etc/gentoo-release
4729 elif test -f /etc/debian_version
4732 elif test -f /etc/slackware-version
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4738 elif test -f /etc/engarde-version
4741 elif test "$CYGWIN" = yes
4744 cat >>confdefs.h <<\_ACEOF
4745 #define HAVE_CYGWIN 1
4751 echo "$as_me:$LINENO: result: done" >&5
4752 echo "${ECHO_T}done" >&6
4755 # --------------------------------------------------
4756 # Suppport for gettext (translations)
4757 # By default, $datadir is ${prefix}/share
4758 # --------------------------------------------------
4759 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4760 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4761 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4762 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.make <<\_ACEOF
4767 @echo 'ac_maketemp="$(MAKE)"'
4769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4770 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4771 if test -n "$ac_maketemp"; then
4772 eval ac_cv_prog_make_${ac_make}_set=yes
4774 eval ac_cv_prog_make_${ac_make}_set=no
4778 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4779 echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6
4783 echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6
4785 SET_MAKE="MAKE=${MAKE-make}"
4791 if test -n "$ac_aux_dir"; then
4792 case "$ac_aux_dir" in
4793 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4794 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4797 if test -z "$MKINSTALLDIRS"; then
4798 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4803 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4804 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4805 # Check whether --enable-nls or --disable-nls was given.
4806 if test "${enable_nls+set}" = set; then
4807 enableval="$enable_nls"
4812 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4813 echo "${ECHO_T}$USE_NLS" >&6
4820 # Prepare PATH_SEPARATOR.
4821 # The user is always right.
4822 if test "${PATH_SEPARATOR+set}" != set; then
4823 echo "#! /bin/sh" >conf$$.sh
4824 echo "exit 0" >>conf$$.sh
4826 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4834 # Find out how to test for executable files. Don't use a zero-byte file,
4835 # as systems may use methods other than mode bits to determine executability.
4836 cat >conf$$.file <<_ASEOF
4840 chmod +x conf$$.file
4841 if test -x conf$$.file >/dev/null 2>&1; then
4842 ac_executable_p="test -x"
4844 ac_executable_p="test -f"
4848 # Extract the first word of "msgfmt", so it can be a program name with args.
4849 set dummy msgfmt; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_path_MSGFMT+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4860 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH; do
4863 test -z "$ac_dir" && ac_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4866 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4867 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4868 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4869 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4876 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4880 MSGFMT="$ac_cv_path_MSGFMT"
4881 if test "$MSGFMT" != ":"; then
4882 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4883 echo "${ECHO_T}$MSGFMT" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4890 set dummy gmsgfmt; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4919 GMSGFMT=$ac_cv_path_GMSGFMT
4921 if test -n "$GMSGFMT"; then
4922 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4923 echo "${ECHO_T}$GMSGFMT" >&6
4925 echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4931 # Prepare PATH_SEPARATOR.
4932 # The user is always right.
4933 if test "${PATH_SEPARATOR+set}" != set; then
4934 echo "#! /bin/sh" >conf$$.sh
4935 echo "exit 0" >>conf$$.sh
4937 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4945 # Find out how to test for executable files. Don't use a zero-byte file,
4946 # as systems may use methods other than mode bits to determine executability.
4947 cat >conf$$.file <<_ASEOF
4951 chmod +x conf$$.file
4952 if test -x conf$$.file >/dev/null 2>&1; then
4953 ac_executable_p="test -x"
4955 ac_executable_p="test -f"
4959 # Extract the first word of "xgettext", so it can be a program name with args.
4960 set dummy xgettext; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4971 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4972 for ac_dir in $PATH; do
4974 test -z "$ac_dir" && ac_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4977 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4978 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4979 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4980 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4987 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4991 XGETTEXT="$ac_cv_path_XGETTEXT"
4992 if test "$XGETTEXT" != ":"; then
4993 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4994 echo "${ECHO_T}$XGETTEXT" >&6
4996 echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
5003 # Prepare PATH_SEPARATOR.
5004 # The user is always right.
5005 if test "${PATH_SEPARATOR+set}" != set; then
5006 echo "#! /bin/sh" >conf$$.sh
5007 echo "exit 0" >>conf$$.sh
5009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5017 # Find out how to test for executable files. Don't use a zero-byte file,
5018 # as systems may use methods other than mode bits to determine executability.
5019 cat >conf$$.file <<_ASEOF
5023 chmod +x conf$$.file
5024 if test -x conf$$.file >/dev/null 2>&1; then
5025 ac_executable_p="test -x"
5027 ac_executable_p="test -f"
5031 # Extract the first word of "msgmerge", so it can be a program name with args.
5032 set dummy msgmerge; ac_word=$2
5033 echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5043 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5044 for ac_dir in $PATH; do
5046 test -z "$ac_dir" && ac_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5049 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5050 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5051 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5058 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5062 MSGMERGE="$ac_cv_path_MSGMERGE"
5063 if test "$MSGMERGE" != ":"; then
5064 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5065 echo "${ECHO_T}$MSGMERGE" >&6
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5072 if test "$GMSGFMT" != ":"; then
5073 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5074 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5077 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5078 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5079 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5084 if test "$XGETTEXT" != ":"; then
5085 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5086 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5089 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5090 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5096 ac_config_commands="$ac_config_commands default-1"
5100 if test "X$prefix" = "XNONE"; then
5101 acl_final_prefix="$ac_default_prefix"
5103 acl_final_prefix="$prefix"
5105 if test "X$exec_prefix" = "XNONE"; then
5106 acl_final_exec_prefix='${prefix}'
5108 acl_final_exec_prefix="$exec_prefix"
5110 acl_save_prefix="$prefix"
5111 prefix="$acl_final_prefix"
5112 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5113 prefix="$acl_save_prefix"
5116 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5117 if test "${with_gnu_ld+set}" = set; then
5118 withval="$with_gnu_ld"
5119 test "$withval" = no || with_gnu_ld=yes
5123 # Prepare PATH_SEPARATOR.
5124 # The user is always right.
5125 if test "${PATH_SEPARATOR+set}" != set; then
5126 echo "#! /bin/sh" >conf$$.sh
5127 echo "exit 0" >>conf$$.sh
5129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5137 if test "$GCC" = yes; then
5138 # Check if gcc -print-prog-name=ld gives a path.
5139 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5140 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5143 # gcc leaves a trailing carriage return which upsets mingw
5144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5149 # Accept absolute paths.
5150 [\\/]* | [A-Za-z]:[\\/]*)
5151 re_direlt='/[^/][^/]*/\.\./'
5152 # Canonicalize the path of ld
5153 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5154 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5155 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5157 test -z "$LD" && LD="$ac_prog"
5160 # If it fails, then pretend we aren't using GCC.
5164 # If it is relative, then search for the first ld in PATH.
5168 elif test "$with_gnu_ld" = yes; then
5169 echo "$as_me:$LINENO: checking for GNU ld" >&5
5170 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5172 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5173 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5175 if test "${acl_cv_path_LD+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 if test -z "$LD"; then
5179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5180 for ac_dir in $PATH; do
5181 test -z "$ac_dir" && ac_dir=.
5182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5183 acl_cv_path_LD="$ac_dir/$ac_prog"
5184 # Check to see if the program is GNU ld. I'd rather use --version,
5185 # but apparently some GNU ld's only accept -v.
5186 # Break only if it was the GNU/non-GNU ld that we prefer.
5187 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5188 *GNU* | *'with BFD'*)
5189 test "$with_gnu_ld" != no && break ;;
5191 test "$with_gnu_ld" != yes && break ;;
5197 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5201 LD="$acl_cv_path_LD"
5202 if test -n "$LD"; then
5203 echo "$as_me:$LINENO: result: $LD" >&5
5204 echo "${ECHO_T}$LD" >&6
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5211 { (exit 1); exit 1; }; }
5212 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5214 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5218 case `$LD -v 2>&1 </dev/null` in
5219 *GNU* | *'with BFD'*)
5220 acl_cv_prog_gnu_ld=yes ;;
5222 acl_cv_prog_gnu_ld=no ;;
5225 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5226 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5227 with_gnu_ld=$acl_cv_prog_gnu_ld
5232 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5233 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5234 if test "${acl_cv_rpath+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5239 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5245 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5246 echo "${ECHO_T}$acl_cv_rpath" >&6
5248 libext="$acl_cv_libext"
5249 shlibext="$acl_cv_shlibext"
5250 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5251 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5252 hardcode_direct="$acl_cv_hardcode_direct"
5253 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5254 # Check whether --enable-rpath or --disable-rpath was given.
5255 if test "${enable_rpath+set}" = set; then
5256 enableval="$enable_rpath"
5270 acl_save_prefix="$prefix"
5271 prefix="$acl_final_prefix"
5272 acl_save_exec_prefix="$exec_prefix"
5273 exec_prefix="$acl_final_exec_prefix"
5275 eval additional_includedir=\"$includedir\"
5276 eval additional_libdir=\"$libdir\"
5278 exec_prefix="$acl_save_exec_prefix"
5279 prefix="$acl_save_prefix"
5282 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5283 if test "${with_libiconv_prefix+set}" = set; then
5284 withval="$with_libiconv_prefix"
5286 if test "X$withval" = "Xno"; then
5289 if test "X$withval" = "X"; then
5291 acl_save_prefix="$prefix"
5292 prefix="$acl_final_prefix"
5293 acl_save_exec_prefix="$exec_prefix"
5294 exec_prefix="$acl_final_exec_prefix"
5296 eval additional_includedir=\"$includedir\"
5297 eval additional_libdir=\"$libdir\"
5299 exec_prefix="$acl_save_exec_prefix"
5300 prefix="$acl_save_prefix"
5303 additional_includedir="$withval/include"
5304 additional_libdir="$withval/lib"
5314 names_already_handled=
5315 names_next_round='iconv '
5316 while test -n "$names_next_round"; do
5317 names_this_round="$names_next_round"
5319 for name in $names_this_round; do
5321 for n in $names_already_handled; do
5322 if test "$n" = "$name"; then
5327 if test -z "$already_handled"; then
5328 names_already_handled="$names_already_handled $name"
5329 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5330 eval value=\"\$HAVE_LIB$uppername\"
5331 if test -n "$value"; then
5332 if test "$value" = yes; then
5333 eval value=\"\$LIB$uppername\"
5334 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5335 eval value=\"\$LTLIB$uppername\"
5336 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5345 if test $use_additional = yes; then
5346 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5347 found_dir="$additional_libdir"
5348 found_so="$additional_libdir/lib$name.$shlibext"
5349 if test -f "$additional_libdir/lib$name.la"; then
5350 found_la="$additional_libdir/lib$name.la"
5353 if test -f "$additional_libdir/lib$name.$libext"; then
5354 found_dir="$additional_libdir"
5355 found_a="$additional_libdir/lib$name.$libext"
5356 if test -f "$additional_libdir/lib$name.la"; then
5357 found_la="$additional_libdir/lib$name.la"
5362 if test "X$found_dir" = "X"; then
5363 for x in $LDFLAGS $LTLIBICONV; do
5365 acl_save_prefix="$prefix"
5366 prefix="$acl_final_prefix"
5367 acl_save_exec_prefix="$exec_prefix"
5368 exec_prefix="$acl_final_exec_prefix"
5370 exec_prefix="$acl_save_exec_prefix"
5371 prefix="$acl_save_prefix"
5375 dir=`echo "X$x" | sed -e 's/^X-L//'`
5376 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5378 found_so="$dir/lib$name.$shlibext"
5379 if test -f "$dir/lib$name.la"; then
5380 found_la="$dir/lib$name.la"
5383 if test -f "$dir/lib$name.$libext"; then
5385 found_a="$dir/lib$name.$libext"
5386 if test -f "$dir/lib$name.la"; then
5387 found_la="$dir/lib$name.la"
5393 if test "X$found_dir" != "X"; then
5398 if test "X$found_dir" != "X"; then
5399 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5400 if test "X$found_so" != "X"; then
5401 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5405 for x in $ltrpathdirs; do
5406 if test "X$x" = "X$found_dir"; then
5411 if test -z "$haveit"; then
5412 ltrpathdirs="$ltrpathdirs $found_dir"
5414 if test "$hardcode_direct" = yes; then
5415 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5417 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5418 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5420 for x in $rpathdirs; do
5421 if test "X$x" = "X$found_dir"; then
5426 if test -z "$haveit"; then
5427 rpathdirs="$rpathdirs $found_dir"
5431 for x in $LDFLAGS $LIBICONV; do
5433 acl_save_prefix="$prefix"
5434 prefix="$acl_final_prefix"
5435 acl_save_exec_prefix="$exec_prefix"
5436 exec_prefix="$acl_final_exec_prefix"
5438 exec_prefix="$acl_save_exec_prefix"
5439 prefix="$acl_save_prefix"
5441 if test "X$x" = "X-L$found_dir"; then
5446 if test -z "$haveit"; then
5447 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5449 if test "$hardcode_minus_L" != no; then
5450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5452 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5458 if test "X$found_a" != "X"; then
5459 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5461 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5464 additional_includedir=
5465 case "$found_dir" in
5467 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5468 additional_includedir="$basedir/include"
5471 if test "X$additional_includedir" != "X"; then
5472 if test "X$additional_includedir" != "X/usr/include"; then
5474 if test "X$additional_includedir" = "X/usr/local/include"; then
5475 if test -n "$GCC"; then
5477 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5481 if test -z "$haveit"; then
5482 for x in $CPPFLAGS $INCICONV; do
5484 acl_save_prefix="$prefix"
5485 prefix="$acl_final_prefix"
5486 acl_save_exec_prefix="$exec_prefix"
5487 exec_prefix="$acl_final_exec_prefix"
5489 exec_prefix="$acl_save_exec_prefix"
5490 prefix="$acl_save_prefix"
5492 if test "X$x" = "X-I$additional_includedir"; then
5497 if test -z "$haveit"; then
5498 if test -d "$additional_includedir"; then
5499 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5505 if test -n "$found_la"; then
5506 save_libdir="$libdir"
5508 */* | *\\*) . "$found_la" ;;
5509 *) . "./$found_la" ;;
5511 libdir="$save_libdir"
5512 for dep in $dependency_libs; do
5515 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5516 if test "X$additional_libdir" != "X/usr/lib"; then
5518 if test "X$additional_libdir" = "X/usr/local/lib"; then
5519 if test -n "$GCC"; then
5521 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5525 if test -z "$haveit"; then
5527 for x in $LDFLAGS $LIBICONV; do
5529 acl_save_prefix="$prefix"
5530 prefix="$acl_final_prefix"
5531 acl_save_exec_prefix="$exec_prefix"
5532 exec_prefix="$acl_final_exec_prefix"
5534 exec_prefix="$acl_save_exec_prefix"
5535 prefix="$acl_save_prefix"
5537 if test "X$x" = "X-L$additional_libdir"; then
5542 if test -z "$haveit"; then
5543 if test -d "$additional_libdir"; then
5544 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5548 for x in $LDFLAGS $LTLIBICONV; do
5550 acl_save_prefix="$prefix"
5551 prefix="$acl_final_prefix"
5552 acl_save_exec_prefix="$exec_prefix"
5553 exec_prefix="$acl_final_exec_prefix"
5555 exec_prefix="$acl_save_exec_prefix"
5556 prefix="$acl_save_prefix"
5558 if test "X$x" = "X-L$additional_libdir"; then
5563 if test -z "$haveit"; then
5564 if test -d "$additional_libdir"; then
5565 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5572 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5573 if test "$enable_rpath" != no; then
5575 for x in $rpathdirs; do
5576 if test "X$x" = "X$dir"; then
5581 if test -z "$haveit"; then
5582 rpathdirs="$rpathdirs $dir"
5585 for x in $ltrpathdirs; do
5586 if test "X$x" = "X$dir"; then
5591 if test -z "$haveit"; then
5592 ltrpathdirs="$ltrpathdirs $dir"
5597 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5603 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5604 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5610 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5611 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5617 if test "X$rpathdirs" != "X"; then
5618 if test -n "$hardcode_libdir_separator"; then
5620 for found_dir in $rpathdirs; do
5621 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5623 acl_save_libdir="$libdir"
5625 eval flag=\"$hardcode_libdir_flag_spec\"
5626 libdir="$acl_save_libdir"
5627 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5629 for found_dir in $rpathdirs; do
5630 acl_save_libdir="$libdir"
5632 eval flag=\"$hardcode_libdir_flag_spec\"
5633 libdir="$acl_save_libdir"
5634 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5638 if test "X$ltrpathdirs" != "X"; then
5639 for found_dir in $ltrpathdirs; do
5640 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5661 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5662 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5663 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 gt_save_CPPFLAGS="$CPPFLAGS"
5667 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5668 gt_save_LIBS="$LIBS"
5669 LIBS="$LIBS -framework CoreFoundation"
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <CFPreferences.h>
5680 CFPreferencesCopyAppValue(NULL, NULL)
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687 (eval $ac_link) 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest$ac_exeext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 gt_cv_func_CFPreferencesCopyAppValue=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 gt_cv_func_CFPreferencesCopyAppValue=no
5714 rm -f conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716 CPPFLAGS="$gt_save_CPPFLAGS"
5717 LIBS="$gt_save_LIBS"
5719 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5720 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5721 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5723 cat >>confdefs.h <<\_ACEOF
5724 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5728 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5729 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5730 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 gt_save_CPPFLAGS="$CPPFLAGS"
5734 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5735 gt_save_LIBS="$LIBS"
5736 LIBS="$LIBS -framework CoreFoundation"
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <CFLocale.h>
5747 CFLocaleCopyCurrent();
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest$ac_exeext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 gt_cv_func_CFLocaleCopyCurrent=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 gt_cv_func_CFLocaleCopyCurrent=no
5781 rm -f conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5783 CPPFLAGS="$gt_save_CPPFLAGS"
5784 LIBS="$gt_save_LIBS"
5786 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5787 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5788 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5790 cat >>confdefs.h <<\_ACEOF
5791 #define HAVE_CFLOCALECOPYCURRENT 1
5796 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5797 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5803 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5804 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5805 # Check whether --enable-nls or --disable-nls was given.
5806 if test "${enable_nls+set}" = set; then
5807 enableval="$enable_nls"
5812 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5813 echo "${ECHO_T}$USE_NLS" >&6
5822 if test "$USE_NLS" = "yes"; then
5823 gt_use_preinstalled_gnugettext=no
5830 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5831 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5832 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #include <libintl.h>
5842 extern int _nl_msg_cat_cntr;
5843 extern int *_nl_domain_bindings;
5847 bindtextdomain ("", "");
5848 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855 (eval $ac_link) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 gt_cv_func_gnugettext1_libc=yes
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 gt_cv_func_gnugettext1_libc=no
5882 rm -f conftest.err conftest.$ac_objext \
5883 conftest$ac_exeext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5886 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5888 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5894 am_save_CPPFLAGS="$CPPFLAGS"
5896 for element in $INCICONV; do
5898 for x in $CPPFLAGS; do
5900 acl_save_prefix="$prefix"
5901 prefix="$acl_final_prefix"
5902 acl_save_exec_prefix="$exec_prefix"
5903 exec_prefix="$acl_final_exec_prefix"
5905 exec_prefix="$acl_save_exec_prefix"
5906 prefix="$acl_save_prefix"
5908 if test "X$x" = "X$element"; then
5913 if test -z "$haveit"; then
5914 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5919 echo "$as_me:$LINENO: checking for iconv" >&5
5920 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5921 if test "${am_cv_func_iconv+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 am_cv_func_iconv="no, consider installing GNU libiconv"
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5938 iconv_t cd = iconv_open("","");
5939 iconv(cd,NULL,NULL,NULL,NULL);
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest$ac_exeext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 am_cv_func_iconv=yes
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5973 rm -f conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 if test "$am_cv_func_iconv" != yes; then
5976 am_save_LIBS="$LIBS"
5977 LIBS="$LIBS $LIBICONV"
5978 cat >conftest.$ac_ext <<_ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5989 iconv_t cd = iconv_open("","");
5990 iconv(cd,NULL,NULL,NULL,NULL);
5996 rm -f conftest.$ac_objext conftest$ac_exeext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5998 (eval $ac_link) 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -z "$ac_c_werror_flag"
6006 || test ! -s conftest.err'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest$ac_exeext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6019 am_cv_func_iconv=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6025 rm -f conftest.err conftest.$ac_objext \
6026 conftest$ac_exeext conftest.$ac_ext
6027 LIBS="$am_save_LIBS"
6031 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6032 echo "${ECHO_T}$am_cv_func_iconv" >&6
6033 if test "$am_cv_func_iconv" = yes; then
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_ICONV 1
6040 if test "$am_cv_lib_iconv" = yes; then
6041 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6042 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6043 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6044 echo "${ECHO_T}$LIBICONV" >&6
6046 CPPFLAGS="$am_save_CPPFLAGS"
6058 acl_save_prefix="$prefix"
6059 prefix="$acl_final_prefix"
6060 acl_save_exec_prefix="$exec_prefix"
6061 exec_prefix="$acl_final_exec_prefix"
6063 eval additional_includedir=\"$includedir\"
6064 eval additional_libdir=\"$libdir\"
6066 exec_prefix="$acl_save_exec_prefix"
6067 prefix="$acl_save_prefix"
6070 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6071 if test "${with_libintl_prefix+set}" = set; then
6072 withval="$with_libintl_prefix"
6074 if test "X$withval" = "Xno"; then
6077 if test "X$withval" = "X"; then
6079 acl_save_prefix="$prefix"
6080 prefix="$acl_final_prefix"
6081 acl_save_exec_prefix="$exec_prefix"
6082 exec_prefix="$acl_final_exec_prefix"
6084 eval additional_includedir=\"$includedir\"
6085 eval additional_libdir=\"$libdir\"
6087 exec_prefix="$acl_save_exec_prefix"
6088 prefix="$acl_save_prefix"
6091 additional_includedir="$withval/include"
6092 additional_libdir="$withval/lib"
6102 names_already_handled=
6103 names_next_round='intl '
6104 while test -n "$names_next_round"; do
6105 names_this_round="$names_next_round"
6107 for name in $names_this_round; do
6109 for n in $names_already_handled; do
6110 if test "$n" = "$name"; then
6115 if test -z "$already_handled"; then
6116 names_already_handled="$names_already_handled $name"
6117 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6118 eval value=\"\$HAVE_LIB$uppername\"
6119 if test -n "$value"; then
6120 if test "$value" = yes; then
6121 eval value=\"\$LIB$uppername\"
6122 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6123 eval value=\"\$LTLIB$uppername\"
6124 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6133 if test $use_additional = yes; then
6134 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6135 found_dir="$additional_libdir"
6136 found_so="$additional_libdir/lib$name.$shlibext"
6137 if test -f "$additional_libdir/lib$name.la"; then
6138 found_la="$additional_libdir/lib$name.la"
6141 if test -f "$additional_libdir/lib$name.$libext"; then
6142 found_dir="$additional_libdir"
6143 found_a="$additional_libdir/lib$name.$libext"
6144 if test -f "$additional_libdir/lib$name.la"; then
6145 found_la="$additional_libdir/lib$name.la"
6150 if test "X$found_dir" = "X"; then
6151 for x in $LDFLAGS $LTLIBINTL; do
6153 acl_save_prefix="$prefix"
6154 prefix="$acl_final_prefix"
6155 acl_save_exec_prefix="$exec_prefix"
6156 exec_prefix="$acl_final_exec_prefix"
6158 exec_prefix="$acl_save_exec_prefix"
6159 prefix="$acl_save_prefix"
6163 dir=`echo "X$x" | sed -e 's/^X-L//'`
6164 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6166 found_so="$dir/lib$name.$shlibext"
6167 if test -f "$dir/lib$name.la"; then
6168 found_la="$dir/lib$name.la"
6171 if test -f "$dir/lib$name.$libext"; then
6173 found_a="$dir/lib$name.$libext"
6174 if test -f "$dir/lib$name.la"; then
6175 found_la="$dir/lib$name.la"
6181 if test "X$found_dir" != "X"; then
6186 if test "X$found_dir" != "X"; then
6187 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6188 if test "X$found_so" != "X"; then
6189 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6190 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6193 for x in $ltrpathdirs; do
6194 if test "X$x" = "X$found_dir"; then
6199 if test -z "$haveit"; then
6200 ltrpathdirs="$ltrpathdirs $found_dir"
6202 if test "$hardcode_direct" = yes; then
6203 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6205 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6206 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6208 for x in $rpathdirs; do
6209 if test "X$x" = "X$found_dir"; then
6214 if test -z "$haveit"; then
6215 rpathdirs="$rpathdirs $found_dir"
6219 for x in $LDFLAGS $LIBINTL; do
6221 acl_save_prefix="$prefix"
6222 prefix="$acl_final_prefix"
6223 acl_save_exec_prefix="$exec_prefix"
6224 exec_prefix="$acl_final_exec_prefix"
6226 exec_prefix="$acl_save_exec_prefix"
6227 prefix="$acl_save_prefix"
6229 if test "X$x" = "X-L$found_dir"; then
6234 if test -z "$haveit"; then
6235 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6237 if test "$hardcode_minus_L" != no; then
6238 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6240 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6246 if test "X$found_a" != "X"; then
6247 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6249 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6252 additional_includedir=
6253 case "$found_dir" in
6255 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6256 additional_includedir="$basedir/include"
6259 if test "X$additional_includedir" != "X"; then
6260 if test "X$additional_includedir" != "X/usr/include"; then
6262 if test "X$additional_includedir" = "X/usr/local/include"; then
6263 if test -n "$GCC"; then
6265 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6269 if test -z "$haveit"; then
6270 for x in $CPPFLAGS $INCINTL; do
6272 acl_save_prefix="$prefix"
6273 prefix="$acl_final_prefix"
6274 acl_save_exec_prefix="$exec_prefix"
6275 exec_prefix="$acl_final_exec_prefix"
6277 exec_prefix="$acl_save_exec_prefix"
6278 prefix="$acl_save_prefix"
6280 if test "X$x" = "X-I$additional_includedir"; then
6285 if test -z "$haveit"; then
6286 if test -d "$additional_includedir"; then
6287 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6293 if test -n "$found_la"; then
6294 save_libdir="$libdir"
6296 */* | *\\*) . "$found_la" ;;
6297 *) . "./$found_la" ;;
6299 libdir="$save_libdir"
6300 for dep in $dependency_libs; do
6303 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6304 if test "X$additional_libdir" != "X/usr/lib"; then
6306 if test "X$additional_libdir" = "X/usr/local/lib"; then
6307 if test -n "$GCC"; then
6309 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6313 if test -z "$haveit"; then
6315 for x in $LDFLAGS $LIBINTL; do
6317 acl_save_prefix="$prefix"
6318 prefix="$acl_final_prefix"
6319 acl_save_exec_prefix="$exec_prefix"
6320 exec_prefix="$acl_final_exec_prefix"
6322 exec_prefix="$acl_save_exec_prefix"
6323 prefix="$acl_save_prefix"
6325 if test "X$x" = "X-L$additional_libdir"; then
6330 if test -z "$haveit"; then
6331 if test -d "$additional_libdir"; then
6332 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6336 for x in $LDFLAGS $LTLIBINTL; do
6338 acl_save_prefix="$prefix"
6339 prefix="$acl_final_prefix"
6340 acl_save_exec_prefix="$exec_prefix"
6341 exec_prefix="$acl_final_exec_prefix"
6343 exec_prefix="$acl_save_exec_prefix"
6344 prefix="$acl_save_prefix"
6346 if test "X$x" = "X-L$additional_libdir"; then
6351 if test -z "$haveit"; then
6352 if test -d "$additional_libdir"; then
6353 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6360 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6361 if test "$enable_rpath" != no; then
6363 for x in $rpathdirs; do
6364 if test "X$x" = "X$dir"; then
6369 if test -z "$haveit"; then
6370 rpathdirs="$rpathdirs $dir"
6373 for x in $ltrpathdirs; do
6374 if test "X$x" = "X$dir"; then
6379 if test -z "$haveit"; then
6380 ltrpathdirs="$ltrpathdirs $dir"
6385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6388 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6391 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6392 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6398 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6399 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6405 if test "X$rpathdirs" != "X"; then
6406 if test -n "$hardcode_libdir_separator"; then
6408 for found_dir in $rpathdirs; do
6409 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6411 acl_save_libdir="$libdir"
6413 eval flag=\"$hardcode_libdir_flag_spec\"
6414 libdir="$acl_save_libdir"
6415 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6417 for found_dir in $rpathdirs; do
6418 acl_save_libdir="$libdir"
6420 eval flag=\"$hardcode_libdir_flag_spec\"
6421 libdir="$acl_save_libdir"
6422 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6426 if test "X$ltrpathdirs" != "X"; then
6427 for found_dir in $ltrpathdirs; do
6428 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6432 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6433 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6434 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 gt_save_CPPFLAGS="$CPPFLAGS"
6438 CPPFLAGS="$CPPFLAGS $INCINTL"
6439 gt_save_LIBS="$LIBS"
6440 LIBS="$LIBS $LIBINTL"
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 #include <libintl.h>
6448 extern int _nl_msg_cat_cntr;
6453 const char *_nl_expand_alias (const char *);
6457 bindtextdomain ("", "");
6458 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465 (eval $ac_link) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest$ac_exeext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 gt_cv_func_gnugettext1_libintl=yes
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 gt_cv_func_gnugettext1_libintl=no
6492 rm -f conftest.err conftest.$ac_objext \
6493 conftest$ac_exeext conftest.$ac_ext
6494 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6495 LIBS="$LIBS $LIBICONV"
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <libintl.h>
6503 extern int _nl_msg_cat_cntr;
6508 const char *_nl_expand_alias (const char *);
6512 bindtextdomain ("", "");
6513 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520 (eval $ac_link) 2>conftest.er1
6522 grep -v '^ *+' conftest.er1 >conftest.err
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 LIBINTL="$LIBINTL $LIBICONV"
6541 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6542 gt_cv_func_gnugettext1_libintl=yes
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6552 CPPFLAGS="$gt_save_CPPFLAGS"
6553 LIBS="$gt_save_LIBS"
6555 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6556 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6559 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6560 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6561 && test "$PACKAGE" != gettext-runtime \
6562 && test "$PACKAGE" != gettext-tools; }; then
6563 gt_use_preinstalled_gnugettext=yes
6572 if test -n "$INTL_MACOSX_LIBS"; then
6573 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6574 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6575 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6576 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6580 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6581 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define ENABLE_NLS 1
6592 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6593 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6594 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6595 echo "${ECHO_T}$USE_NLS" >&6
6596 if test "$USE_NLS" = "yes"; then
6597 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6598 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6599 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6600 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6601 gt_source="external libintl"
6606 gt_source="included intl directory"
6608 echo "$as_me:$LINENO: result: $gt_source" >&5
6609 echo "${ECHO_T}$gt_source" >&6
6612 if test "$USE_NLS" = "yes"; then
6614 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6615 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6616 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6617 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6618 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6619 echo "${ECHO_T}$LIBINTL" >&6
6621 for element in $INCINTL; do
6623 for x in $CPPFLAGS; do
6625 acl_save_prefix="$prefix"
6626 prefix="$acl_final_prefix"
6627 acl_save_exec_prefix="$exec_prefix"
6628 exec_prefix="$acl_final_exec_prefix"
6630 exec_prefix="$acl_save_exec_prefix"
6631 prefix="$acl_save_prefix"
6633 if test "X$x" = "X$element"; then
6638 if test -z "$haveit"; then
6639 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_GETTEXT 1
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_DCGETTEXT 1
6669 if test x${prefix} = xNONE ; then
6670 if test `eval echo ${datadir}` = NONE/share ; then
6675 # ------------------------------------------------------------------
6676 # If the user has not set --prefix, we set our default to nothing.
6677 # In this case, if the user has not set --sysconfdir, we set it
6678 # to the package default of /etc/bacula. If either --prefix or
6679 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6680 # ------------------------------------------------------------------
6681 if test x${prefix} = xNONE ; then
6682 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6683 sysconfdir=/etc/bacula
6687 sysconfdir=`eval echo ${sysconfdir}`
6688 datadir=`eval echo ${datadir}`
6689 localedir=`eval echo ${datadir}/locale`
6690 cat >>confdefs.h <<_ACEOF
6691 #define LOCALEDIR "$localedir"
6695 # -------------------------------------------------------------------------
6696 # If the user has not set --exec-prefix, we default to ${prefix}
6697 # -------------------------------------------------------------------------
6698 if test x${exec_prefix} = xNONE ; then
6699 exec_prefix=${prefix}
6702 # ------------------------------------------------------------------
6703 # If the user has not set --sbindir, we set our default as /sbin
6704 # ------------------------------------------------------------------
6705 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6706 sbindir=${exec_prefix}/sbin
6708 sbindir=`eval echo ${sbindir}`
6710 # -------------------------------------------------------------------------
6711 # If the user has not set --mandir, we default to /usr/share/man
6712 # -------------------------------------------------------------------------
6713 if test x$mandir = x'${prefix}/man' ; then
6714 mandir=/usr/share/man
6718 # ------------------------------------------------------------------
6719 # All list of languages for which a translation exist. Each
6720 # language is separated by a space.
6721 # ------------------------------------------------------------------
6724 for ac_prog in msgfmt
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_path_MSGFMT+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 MSGFMT=$ac_cv_path_MSGFMT
6757 if test -n "$MSGFMT"; then
6758 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6759 echo "${ECHO_T}$MSGFMT" >&6
6761 echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6
6765 test -n "$MSGFMT" && break
6767 test -n "$MSGFMT" || MSGFMT="no"
6769 if test "$MSGFMT" = "no"
6771 echo 'msgfmt program not found, disabling NLS !'
6773 USE_INCLUDED_LIBINTL=no
6782 support_postgresql=no
6783 support_smartalloc=yes
6784 support_readline=yes
6787 support_wx_console=no
6791 support_static_tools=no
6792 support_static_fd=no
6793 support_static_sd=no
6794 support_static_dir=no
6795 support_static_cons=no
6797 build_client_only=no
6805 # -------------------------------------------
6806 # gnome (default off)
6807 # -------------------------------------------
6808 # Check whether --enable-gnome or --disable-gnome was given.
6809 if test "${enable_gnome+set}" = set; then
6810 enableval="$enable_gnome"
6811 if test x$enableval = xyes; then
6817 if test x$support_gnome = xyes; then
6818 abc=`$PKGCONFIG --exists libgnomeui-2.0`
6820 if test $pkg = 0; then
6821 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6822 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6823 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6824 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6829 GNOME_DIR=src/gnome2-console
6830 gnome_version="Version 2.x"
6832 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6833 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6834 { (exit 1); exit 1; }; }
6840 # -------------------------------------------
6841 # wx-console (default off)
6842 # -------------------------------------------
6843 # Check whether --enable-wx-console or --disable-wx-console was given.
6844 if test "${enable_wx_console+set}" = set; then
6845 enableval="$enable_wx_console"
6846 if test x$enableval = xyes; then
6847 support_wx_console=yes
6852 if test x$support_wx_console = xyes; then
6853 abc=`$WXCONFIG $WXFLAGS --cppflags`
6855 if test $pkg = 0; then
6856 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6857 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6858 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6862 WX_DIR=src/wx-console
6865 echo "wx-config program not found. wx-console disabled."
6867 support_wx_console=no
6873 # -------------------------------------------
6874 # tray-monitor (default off)
6875 # -------------------------------------------
6876 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6877 if test "${enable_tray_monitor+set}" = set; then
6878 enableval="$enable_tray_monitor"
6879 if test x$enableval = xyes; then
6880 support_tray_monitor=yes
6885 if test x$support_tray_monitor = xyes; then
6886 abc=`$PKGCONFIG --exists gtk+-2.0`
6888 if test $pkg = 0; then
6889 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6890 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6893 TRAY_MONITOR_DIR=src/tray-monitor
6894 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6896 if test $pkg = 0; then
6897 cat >>confdefs.h <<\_ACEOF
6898 #define HAVE_GTK_2_4 1
6906 # -------------------------------------------
6907 # smartalloc (default off)
6908 # -------------------------------------------
6909 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6910 if test "${enable_smartalloc+set}" = set; then
6911 enableval="$enable_smartalloc"
6912 if test x$enableval = xno; then
6913 support_smartalloc=no
6917 if test x$support_smartalloc = xyes; then
6918 cat >>confdefs.h <<\_ACEOF
6919 #define SMARTALLOC 1
6924 # -------------------------------------------
6925 # static-tools (default off)
6926 # -------------------------------------------
6927 # Check whether --enable-static-tools or --disable-static-tools was given.
6928 if test "${enable_static_tools+set}" = set; then
6929 enableval="$enable_static_tools"
6930 if test x$enableval = xyes; then
6931 support_static_tools=yes
6936 if test x$support_static_tools = xyes; then
6937 TTOOL_LDFLAGS="-static"
6941 # -------------------------------------------
6942 # static-fd (default off)
6943 # -------------------------------------------
6944 # Check whether --enable-static-fd or --disable-static-fd was given.
6945 if test "${enable_static_fd+set}" = set; then
6946 enableval="$enable_static_fd"
6947 if test x$enableval = xyes; then
6948 support_static_fd=yes
6953 if test x$support_static_fd = xyes; then
6954 STATIC_FD="static-bacula-fd"
6958 # -------------------------------------------
6959 # static-sd (default off)
6960 # -------------------------------------------
6961 # Check whether --enable-static-sd or --disable-static-sd was given.
6962 if test "${enable_static_sd+set}" = set; then
6963 enableval="$enable_static_sd"
6964 if test x$enableval = xyes; then
6965 support_static_sd=yes
6970 if test x$support_static_sd = xyes; then
6971 STATIC_SD="static-bacula-sd"
6975 # -------------------------------------------
6976 # static-dir (default off)
6977 # -------------------------------------------
6978 # Check whether --enable-static-dir or --disable-static-dir was given.
6979 if test "${enable_static_dir+set}" = set; then
6980 enableval="$enable_static_dir"
6981 if test x$enableval = xyes; then
6982 support_static_dir=yes
6987 if test x$support_static_dir = xyes; then
6988 STATIC_DIR="static-bacula-dir"
6992 # -------------------------------------------
6993 # static-cons (default off)
6994 # -------------------------------------------
6995 # Check whether --enable-static-cons or --disable-static-cons was given.
6996 if test "${enable_static_cons+set}" = set; then
6997 enableval="$enable_static_cons"
6998 if test x$enableval = xyes; then
6999 support_static_cons=yes
7006 if test x$support_static_cons = xyes; then
7007 STATIC_CONS="static-bconsole"
7008 STATIC_GNOME_CONS="static-gnome-console"
7009 STATIC_WX_CONS="static-wx-console"
7015 # -------------------------------------------
7016 # client_only (default off)
7017 # -------------------------------------------
7018 # Check whether --enable-client-only or --disable-client-only was given.
7019 if test "${enable_client_only+set}" = set; then
7020 enableval="$enable_client_only"
7021 if test x$enableval = xyes; then
7022 build_client_only=yes
7027 if test x$build_client_only = xno; then
7034 # -------------------------------------------
7035 # director (default on)
7036 # -------------------------------------------
7037 # Check whether --enable-build-dird or --disable-build-dird was given.
7038 if test "${enable_build_dird+set}" = set; then
7039 enableval="$enable_build_dird"
7040 if test x$enableval = xno; then
7044 if test x$build_dird = xyes; then
7046 DIR_TOOLS="DIRTOOLS"
7049 DIR_TOOLS="NODIRTOOLS"
7054 # -------------------------------------------
7055 # stored (default on)
7056 # -------------------------------------------
7057 # Check whether --enable-build-stored or --disable-build-stored was given.
7058 if test "${enable_build_stored+set}" = set; then
7059 enableval="$enable_build_stored"
7060 if test x$enableval = xno; then
7064 if test x$build_stored = xyes; then
7065 STORED_DIR="src/stored"
7071 # ---------------------------------------------------
7072 # Check for conio (Bacula readline substitute)(
7073 # ---------------------------------------------------
7074 # this allows you to turn it completely off
7075 # Check whether --enable-conio or --disable-conio was given.
7076 if test "${enable_conio+set}" = set; then
7077 enableval="$enable_conio"
7078 if test x$enableval = xno; then
7084 if test x$support_conio = xyes; then
7085 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7087 if test "${ac_cv_header_stdc+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest.$ac_objext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_header_stdc=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_header_stdc=no
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7140 if test $ac_cv_header_stdc = yes; then
7141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152 $EGREP "memchr" >/dev/null 2>&1; then
7155 ac_cv_header_stdc=no
7161 if test $ac_cv_header_stdc = yes; then
7162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7173 $EGREP "free" >/dev/null 2>&1; then
7176 ac_cv_header_stdc=no
7182 if test $ac_cv_header_stdc = yes; then
7183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7184 if test "$cross_compiling" = yes; then
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7194 #if ((' ' & 0x0FF) == 0x020)
7195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7198 # define ISLOWER(c) \
7199 (('a' <= (c) && (c) <= 'i') \
7200 || ('j' <= (c) && (c) <= 'r') \
7201 || ('s' <= (c) && (c) <= 'z'))
7202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7210 for (i = 0; i < 256; i++)
7211 if (XOR (islower (i), ISLOWER (i))
7212 || toupper (i) != TOUPPER (i))
7217 rm -f conftest$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219 (eval $ac_link) 2>&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7230 echo "$as_me: program exited with status $ac_status" >&5
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_cv_header_stdc=no
7237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7241 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7242 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7243 if test $ac_cv_header_stdc = yes; then
7245 cat >>confdefs.h <<\_ACEOF
7246 #define STDC_HEADERS 1
7251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7262 inttypes.h stdint.h unistd.h
7264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7265 echo "$as_me:$LINENO: checking for $ac_header" >&5
7266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 cat >conftest.$ac_ext <<_ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 $ac_includes_default
7278 #include <$ac_header>
7280 rm -f conftest.$ac_objext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>conftest.er1
7284 grep -v '^ *+' conftest.er1 >conftest.err
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -z "$ac_c_werror_flag"
7290 || test ! -s conftest.err'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 eval "$as_ac_Header=yes"
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 eval "$as_ac_Header=no"
7309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7314 cat >>confdefs.h <<_ACEOF
7315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7323 if test "${ac_cv_header_termcap_h+set}" = set; then
7324 echo "$as_me:$LINENO: checking for termcap.h" >&5
7325 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7326 if test "${ac_cv_header_termcap_h+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7330 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7332 # Is the header compilable?
7333 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7334 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 $ac_includes_default
7342 #include <termcap.h>
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_header_compiler=yes
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 ac_header_compiler=no
7373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7375 echo "${ECHO_T}$ac_header_compiler" >&6
7377 # Is the header present?
7378 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7379 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <termcap.h>
7388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } >/dev/null; then
7396 if test -s conftest.err; then
7397 ac_cpp_err=$ac_c_preproc_warn_flag
7398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7405 if test -z "$ac_cpp_err"; then
7406 ac_header_preproc=yes
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 ac_header_preproc=no
7413 rm -f conftest.err conftest.$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7415 echo "${ECHO_T}$ac_header_preproc" >&6
7417 # So? What about this header?
7418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7420 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7421 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7423 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7424 ac_header_preproc=yes
7427 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7428 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7429 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
7430 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
7431 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7432 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
7434 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7436 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7438 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7441 ## ------------------------------------------ ##
7442 ## Report this to the AC_PACKAGE_NAME lists. ##
7443 ## ------------------------------------------ ##
7446 sed "s/^/$as_me: WARNING: /" >&2
7449 echo "$as_me:$LINENO: checking for termcap.h" >&5
7450 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7451 if test "${ac_cv_header_termcap_h+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_cv_header_termcap_h=$ac_header_preproc
7456 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7457 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7460 if test $ac_cv_header_termcap_h = yes; then
7461 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7462 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7463 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_check_lib_save_LIBS=$LIBS
7467 LIBS="-ltermcap $LIBS"
7468 cat >conftest.$ac_ext <<_ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7475 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492 (eval $ac_link) 2>conftest.er1
7494 grep -v '^ *+' conftest.er1 >conftest.err
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest$ac_exeext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 ac_cv_lib_termcap_tgetent=yes
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7517 ac_cv_lib_termcap_tgetent=no
7519 rm -f conftest.err conftest.$ac_objext \
7520 conftest$ac_exeext conftest.$ac_ext
7521 LIBS=$ac_check_lib_save_LIBS
7523 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7524 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7525 if test $ac_cv_lib_termcap_tgetent = yes; then
7526 CONS_LIBS="-ltermcap"
7532 cat >>confdefs.h <<\_ACEOF
7533 #define HAVE_CONIO 1
7538 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7539 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7540 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 ac_check_lib_save_LIBS=$LIBS
7544 LIBS="-lncurses $LIBS"
7545 cat >conftest.$ac_ext <<_ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7552 /* Override any gcc2 internal prototype to avoid an error. */
7556 /* We use char because int might match the return type of a gcc2
7557 builtin and then its argument prototype would still apply. */
7567 rm -f conftest.$ac_objext conftest$ac_exeext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569 (eval $ac_link) 2>conftest.er1
7571 grep -v '^ *+' conftest.er1 >conftest.err
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -z "$ac_c_werror_flag"
7577 || test ! -s conftest.err'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; } &&
7583 { ac_try='test -s conftest$ac_exeext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 ac_cv_lib_ncurses_tgetent=yes
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 ac_cv_lib_ncurses_tgetent=no
7596 rm -f conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 LIBS=$ac_check_lib_save_LIBS
7600 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7601 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7602 if test $ac_cv_lib_ncurses_tgetent = yes; then
7603 CONS_LIBS="-lncurses"
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_CONIO 1
7623 for ac_header in curses.h
7625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7627 echo "$as_me:$LINENO: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7635 # Is the header compilable?
7636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 #include <$ac_header>
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7651 grep -v '^ *+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag"
7657 || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_header_compiler=yes
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_header_compiler=no
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7678 echo "${ECHO_T}$ac_header_compiler" >&6
7680 # Is the header present?
7681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 #include <$ac_header>
7691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } >/dev/null; then
7699 if test -s conftest.err; then
7700 ac_cpp_err=$ac_c_preproc_warn_flag
7701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7708 if test -z "$ac_cpp_err"; then
7709 ac_header_preproc=yes
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 ac_header_preproc=no
7716 rm -f conftest.err conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7718 echo "${ECHO_T}$ac_header_preproc" >&6
7720 # So? What about this header?
7721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7727 ac_header_preproc=yes
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7744 ## ------------------------------------------ ##
7745 ## Report this to the AC_PACKAGE_NAME lists. ##
7746 ## ------------------------------------------ ##
7749 sed "s/^/$as_me: WARNING: /" >&2
7752 echo "$as_me:$LINENO: checking for $ac_header" >&5
7753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 eval "$as_ac_Header=\$ac_header_preproc"
7759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772 echo "$as_me:$LINENO: checking for term.h" >&5
7773 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7774 if test "${ac_cv_header_term_h+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 cat >conftest.$ac_ext <<_ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7790 rm -f conftest.$ac_objext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792 (eval $ac_compile) 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } &&
7799 { ac_try='test -z "$ac_c_werror_flag"
7800 || test ! -s conftest.err'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; } &&
7806 { ac_try='test -s conftest.$ac_objext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 ac_cv_header_term_h=yes
7814 echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7817 ac_cv_header_term_h=no
7819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7822 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7823 if test $ac_cv_header_term_h = yes; then
7824 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7825 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7826 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 ac_check_lib_save_LIBS=$LIBS
7830 LIBS="-lcurses $LIBS"
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7838 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag"
7863 || test ! -s conftest.err'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; } &&
7869 { ac_try='test -s conftest$ac_exeext'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_lib_curses_tgetent=yes
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 ac_cv_lib_curses_tgetent=no
7882 rm -f conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7887 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7888 if test $ac_cv_lib_curses_tgetent = yes; then
7889 CONS_LIBS="-lcurses"
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_CONIO 1
7904 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7915 # ---------------------------------------------------
7916 # Check for readline support/directory (default off)
7917 # ---------------------------------------------------
7918 # this allows you to turn it completely off
7919 # Check whether --enable-readline or --disable-readline was given.
7920 if test "${enable_readline+set}" = set; then
7921 enableval="$enable_readline"
7922 if test x$enableval = xno; then
7929 if test x$support_readline = xyes; then
7931 # Check whether --with-readline or --without-readline was given.
7932 if test "${with_readline+set}" = set; then
7933 withval="$with_readline"
7935 case "$with_readline" in
7938 if test -f ${with_readline}/readline.h; then
7939 CONS_INC="-I${with_readline}"
7940 CONS_LDFLAGS="-L$with_readline"
7941 elif test -f ${with_readline}/include/readline/readline.h; then
7942 CONS_INC="-I${with_readline}/include/readline"
7943 CONS_LDFLAGS="-L${with_readline}/lib"
7944 with_readline="${with_readline}/include/readline"
7946 with_readline="/usr/include/readline"
7948 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7951 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7958 # Is the header compilable?
7959 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7960 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7968 #include <${with_readline}/readline.h>
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_c_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 ac_header_compiler=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_header_compiler=no
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8001 echo "${ECHO_T}$ac_header_compiler" >&6
8003 # Is the header present?
8004 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
8005 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <${with_readline}/readline.h>
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev/null; then
8022 if test -s conftest.err; then
8023 ac_cpp_err=$ac_c_preproc_warn_flag
8024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8031 if test -z "$ac_cpp_err"; then
8032 ac_header_preproc=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_header_preproc=no
8039 rm -f conftest.err conftest.$ac_ext
8040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8041 echo "${ECHO_T}$ac_header_preproc" >&6
8043 # So? What about this header?
8044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8046 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8047 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
8049 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
8050 ac_header_preproc=yes
8053 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8054 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
8056 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8058 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8060 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8062 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8064 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8067 ## ------------------------------------------ ##
8068 ## Report this to the AC_PACKAGE_NAME lists. ##
8069 ## ------------------------------------------ ##
8072 sed "s/^/$as_me: WARNING: /" >&2
8075 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8076 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 eval "$as_ac_Header=\$ac_header_preproc"
8082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8087 cat >>confdefs.h <<\_ACEOF
8088 #define HAVE_READLINE 1
8091 CONS_LIBS="-lreadline -lhistory -ltermcap"
8096 echo "readline.h not found. readline turned off ..."
8108 # check for standard readline library
8109 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8110 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8111 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8112 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8116 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8118 # Is the header compilable?
8119 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8120 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #include </usr/include/readline/readline.h>
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_header_compiler=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_header_compiler=no
8159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8161 echo "${ECHO_T}$ac_header_compiler" >&6
8163 # Is the header present?
8164 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8165 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 #include </usr/include/readline/readline.h>
8174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } >/dev/null; then
8182 if test -s conftest.err; then
8183 ac_cpp_err=$ac_c_preproc_warn_flag
8184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8191 if test -z "$ac_cpp_err"; then
8192 ac_header_preproc=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_header_preproc=no
8199 rm -f conftest.err conftest.$ac_ext
8200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8201 echo "${ECHO_T}$ac_header_preproc" >&6
8203 # So? What about this header?
8204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8206 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8207 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8208 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8209 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8210 ac_header_preproc=yes
8213 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8214 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
8216 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8218 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8220 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8222 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8224 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8227 ## ------------------------------------------ ##
8228 ## Report this to the AC_PACKAGE_NAME lists. ##
8229 ## ------------------------------------------ ##
8232 sed "s/^/$as_me: WARNING: /" >&2
8235 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8236 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8237 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8242 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8243 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8246 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8247 cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_READLINE 1
8252 CONS_INC="-I/usr/include/readline"
8253 CONS_LIBS="-lreadline -ltermcap"
8257 # Did not find standard library, so try Bacula's default
8258 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8261 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8268 # Is the header compilable?
8269 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8270 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8278 #include <${TOP_DIR}/depkgs/readline/readline.h>
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282 (eval $ac_compile) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_header_compiler=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_header_compiler=no
8309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 echo "${ECHO_T}$ac_header_compiler" >&6
8313 # Is the header present?
8314 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8315 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <${TOP_DIR}/depkgs/readline/readline.h>
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8327 grep -v '^ *+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } >/dev/null; then
8332 if test -s conftest.err; then
8333 ac_cpp_err=$ac_c_preproc_warn_flag
8334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8341 if test -z "$ac_cpp_err"; then
8342 ac_header_preproc=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_header_preproc=no
8349 rm -f conftest.err conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6
8353 # So? What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8356 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8359 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8360 ac_header_preproc=yes
8363 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8377 ## ------------------------------------------ ##
8378 ## Report this to the AC_PACKAGE_NAME lists. ##
8379 ## ------------------------------------------ ##
8382 sed "s/^/$as_me: WARNING: /" >&2
8385 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8386 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 eval "$as_ac_Header=\$ac_header_preproc"
8392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_READLINE 1
8402 CONS_INC="-I${TOP_DIR}/depkgs/readline"
8403 CONS_LIBS="-lreadline -lhistory -ltermcap"
8404 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8405 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8409 echo "readline.h not found. readline turned off ..."
8435 # Minimal stuff for readline Makefile configuration
8438 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8439 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8440 if test "${ac_cv_header_stat_broken+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 #include <sys/types.h>
8450 #include <sys/stat.h>
8452 #if defined(S_ISBLK) && defined(S_IFDIR)
8453 # if S_ISBLK (S_IFDIR)
8458 #if defined(S_ISBLK) && defined(S_IFCHR)
8459 # if S_ISBLK (S_IFCHR)
8464 #if defined(S_ISLNK) && defined(S_IFREG)
8465 # if S_ISLNK (S_IFREG)
8470 #if defined(S_ISSOCK) && defined(S_IFREG)
8471 # if S_ISSOCK (S_IFREG)
8477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478 $EGREP "You lose" >/dev/null 2>&1; then
8479 ac_cv_header_stat_broken=yes
8481 ac_cv_header_stat_broken=no
8486 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8487 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8488 if test $ac_cv_header_stat_broken = yes; then
8490 cat >>confdefs.h <<\_ACEOF
8491 #define STAT_MACROS_BROKEN 1
8502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8503 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8504 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8505 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 #include <sys/types.h>
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 eval "$as_ac_Header=yes"
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 eval "$as_ac_Header=no"
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561 cat >>confdefs.h <<_ACEOF
8562 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8565 ac_header_dirent=$ac_hdr; break
8569 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8570 if test $ac_header_dirent = dirent.h; then
8571 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8572 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8573 if test "${ac_cv_search_opendir+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 ac_func_search_save_LIBS=$LIBS
8577 ac_cv_search_opendir=no
8578 cat >conftest.$ac_ext <<_ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8585 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_search_opendir="none required"
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8628 rm -f conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8630 if test "$ac_cv_search_opendir" = no; then
8631 for ac_lib in dir; do
8632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8640 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657 (eval $ac_link) 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -z "$ac_c_werror_flag"
8665 || test ! -s conftest.err'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; } &&
8671 { ac_try='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_search_opendir="-l$ac_lib"
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8684 rm -f conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8688 LIBS=$ac_func_search_save_LIBS
8690 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8691 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8692 if test "$ac_cv_search_opendir" != no; then
8693 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8698 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8699 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8700 if test "${ac_cv_search_opendir+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 ac_func_search_save_LIBS=$LIBS
8704 ac_cv_search_opendir=no
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8712 /* Override any gcc2 internal prototype to avoid an error. */
8716 /* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729 (eval $ac_link) 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag"
8737 || test ! -s conftest.err'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_search_opendir="none required"
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8755 rm -f conftest.err conftest.$ac_objext \
8756 conftest$ac_exeext conftest.$ac_ext
8757 if test "$ac_cv_search_opendir" = no; then
8759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8760 cat >conftest.$ac_ext <<_ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8767 /* Override any gcc2 internal prototype to avoid an error. */
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>conftest.er1
8786 grep -v '^ *+' conftest.er1 >conftest.err
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -z "$ac_c_werror_flag"
8792 || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 ac_cv_search_opendir="-l$ac_lib"
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8811 rm -f conftest.err conftest.$ac_objext \
8812 conftest$ac_exeext conftest.$ac_ext
8815 LIBS=$ac_func_search_save_LIBS
8817 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8818 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8819 if test "$ac_cv_search_opendir" != no; then
8820 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8833 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
8835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8836 echo "$as_me:$LINENO: checking for $ac_func" >&5
8837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8838 if eval "test \"\${$as_ac_var+set}\" = set"; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8849 #define $ac_func innocuous_$ac_func
8851 /* System header to define __stub macros and hopefully few prototypes,
8852 which can conflict with char $ac_func (); below.
8853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8854 <limits.h> exists even on freestanding compilers. */
8857 # include <limits.h>
8859 # include <assert.h>
8864 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8872 /* The GNU C library defines this for functions which it implements
8873 to always fail with ENOSYS. Some functions are actually named
8874 something starting with __ and the normal name is an alias. */
8875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8878 char (*f) () = $ac_func;
8887 return f != $ac_func;
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894 (eval $ac_link) 2>conftest.er1
8896 grep -v '^ *+' conftest.er1 >conftest.err
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -z "$ac_c_werror_flag"
8902 || test ! -s conftest.err'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 eval "$as_ac_var=yes"
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 eval "$as_ac_var=no"
8921 rm -f conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8926 if test `eval echo '${'$as_ac_var'}'` = yes; then
8927 cat >>confdefs.h <<_ACEOF
8928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8936 for ac_func in nanosleep nl_langinfo
8938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8939 echo "$as_me:$LINENO: checking for $ac_func" >&5
8940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_var+set}\" = set"; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 cat >conftest.$ac_ext <<_ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8952 #define $ac_func innocuous_$ac_func
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char $ac_func (); below.
8956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957 <limits.h> exists even on freestanding compilers. */
8960 # include <limits.h>
8962 # include <assert.h>
8967 /* Override any gcc2 internal prototype to avoid an error. */
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8975 /* The GNU C library defines this for functions which it implements
8976 to always fail with ENOSYS. Some functions are actually named
8977 something starting with __ and the normal name is an alias. */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8981 char (*f) () = $ac_func;
8990 return f != $ac_func;
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 eval "$as_ac_var=yes"
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 eval "$as_ac_var=no"
9024 rm -f conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9029 if test `eval echo '${'$as_ac_var'}'` = yes; then
9030 cat >>confdefs.h <<_ACEOF
9031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9038 for ac_header in varargs.h
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042 echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 # Is the header compilable?
9051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9060 #include <$ac_header>
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_header_compiler=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_compiler=no
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093 echo "${ECHO_T}$ac_header_compiler" >&6
9095 # Is the header present?
9096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 #include <$ac_header>
9106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } >/dev/null; then
9114 if test -s conftest.err; then
9115 ac_cpp_err=$ac_c_preproc_warn_flag
9116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9123 if test -z "$ac_cpp_err"; then
9124 ac_header_preproc=yes
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159 ## ------------------------------------------ ##
9160 ## Report this to the AC_PACKAGE_NAME lists. ##
9161 ## ------------------------------------------ ##
9164 sed "s/^/$as_me: WARNING: /" >&2
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 eval "$as_ac_Header=\$ac_header_preproc"
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9188 # End of readline/conio stuff
9189 # -----------------------------------------------------------------------
9191 # -----------------------------------------------------------------------
9192 # Check for Python support
9194 echo "$as_me:$LINENO: checking for Python support" >&5
9195 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9197 # Check whether --with-python or --without-python was given.
9198 if test "${with_python+set}" = set; then
9199 withval="$with_python"
9203 if test "$withval" != "no"; then
9204 if test "$withval" = "yes"; then
9205 for python_root in /usr /usr/local; do
9206 if test -f $python_root/include/python2.2/Python.h; then
9207 PYTHON_INCDIR=-I$python_root/include/python2.2
9208 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9210 elif test -f $python_root/include/python2.3/Python.h; then
9211 PYTHON_INCDIR=-I$python_root/include/python2.3
9212 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9214 elif test -f $python_root/include/python2.4/Python.h; then
9215 PYTHON_INCDIR=-I$python_root/include/python2.4
9216 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9220 if test x$PYTHON_INCDIR = x; then
9221 if test -f $prefix/include/Python.h; then
9222 PYTHON_INCDIR=-I$prefix/include
9223 PYTHON_LIBS="-L$prefix/lib/config -lpython"
9225 echo "$as_me:$LINENO: result: no" >&5
9226 echo "${ECHO_T}no" >&6
9227 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9228 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9229 { (exit 1); exit 1; }; }
9233 if test -f $withval/Python.h; then
9234 PYTHON_INCDIR=-I$withval
9235 PYTHON_LIBS="-L$withval/config -lpython"
9236 elif test -f $withval/include/Python.h; then
9237 PYTHON_INCDIR=-I$withval/include
9238 PYTHON_LIBS="-L$withval/lib/config -lpython"
9239 elif test -f $withval/include/python/Python.h; then
9240 PYTHON_INCDIR=-I$withval/include/python
9241 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9243 echo "$as_me:$LINENO: result: no" >&5
9244 echo "${ECHO_T}no" >&6
9245 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9246 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9247 { (exit 1); exit 1; }; }
9250 cat >>confdefs.h <<\_ACEOF
9251 #define HAVE_PYTHON 1
9254 echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6
9257 { echo "$as_me:$LINENO: checking for more Python libs" >&5
9258 echo "$as_me: checking for more Python libs" >&6;}
9259 saved_LIBS="$LIBS"; LIBS=
9260 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9261 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9262 if test "${ac_cv_search_shm_open+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 ac_func_search_save_LIBS=$LIBS
9266 ac_cv_search_shm_open=no
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9274 /* Override any gcc2 internal prototype to avoid an error. */
9278 /* We use char because int might match the return type of a gcc2
9279 builtin and then its argument prototype would still apply. */
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag"
9299 || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_search_shm_open="none required"
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9317 rm -f conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
9319 if test "$ac_cv_search_shm_open" = no; then
9320 for ac_lib in rt; do
9321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any gcc2 internal prototype to avoid an error. */
9333 /* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag"
9354 || test ! -s conftest.err'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; } &&
9360 { ac_try='test -s conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_search_shm_open="-l$ac_lib"
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9373 rm -f conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9377 LIBS=$ac_func_search_save_LIBS
9379 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9380 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9381 if test "$ac_cv_search_shm_open" != no; then
9382 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9387 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9388 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9389 if test "${ac_cv_lib_util_openpty+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 ac_check_lib_save_LIBS=$LIBS
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9401 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_lib_util_openpty=yes
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_cv_lib_util_openpty=no
9445 rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9450 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9451 if test $ac_cv_lib_util_openpty = yes; then
9452 cat >>confdefs.h <<_ACEOF
9453 #define HAVE_LIBUTIL 1
9460 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9463 echo "$as_me:$LINENO: result: no" >&5
9464 echo "${ECHO_T}no" >&6
9469 echo "$as_me:$LINENO: result: no" >&5
9470 echo "${ECHO_T}no" >&6
9478 # Find where sockets are (especially for Solaris)
9479 # Do this before the TCP Wrappers test since tcp wrappers
9480 # uses the socket library and some linkers are stupid.
9482 echo "$as_me:$LINENO: checking for socket" >&5
9483 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9484 if test "${ac_cv_func_socket+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9495 #define socket innocuous_socket
9497 /* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char socket (); below.
9499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500 <limits.h> exists even on freestanding compilers. */
9503 # include <limits.h>
9505 # include <assert.h>
9510 /* Override any gcc2 internal prototype to avoid an error. */
9515 /* We use char because int might match the return type of a gcc2
9516 builtin and then its argument prototype would still apply. */
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined (__stub_socket) || defined (__stub___socket)
9524 char (*f) () = socket;
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9540 (eval $ac_link) 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag"
9548 || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try='test -s conftest$ac_exeext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_func_socket=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_func_socket=no
9567 rm -f conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9570 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9571 echo "${ECHO_T}$ac_cv_func_socket" >&6
9572 if test $ac_cv_func_socket = yes; then
9573 echo "$as_me:$LINENO: result: using libc's socket" >&5
9574 echo "${ECHO_T}using libc's socket" >&6
9577 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9578 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9579 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 ac_check_lib_save_LIBS=$LIBS
9584 cat >conftest.$ac_ext <<_ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9591 /* Override any gcc2 internal prototype to avoid an error. */
9595 /* We use char because int might match the return type of a gcc2
9596 builtin and then its argument prototype would still apply. */
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag"
9616 || test ! -s conftest.err'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; } &&
9622 { ac_try='test -s conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 ac_cv_lib_xnet_socket=yes
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_cv_lib_xnet_socket=no
9635 rm -f conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9639 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9640 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9641 if test $ac_cv_lib_xnet_socket = yes; then
9642 cat >>confdefs.h <<_ACEOF
9643 #define HAVE_LIBXNET 1
9651 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9652 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9653 if test "${ac_cv_lib_socket_socket+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lsocket $LIBS"
9658 cat >conftest.$ac_ext <<_ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9665 /* Override any gcc2 internal prototype to avoid an error. */
9669 /* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>conftest.er1
9684 grep -v '^ *+' conftest.er1 >conftest.err
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 ac_cv_lib_socket_socket=yes
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_cv_lib_socket_socket=no
9709 rm -f conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9714 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9715 if test $ac_cv_lib_socket_socket = yes; then
9716 cat >>confdefs.h <<_ACEOF
9717 #define HAVE_LIBSOCKET 1
9720 LIBS="-lsocket $LIBS"
9725 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9726 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9727 if test "${ac_cv_lib_inet_socket+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 ac_check_lib_save_LIBS=$LIBS
9732 cat >conftest.$ac_ext <<_ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9739 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_lib_inet_socket=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_cv_lib_inet_socket=no
9783 rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 LIBS=$ac_check_lib_save_LIBS
9787 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9788 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9789 if test $ac_cv_lib_inet_socket = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791 #define HAVE_LIBINET 1
9802 # -----------------------------------------------------------
9803 # Check whether user wants TCP wrappers support (default off)
9804 # -----------------------------------------------------------
9807 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9808 if test "${with_tcp_wrappers+set}" = set; then
9809 withval="$with_tcp_wrappers"
9811 if test "x$withval" != "xno" ; then
9813 LIBS="$saved_LIBS -lwrap"
9814 echo "$as_me:$LINENO: checking for libwrap" >&5
9815 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9816 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
9817 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
9818 if test "${ac_cv_search_nanosleep+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 ac_func_search_save_LIBS=$LIBS
9822 ac_cv_search_nanosleep=no
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9830 /* Override any gcc2 internal prototype to avoid an error. */
9834 /* We use char because int might match the return type of a gcc2
9835 builtin and then its argument prototype would still apply. */
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9849 grep -v '^ *+' conftest.er1 >conftest.err
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag"
9855 || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 ac_cv_search_nanosleep="none required"
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9873 rm -f conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 if test "$ac_cv_search_nanosleep" = no; then
9876 for ac_lib in rt; do
9877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -z "$ac_c_werror_flag"
9910 || test ! -s conftest.err'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_search_nanosleep="-l$ac_lib"
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9929 rm -f conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9933 LIBS=$ac_func_search_save_LIBS
9935 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
9936 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
9937 if test "$ac_cv_search_nanosleep" != no; then
9938 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 int deny_severity = 0;
9950 int allow_severity = 0;
9951 struct request_info *req;
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag"
9970 || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9983 echo "$as_me:$LINENO: result: yes" >&5
9984 echo "${ECHO_T}yes" >&6
9985 cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_LIBWRAP 1
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9996 LIBS="$saved_LIBS -lwrap -lnsl"
9997 cat >conftest.$ac_ext <<_ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10004 int deny_severity = 0;
10005 int allow_severity = 0;
10006 struct request_info *req;
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -z "$ac_c_werror_flag"
10025 || test ! -s conftest.err'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest$ac_exeext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10038 echo "$as_me:$LINENO: result: yes" >&5
10039 echo "${ECHO_T}yes" >&6
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_LIBWRAP 1
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
10051 echo "$as_me: error: *** libwrap missing" >&2;}
10052 { (exit 1); exit 1; }; }
10055 rm -f conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10059 rm -f conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10066 # -----------------------------------------------------------
10067 # Check whether OpenSSL is available
10068 # -----------------------------------------------------------
10069 echo "$as_me:$LINENO: checking for OpenSSL" >&5
10070 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
10072 # Check whether --with-openssl or --without-openssl was given.
10073 if test "${with_openssl+set}" = set; then
10074 withval="$with_openssl"
10075 with_openssl_directory=${withval}
10078 if test "x$with_openssl_directory" != "x"; then
10079 OPENSSL_LIBS="-lssl -lcrypto"
10082 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
10083 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
10084 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
10088 saved_CFLAGS="$CFLAGS"
10089 LIBS="$saved_LIBS $OPENSSL_LIBS"
10090 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 #include <openssl/ssl.h>
10102 CRYPTO_set_id_callback(NULL);
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
10111 grep -v '^ *+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10137 rm -f conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10141 CFLAGS="$saved_CFLAGS"
10143 if test "$support_tls" = "yes"; then
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_OPENSSL 1
10150 cat >>confdefs.h <<\_ACEOF
10161 echo "$as_me:$LINENO: result: $support_tls" >&5
10162 echo "${ECHO_T}$support_tls" >&6
10167 # -----------------------------------------------------------
10168 # Python and OpenSSL are using dlopen
10169 # -----------------------------------------------------------
10171 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
10172 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10173 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10174 if test "${ac_cv_search_dlopen+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 ac_func_search_save_LIBS=$LIBS
10178 ac_cv_search_dlopen=no
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10186 /* Override any gcc2 internal prototype to avoid an error. */
10190 /* We use char because int might match the return type of a gcc2
10191 builtin and then its argument prototype would still apply. */
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203 (eval $ac_link) 2>conftest.er1
10205 grep -v '^ *+' conftest.er1 >conftest.err
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try='test -z "$ac_c_werror_flag"
10211 || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ac_cv_search_dlopen="none required"
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10229 rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 if test "$ac_cv_search_dlopen" = no; then
10232 for ac_lib in dl; do
10233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10241 /* Override any gcc2 internal prototype to avoid an error. */
10245 /* We use char because int might match the return type of a gcc2
10246 builtin and then its argument prototype would still apply. */
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258 (eval $ac_link) 2>conftest.er1
10260 grep -v '^ *+' conftest.er1 >conftest.err
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_c_werror_flag"
10266 || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_search_dlopen="-l$ac_lib"
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10285 rm -f conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_func_search_save_LIBS
10291 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10292 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10293 if test "$ac_cv_search_dlopen" != no; then
10294 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10300 # ------------------------------------------
10301 # Where to place working dir
10302 # ------------------------------------------
10303 working_dir=`eval echo ${prefix}/var/bacula/working`
10305 # Check whether --with-working-dir or --without-working-dir was given.
10306 if test "${with_working_dir+set}" = set; then
10307 withval="$with_working_dir"
10309 if test "x$withval" != "xno" ; then
10310 working_dir=$withval
10319 # ------------------------------------------
10320 # Where to place scriptdir (script files)
10321 # ------------------------------------------
10322 scriptdir=`eval echo ${sysconfdir}`
10324 # Check whether --with-scriptdir or --without-scriptdir was given.
10325 if test "${with_scriptdir+set}" = set; then
10326 withval="$with_scriptdir"
10328 if test "x$withval" != "xno" ; then
10338 # ------------------------------------------
10339 # Where to send dump email
10340 # ------------------------------------------
10341 dump_email=root@localhost
10343 # Check whether --with-dump-email or --without-dump-email was given.
10344 if test "${with_dump_email+set}" = set; then
10345 withval="$with_dump_email"
10347 if test "x$withval" != "xno" ; then
10348 dump_email=$withval
10356 # ------------------------------------------
10357 # Where to send job email
10358 # ------------------------------------------
10359 job_email=root@localhost
10361 # Check whether --with-job-email or --without-job-email was given.
10362 if test "${with_job_email+set}" = set; then
10363 withval="$with_job_email"
10365 if test "x$withval" != "xno" ; then
10374 # ------------------------------------------
10375 # Where to find smtp host
10376 # ------------------------------------------
10377 smtp_host=localhost
10379 # Check whether --with-smtp_host or --without-smtp_host was given.
10380 if test "${with_smtp_host+set}" = set; then
10381 withval="$with_smtp_host"
10383 if test "x$withval" != "xno" ; then
10393 # ------------------------------------
10394 # Where to place pid files
10395 # ------------------------------------
10398 # Check whether --with-pid-dir or --without-pid-dir was given.
10399 if test "${with_pid_dir+set}" = set; then
10400 withval="$with_pid_dir"
10402 if test "x$withval" != "xno" ; then
10409 cat >>confdefs.h <<_ACEOF
10410 #define _PATH_BACULA_PIDDIR "$piddir"
10416 # ------------------------------------
10417 # Where to place subsys "lock file"
10418 # ------------------------------------
10419 subsysdir=/var/run/subsys
10421 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10422 if test "${with_subsys_dir+set}" = set; then
10423 withval="$with_subsys_dir"
10425 if test "x$withval" != "xno" ; then
10436 # ------------------------------------
10437 # Where to start assigning ports
10438 # ------------------------------------
10441 # Check whether --with-baseport or --without-baseport was given.
10442 if test "${with_baseport+set}" = set; then
10443 withval="$with_baseport"
10445 if test "x$withval" != "xno" ; then
10453 dir_port=`expr $baseport`
10454 fd_port=`expr $baseport + 1`
10455 sd_port=`expr $fd_port + 1`
10462 # ------------------------------------------
10463 # Generate passwords
10464 # ------------------------------------------
10467 # Check whether --with-dir-password or --without-dir-password was given.
10468 if test "${with_dir_password+set}" = set; then
10469 withval="$with_dir_password"
10471 if test "x$withval" != "xno" ; then
10472 dir_password=$withval
10478 if test "x$dir_password" = "x" ; then
10479 if test "x$OPENSSL" = "xnone" ; then
10480 key=`autoconf/randpass 33`
10482 key=`openssl rand -base64 33`
10489 # Check whether --with-fd-password or --without-fd-password was given.
10490 if test "${with_fd_password+set}" = set; then
10491 withval="$with_fd_password"
10493 if test "x$withval" != "xno" ; then
10494 fd_password=$withval
10500 if test "x$fd_password" = "x" ; then
10501 if test "x$OPENSSL" = "xnone" ; then
10502 key=`autoconf/randpass 37`
10504 key=`openssl rand -base64 33`
10511 # Check whether --with-sd-password or --without-sd-password was given.
10512 if test "${with_sd_password+set}" = set; then
10513 withval="$with_sd_password"
10515 if test "x$withval" != "xno" ; then
10516 sd_password=$withval
10522 if test "x$sd_password" = "x" ; then
10523 if test "x$OPENSSL" = "xnone" ; then
10524 key=`autoconf/randpass 41`
10526 key=`openssl rand -base64 33`
10533 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10534 if test "${with_mon_dir_password+set}" = set; then
10535 withval="$with_mon_dir_password"
10537 if test "x$withval" != "xno" ; then
10538 mon_dir_password=$withval
10544 if test "x$mon_dir_password" = "x" ; then
10545 if test "x$OPENSSL" = "xnone" ; then
10546 key=`autoconf/randpass 33`
10548 key=`openssl rand -base64 33`
10550 mon_dir_password=$key
10555 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10556 if test "${with_mon_fd_password+set}" = set; then
10557 withval="$with_mon_fd_password"
10559 if test "x$withval" != "xno" ; then
10560 mon_fd_password=$withval
10566 if test "x$mon_fd_password" = "x" ; then
10567 if test "x$OPENSSL" = "xnone" ; then
10568 key=`autoconf/randpass 37`
10570 key=`openssl rand -base64 33`
10572 mon_fd_password=$key
10577 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10578 if test "${with_mon_sd_password+set}" = set; then
10579 withval="$with_mon_sd_password"
10581 if test "x$withval" != "xno" ; then
10582 mon_sd_password=$withval
10588 if test "x$mon_sd_password" = "x" ; then
10589 if test "x$OPENSSL" = "xnone" ; then
10590 key=`autoconf/randpass 41`
10592 key=`openssl rand -base64 33`
10594 mon_sd_password=$key
10606 # Handle users and groups for each daemon
10610 # Check whether --with-dir_user or --without-dir_user was given.
10611 if test "${with_dir_user+set}" = set; then
10612 withval="$with_dir_user"
10614 if test "x$withval" != "x" ; then
10623 # Check whether --with-dir_group or --without-dir_group was given.
10624 if test "${with_dir_group+set}" = set; then
10625 withval="$with_dir_group"
10627 if test "x$withval" != "x" ; then
10636 # Check whether --with-sd_user or --without-sd_user was given.
10637 if test "${with_sd_user+set}" = set; then
10638 withval="$with_sd_user"
10640 if test "x$withval" != "x" ; then
10649 # Check whether --with-sd_group or --without-sd_group was given.
10650 if test "${with_sd_group+set}" = set; then
10651 withval="$with_sd_group"
10653 if test "x$withval" != "x" ; then
10662 # Check whether --with-fd_user or --without-fd_user was given.
10663 if test "${with_fd_user+set}" = set; then
10664 withval="$with_fd_user"
10666 if test "x$withval" != "x" ; then
10675 # Check whether --with-fd_group or --without-fd_group was given.
10676 if test "${with_fd_group+set}" = set; then
10677 withval="$with_fd_group"
10679 if test "x$withval" != "x" ; then
10697 # allow setting default executable permissions
10701 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10702 if test "${with_sbin_perm+set}" = set; then
10703 withval="$with_sbin_perm"
10705 if test "x$withval" != "x" ; then
10714 # ------------------------------------------------
10715 # Bacula check for various SQL database engines
10716 # ------------------------------------------------
10719 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10720 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10722 # Check whether --with-postgresql or --without-postgresql was given.
10723 if test "${with_postgresql+set}" = set; then
10724 withval="$with_postgresql"
10726 if test "$withval" != "no"; then
10727 if test "$db_found" = "yes"; then
10728 echo "$as_me:$LINENO: result: error" >&5
10729 echo "${ECHO_T}error" >&6
10730 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10731 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10732 { (exit 1); exit 1; }; };
10734 if test "$withval" = "yes"; then
10735 if test -f /usr/local/include/libpq-fe.h; then
10736 POSTGRESQL_INCDIR=/usr/local/include
10737 POSTGRESQL_LIBDIR=/usr/local/lib
10738 POSTGRESQL_BINDIR=/usr/local/bin
10739 elif test -f /usr/include/libpq-fe.h; then
10740 POSTGRESQL_INCDIR=/usr/include
10741 POSTGRESQL_LIBDIR=/usr/lib
10742 POSTGRESQL_BINDIR=/usr/bin
10743 elif test -f /usr/include/pgsql/libpq-fe.h; then
10744 POSTGRESQL_INCDIR=/usr/include/pgsql
10745 POSTGRESQL_LIBDIR=/usr/lib/pgsql
10746 POSTGRESQL_BINDIR=/usr/bin
10747 elif test -f /usr/include/postgresql/libpq-fe.h; then
10748 POSTGRESQL_INCDIR=/usr/include/postgresql
10749 POSTGRESQL_LIBDIR=/usr/lib/postgresql
10750 POSTGRESQL_BINDIR=/usr/bin
10752 echo "$as_me:$LINENO: result: no" >&5
10753 echo "${ECHO_T}no" >&6
10754 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10755 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10756 { (exit 1); exit 1; }; }
10758 elif test -f $withval/include/libpq-fe.h; then
10759 POSTGRESQL_INCDIR=$withval/include
10760 POSTGRESQL_LIBDIR=$withval/lib
10761 POSTGRESQL_BINDIR=$withval/bin
10762 elif test -f $withval/include/postgresql/libpq-fe.h; then
10763 POSTGRESQL_INCDIR=$withval/include/postgresql
10764 POSTGRESQL_LIBDIR=$withval/lib
10765 POSTGRESQL_BINDIR=$withval/bin
10767 echo "$as_me:$LINENO: result: no" >&5
10768 echo "${ECHO_T}no" >&6
10769 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10770 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10771 { (exit 1); exit 1; }; }
10773 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10774 echo "$as_me:$LINENO: checking for crypt" >&5
10775 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10776 if test "${ac_cv_func_crypt+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10787 #define crypt innocuous_crypt
10789 /* System header to define __stub macros and hopefully few prototypes,
10790 which can conflict with char crypt (); below.
10791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792 <limits.h> exists even on freestanding compilers. */
10795 # include <limits.h>
10797 # include <assert.h>
10802 /* Override any gcc2 internal prototype to avoid an error. */
10807 /* We use char because int might match the return type of a gcc2
10808 builtin and then its argument prototype would still apply. */
10810 /* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813 #if defined (__stub_crypt) || defined (__stub___crypt)
10816 char (*f) () = crypt;
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_cv_func_crypt=yes
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_cv_func_crypt=no
10859 rm -f conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10862 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10863 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10864 if test $ac_cv_func_crypt = yes; then
10867 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10868 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10869 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-lcrypt $LIBS"
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10881 /* Override any gcc2 internal prototype to avoid an error. */
10885 /* We use char because int might match the return type of a gcc2
10886 builtin and then its argument prototype would still apply. */
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898 (eval $ac_link) 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag"
10906 || test ! -s conftest.err'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10918 ac_cv_lib_crypt_crypt=yes
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_cv_lib_crypt_crypt=no
10925 rm -f conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10929 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10930 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10931 if test $ac_cv_lib_crypt_crypt = yes; then
10932 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10937 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10938 SQL_LFLAGS=$POSTGRESQL_LFLAGS
10939 SQL_BINDIR=$POSTGRESQL_BINDIR
10940 cat >>confdefs.h <<\_ACEOF
10941 #define HAVE_POSTGRESQL 1
10944 echo "$as_me:$LINENO: result: yes" >&5
10945 echo "${ECHO_T}yes" >&6
10947 support_postgresql=yes
10951 echo "$as_me:$LINENO: result: no" >&5
10952 echo "${ECHO_T}no" >&6
10957 echo "$as_me:$LINENO: result: no" >&5
10958 echo "${ECHO_T}no" >&6
10969 echo "$as_me:$LINENO: checking for MySQL support" >&5
10970 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10972 # Check whether --with-mysql or --without-mysql was given.
10973 if test "${with_mysql+set}" = set; then
10974 withval="$with_mysql"
10976 if test "$withval" != "no"; then
10977 if test "$withval" = "yes"; then
10978 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10979 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10980 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10981 MYSQL_BINDIR=/usr/local/mysql/bin
10982 elif test -f /usr/include/mysql/mysql.h; then
10983 MYSQL_INCDIR=/usr/include/mysql
10984 MYSQL_LIBDIR=/usr/lib/mysql
10985 MYSQL_BINDIR=/usr/bin
10986 elif test -f /usr/include/mysql.h; then
10987 MYSQL_INCDIR=/usr/include
10988 MYSQL_LIBDIR=/usr/lib
10989 MYSQL_BINDIR=/usr/bin
10990 elif test -f /usr/local/include/mysql/mysql.h; then
10991 MYSQL_INCDIR=/usr/local/include/mysql
10992 MYSQL_LIBDIR=/usr/local/lib/mysql
10993 MYSQL_BINDIR=/usr/local/bin
10994 elif test -f /usr/local/include/mysql.h; then
10995 MYSQL_INCDIR=/usr/local/include
10996 MYSQL_LIBDIR=/usr/local/lib
10997 MYSQL_BINDIR=/usr/local/bin
10999 echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6
11001 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
11002 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
11003 { (exit 1); exit 1; }; }
11006 if test -f $withval/include/mysql/mysql.h; then
11007 MYSQL_INCDIR=$withval/include/mysql
11008 MYSQL_LIBDIR=$withval/lib/mysql
11009 MYSQL_BINDIR=$withval/bin
11010 elif test -f $withval/include/mysql.h; then
11011 MYSQL_INCDIR=$withval/include
11012 MYSQL_LIBDIR=$withval/lib
11013 MYSQL_BINDIR=$withval/bin
11015 echo "$as_me:$LINENO: result: no" >&5
11016 echo "${ECHO_T}no" >&6
11017 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
11018 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
11019 { (exit 1); exit 1; }; }
11022 SQL_INCLUDE=-I$MYSQL_INCDIR
11023 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
11024 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
11025 cat >>confdefs.h <<\_ACEOF
11026 #define HAVE_THREAD_SAFE_MYSQL 1
11030 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
11032 SQL_BINDIR=$MYSQL_BINDIR
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_MYSQL 1
11038 echo "$as_me:$LINENO: result: yes" >&5
11039 echo "${ECHO_T}yes" >&6
11046 echo "$as_me:$LINENO: result: no" >&5
11047 echo "${ECHO_T}no" >&6
11054 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
11055 if test "${with_embedded_mysql+set}" = set; then
11056 withval="$with_embedded_mysql"
11058 if test "$withval" != "no"; then
11059 if test "$withval" = "yes"; then
11060 if test -f /usr/local/mysql/include/mysql/mysql.h; then
11061 MYSQL_INCDIR=/usr/local/mysql/include/mysql
11062 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
11063 MYSQL_BINDIR=/usr/local/mysql/bin
11064 elif test -f /usr/include/mysql/mysql.h; then
11065 MYSQL_INCDIR=/usr/include/mysql
11066 MYSQL_LIBDIR=/usr/lib/mysql
11067 MYSQL_BINDIR=/usr/bin
11068 elif test -f /usr/include/mysql.h; then
11069 MYSQL_INCDIR=/usr/include
11070 MYSQL_LIBDIR=/usr/lib
11071 MYSQL_BINDIR=/usr/bin
11072 elif test -f /usr/local/include/mysql/mysql.h; then
11073 MYSQL_INCDIR=/usr/local/include/mysql
11074 MYSQL_LIBDIR=/usr/local/lib/mysql
11075 MYSQL_BINDIR=/usr/local/bin
11076 elif test -f /usr/local/include/mysql.h; then
11077 MYSQL_INCDIR=/usr/local/include
11078 MYSQL_LIBDIR=/usr/local/lib
11079 MYSQL_BINDIR=/usr/local/bin
11081 echo "$as_me:$LINENO: result: no" >&5
11082 echo "${ECHO_T}no" >&6
11083 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
11084 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
11085 { (exit 1); exit 1; }; }
11088 if test -f $withval/include/mysql/mysql.h; then
11089 MYSQL_INCDIR=$withval/include/mysql
11090 MYSQL_LIBDIR=$withval/lib/mysql
11091 MYSQL_BINDIR=$withval/bin
11092 elif test -f $withval/include/mysql.h; then
11093 MYSQL_INCDIR=$withval/include
11094 MYSQL_LIBDIR=$withval/lib
11095 MYSQL_BINDIR=$withval/bin
11097 echo "$as_me:$LINENO: result: no" >&5
11098 echo "${ECHO_T}no" >&6
11099 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
11100 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
11101 { (exit 1); exit 1; }; }
11104 SQL_INCLUDE=-I$MYSQL_INCDIR
11105 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
11106 SQL_BINDIR=$MYSQL_BINDIR
11108 cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_MYSQL 1
11112 cat >>confdefs.h <<\_ACEOF
11113 #define HAVE_EMBEDDED_MYSQL 1
11116 echo "$as_me:$LINENO: result: yes" >&5
11117 echo "${ECHO_T}yes" >&6
11124 echo "$as_me:$LINENO: result: no" >&5
11125 echo "${ECHO_T}no" >&6
11140 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
11141 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
11143 # Check whether --with-sqlite3 or --without-sqlite3 was given.
11144 if test "${with_sqlite3+set}" = set; then
11145 withval="$with_sqlite3"
11147 if test "$withval" != "no"; then
11148 if test "$withval" = "yes"; then
11149 if test -f /usr/local/include/sqlite3.h; then
11150 SQLITE_INCDIR=/usr/local/include
11151 SQLITE_LIBDIR=/usr/local/lib
11152 SQLITE_BINDIR=/usr/local/bin
11153 elif test -f /usr/include/sqlite3.h; then
11154 SQLITE_INCDIR=/usr/include
11155 SQLITE_LIBDIR=/usr/lib
11156 SQLITE_BINDIR=/usr/bin
11157 elif test -f $prefix/include/sqlite3.h; then
11158 SQLITE_INCDIR=$prefix/include
11159 SQLITE_LIBDIR=$prefix/lib
11160 SQLITE_BINDIR=$prefix/bin
11162 echo "$as_me:$LINENO: result: no" >&5
11163 echo "${ECHO_T}no" >&6
11164 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
11165 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
11166 { (exit 1); exit 1; }; }
11169 if test -f $withval/sqlite3.h; then
11170 SQLITE_INCDIR=$withval
11171 SQLITE_LIBDIR=$withval
11172 SQLITE_BINDIR=$withval
11173 elif test -f $withval/include/sqlite3.h; then
11174 SQLITE_INCDIR=$withval/include
11175 SQLITE_LIBDIR=$withval/lib
11176 SQLITE_BINDIR=$withval/bin
11178 echo "$as_me:$LINENO: result: no" >&5
11179 echo "${ECHO_T}no" >&6
11180 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11181 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11182 { (exit 1); exit 1; }; }
11185 SQL_INCLUDE=-I$SQLITE_INCDIR
11186 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11187 SQL_BINDIR=$SQLITE_BINDIR
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_SQLITE3 1
11193 echo "$as_me:$LINENO: result: yes" >&5
11194 echo "${ECHO_T}yes" >&6
11196 support_sqlite3=yes
11201 echo "$as_me:$LINENO: result: no" >&5
11202 echo "${ECHO_T}no" >&6
11207 echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11219 echo "$as_me:$LINENO: checking for SQLite support" >&5
11220 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11222 # Check whether --with-sqlite or --without-sqlite was given.
11223 if test "${with_sqlite+set}" = set; then
11224 withval="$with_sqlite"
11226 if test "$withval" != "no"; then
11227 if test "$withval" = "yes"; then
11228 if test -f /usr/local/include/sqlite.h; then
11229 SQLITE_INCDIR=/usr/local/include
11230 SQLITE_LIBDIR=/usr/local/lib
11231 SQLITE_BINDIR=/usr/local/bin
11232 elif test -f /usr/include/sqlite.h; then
11233 SQLITE_INCDIR=/usr/include
11234 SQLITE_LIBDIR=/usr/lib
11235 SQLITE_BINDIR=/usr/bin
11236 elif test -f $prefix/include/sqlite.h; then
11237 SQLITE_INCDIR=$prefix/include
11238 SQLITE_LIBDIR=$prefix/lib
11239 SQLITE_BINDIR=$prefix/bin
11241 echo "$as_me:$LINENO: result: no" >&5
11242 echo "${ECHO_T}no" >&6
11243 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11244 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11245 { (exit 1); exit 1; }; }
11248 if test -f $withval/sqlite.h; then
11249 SQLITE_INCDIR=$withval
11250 SQLITE_LIBDIR=$withval
11251 SQLITE_BINDIR=$withval
11252 elif test -f $withval/include/sqlite.h; then
11253 SQLITE_INCDIR=$withval/include
11254 SQLITE_LIBDIR=$withval/lib
11255 SQLITE_BINDIR=$withval/bin
11257 echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6
11259 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11260 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11261 { (exit 1); exit 1; }; }
11264 SQL_INCLUDE=-I$SQLITE_INCDIR
11265 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11266 SQL_BINDIR=$SQLITE_BINDIR
11268 cat >>confdefs.h <<\_ACEOF
11269 #define HAVE_SQLITE 1
11272 echo "$as_me:$LINENO: result: yes" >&5
11273 echo "${ECHO_T}yes" >&6
11280 echo "$as_me:$LINENO: result: no" >&5
11281 echo "${ECHO_T}no" >&6
11286 echo "$as_me:$LINENO: result: no" >&5
11287 echo "${ECHO_T}no" >&6
11299 cat >>confdefs.h <<\_ACEOF
11300 #define PROTOTYPES 1
11304 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11305 if test -z "$CCOPTS"; then
11306 CCOPTS='-g -O2 -Wall'
11314 largefile_support="no"
11316 # Check whether --enable-largefile or --disable-largefile was given.
11317 if test "${enable_largefile+set}" = set; then
11318 enableval="$enable_largefile"
11321 if test "$enable_largefile" != no; then
11322 if test -n "$ac_tool_prefix"; then
11323 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11324 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11325 echo "$as_me:$LINENO: checking for $ac_word" >&5
11326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11327 if test "${ac_cv_prog_GETCONF+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 if test -n "$GETCONF"; then
11331 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11337 test -z "$as_dir" && as_dir=.
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11340 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 GETCONF=$ac_cv_prog_GETCONF
11350 if test -n "$GETCONF"; then
11351 echo "$as_me:$LINENO: result: $GETCONF" >&5
11352 echo "${ECHO_T}$GETCONF" >&6
11354 echo "$as_me:$LINENO: result: no" >&5
11355 echo "${ECHO_T}no" >&6
11359 if test -z "$ac_cv_prog_GETCONF"; then
11360 ac_ct_GETCONF=$GETCONF
11361 # Extract the first word of "getconf", so it can be a program name with args.
11362 set dummy getconf; ac_word=$2
11363 echo "$as_me:$LINENO: checking for $ac_word" >&5
11364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11365 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 if test -n "$ac_ct_GETCONF"; then
11369 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372 for as_dir in $PATH
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
11377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11378 ac_cv_prog_ac_ct_GETCONF="getconf"
11379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11388 if test -n "$ac_ct_GETCONF"; then
11389 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11390 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11392 echo "$as_me:$LINENO: result: no" >&5
11393 echo "${ECHO_T}no" >&6
11396 GETCONF=$ac_ct_GETCONF
11398 GETCONF="$ac_cv_prog_GETCONF"
11401 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11402 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11403 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11407 ac_cv_sys_largefile_CFLAGS=no
11409 # IRIX 6.2 and later require cc -n32.
11410 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11411 if test "$GCC" != yes; then
11412 ac_cv_sys_largefile_CFLAGS=-n32
11415 CC="$CC $ac_cv_sys_largefile_CFLAGS"
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11433 (eval $ac_link) 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag"
11441 || test ! -s conftest.err'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest$ac_exeext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_cv_sys_largefile_CFLAGS=no
11460 rm -f conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11466 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11467 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11468 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11469 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11470 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11474 ac_cv_sys_largefile_LDFLAGS=no
11478 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11479 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11480 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11481 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11482 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11486 ac_cv_sys_largefile_LIBS=no
11490 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11491 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11493 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11496 -D_FILE_OFFSET_BITS=*) ;;
11497 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11498 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11503 case "$CPPFLAGS" in
11504 '') CPPFLAGS="$ac_flag" ;;
11505 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11513 '') CFLAGS="$ac_flag" ;;
11514 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11519 case "$ac_cv_sys_largefile_LDFLAGS" in
11523 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11524 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11527 case "$ac_cv_sys_largefile_LIBS" in
11531 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11532 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11535 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11536 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11537 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 ac_cv_sys_file_offset_bits=no
11541 ac_cv_sys_file_offset_bits=64
11542 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11544 -D_FILE_OFFSET_BITS)
11545 ac_cv_sys_file_offset_bits=1 ;;
11546 -D_FILE_OFFSET_BITS=*)
11547 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11552 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11553 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11554 if test "$ac_cv_sys_file_offset_bits" != no; then
11556 cat >>confdefs.h <<_ACEOF
11557 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11561 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11562 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11563 if test "${ac_cv_sys_largefile_source+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 ac_cv_sys_largefile_source=no
11567 ac_cv_sys_largefile_source=1
11568 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11570 -D_LARGEFILE_SOURCE)
11571 ac_cv_sys_largefile_source=1 ;;
11572 -D_LARGEFILE_SOURCE=*)
11573 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11578 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11579 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11580 if test "$ac_cv_sys_largefile_source" != no; then
11582 cat >>confdefs.h <<_ACEOF
11583 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11587 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11588 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11589 if test "${ac_cv_sys_large_files+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 ac_cv_sys_large_files=no
11593 ac_cv_sys_large_files=1
11594 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11597 ac_cv_sys_large_files=1 ;;
11599 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11604 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11605 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11606 if test "$ac_cv_sys_large_files" != no; then
11608 cat >>confdefs.h <<_ACEOF
11609 #define _LARGE_FILES $ac_cv_sys_large_files
11617 echo "$as_me:$LINENO: checking for X" >&5
11618 echo $ECHO_N "checking for X... $ECHO_C" >&6
11621 # Check whether --with-x or --without-x was given.
11622 if test "${with_x+set}" = set; then
11626 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11627 if test "x$with_x" = xno; then
11628 # The user explicitly disabled X.
11631 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11632 # Both variables are already set.
11635 if test "${ac_cv_have_x+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 # One or both of the vars are not set, and there is no cached value.
11639 ac_x_includes=no ac_x_libraries=no
11640 rm -fr conftest.dir
11641 if mkdir conftest.dir; then
11643 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11644 cat >Imakefile <<'_ACEOF'
11646 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11648 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11649 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11650 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11651 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11652 for ac_extension in a so sl; do
11653 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11654 test -f $ac_im_libdir/libX11.$ac_extension; then
11655 ac_im_usrlibdir=$ac_im_libdir; break
11658 # Screen out bogus values from the imake configuration. They are
11659 # bogus both because they are the default anyway, and because
11660 # using them would break gcc on systems where it needs fixed includes.
11661 case $ac_im_incroot in
11663 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11665 case $ac_im_usrlibdir in
11666 /usr/lib | /lib) ;;
11667 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11671 rm -fr conftest.dir
11674 # Standard set of common directories for X headers.
11675 # Check X11 before X11Rn because it is often a symlink to the current release.
11687 /usr/local/X11/include
11688 /usr/local/X11R6/include
11689 /usr/local/X11R5/include
11690 /usr/local/X11R4/include
11692 /usr/local/include/X11
11693 /usr/local/include/X11R6
11694 /usr/local/include/X11R5
11695 /usr/local/include/X11R4
11699 /usr/XFree86/include/X11
11703 /usr/unsupported/include
11704 /usr/athena/include
11705 /usr/local/x11r5/include
11706 /usr/lpp/Xamples/include
11708 /usr/openwin/include
11709 /usr/openwin/share/include'
11711 if test "$ac_x_includes" = no; then
11712 # Guess where to find include files, by looking for Intrinsic.h.
11713 # First, try using that file with no special directory specified.
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 #include <X11/Intrinsic.h>
11722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11725 grep -v '^ *+' conftest.er1 >conftest.err
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } >/dev/null; then
11730 if test -s conftest.err; then
11731 ac_cpp_err=$ac_c_preproc_warn_flag
11732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11739 if test -z "$ac_cpp_err"; then
11740 # We can compile using X headers with no special include directory.
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 for ac_dir in $ac_x_header_dirs; do
11747 if test -r "$ac_dir/X11/Intrinsic.h"; then
11748 ac_x_includes=$ac_dir
11753 rm -f conftest.err conftest.$ac_ext
11754 fi # $ac_x_includes = no
11756 if test "$ac_x_libraries" = no; then
11757 # Check for the libraries.
11758 # See if we find them without any special options.
11759 # Don't add to $LIBS permanently.
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #include <X11/Intrinsic.h>
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779 (eval $ac_link) 2>conftest.er1
11781 grep -v '^ *+' conftest.er1 >conftest.err
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } &&
11786 { ac_try='test -z "$ac_c_werror_flag"
11787 || test ! -s conftest.err'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11800 # We can link X programs with no special library path.
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11807 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11809 # Don't even attempt the hair of trying to link an X program!
11810 for ac_extension in a so sl; do
11811 if test -r $ac_dir/libXt.$ac_extension; then
11812 ac_x_libraries=$ac_dir
11818 rm -f conftest.err conftest.$ac_objext \
11819 conftest$ac_exeext conftest.$ac_ext
11820 fi # $ac_x_libraries = no
11822 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11823 # Didn't find X anywhere. Cache the known absence of X.
11824 ac_cv_have_x="have_x=no"
11826 # Record where we found X for the cache.
11827 ac_cv_have_x="have_x=yes \
11828 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11833 eval "$ac_cv_have_x"
11836 if test "$have_x" != yes; then
11837 echo "$as_me:$LINENO: result: $have_x" >&5
11838 echo "${ECHO_T}$have_x" >&6
11841 # If each of the values was on the command line, it overrides each guess.
11842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11844 # Update the cache value to reflect the command line values.
11845 ac_cv_have_x="have_x=yes \
11846 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11847 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11848 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11851 if test "$no_x" = yes; then
11852 # Not all programs may use this symbol, but it does not hurt to define it.
11854 cat >>confdefs.h <<\_ACEOF
11855 #define X_DISPLAY_MISSING 1
11858 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11860 if test -n "$x_includes"; then
11861 X_CFLAGS="$X_CFLAGS -I$x_includes"
11864 # It would also be nice to do this for all -L options, not just this one.
11865 if test -n "$x_libraries"; then
11866 X_LIBS="$X_LIBS -L$x_libraries"
11867 # For Solaris; some versions of Sun CC require a space after -R and
11868 # others require no space. Words are not sufficient . . . .
11869 case `(uname -sr) 2>/dev/null` in
11871 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11872 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11873 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891 (eval $ac_link) 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11918 rm -f conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11920 if test $ac_R_nospace = yes; then
11921 echo "$as_me:$LINENO: result: no" >&5
11922 echo "${ECHO_T}no" >&6
11923 X_LIBS="$X_LIBS -R$x_libraries"
11925 LIBS="$ac_xsave_LIBS -R $x_libraries"
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943 (eval $ac_link) 2>conftest.er1
11945 grep -v '^ *+' conftest.er1 >conftest.err
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -z "$ac_c_werror_flag"
11951 || test ! -s conftest.err'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest$ac_exeext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11970 rm -f conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 if test $ac_R_space = yes; then
11973 echo "$as_me:$LINENO: result: yes" >&5
11974 echo "${ECHO_T}yes" >&6
11975 X_LIBS="$X_LIBS -R $x_libraries"
11977 echo "$as_me:$LINENO: result: neither works" >&5
11978 echo "${ECHO_T}neither works" >&6
11981 LIBS=$ac_xsave_LIBS
11985 # Check for system-dependent libraries X programs must link with.
11986 # Do this before checking for the system-independent R6 libraries
11987 # (-lICE), since we may need -lsocket or whatever for X linking.
11989 if test "$ISC" = yes; then
11990 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11992 # Martyn Johnson says this is needed for Ultrix, if the X
11993 # libraries were built with DECnet support. And Karl Berry says
11994 # the Alpha needs dnet_stub (dnet does not exist).
11995 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11996 cat >conftest.$ac_ext <<_ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12003 /* Override any gcc2 internal prototype to avoid an error. */
12007 /* We use char because int might match the return type of a gcc2
12008 builtin and then its argument prototype would still apply. */
12009 char XOpenDisplay ();
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>conftest.er1
12022 grep -v '^ *+' conftest.er1 >conftest.err
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
12046 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
12047 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-ldnet $LIBS"
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 /* Override any gcc2 internal prototype to avoid an error. */
12063 /* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076 (eval $ac_link) 2>conftest.er1
12078 grep -v '^ *+' conftest.er1 >conftest.err
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag"
12084 || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest$ac_exeext'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_cv_lib_dnet_dnet_ntoa=yes
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ac_cv_lib_dnet_dnet_ntoa=no
12103 rm -f conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12107 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12108 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12109 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
12110 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12113 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12114 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
12115 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
12116 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-ldnet_stub $LIBS"
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12128 /* Override any gcc2 internal prototype to avoid an error. */
12132 /* We use char because int might match the return type of a gcc2
12133 builtin and then its argument prototype would still apply. */
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145 (eval $ac_link) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1 >conftest.err
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 ac_cv_lib_dnet_stub_dnet_ntoa=no
12172 rm -f conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12176 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12177 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12178 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12179 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12184 rm -f conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS="$ac_xsave_LIBS"
12188 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12189 # to get the SysV transport functions.
12190 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12192 # The nsl library prevents programs from opening the X display
12193 # on Irix 5.2, according to T.E. Dickey.
12194 # The functions gethostbyname, getservbyname, and inet_addr are
12195 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12196 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12197 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12198 if test "${ac_cv_func_gethostbyname+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 cat >conftest.$ac_ext <<_ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12209 #define gethostbyname innocuous_gethostbyname
12211 /* System header to define __stub macros and hopefully few prototypes,
12212 which can conflict with char gethostbyname (); below.
12213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214 <limits.h> exists even on freestanding compilers. */
12217 # include <limits.h>
12219 # include <assert.h>
12222 #undef gethostbyname
12224 /* Override any gcc2 internal prototype to avoid an error. */
12229 /* We use char because int might match the return type of a gcc2
12230 builtin and then its argument prototype would still apply. */
12231 char gethostbyname ();
12232 /* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12238 char (*f) () = gethostbyname;
12247 return f != gethostbyname;
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254 (eval $ac_link) 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag"
12262 || test ! -s conftest.err'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest$ac_exeext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 ac_cv_func_gethostbyname=yes
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 ac_cv_func_gethostbyname=no
12281 rm -f conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12284 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12285 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12287 if test $ac_cv_func_gethostbyname = no; then
12288 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12289 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12290 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 ac_check_lib_save_LIBS=$LIBS
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12302 /* Override any gcc2 internal prototype to avoid an error. */
12306 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */
12308 char gethostbyname ();
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_c_werror_flag"
12327 || test ! -s conftest.err'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest$ac_exeext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_lib_nsl_gethostbyname=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_cv_lib_nsl_gethostbyname=no
12346 rm -f conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12350 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12351 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12352 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12356 if test $ac_cv_lib_nsl_gethostbyname = no; then
12357 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12358 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12359 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 ac_check_lib_save_LIBS=$LIBS
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12371 /* Override any gcc2 internal prototype to avoid an error. */
12375 /* We use char because int might match the return type of a gcc2
12376 builtin and then its argument prototype would still apply. */
12377 char gethostbyname ();
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12388 (eval $ac_link) 2>conftest.er1
12390 grep -v '^ *+' conftest.er1 >conftest.err
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag"
12396 || test ! -s conftest.err'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; } &&
12402 { ac_try='test -s conftest$ac_exeext'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 ac_cv_lib_bsd_gethostbyname=yes
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12413 ac_cv_lib_bsd_gethostbyname=no
12415 rm -f conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12419 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12420 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12421 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12428 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12429 # socket/setsockopt and other routines are undefined under SCO ODT
12430 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12431 # on later versions), says Simon Leinen: it contains gethostby*
12432 # variants that don't use the name server (or something). -lsocket
12433 # must be given before -lnsl if both are needed. We assume that
12434 # if connect needs -lnsl, so does gethostbyname.
12435 echo "$as_me:$LINENO: checking for connect" >&5
12436 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12437 if test "${ac_cv_func_connect+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12448 #define connect innocuous_connect
12450 /* System header to define __stub macros and hopefully few prototypes,
12451 which can conflict with char connect (); below.
12452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12453 <limits.h> exists even on freestanding compilers. */
12456 # include <limits.h>
12458 # include <assert.h>
12463 /* Override any gcc2 internal prototype to avoid an error. */
12468 /* We use char because int might match the return type of a gcc2
12469 builtin and then its argument prototype would still apply. */
12471 /* The GNU C library defines this for functions which it implements
12472 to always fail with ENOSYS. Some functions are actually named
12473 something starting with __ and the normal name is an alias. */
12474 #if defined (__stub_connect) || defined (__stub___connect)
12477 char (*f) () = connect;
12486 return f != connect;
12491 rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493 (eval $ac_link) 2>conftest.er1
12495 grep -v '^ *+' conftest.er1 >conftest.err
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try='test -z "$ac_c_werror_flag"
12501 || test ! -s conftest.err'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_func_connect=yes
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 ac_cv_func_connect=no
12520 rm -f conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12524 echo "${ECHO_T}$ac_cv_func_connect" >&6
12526 if test $ac_cv_func_connect = no; then
12527 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12528 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12529 if test "${ac_cv_lib_socket_connect+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12534 cat >conftest.$ac_ext <<_ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12541 /* Override any gcc2 internal prototype to avoid an error. */
12545 /* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12558 (eval $ac_link) 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag"
12566 || test ! -s conftest.err'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest$ac_exeext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_cv_lib_socket_connect=yes
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_cv_lib_socket_connect=no
12585 rm -f conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12587 LIBS=$ac_check_lib_save_LIBS
12589 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12590 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12591 if test $ac_cv_lib_socket_connect = yes; then
12592 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12597 # Guillermo Gomez says -lposix is necessary on A/UX.
12598 echo "$as_me:$LINENO: checking for remove" >&5
12599 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12600 if test "${ac_cv_func_remove+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 cat >conftest.$ac_ext <<_ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12611 #define remove innocuous_remove
12613 /* System header to define __stub macros and hopefully few prototypes,
12614 which can conflict with char remove (); below.
12615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616 <limits.h> exists even on freestanding compilers. */
12619 # include <limits.h>
12621 # include <assert.h>
12626 /* Override any gcc2 internal prototype to avoid an error. */
12631 /* We use char because int might match the return type of a gcc2
12632 builtin and then its argument prototype would still apply. */
12634 /* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637 #if defined (__stub_remove) || defined (__stub___remove)
12640 char (*f) () = remove;
12649 return f != remove;
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656 (eval $ac_link) 2>conftest.er1
12658 grep -v '^ *+' conftest.er1 >conftest.err
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag"
12664 || test ! -s conftest.err'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_cv_func_remove=yes
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12681 ac_cv_func_remove=no
12683 rm -f conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12687 echo "${ECHO_T}$ac_cv_func_remove" >&6
12689 if test $ac_cv_func_remove = no; then
12690 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12691 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12692 if test "${ac_cv_lib_posix_remove+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 ac_check_lib_save_LIBS=$LIBS
12696 LIBS="-lposix $LIBS"
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12704 /* Override any gcc2 internal prototype to avoid an error. */
12708 /* We use char because int might match the return type of a gcc2
12709 builtin and then its argument prototype would still apply. */
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721 (eval $ac_link) 2>conftest.er1
12723 grep -v '^ *+' conftest.er1 >conftest.err
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -z "$ac_c_werror_flag"
12729 || test ! -s conftest.err'
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); }; } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 ac_cv_lib_posix_remove=yes
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_cv_lib_posix_remove=no
12748 rm -f conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12752 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12753 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12754 if test $ac_cv_lib_posix_remove = yes; then
12755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12760 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12761 echo "$as_me:$LINENO: checking for shmat" >&5
12762 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12763 if test "${ac_cv_func_shmat+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 cat >conftest.$ac_ext <<_ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12774 #define shmat innocuous_shmat
12776 /* System header to define __stub macros and hopefully few prototypes,
12777 which can conflict with char shmat (); below.
12778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12779 <limits.h> exists even on freestanding compilers. */
12782 # include <limits.h>
12784 # include <assert.h>
12789 /* Override any gcc2 internal prototype to avoid an error. */
12794 /* We use char because int might match the return type of a gcc2
12795 builtin and then its argument prototype would still apply. */
12797 /* The GNU C library defines this for functions which it implements
12798 to always fail with ENOSYS. Some functions are actually named
12799 something starting with __ and the normal name is an alias. */
12800 #if defined (__stub_shmat) || defined (__stub___shmat)
12803 char (*f) () = shmat;
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819 (eval $ac_link) 2>conftest.er1
12821 grep -v '^ *+' conftest.er1 >conftest.err
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag"
12827 || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest$ac_exeext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_cv_func_shmat=yes
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ac_cv_func_shmat=no
12846 rm -f conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12849 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12850 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12852 if test $ac_cv_func_shmat = no; then
12853 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12854 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12855 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 ac_check_lib_save_LIBS=$LIBS
12860 cat >conftest.$ac_ext <<_ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12867 /* Override any gcc2 internal prototype to avoid an error. */
12871 /* We use char because int might match the return type of a gcc2
12872 builtin and then its argument prototype would still apply. */
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag"
12892 || test ! -s conftest.err'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; } &&
12898 { ac_try='test -s conftest$ac_exeext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_cv_lib_ipc_shmat=yes
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 ac_cv_lib_ipc_shmat=no
12911 rm -f conftest.err conftest.$ac_objext \
12912 conftest$ac_exeext conftest.$ac_ext
12913 LIBS=$ac_check_lib_save_LIBS
12915 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12917 if test $ac_cv_lib_ipc_shmat = yes; then
12918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12924 # Check for libraries that X11R6 Xt/Xaw programs need.
12925 ac_save_LDFLAGS=$LDFLAGS
12926 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12927 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12928 # check for ICE first), but we must link in the order -lSM -lICE or
12929 # we get undefined symbols. So assume we have SM if we have ICE.
12930 # These have to be linked with before -lX11, unlike the other
12931 # libraries we check for below, so use a different variable.
12932 # John Interrante, Karl Berry
12933 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 ac_check_lib_save_LIBS=$LIBS
12939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12947 /* Override any gcc2 internal prototype to avoid an error. */
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953 char IceConnectionNumber ();
12957 IceConnectionNumber ();
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964 (eval $ac_link) 2>conftest.er1
12966 grep -v '^ *+' conftest.er1 >conftest.err
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag"
12972 || test ! -s conftest.err'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest$ac_exeext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_cv_lib_ICE_IceConnectionNumber=yes
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ac_cv_lib_ICE_IceConnectionNumber=no
12991 rm -f conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12993 LIBS=$ac_check_lib_save_LIBS
12995 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12996 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12997 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12998 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13001 LDFLAGS=$ac_save_LDFLAGS
13063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13065 echo "$as_me:$LINENO: checking for $ac_header" >&5
13066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13073 # Is the header compilable?
13074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13076 cat >conftest.$ac_ext <<_ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 $ac_includes_default
13083 #include <$ac_header>
13085 rm -f conftest.$ac_objext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087 (eval $ac_compile) 2>conftest.er1
13089 grep -v '^ *+' conftest.er1 >conftest.err
13091 cat conftest.err >&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } &&
13094 { ac_try='test -z "$ac_c_werror_flag"
13095 || test ! -s conftest.err'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_header_compiler=yes
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13112 ac_header_compiler=no
13114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13116 echo "${ECHO_T}$ac_header_compiler" >&6
13118 # Is the header present?
13119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13121 cat >conftest.$ac_ext <<_ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 #include <$ac_header>
13129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } >/dev/null; then
13137 if test -s conftest.err; then
13138 ac_cpp_err=$ac_c_preproc_warn_flag
13139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13146 if test -z "$ac_cpp_err"; then
13147 ac_header_preproc=yes
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_header_preproc=no
13154 rm -f conftest.err conftest.$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13156 echo "${ECHO_T}$ac_header_preproc" >&6
13158 # So? What about this header?
13159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13165 ac_header_preproc=yes
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13182 ## ------------------------------------------ ##
13183 ## Report this to the AC_PACKAGE_NAME lists. ##
13184 ## ------------------------------------------ ##
13187 sed "s/^/$as_me: WARNING: /" >&2
13190 echo "$as_me:$LINENO: checking for $ac_header" >&5
13191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 eval "$as_ac_Header=\$ac_header_preproc"
13197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13202 cat >>confdefs.h <<_ACEOF
13203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13210 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13211 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13212 if test "${ac_cv_header_stdc+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 #include <stdlib.h>
13222 #include <stdarg.h>
13223 #include <string.h>
13234 rm -f conftest.$ac_objext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13238 grep -v '^ *+' conftest.er1 >conftest.err
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_cv_header_stdc=yes
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13261 ac_cv_header_stdc=no
13263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13265 if test $ac_cv_header_stdc = yes; then
13266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13267 cat >conftest.$ac_ext <<_ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 #include <string.h>
13276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13277 $EGREP "memchr" >/dev/null 2>&1; then
13280 ac_cv_header_stdc=no
13286 if test $ac_cv_header_stdc = yes; then
13287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 #include <stdlib.h>
13297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13298 $EGREP "free" >/dev/null 2>&1; then
13301 ac_cv_header_stdc=no
13307 if test $ac_cv_header_stdc = yes; then
13308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13309 if test "$cross_compiling" = yes; then
13312 cat >conftest.$ac_ext <<_ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13319 #if ((' ' & 0x0FF) == 0x020)
13320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13323 # define ISLOWER(c) \
13324 (('a' <= (c) && (c) <= 'i') \
13325 || ('j' <= (c) && (c) <= 'r') \
13326 || ('s' <= (c) && (c) <= 'z'))
13327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13335 for (i = 0; i < 256; i++)
13336 if (XOR (islower (i), ISLOWER (i))
13337 || toupper (i) != TOUPPER (i))
13342 rm -f conftest$ac_exeext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13344 (eval $ac_link) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13355 echo "$as_me: program exited with status $ac_status" >&5
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13359 ( exit $ac_status )
13360 ac_cv_header_stdc=no
13362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13368 if test $ac_cv_header_stdc = yes; then
13370 cat >>confdefs.h <<\_ACEOF
13371 #define STDC_HEADERS 1
13376 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13377 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13378 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 cat >conftest.$ac_ext <<_ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13387 #include <sys/types.h>
13391 return makedev(0, 0);
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13398 (eval $ac_link) 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_header_sys_types_h_makedev=yes
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_cv_header_sys_types_h_makedev=no
13425 rm -f conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext conftest.$ac_ext
13429 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13430 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13432 if test $ac_cv_header_sys_types_h_makedev = no; then
13433 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13434 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13435 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13436 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13440 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13442 # Is the header compilable?
13443 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13444 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 $ac_includes_default
13452 #include <sys/mkdev.h>
13454 rm -f conftest.$ac_objext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>conftest.er1
13458 grep -v '^ *+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -z "$ac_c_werror_flag"
13464 || test ! -s conftest.err'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; } &&
13470 { ac_try='test -s conftest.$ac_objext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_header_compiler=yes
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 ac_header_compiler=no
13483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13485 echo "${ECHO_T}$ac_header_compiler" >&6
13487 # Is the header present?
13488 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13489 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 #include <sys/mkdev.h>
13498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } >/dev/null; then
13506 if test -s conftest.err; then
13507 ac_cpp_err=$ac_c_preproc_warn_flag
13508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13515 if test -z "$ac_cpp_err"; then
13516 ac_header_preproc=yes
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 ac_header_preproc=no
13523 rm -f conftest.err conftest.$ac_ext
13524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13525 echo "${ECHO_T}$ac_header_preproc" >&6
13527 # So? What about this header?
13528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13531 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13532 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13533 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13534 ac_header_preproc=yes
13537 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13538 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
13540 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13542 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
13544 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13546 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13548 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13551 ## ------------------------------------------ ##
13552 ## Report this to the AC_PACKAGE_NAME lists. ##
13553 ## ------------------------------------------ ##
13556 sed "s/^/$as_me: WARNING: /" >&2
13559 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13560 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13561 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 ac_cv_header_sys_mkdev_h=$ac_header_preproc
13566 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13570 if test $ac_cv_header_sys_mkdev_h = yes; then
13572 cat >>confdefs.h <<\_ACEOF
13573 #define MAJOR_IN_MKDEV 1
13580 if test $ac_cv_header_sys_mkdev_h = no; then
13581 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13582 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13583 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13584 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13588 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13590 # Is the header compilable?
13591 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13592 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13600 #include <sys/sysmacros.h>
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 ac_header_compiler=yes
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 ac_header_compiler=no
13631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633 echo "${ECHO_T}$ac_header_compiler" >&6
13635 # Is the header present?
13636 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13637 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include <sys/sysmacros.h>
13646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } >/dev/null; then
13654 if test -s conftest.err; then
13655 ac_cpp_err=$ac_c_preproc_warn_flag
13656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13663 if test -z "$ac_cpp_err"; then
13664 ac_header_preproc=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_header_preproc=no
13671 rm -f conftest.err conftest.$ac_ext
13672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13673 echo "${ECHO_T}$ac_header_preproc" >&6
13675 # So? What about this header?
13676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13678 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13679 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13681 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13682 ac_header_preproc=yes
13685 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13686 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13687 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
13688 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13690 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
13692 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13694 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13696 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13699 ## ------------------------------------------ ##
13700 ## Report this to the AC_PACKAGE_NAME lists. ##
13701 ## ------------------------------------------ ##
13704 sed "s/^/$as_me: WARNING: /" >&2
13707 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13708 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13709 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13714 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13715 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13718 if test $ac_cv_header_sys_sysmacros_h = yes; then
13720 cat >>confdefs.h <<\_ACEOF
13721 #define MAJOR_IN_SYSMACROS 1
13735 ac_header_dirent=no
13736 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13737 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13738 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13739 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 cat >conftest.$ac_ext <<_ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 #include <sys/types.h>
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763 (eval $ac_compile) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -z "$ac_c_werror_flag"
13771 || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 eval "$as_ac_Header=yes"
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 eval "$as_ac_Header=no"
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13795 cat >>confdefs.h <<_ACEOF
13796 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13799 ac_header_dirent=$ac_hdr; break
13803 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13804 if test $ac_header_dirent = dirent.h; then
13805 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13807 if test "${ac_cv_search_opendir+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 ac_func_search_save_LIBS=$LIBS
13811 ac_cv_search_opendir=no
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13819 /* Override any gcc2 internal prototype to avoid an error. */
13823 /* We use char because int might match the return type of a gcc2
13824 builtin and then its argument prototype would still apply. */
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836 (eval $ac_link) 2>conftest.er1
13838 grep -v '^ *+' conftest.er1 >conftest.err
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_c_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest$ac_exeext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_cv_search_opendir="none required"
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13862 rm -f conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 if test "$ac_cv_search_opendir" = no; then
13865 for ac_lib in dir; do
13866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13867 cat >conftest.$ac_ext <<_ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13874 /* Override any gcc2 internal prototype to avoid an error. */
13878 /* We use char because int might match the return type of a gcc2
13879 builtin and then its argument prototype would still apply. */
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891 (eval $ac_link) 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -z "$ac_c_werror_flag"
13899 || test ! -s conftest.err'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest$ac_exeext'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_cv_search_opendir="-l$ac_lib"
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13918 rm -f conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext conftest.$ac_ext
13922 LIBS=$ac_func_search_save_LIBS
13924 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13925 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13926 if test "$ac_cv_search_opendir" != no; then
13927 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13932 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13933 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13934 if test "${ac_cv_search_opendir+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 ac_func_search_save_LIBS=$LIBS
13938 ac_cv_search_opendir=no
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13946 /* Override any gcc2 internal prototype to avoid an error. */
13950 /* We use char because int might match the return type of a gcc2
13951 builtin and then its argument prototype would still apply. */
13961 rm -f conftest.$ac_objext conftest$ac_exeext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13963 (eval $ac_link) 2>conftest.er1
13965 grep -v '^ *+' conftest.er1 >conftest.err
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -z "$ac_c_werror_flag"
13971 || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest$ac_exeext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 ac_cv_search_opendir="none required"
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13989 rm -f conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 if test "$ac_cv_search_opendir" = no; then
13992 for ac_lib in x; do
13993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13994 cat >conftest.$ac_ext <<_ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14001 /* Override any gcc2 internal prototype to avoid an error. */
14005 /* We use char because int might match the return type of a gcc2
14006 builtin and then its argument prototype would still apply. */
14016 rm -f conftest.$ac_objext conftest$ac_exeext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018 (eval $ac_link) 2>conftest.er1
14020 grep -v '^ *+' conftest.er1 >conftest.err
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try='test -z "$ac_c_werror_flag"
14026 || test ! -s conftest.err'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; } &&
14032 { ac_try='test -s conftest$ac_exeext'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }; then
14038 ac_cv_search_opendir="-l$ac_lib"
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14045 rm -f conftest.err conftest.$ac_objext \
14046 conftest$ac_exeext conftest.$ac_ext
14049 LIBS=$ac_func_search_save_LIBS
14051 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14052 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14053 if test "$ac_cv_search_opendir" != no; then
14054 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14060 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14061 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14062 if test "${ac_cv_header_stat_broken+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 cat >conftest.$ac_ext <<_ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 #include <sys/types.h>
14072 #include <sys/stat.h>
14074 #if defined(S_ISBLK) && defined(S_IFDIR)
14075 # if S_ISBLK (S_IFDIR)
14080 #if defined(S_ISBLK) && defined(S_IFCHR)
14081 # if S_ISBLK (S_IFCHR)
14086 #if defined(S_ISLNK) && defined(S_IFREG)
14087 # if S_ISLNK (S_IFREG)
14092 #if defined(S_ISSOCK) && defined(S_IFREG)
14093 # if S_ISSOCK (S_IFREG)
14099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14100 $EGREP "You lose" >/dev/null 2>&1; then
14101 ac_cv_header_stat_broken=yes
14103 ac_cv_header_stat_broken=no
14108 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14109 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14110 if test $ac_cv_header_stat_broken = yes; then
14112 cat >>confdefs.h <<\_ACEOF
14113 #define STAT_MACROS_BROKEN 1
14118 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14119 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14120 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 #include <sys/types.h>
14130 #include <sys/wait.h>
14131 #ifndef WEXITSTATUS
14132 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14135 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14143 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14148 rm -f conftest.$ac_objext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14150 (eval $ac_compile) 2>conftest.er1
14152 grep -v '^ *+' conftest.er1 >conftest.err
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try='test -z "$ac_c_werror_flag"
14158 || test ! -s conftest.err'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; } &&
14164 { ac_try='test -s conftest.$ac_objext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_header_sys_wait_h=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_cv_header_sys_wait_h=no
14177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14179 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14180 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14181 if test $ac_cv_header_sys_wait_h = yes; then
14183 cat >>confdefs.h <<\_ACEOF
14184 #define HAVE_SYS_WAIT_H 1
14189 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14190 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14191 if test "${ac_cv_header_time+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 cat >conftest.$ac_ext <<_ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14200 #include <sys/types.h>
14201 #include <sys/time.h>
14207 if ((struct tm *) 0)
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_header_time=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_cv_header_time=no
14242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14245 echo "${ECHO_T}$ac_cv_header_time" >&6
14246 if test $ac_cv_header_time = yes; then
14248 cat >>confdefs.h <<\_ACEOF
14249 #define TIME_WITH_SYS_TIME 1
14255 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14256 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14257 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 $ac_includes_default
14270 static struct stat ac_aggr;
14271 if (ac_aggr.st_blksize)
14277 rm -f conftest.$ac_objext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14279 (eval $ac_compile) 2>conftest.er1
14281 grep -v '^ *+' conftest.er1 >conftest.err
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_c_werror_flag"
14287 || test ! -s conftest.err'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest.$ac_objext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_cv_member_struct_stat_st_blksize=yes
14301 echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
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 struct stat ac_aggr;
14315 if (sizeof ac_aggr.st_blksize)
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_cv_member_struct_stat_st_blksize=yes
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_cv_member_struct_stat_st_blksize=no
14350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14354 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14355 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14356 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14358 cat >>confdefs.h <<_ACEOF
14359 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14363 cat >>confdefs.h <<\_ACEOF
14364 #define HAVE_ST_BLKSIZE 1
14370 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14371 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14372 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 $ac_includes_default
14385 static struct stat ac_aggr;
14386 if (ac_aggr.st_blocks)
14392 rm -f conftest.$ac_objext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14394 (eval $ac_compile) 2>conftest.er1
14396 grep -v '^ *+' conftest.er1 >conftest.err
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_c_werror_flag"
14402 || test ! -s conftest.err'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_member_struct_stat_st_blocks=yes
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 cat >conftest.$ac_ext <<_ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 $ac_includes_default
14429 static struct stat ac_aggr;
14430 if (sizeof ac_aggr.st_blocks)
14436 rm -f conftest.$ac_objext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14438 (eval $ac_compile) 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try='test -s conftest.$ac_objext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_member_struct_stat_st_blocks=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_cv_member_struct_stat_st_blocks=no
14465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14469 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14470 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14471 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14478 cat >>confdefs.h <<\_ACEOF
14479 #define HAVE_ST_BLOCKS 1
14484 "fileblocks.$ac_objext" | \
14485 *" fileblocks.$ac_objext" | \
14486 "fileblocks.$ac_objext "* | \
14487 *" fileblocks.$ac_objext "* ) ;;
14488 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14494 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14495 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14496 if test "${ac_cv_struct_tm+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 cat >conftest.$ac_ext <<_ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 #include <sys/types.h>
14511 struct tm *tp; tp->tm_sec;
14516 rm -f conftest.$ac_objext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>conftest.er1
14520 grep -v '^ *+' conftest.er1 >conftest.err
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_cv_struct_tm=time.h
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_cv_struct_tm=sys/time.h
14545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14548 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14549 if test $ac_cv_struct_tm = sys/time.h; then
14551 cat >>confdefs.h <<\_ACEOF
14552 #define TM_IN_SYS_TIME 1
14557 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14558 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14559 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include <sys/types.h>
14569 #include <$ac_cv_struct_tm>
14575 static struct tm ac_aggr;
14576 if (ac_aggr.tm_zone)
14582 rm -f conftest.$ac_objext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>conftest.er1
14586 grep -v '^ *+' conftest.er1 >conftest.err
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -z "$ac_c_werror_flag"
14592 || test ! -s conftest.err'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_member_struct_tm_tm_zone=yes
14606 echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14609 cat >conftest.$ac_ext <<_ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 #include <sys/types.h>
14616 #include <$ac_cv_struct_tm>
14622 static struct tm ac_aggr;
14623 if (sizeof ac_aggr.tm_zone)
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14633 grep -v '^ *+' conftest.er1 >conftest.err
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_cv_member_struct_tm_tm_zone=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_cv_member_struct_tm_tm_zone=no
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14662 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14663 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14664 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14666 cat >>confdefs.h <<_ACEOF
14667 #define HAVE_STRUCT_TM_TM_ZONE 1
14673 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14675 cat >>confdefs.h <<\_ACEOF
14676 #define HAVE_TM_ZONE 1
14680 echo "$as_me:$LINENO: checking for tzname" >&5
14681 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14682 if test "${ac_cv_var_tzname+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14692 #ifndef tzname /* For SGI. */
14693 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14704 rm -f conftest.$ac_objext conftest$ac_exeext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14706 (eval $ac_link) 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_c_werror_flag"
14714 || test ! -s conftest.err'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest$ac_exeext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_cv_var_tzname=yes
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 ac_cv_var_tzname=no
14733 rm -f conftest.err conftest.$ac_objext \
14734 conftest$ac_exeext conftest.$ac_ext
14736 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14737 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14738 if test $ac_cv_var_tzname = yes; then
14740 cat >>confdefs.h <<\_ACEOF
14741 #define HAVE_TZNAME 1
14748 echo "$as_me:$LINENO: checking for utime.h" >&5
14749 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14750 if test "${ba_cv_header_utime_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 cat >conftest.$ac_ext <<_ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14760 #include <sys/types.h>
14770 rm -f conftest.$ac_objext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772 (eval $ac_compile) 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -z "$ac_c_werror_flag"
14780 || test ! -s conftest.err'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; } &&
14786 { ac_try='test -s conftest.$ac_objext'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ba_cv_header_utime_h=yes
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 ba_cv_header_utime_h=no
14799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14801 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14802 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14803 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_UTIME_H 1
14808 echo "$as_me:$LINENO: checking for socklen_t" >&5
14809 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14810 if test "${ba_cv_header_socklen_t+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14820 #include <sys/types.h>
14821 #include <sys/socket.h>
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>conftest.er1
14834 grep -v '^ *+' conftest.er1 >conftest.err
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ba_cv_header_socklen_t=yes
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 ba_cv_header_socklen_t=no
14859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14861 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14862 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14863 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_SOCKLEN_T 1
14868 echo "$as_me:$LINENO: checking for bigendian" >&5
14869 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14870 if test "${ba_cv_bigendian+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 if test "$cross_compiling" = yes; then
14876 cat >conftest.$ac_ext <<_ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14884 rm -f conftest$ac_exeext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14886 (eval $ac_link) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ba_cv_bigendian=yes
14897 echo "$as_me: program exited with status $ac_status" >&5
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ( exit $ac_status )
14904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14907 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14908 echo "${ECHO_T}$ba_cv_bigendian" >&6
14909 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14910 #define HAVE_BIGENDIAN 1
14915 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14916 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14917 if test "${ac_cv_c_const+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 cat >conftest.$ac_ext <<_ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14930 /* FIXME: Include the comments suggested by Paul. */
14931 #ifndef __cplusplus
14932 /* Ultrix mips cc rejects this. */
14933 typedef int charset[2];
14935 /* SunOS 4.1.1 cc rejects this. */
14936 char const *const *ccp;
14938 /* NEC SVR4.0.2 mips cc rejects this. */
14939 struct point {int x, y;};
14940 static struct point const zero = {0,0};
14941 /* AIX XL C 1.02.0.0 rejects this.
14942 It does not let you subtract one const X* pointer from another in
14943 an arm of an if-expression whose if-part is not a constant
14945 const char *g = "string";
14946 ccp = &g + (g ? g-g : 0);
14947 /* HPUX 7.0 cc rejects these. */
14950 ccp = (char const *const *) p;
14951 { /* SCO 3.2v4 cc rejects this. */
14953 char const *s = 0 ? (char *) 0 : (char const *) 0;
14957 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14958 int x[] = {25, 17};
14959 const int *foo = &x[0];
14962 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14963 typedef const int *iptr;
14967 { /* AIX XL C 1.02.0.0 rejects this saying
14968 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14969 struct s { int j; const int *ap[3]; };
14970 struct s *b; b->j = 5;
14972 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14973 const int foo = 10;
14981 rm -f conftest.$ac_objext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag"
14991 || test ! -s conftest.err'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; } &&
14997 { ac_try='test -s conftest.$ac_objext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15012 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15013 echo "${ECHO_T}$ac_cv_c_const" >&6
15014 if test $ac_cv_c_const = no; then
15016 cat >>confdefs.h <<\_ACEOF
15024 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
15025 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
15027 # The order of these tests is important.
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 #include <sys/statvfs.h>
15035 #include <sys/fstyp.h>
15037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } >/dev/null; then
15045 if test -s conftest.err; then
15046 ac_cpp_err=$ac_c_preproc_warn_flag
15047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15054 if test -z "$ac_cpp_err"; then
15055 cat >>confdefs.h <<\_ACEOF
15056 #define FSTYPE_STATVFS 1
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15065 rm -f conftest.err conftest.$ac_ext
15066 if test $fstype = no; then
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <sys/statfs.h>
15074 #include <sys/fstyp.h>
15076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } >/dev/null; then
15084 if test -s conftest.err; then
15085 ac_cpp_err=$ac_c_preproc_warn_flag
15086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15093 if test -z "$ac_cpp_err"; then
15094 cat >>confdefs.h <<\_ACEOF
15095 #define FSTYPE_USG_STATFS 1
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15104 rm -f conftest.err conftest.$ac_ext
15106 if test $fstype = no; then
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <sys/statfs.h>
15114 #include <sys/vmount.h>
15116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15119 grep -v '^ *+' conftest.er1 >conftest.err
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } >/dev/null; then
15124 if test -s conftest.err; then
15125 ac_cpp_err=$ac_c_preproc_warn_flag
15126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15133 if test -z "$ac_cpp_err"; then
15134 cat >>confdefs.h <<\_ACEOF
15135 #define FSTYPE_AIX_STATFS 1
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15144 rm -f conftest.err conftest.$ac_ext
15146 if test $fstype = no; then
15147 cat >conftest.$ac_ext <<_ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15153 #include <mntent.h>
15155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15158 grep -v '^ *+' conftest.er1 >conftest.err
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } >/dev/null; then
15163 if test -s conftest.err; then
15164 ac_cpp_err=$ac_c_preproc_warn_flag
15165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15172 if test -z "$ac_cpp_err"; then
15173 cat >>confdefs.h <<\_ACEOF
15174 #define FSTYPE_MNTENT 1
15178 echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15183 rm -f conftest.err conftest.$ac_ext
15185 if test $fstype = no; then
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <sys/mount.h>
15195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196 $EGREP "f_type;" >/dev/null 2>&1; then
15197 cat >>confdefs.h <<\_ACEOF
15198 #define FSTYPE_STATFS 1
15205 if test $fstype = no; then
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 #include <sys/mount.h>
15213 #include <sys/fs_types.h>
15215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } >/dev/null; then
15223 if test -s conftest.err; then
15224 ac_cpp_err=$ac_c_preproc_warn_flag
15225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15232 if test -z "$ac_cpp_err"; then
15233 cat >>confdefs.h <<\_ACEOF
15234 #define FSTYPE_GETMNT 1
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15243 rm -f conftest.err conftest.$ac_ext
15245 echo "$as_me:$LINENO: result: $fstype" >&5
15246 echo "${ECHO_T}$fstype" >&6
15248 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15249 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15250 if test "${ac_cv_type_signal+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 cat >conftest.$ac_ext <<_ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include <sys/types.h>
15260 #include <signal.h>
15265 extern "C" void (*signal (int, void (*)(int)))(int);
15267 void (*signal ()) ();
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280 (eval $ac_compile) 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || test ! -s conftest.err'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_cv_type_signal=void
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_cv_type_signal=int
15307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15310 echo "${ECHO_T}$ac_cv_type_signal" >&6
15312 cat >>confdefs.h <<_ACEOF
15313 #define RETSIGTYPE $ac_cv_type_signal
15318 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15319 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15320 if test "${bash_cv_signal_vintage+set}" = set; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 #include <signal.h>
15336 struct sigaction sa;
15337 sigemptyset(&ss); sigsuspend(&ss);
15338 sigaction(SIGINT, &sa, (struct sigaction *) 0);
15339 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15345 rm -f conftest.$ac_objext conftest$ac_exeext
15346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15347 (eval $ac_link) 2>conftest.er1
15349 grep -v '^ *+' conftest.er1 >conftest.err
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
15354 { ac_try='test -z "$ac_c_werror_flag"
15355 || test ! -s conftest.err'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; } &&
15361 { ac_try='test -s conftest$ac_exeext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 bash_cv_signal_vintage=posix
15369 echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 #include <signal.h>
15384 int mask = sigmask(SIGINT);
15385 sigsetmask(mask); sigblock(mask); sigpause(mask);
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>conftest.er1
15395 grep -v '^ *+' conftest.er1 >conftest.err
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag"
15401 || test ! -s conftest.err'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest$ac_exeext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 bash_cv_signal_vintage=4.2bsd
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15419 cat >conftest.$ac_ext <<_ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15426 #include <signal.h>
15427 RETSIGTYPE foo() { }
15432 int mask = sigmask(SIGINT);
15433 sigset(SIGINT, foo); sigrelse(SIGINT);
15434 sighold(SIGINT); sigpause(SIGINT);
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15442 (eval $ac_link) 2>conftest.er1
15444 grep -v '^ *+' conftest.er1 >conftest.err
15446 cat conftest.err >&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -z "$ac_c_werror_flag"
15450 || test ! -s conftest.err'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; } &&
15456 { ac_try='test -s conftest$ac_exeext'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 bash_cv_signal_vintage=svr3
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 bash_cv_signal_vintage=v7
15470 rm -f conftest.err conftest.$ac_objext \
15471 conftest$ac_exeext conftest.$ac_ext
15474 rm -f conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
15478 rm -f conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15483 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15484 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15485 if test "$bash_cv_signal_vintage" = posix; then
15486 cat >>confdefs.h <<\_ACEOF
15487 #define HAVE_POSIX_SIGNALS 1
15490 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15491 cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_BSD_SIGNALS 1
15495 elif test "$bash_cv_signal_vintage" = svr3; then
15496 cat >>confdefs.h <<\_ACEOF
15497 #define HAVE_USG_SIGHOLD 1
15502 echo "$as_me:$LINENO: checking for mode_t" >&5
15503 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15504 if test "${ac_cv_type_mode_t+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 $ac_includes_default
15519 if (sizeof (mode_t))
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>conftest.er1
15529 grep -v '^ *+' conftest.er1 >conftest.err
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 ac_cv_type_mode_t=yes
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15552 ac_cv_type_mode_t=no
15554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15557 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15558 if test $ac_cv_type_mode_t = yes; then
15562 cat >>confdefs.h <<_ACEOF
15568 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15569 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15570 if test "${ac_cv_type_uid_t+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 cat >conftest.$ac_ext <<_ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15579 #include <sys/types.h>
15582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15583 $EGREP "uid_t" >/dev/null 2>&1; then
15584 ac_cv_type_uid_t=yes
15586 ac_cv_type_uid_t=no
15591 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15592 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15593 if test $ac_cv_type_uid_t = no; then
15595 cat >>confdefs.h <<\_ACEOF
15600 cat >>confdefs.h <<\_ACEOF
15606 echo "$as_me:$LINENO: checking for size_t" >&5
15607 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15608 if test "${ac_cv_type_size_t+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 cat >conftest.$ac_ext <<_ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15617 $ac_includes_default
15623 if (sizeof (size_t))
15629 rm -f conftest.$ac_objext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631 (eval $ac_compile) 2>conftest.er1
15633 grep -v '^ *+' conftest.er1 >conftest.err
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
15638 { ac_try='test -z "$ac_c_werror_flag"
15639 || test ! -s conftest.err'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try='test -s conftest.$ac_objext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_cv_type_size_t=yes
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 ac_cv_type_size_t=no
15658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15661 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15662 if test $ac_cv_type_size_t = yes; then
15666 cat >>confdefs.h <<_ACEOF
15667 #define size_t unsigned
15672 echo "$as_me:$LINENO: checking for pid_t" >&5
15673 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15674 if test "${ac_cv_type_pid_t+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 $ac_includes_default
15689 if (sizeof (pid_t))
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>conftest.er1
15699 grep -v '^ *+' conftest.er1 >conftest.err
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
15704 { ac_try='test -z "$ac_c_werror_flag"
15705 || test ! -s conftest.err'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest.$ac_objext'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
15717 ac_cv_type_pid_t=yes
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 ac_cv_type_pid_t=no
15724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15726 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15727 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15728 if test $ac_cv_type_pid_t = yes; then
15732 cat >>confdefs.h <<_ACEOF
15738 echo "$as_me:$LINENO: checking for off_t" >&5
15739 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15740 if test "${ac_cv_type_off_t+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 $ac_includes_default
15755 if (sizeof (off_t))
15761 rm -f conftest.$ac_objext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763 (eval $ac_compile) 2>conftest.er1
15765 grep -v '^ *+' conftest.er1 >conftest.err
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag"
15771 || test ! -s conftest.err'
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; } &&
15777 { ac_try='test -s conftest.$ac_objext'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; }; then
15783 ac_cv_type_off_t=yes
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ac_cv_type_off_t=no
15790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15792 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15793 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15794 if test $ac_cv_type_off_t = yes; then
15798 cat >>confdefs.h <<_ACEOF
15804 echo "$as_me:$LINENO: checking for ino_t" >&5
15805 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15806 if test "${ac_cv_type_ino_t+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 cat >conftest.$ac_ext <<_ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15815 $ac_includes_default
15821 if (sizeof (ino_t))
15827 rm -f conftest.$ac_objext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_type_ino_t=yes
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 ac_cv_type_ino_t=no
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15858 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15859 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15860 if test $ac_cv_type_ino_t = yes; then
15864 cat >>confdefs.h <<_ACEOF
15865 #define ino_t unsigned long
15870 echo "$as_me:$LINENO: checking for dev_t" >&5
15871 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15872 if test "${ac_cv_type_dev_t+set}" = set; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 cat >conftest.$ac_ext <<_ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 $ac_includes_default
15887 if (sizeof (dev_t))
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895 (eval $ac_compile) 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag"
15903 || test ! -s conftest.err'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_cv_type_dev_t=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_cv_type_dev_t=no
15922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15925 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15926 if test $ac_cv_type_dev_t = yes; then
15930 cat >>confdefs.h <<_ACEOF
15931 #define dev_t unsigned long
15936 echo "$as_me:$LINENO: checking for daddr_t" >&5
15937 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15938 if test "${ac_cv_type_daddr_t+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 cat >conftest.$ac_ext <<_ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 $ac_includes_default
15953 if (sizeof (daddr_t))
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>conftest.er1
15963 grep -v '^ *+' conftest.er1 >conftest.err
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 ac_cv_type_daddr_t=yes
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_cv_type_daddr_t=no
15988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15990 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15991 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15992 if test $ac_cv_type_daddr_t = yes; then
15996 cat >>confdefs.h <<_ACEOF
15997 #define daddr_t long
16002 echo "$as_me:$LINENO: checking for major_t" >&5
16003 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
16004 if test "${ac_cv_type_major_t+set}" = set; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 cat >conftest.$ac_ext <<_ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 $ac_includes_default
16019 if (sizeof (major_t))
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>conftest.er1
16029 grep -v '^ *+' conftest.er1 >conftest.err
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_cv_type_major_t=yes
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_cv_type_major_t=no
16054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16056 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
16057 echo "${ECHO_T}$ac_cv_type_major_t" >&6
16058 if test $ac_cv_type_major_t = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063 #define major_t int
16068 echo "$as_me:$LINENO: checking for minor_t" >&5
16069 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
16070 if test "${ac_cv_type_minor_t+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 $ac_includes_default
16085 if (sizeof (minor_t))
16091 rm -f conftest.$ac_objext
16092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16093 (eval $ac_compile) 2>conftest.er1
16095 grep -v '^ *+' conftest.er1 >conftest.err
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag"
16101 || test ! -s conftest.err'
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; } &&
16107 { ac_try='test -s conftest.$ac_objext'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
16113 ac_cv_type_minor_t=yes
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 ac_cv_type_minor_t=no
16120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16122 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
16123 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
16124 if test $ac_cv_type_minor_t = yes; then
16128 cat >>confdefs.h <<_ACEOF
16129 #define minor_t int
16134 echo "$as_me:$LINENO: checking for ssize_t" >&5
16135 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16136 if test "${ac_cv_type_ssize_t+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 cat >conftest.$ac_ext <<_ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 $ac_includes_default
16151 if (sizeof (ssize_t))
16157 rm -f conftest.$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159 (eval $ac_compile) 2>conftest.er1
16161 grep -v '^ *+' conftest.er1 >conftest.err
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } &&
16166 { ac_try='test -z "$ac_c_werror_flag"
16167 || test ! -s conftest.err'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try='test -s conftest.$ac_objext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 ac_cv_type_ssize_t=yes
16181 echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16184 ac_cv_type_ssize_t=no
16186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16188 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16189 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16190 if test $ac_cv_type_ssize_t = yes; then
16194 cat >>confdefs.h <<_ACEOF
16195 #define ssize_t int
16200 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16201 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16202 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 cat >conftest.$ac_ext <<_ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 $ac_includes_default
16215 static struct stat ac_aggr;
16216 if (ac_aggr.st_blocks)
16222 rm -f conftest.$ac_objext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16224 (eval $ac_compile) 2>conftest.er1
16226 grep -v '^ *+' conftest.er1 >conftest.err
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -z "$ac_c_werror_flag"
16232 || test ! -s conftest.err'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_cv_member_struct_stat_st_blocks=yes
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16259 static struct stat ac_aggr;
16260 if (sizeof ac_aggr.st_blocks)
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 (eval $ac_compile) 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_c_werror_flag"
16276 || test ! -s conftest.err'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_member_struct_stat_st_blocks=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_cv_member_struct_stat_st_blocks=no
16295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16299 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16300 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16301 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16303 cat >>confdefs.h <<_ACEOF
16304 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16308 cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_ST_BLOCKS 1
16314 "fileblocks.$ac_objext" | \
16315 *" fileblocks.$ac_objext" | \
16316 "fileblocks.$ac_objext "* | \
16317 *" fileblocks.$ac_objext "* ) ;;
16318 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16325 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16326 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16327 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 cat >conftest.$ac_ext <<_ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336 $ac_includes_default
16340 static struct stat ac_aggr;
16341 if (ac_aggr.st_rdev)
16347 rm -f conftest.$ac_objext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16349 (eval $ac_compile) 2>conftest.er1
16351 grep -v '^ *+' conftest.er1 >conftest.err
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
16356 { ac_try='test -z "$ac_c_werror_flag"
16357 || test ! -s conftest.err'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest.$ac_objext'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_cv_member_struct_stat_st_rdev=yes
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16384 static struct stat ac_aggr;
16385 if (sizeof ac_aggr.st_rdev)
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>conftest.er1
16395 grep -v '^ *+' conftest.er1 >conftest.err
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
16400 { ac_try='test -z "$ac_c_werror_flag"
16401 || test ! -s conftest.err'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest.$ac_objext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_member_struct_stat_st_rdev=yes
16415 echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16418 ac_cv_member_struct_stat_st_rdev=no
16420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16424 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16425 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16426 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16428 cat >>confdefs.h <<_ACEOF
16429 #define HAVE_STRUCT_STAT_ST_RDEV 1
16433 cat >>confdefs.h <<\_ACEOF
16434 #define HAVE_ST_RDEV 1
16440 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16441 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16442 if test "${ac_cv_struct_tm+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 cat >conftest.$ac_ext <<_ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <sys/types.h>
16457 struct tm *tp; tp->tm_sec;
16462 rm -f conftest.$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464 (eval $ac_compile) 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -z "$ac_c_werror_flag"
16472 || test ! -s conftest.err'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_cv_struct_tm=time.h
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 ac_cv_struct_tm=sys/time.h
16491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16493 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16494 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16495 if test $ac_cv_struct_tm = sys/time.h; then
16497 cat >>confdefs.h <<\_ACEOF
16498 #define TM_IN_SYS_TIME 1
16503 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16504 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16505 if test "${ac_cv_c_const+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 cat >conftest.$ac_ext <<_ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16518 /* FIXME: Include the comments suggested by Paul. */
16519 #ifndef __cplusplus
16520 /* Ultrix mips cc rejects this. */
16521 typedef int charset[2];
16523 /* SunOS 4.1.1 cc rejects this. */
16524 char const *const *ccp;
16526 /* NEC SVR4.0.2 mips cc rejects this. */
16527 struct point {int x, y;};
16528 static struct point const zero = {0,0};
16529 /* AIX XL C 1.02.0.0 rejects this.
16530 It does not let you subtract one const X* pointer from another in
16531 an arm of an if-expression whose if-part is not a constant
16533 const char *g = "string";
16534 ccp = &g + (g ? g-g : 0);
16535 /* HPUX 7.0 cc rejects these. */
16538 ccp = (char const *const *) p;
16539 { /* SCO 3.2v4 cc rejects this. */
16541 char const *s = 0 ? (char *) 0 : (char const *) 0;
16545 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16546 int x[] = {25, 17};
16547 const int *foo = &x[0];
16550 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16551 typedef const int *iptr;
16555 { /* AIX XL C 1.02.0.0 rejects this saying
16556 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16557 struct s { int j; const int *ap[3]; };
16558 struct s *b; b->j = 5;
16560 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16561 const int foo = 10;
16569 rm -f conftest.$ac_objext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16571 (eval $ac_compile) 2>conftest.er1
16573 grep -v '^ *+' conftest.er1 >conftest.err
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -z "$ac_c_werror_flag"
16579 || test ! -s conftest.err'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest.$ac_objext'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16600 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16601 echo "${ECHO_T}$ac_cv_c_const" >&6
16602 if test $ac_cv_c_const = no; then
16604 cat >>confdefs.h <<\_ACEOF
16612 echo "$as_me:$LINENO: checking for char" >&5
16613 echo $ECHO_N "checking for char... $ECHO_C" >&6
16614 if test "${ac_cv_type_char+set}" = set; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 cat >conftest.$ac_ext <<_ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 $ac_includes_default
16635 rm -f conftest.$ac_objext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16637 (eval $ac_compile) 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag"
16645 || test ! -s conftest.err'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest.$ac_objext'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_cv_type_char=yes
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16666 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16667 echo "${ECHO_T}$ac_cv_type_char" >&6
16669 echo "$as_me:$LINENO: checking size of char" >&5
16670 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16671 if test "${ac_cv_sizeof_char+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 if test "$ac_cv_type_char" = yes; then
16675 # The cast to unsigned long works around a bug in the HP C Compiler
16676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16678 # This bug is HP SR number 8606223364.
16679 if test "$cross_compiling" = yes; then
16680 # Depending upon the size, compute the lo and hi bounds.
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 $ac_includes_default
16691 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>conftest.er1
16702 grep -v '^ *+' conftest.er1 >conftest.err
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
16707 { ac_try='test -z "$ac_c_werror_flag"
16708 || test ! -s conftest.err'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16732 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16739 rm -f conftest.$ac_objext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741 (eval $ac_compile) 2>conftest.er1
16743 grep -v '^ *+' conftest.er1 >conftest.err
16745 cat conftest.err >&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -z "$ac_c_werror_flag"
16749 || test ! -s conftest.err'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; } &&
16755 { ac_try='test -s conftest.$ac_objext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 ac_hi=$ac_mid; break
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 ac_lo=`expr $ac_mid + 1`
16767 if test $ac_lo -le $ac_mid; then
16771 ac_mid=`expr 2 '*' $ac_mid + 1`
16773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 cat >conftest.$ac_ext <<_ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 $ac_includes_default
16789 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16796 rm -f conftest.$ac_objext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798 (eval $ac_compile) 2>conftest.er1
16800 grep -v '^ *+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16820 cat >conftest.$ac_ext <<_ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 $ac_includes_default
16830 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16841 grep -v '^ *+' conftest.er1 >conftest.err
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag"
16847 || test ! -s conftest.err'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_lo=$ac_mid; break
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_hi=`expr '(' $ac_mid ')' - 1`
16865 if test $ac_mid -le $ac_hi; then
16869 ac_mid=`expr 2 '*' $ac_mid`
16871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16882 # Binary search between lo and hi bounds.
16883 while test "x$ac_lo" != "x$ac_hi"; do
16884 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 $ac_includes_default
16895 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16902 rm -f conftest.$ac_objext
16903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16904 (eval $ac_compile) 2>conftest.er1
16906 grep -v '^ *+' conftest.er1 >conftest.err
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag"
16912 || test ! -s conftest.err'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_lo=`expr '(' $ac_mid ')' + 1`
16931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16934 ?*) ac_cv_sizeof_char=$ac_lo;;
16935 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16936 See \`config.log' for more details." >&5
16937 echo "$as_me: error: cannot compute sizeof (char), 77
16938 See \`config.log' for more details." >&2;}
16939 { (exit 1); exit 1; }; } ;;
16942 if test "$cross_compiling" = yes; then
16943 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16944 See \`config.log' for more details." >&5
16945 echo "$as_me: error: cannot run test program while cross compiling
16946 See \`config.log' for more details." >&2;}
16947 { (exit 1); exit 1; }; }
16949 cat >conftest.$ac_ext <<_ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 $ac_includes_default
16956 long longval () { return (long) (sizeof (char)); }
16957 unsigned long ulongval () { return (long) (sizeof (char)); }
16959 #include <stdlib.h>
16964 FILE *f = fopen ("conftest.val", "w");
16967 if (((long) (sizeof (char))) < 0)
16969 long i = longval ();
16970 if (i != ((long) (sizeof (char))))
16972 fprintf (f, "%ld\n", i);
16976 unsigned long i = ulongval ();
16977 if (i != ((long) (sizeof (char))))
16979 fprintf (f, "%lu\n", i);
16981 exit (ferror (f) || fclose (f) != 0);
16987 rm -f conftest$ac_exeext
16988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989 (eval $ac_link) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 ac_cv_sizeof_char=`cat conftest.val`
17000 echo "$as_me: program exited with status $ac_status" >&5
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ( exit $ac_status )
17005 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17006 See \`config.log' for more details." >&5
17007 echo "$as_me: error: cannot compute sizeof (char), 77
17008 See \`config.log' for more details." >&2;}
17009 { (exit 1); exit 1; }; }
17011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17016 ac_cv_sizeof_char=0
17019 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17020 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17021 cat >>confdefs.h <<_ACEOF
17022 #define SIZEOF_CHAR $ac_cv_sizeof_char
17026 echo "$as_me:$LINENO: checking for short int" >&5
17027 echo $ECHO_N "checking for short int... $ECHO_C" >&6
17028 if test "${ac_cv_type_short_int+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 $ac_includes_default
17041 if ((short int *) 0)
17043 if (sizeof (short int))
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>conftest.er1
17053 grep -v '^ *+' conftest.er1 >conftest.err
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
17058 { ac_try='test -z "$ac_c_werror_flag"
17059 || test ! -s conftest.err'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_type_short_int=yes
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_type_short_int=no
17078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17080 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
17081 echo "${ECHO_T}$ac_cv_type_short_int" >&6
17083 echo "$as_me:$LINENO: checking size of short int" >&5
17084 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
17085 if test "${ac_cv_sizeof_short_int+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 if test "$ac_cv_type_short_int" = yes; then
17089 # The cast to unsigned long works around a bug in the HP C Compiler
17090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17092 # This bug is HP SR number 8606223364.
17093 if test "$cross_compiling" = yes; then
17094 # Depending upon the size, compute the lo and hi bounds.
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101 $ac_includes_default
17105 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
17112 rm -f conftest.$ac_objext
17113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17114 (eval $ac_compile) 2>conftest.er1
17116 grep -v '^ *+' conftest.er1 >conftest.err
17118 cat conftest.err >&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); } &&
17121 { ac_try='test -z "$ac_c_werror_flag"
17122 || test ! -s conftest.err'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; } &&
17128 { ac_try='test -s conftest.$ac_objext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 $ac_includes_default
17146 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17153 rm -f conftest.$ac_objext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17155 (eval $ac_compile) 2>conftest.er1
17157 grep -v '^ *+' conftest.er1 >conftest.err
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag"
17163 || test ! -s conftest.err'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try='test -s conftest.$ac_objext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_hi=$ac_mid; break
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 ac_lo=`expr $ac_mid + 1`
17181 if test $ac_lo -le $ac_mid; then
17185 ac_mid=`expr 2 '*' $ac_mid + 1`
17187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 cat >conftest.$ac_ext <<_ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 $ac_includes_default
17203 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17210 rm -f conftest.$ac_objext
17211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17212 (eval $ac_compile) 2>conftest.er1
17214 grep -v '^ *+' conftest.er1 >conftest.err
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } &&
17219 { ac_try='test -z "$ac_c_werror_flag"
17220 || test ! -s conftest.err'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest.$ac_objext'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17234 cat >conftest.$ac_ext <<_ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 $ac_includes_default
17244 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17251 rm -f conftest.$ac_objext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253 (eval $ac_compile) 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag"
17261 || test ! -s conftest.err'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest.$ac_objext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_lo=$ac_mid; break
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_hi=`expr '(' $ac_mid ')' - 1`
17279 if test $ac_mid -le $ac_hi; then
17283 ac_mid=`expr 2 '*' $ac_mid`
17285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17296 # Binary search between lo and hi bounds.
17297 while test "x$ac_lo" != "x$ac_hi"; do
17298 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17299 cat >conftest.$ac_ext <<_ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 $ac_includes_default
17309 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17316 rm -f conftest.$ac_objext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318 (eval $ac_compile) 2>conftest.er1
17320 grep -v '^ *+' conftest.er1 >conftest.err
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest.$ac_objext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_lo=`expr '(' $ac_mid ')' + 1`
17345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17348 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17349 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17350 See \`config.log' for more details." >&5
17351 echo "$as_me: error: cannot compute sizeof (short int), 77
17352 See \`config.log' for more details." >&2;}
17353 { (exit 1); exit 1; }; } ;;
17356 if test "$cross_compiling" = yes; then
17357 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17358 See \`config.log' for more details." >&5
17359 echo "$as_me: error: cannot run test program while cross compiling
17360 See \`config.log' for more details." >&2;}
17361 { (exit 1); exit 1; }; }
17363 cat >conftest.$ac_ext <<_ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 $ac_includes_default
17370 long longval () { return (long) (sizeof (short int)); }
17371 unsigned long ulongval () { return (long) (sizeof (short int)); }
17373 #include <stdlib.h>
17378 FILE *f = fopen ("conftest.val", "w");
17381 if (((long) (sizeof (short int))) < 0)
17383 long i = longval ();
17384 if (i != ((long) (sizeof (short int))))
17386 fprintf (f, "%ld\n", i);
17390 unsigned long i = ulongval ();
17391 if (i != ((long) (sizeof (short int))))
17393 fprintf (f, "%lu\n", i);
17395 exit (ferror (f) || fclose (f) != 0);
17401 rm -f conftest$ac_exeext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403 (eval $ac_link) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_cv_sizeof_short_int=`cat conftest.val`
17414 echo "$as_me: program exited with status $ac_status" >&5
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ( exit $ac_status )
17419 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17420 See \`config.log' for more details." >&5
17421 echo "$as_me: error: cannot compute sizeof (short int), 77
17422 See \`config.log' for more details." >&2;}
17423 { (exit 1); exit 1; }; }
17425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17430 ac_cv_sizeof_short_int=0
17433 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17434 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17435 cat >>confdefs.h <<_ACEOF
17436 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17440 echo "$as_me:$LINENO: checking for int" >&5
17441 echo $ECHO_N "checking for int... $ECHO_C" >&6
17442 if test "${ac_cv_type_int+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17451 $ac_includes_default
17463 rm -f conftest.$ac_objext
17464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17465 (eval $ac_compile) 2>conftest.er1
17467 grep -v '^ *+' conftest.er1 >conftest.err
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try='test -z "$ac_c_werror_flag"
17473 || test ! -s conftest.err'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest.$ac_objext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17494 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17495 echo "${ECHO_T}$ac_cv_type_int" >&6
17497 echo "$as_me:$LINENO: checking size of int" >&5
17498 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17499 if test "${ac_cv_sizeof_int+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 if test "$ac_cv_type_int" = yes; then
17503 # The cast to unsigned long works around a bug in the HP C Compiler
17504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17506 # This bug is HP SR number 8606223364.
17507 if test "$cross_compiling" = yes; then
17508 # Depending upon the size, compute the lo and hi bounds.
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 $ac_includes_default
17519 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17526 rm -f conftest.$ac_objext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17528 (eval $ac_compile) 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17550 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 $ac_includes_default
17560 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17567 rm -f conftest.$ac_objext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -z "$ac_c_werror_flag"
17577 || test ! -s conftest.err'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 ac_hi=$ac_mid; break
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ac_lo=`expr $ac_mid + 1`
17595 if test $ac_lo -le $ac_mid; then
17599 ac_mid=`expr 2 '*' $ac_mid + 1`
17601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17607 cat >conftest.$ac_ext <<_ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613 $ac_includes_default
17617 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17624 rm -f conftest.$ac_objext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626 (eval $ac_compile) 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag"
17634 || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest.$ac_objext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17648 cat >conftest.$ac_ext <<_ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17654 $ac_includes_default
17658 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17665 rm -f conftest.$ac_objext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17667 (eval $ac_compile) 2>conftest.er1
17669 grep -v '^ *+' conftest.er1 >conftest.err
17671 cat conftest.err >&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } &&
17674 { ac_try='test -z "$ac_c_werror_flag"
17675 || test ! -s conftest.err'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 ac_lo=$ac_mid; break
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17692 ac_hi=`expr '(' $ac_mid ')' - 1`
17693 if test $ac_mid -le $ac_hi; then
17697 ac_mid=`expr 2 '*' $ac_mid`
17699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17710 # Binary search between lo and hi bounds.
17711 while test "x$ac_lo" != "x$ac_hi"; do
17712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17713 cat >conftest.$ac_ext <<_ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17719 $ac_includes_default
17723 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17730 rm -f conftest.$ac_objext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732 (eval $ac_compile) 2>conftest.er1
17734 grep -v '^ *+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest.$ac_objext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_lo=`expr '(' $ac_mid ')' + 1`
17759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17762 ?*) ac_cv_sizeof_int=$ac_lo;;
17763 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17764 See \`config.log' for more details." >&5
17765 echo "$as_me: error: cannot compute sizeof (int), 77
17766 See \`config.log' for more details." >&2;}
17767 { (exit 1); exit 1; }; } ;;
17770 if test "$cross_compiling" = yes; then
17771 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17772 See \`config.log' for more details." >&5
17773 echo "$as_me: error: cannot run test program while cross compiling
17774 See \`config.log' for more details." >&2;}
17775 { (exit 1); exit 1; }; }
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 $ac_includes_default
17784 long longval () { return (long) (sizeof (int)); }
17785 unsigned long ulongval () { return (long) (sizeof (int)); }
17787 #include <stdlib.h>
17792 FILE *f = fopen ("conftest.val", "w");
17795 if (((long) (sizeof (int))) < 0)
17797 long i = longval ();
17798 if (i != ((long) (sizeof (int))))
17800 fprintf (f, "%ld\n", i);
17804 unsigned long i = ulongval ();
17805 if (i != ((long) (sizeof (int))))
17807 fprintf (f, "%lu\n", i);
17809 exit (ferror (f) || fclose (f) != 0);
17815 rm -f conftest$ac_exeext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17817 (eval $ac_link) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_cv_sizeof_int=`cat conftest.val`
17828 echo "$as_me: program exited with status $ac_status" >&5
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ( exit $ac_status )
17833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17834 See \`config.log' for more details." >&5
17835 echo "$as_me: error: cannot compute sizeof (int), 77
17836 See \`config.log' for more details." >&2;}
17837 { (exit 1); exit 1; }; }
17839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17847 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17848 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17849 cat >>confdefs.h <<_ACEOF
17850 #define SIZEOF_INT $ac_cv_sizeof_int
17854 echo "$as_me:$LINENO: checking for long int" >&5
17855 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17856 if test "${ac_cv_type_long_int+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 cat >conftest.$ac_ext <<_ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 $ac_includes_default
17869 if ((long int *) 0)
17871 if (sizeof (long int))
17877 rm -f conftest.$ac_objext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17879 (eval $ac_compile) 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_c_werror_flag"
17887 || test ! -s conftest.err'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest.$ac_objext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_cv_type_long_int=yes
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_cv_type_long_int=no
17906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17908 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17909 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17911 echo "$as_me:$LINENO: checking size of long int" >&5
17912 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17913 if test "${ac_cv_sizeof_long_int+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 if test "$ac_cv_type_long_int" = yes; then
17917 # The cast to unsigned long works around a bug in the HP C Compiler
17918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17920 # This bug is HP SR number 8606223364.
17921 if test "$cross_compiling" = yes; then
17922 # Depending upon the size, compute the lo and hi bounds.
17923 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 $ac_includes_default
17933 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17940 rm -f conftest.$ac_objext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17942 (eval $ac_compile) 2>conftest.er1
17944 grep -v '^ *+' conftest.er1 >conftest.err
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try='test -z "$ac_c_werror_flag"
17950 || test ! -s conftest.err'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try='test -s conftest.$ac_objext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17964 cat >conftest.$ac_ext <<_ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 $ac_includes_default
17974 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17981 rm -f conftest.$ac_objext
17982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17983 (eval $ac_compile) 2>conftest.er1
17985 grep -v '^ *+' conftest.er1 >conftest.err
17987 cat conftest.err >&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } &&
17990 { ac_try='test -z "$ac_c_werror_flag"
17991 || test ! -s conftest.err'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; } &&
17997 { ac_try='test -s conftest.$ac_objext'
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ac_hi=$ac_mid; break
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 ac_lo=`expr $ac_mid + 1`
18009 if test $ac_lo -le $ac_mid; then
18013 ac_mid=`expr 2 '*' $ac_mid + 1`
18015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 $ac_includes_default
18031 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
18038 rm -f conftest.$ac_objext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18040 (eval $ac_compile) 2>conftest.er1
18042 grep -v '^ *+' conftest.er1 >conftest.err
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -z "$ac_c_werror_flag"
18048 || test ! -s conftest.err'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; } &&
18054 { ac_try='test -s conftest.$ac_objext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18062 cat >conftest.$ac_ext <<_ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 $ac_includes_default
18072 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
18083 grep -v '^ *+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag"
18089 || test ! -s conftest.err'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; } &&
18095 { ac_try='test -s conftest.$ac_objext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 ac_lo=$ac_mid; break
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18106 ac_hi=`expr '(' $ac_mid ')' - 1`
18107 if test $ac_mid -le $ac_hi; then
18111 ac_mid=`expr 2 '*' $ac_mid`
18113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18124 # Binary search between lo and hi bounds.
18125 while test "x$ac_lo" != "x$ac_hi"; do
18126 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18137 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
18144 rm -f conftest.$ac_objext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18146 (eval $ac_compile) 2>conftest.er1
18148 grep -v '^ *+' conftest.er1 >conftest.err
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag"
18154 || test ! -s conftest.err'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_lo=`expr '(' $ac_mid ')' + 1`
18173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18176 ?*) ac_cv_sizeof_long_int=$ac_lo;;
18177 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18178 See \`config.log' for more details." >&5
18179 echo "$as_me: error: cannot compute sizeof (long int), 77
18180 See \`config.log' for more details." >&2;}
18181 { (exit 1); exit 1; }; } ;;
18184 if test "$cross_compiling" = yes; then
18185 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18186 See \`config.log' for more details." >&5
18187 echo "$as_me: error: cannot run test program while cross compiling
18188 See \`config.log' for more details." >&2;}
18189 { (exit 1); exit 1; }; }
18191 cat >conftest.$ac_ext <<_ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18197 $ac_includes_default
18198 long longval () { return (long) (sizeof (long int)); }
18199 unsigned long ulongval () { return (long) (sizeof (long int)); }
18201 #include <stdlib.h>
18206 FILE *f = fopen ("conftest.val", "w");
18209 if (((long) (sizeof (long int))) < 0)
18211 long i = longval ();
18212 if (i != ((long) (sizeof (long int))))
18214 fprintf (f, "%ld\n", i);
18218 unsigned long i = ulongval ();
18219 if (i != ((long) (sizeof (long int))))
18221 fprintf (f, "%lu\n", i);
18223 exit (ferror (f) || fclose (f) != 0);
18229 rm -f conftest$ac_exeext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18231 (eval $ac_link) 2>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_cv_sizeof_long_int=`cat conftest.val`
18242 echo "$as_me: program exited with status $ac_status" >&5
18243 echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18246 ( exit $ac_status )
18247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18248 See \`config.log' for more details." >&5
18249 echo "$as_me: error: cannot compute sizeof (long int), 77
18250 See \`config.log' for more details." >&2;}
18251 { (exit 1); exit 1; }; }
18253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18258 ac_cv_sizeof_long_int=0
18261 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18262 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18263 cat >>confdefs.h <<_ACEOF
18264 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18268 echo "$as_me:$LINENO: checking for long long int" >&5
18269 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18270 if test "${ac_cv_type_long_long_int+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 cat >conftest.$ac_ext <<_ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 $ac_includes_default
18283 if ((long long int *) 0)
18285 if (sizeof (long long int))
18291 rm -f conftest.$ac_objext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag"
18301 || test ! -s conftest.err'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } &&
18307 { ac_try='test -s conftest.$ac_objext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 ac_cv_type_long_long_int=yes
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18318 ac_cv_type_long_long_int=no
18320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18323 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18325 echo "$as_me:$LINENO: checking size of long long int" >&5
18326 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18327 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 if test "$ac_cv_type_long_long_int" = yes; then
18331 # The cast to unsigned long works around a bug in the HP C Compiler
18332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18334 # This bug is HP SR number 8606223364.
18335 if test "$cross_compiling" = yes; then
18336 # Depending upon the size, compute the lo and hi bounds.
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 $ac_includes_default
18347 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18354 rm -f conftest.$ac_objext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18356 (eval $ac_compile) 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_c_werror_flag"
18364 || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest.$ac_objext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 $ac_includes_default
18388 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18395 rm -f conftest.$ac_objext
18396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397 (eval $ac_compile) 2>conftest.er1
18399 grep -v '^ *+' conftest.er1 >conftest.err
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_c_werror_flag"
18405 || test ! -s conftest.err'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest.$ac_objext'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 ac_hi=$ac_mid; break
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 ac_lo=`expr $ac_mid + 1`
18423 if test $ac_lo -le $ac_mid; then
18427 ac_mid=`expr 2 '*' $ac_mid + 1`
18429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 cat >conftest.$ac_ext <<_ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 $ac_includes_default
18445 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18452 rm -f conftest.$ac_objext
18453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18454 (eval $ac_compile) 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag"
18462 || test ! -s conftest.err'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; } &&
18468 { ac_try='test -s conftest.$ac_objext'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 $ac_includes_default
18486 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18493 rm -f conftest.$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495 (eval $ac_compile) 2>conftest.er1
18497 grep -v '^ *+' conftest.er1 >conftest.err
18499 cat conftest.err >&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -z "$ac_c_werror_flag"
18503 || test ! -s conftest.err'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest.$ac_objext'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_lo=$ac_mid; break
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18520 ac_hi=`expr '(' $ac_mid ')' - 1`
18521 if test $ac_mid -le $ac_hi; then
18525 ac_mid=`expr 2 '*' $ac_mid`
18527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18530 echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18538 # Binary search between lo and hi bounds.
18539 while test "x$ac_lo" != "x$ac_hi"; do
18540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 $ac_includes_default
18551 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18558 rm -f conftest.$ac_objext
18559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18560 (eval $ac_compile) 2>conftest.er1
18562 grep -v '^ *+' conftest.er1 >conftest.err
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag"
18568 || test ! -s conftest.err'
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; } &&
18574 { ac_try='test -s conftest.$ac_objext'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18582 echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18585 ac_lo=`expr '(' $ac_mid ')' + 1`
18587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18590 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18591 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18592 See \`config.log' for more details." >&5
18593 echo "$as_me: error: cannot compute sizeof (long long int), 77
18594 See \`config.log' for more details." >&2;}
18595 { (exit 1); exit 1; }; } ;;
18598 if test "$cross_compiling" = yes; then
18599 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18600 See \`config.log' for more details." >&5
18601 echo "$as_me: error: cannot run test program while cross compiling
18602 See \`config.log' for more details." >&2;}
18603 { (exit 1); exit 1; }; }
18605 cat >conftest.$ac_ext <<_ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 $ac_includes_default
18612 long longval () { return (long) (sizeof (long long int)); }
18613 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18615 #include <stdlib.h>
18620 FILE *f = fopen ("conftest.val", "w");
18623 if (((long) (sizeof (long long int))) < 0)
18625 long i = longval ();
18626 if (i != ((long) (sizeof (long long int))))
18628 fprintf (f, "%ld\n", i);
18632 unsigned long i = ulongval ();
18633 if (i != ((long) (sizeof (long long int))))
18635 fprintf (f, "%lu\n", i);
18637 exit (ferror (f) || fclose (f) != 0);
18643 rm -f conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645 (eval $ac_link) 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; }; then
18654 ac_cv_sizeof_long_long_int=`cat conftest.val`
18656 echo "$as_me: program exited with status $ac_status" >&5
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18660 ( exit $ac_status )
18661 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18662 See \`config.log' for more details." >&5
18663 echo "$as_me: error: cannot compute sizeof (long long int), 77
18664 See \`config.log' for more details." >&2;}
18665 { (exit 1); exit 1; }; }
18667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18672 ac_cv_sizeof_long_long_int=0
18675 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18676 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18677 cat >>confdefs.h <<_ACEOF
18678 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18682 echo "$as_me:$LINENO: checking for int *" >&5
18683 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18684 if test "${ac_cv_type_int_p+set}" = set; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18687 cat >conftest.$ac_ext <<_ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 $ac_includes_default
18699 if (sizeof (int *))
18705 rm -f conftest.$ac_objext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18707 (eval $ac_compile) 2>conftest.er1
18709 grep -v '^ *+' conftest.er1 >conftest.err
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_c_werror_flag"
18715 || test ! -s conftest.err'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } &&
18721 { ac_try='test -s conftest.$ac_objext'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_type_int_p=yes
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_cv_type_int_p=no
18734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18736 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18737 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18739 echo "$as_me:$LINENO: checking size of int *" >&5
18740 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18741 if test "${ac_cv_sizeof_int_p+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 if test "$ac_cv_type_int_p" = yes; then
18745 # The cast to unsigned long works around a bug in the HP C Compiler
18746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18748 # This bug is HP SR number 8606223364.
18749 if test "$cross_compiling" = yes; then
18750 # Depending upon the size, compute the lo and hi bounds.
18751 cat >conftest.$ac_ext <<_ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18757 $ac_includes_default
18761 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18768 rm -f conftest.$ac_objext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18770 (eval $ac_compile) 2>conftest.er1
18772 grep -v '^ *+' conftest.er1 >conftest.err
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try='test -z "$ac_c_werror_flag"
18778 || test ! -s conftest.err'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest.$ac_objext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 $ac_includes_default
18802 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18813 grep -v '^ *+' conftest.er1 >conftest.err
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest.$ac_objext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 ac_hi=$ac_mid; break
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 ac_lo=`expr $ac_mid + 1`
18837 if test $ac_lo -le $ac_mid; then
18841 ac_mid=`expr 2 '*' $ac_mid + 1`
18843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 cat >conftest.$ac_ext <<_ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18855 $ac_includes_default
18859 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18866 rm -f conftest.$ac_objext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18868 (eval $ac_compile) 2>conftest.er1
18870 grep -v '^ *+' conftest.er1 >conftest.err
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } &&
18875 { ac_try='test -z "$ac_c_werror_flag"
18876 || test ! -s conftest.err'
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest.$ac_objext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18890 cat >conftest.$ac_ext <<_ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 $ac_includes_default
18900 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18907 rm -f conftest.$ac_objext
18908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18909 (eval $ac_compile) 2>conftest.er1
18911 grep -v '^ *+' conftest.er1 >conftest.err
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_c_werror_flag"
18917 || test ! -s conftest.err'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_lo=$ac_mid; break
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 ac_hi=`expr '(' $ac_mid ')' - 1`
18935 if test $ac_mid -le $ac_hi; then
18939 ac_mid=`expr 2 '*' $ac_mid`
18941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18952 # Binary search between lo and hi bounds.
18953 while test "x$ac_lo" != "x$ac_hi"; do
18954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18965 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18972 rm -f conftest.$ac_objext
18973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18974 (eval $ac_compile) 2>conftest.er1
18976 grep -v '^ *+' conftest.er1 >conftest.err
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
18981 { ac_try='test -z "$ac_c_werror_flag"
18982 || test ! -s conftest.err'
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18999 ac_lo=`expr '(' $ac_mid ')' + 1`
19001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19004 ?*) ac_cv_sizeof_int_p=$ac_lo;;
19005 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
19006 See \`config.log' for more details." >&5
19007 echo "$as_me: error: cannot compute sizeof (int *), 77
19008 See \`config.log' for more details." >&2;}
19009 { (exit 1); exit 1; }; } ;;
19012 if test "$cross_compiling" = yes; then
19013 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19014 See \`config.log' for more details." >&5
19015 echo "$as_me: error: cannot run test program while cross compiling
19016 See \`config.log' for more details." >&2;}
19017 { (exit 1); exit 1; }; }
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19025 $ac_includes_default
19026 long longval () { return (long) (sizeof (int *)); }
19027 unsigned long ulongval () { return (long) (sizeof (int *)); }
19029 #include <stdlib.h>
19034 FILE *f = fopen ("conftest.val", "w");
19037 if (((long) (sizeof (int *))) < 0)
19039 long i = longval ();
19040 if (i != ((long) (sizeof (int *))))
19042 fprintf (f, "%ld\n", i);
19046 unsigned long i = ulongval ();
19047 if (i != ((long) (sizeof (int *))))
19049 fprintf (f, "%lu\n", i);
19051 exit (ferror (f) || fclose (f) != 0);
19057 rm -f conftest$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059 (eval $ac_link) 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_sizeof_int_p=`cat conftest.val`
19070 echo "$as_me: program exited with status $ac_status" >&5
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ( exit $ac_status )
19075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
19076 See \`config.log' for more details." >&5
19077 echo "$as_me: error: cannot compute sizeof (int *), 77
19078 See \`config.log' for more details." >&2;}
19079 { (exit 1); exit 1; }; }
19081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19086 ac_cv_sizeof_int_p=0
19089 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
19090 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
19091 cat >>confdefs.h <<_ACEOF
19092 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
19097 # Check for sys/types.h types
19098 echo "$as_me:$LINENO: checking for u_int type" >&5
19099 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
19100 if test "${ac_cv_have_u_int+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19110 #include <sys/types.h>
19119 rm -f conftest.$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121 (eval $ac_compile) 2>conftest.er1
19123 grep -v '^ *+' conftest.er1 >conftest.err
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest.$ac_objext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_cv_have_u_int="yes"
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_cv_have_u_int="no"
19149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19152 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
19153 echo "${ECHO_T}$ac_cv_have_u_int" >&6
19154 if test "x$ac_cv_have_u_int" = "xyes" ; then
19155 cat >>confdefs.h <<\_ACEOF
19156 #define HAVE_U_INT 1
19162 echo "$as_me:$LINENO: checking for intmax_t type" >&5
19163 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
19164 if test "${ac_cv_have_intmax_t+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 cat >conftest.$ac_ext <<_ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19174 #include <sys/types.h>
19183 rm -f conftest.$ac_objext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19185 (eval $ac_compile) 2>conftest.er1
19187 grep -v '^ *+' conftest.er1 >conftest.err
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
19192 { ac_try='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest.$ac_objext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_cv_have_intmax_t="yes"
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19211 cat >conftest.$ac_ext <<_ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h. */
19217 #include <stdint.h>
19226 rm -f conftest.$ac_objext
19227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228 (eval $ac_compile) 2>conftest.er1
19230 grep -v '^ *+' conftest.er1 >conftest.err
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try='test -z "$ac_c_werror_flag"
19236 || test ! -s conftest.err'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19248 ac_cv_have_intmax_t="yes"
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ac_cv_have_intmax_t="no"
19256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19264 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19265 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19266 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19267 cat >>confdefs.h <<\_ACEOF
19268 #define HAVE_INTMAX_T 1
19275 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19276 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19277 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 #include <sys/types.h>
19291 u_intmax_t a; a = 1;
19296 rm -f conftest.$ac_objext
19297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19298 (eval $ac_compile) 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -z "$ac_c_werror_flag"
19306 || test ! -s conftest.err'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest.$ac_objext'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_cv_have_u_intmax_t="yes"
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 #include <stdint.h>
19334 u_intmax_t a; a = 1;
19339 rm -f conftest.$ac_objext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19341 (eval $ac_compile) 2>conftest.er1
19343 grep -v '^ *+' conftest.er1 >conftest.err
19345 cat conftest.err >&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } &&
19348 { ac_try='test -z "$ac_c_werror_flag"
19349 || test ! -s conftest.err'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest.$ac_objext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 ac_cv_have_u_intmax_t="yes"
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 ac_cv_have_u_intmax_t="no"
19369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19376 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19377 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19378 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19379 cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_U_INTMAX_T 1
19387 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19388 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19389 if test "${ac_cv_have_intxx_t+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 #include <sys/types.h>
19403 int8_t a; int16_t b; int32_t c; a = b = c = 1;
19408 rm -f conftest.$ac_objext
19409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19410 (eval $ac_compile) 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } &&
19417 { ac_try='test -z "$ac_c_werror_flag"
19418 || test ! -s conftest.err'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; } &&
19424 { ac_try='test -s conftest.$ac_objext'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 ac_cv_have_intxx_t="yes"
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_cv_have_intxx_t="no"
19438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19441 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19442 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19443 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19444 cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_INTXX_T 1
19451 echo "$as_me:$LINENO: checking for int64_t type" >&5
19452 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19453 if test "${ac_cv_have_int64_t+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 #include <sys/types.h>
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474 (eval $ac_compile) 2>conftest.er1
19476 grep -v '^ *+' conftest.er1 >conftest.err
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag"
19482 || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_cv_have_int64_t="yes"
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ac_cv_have_int64_t="no"
19502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19505 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19506 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19507 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19508 cat >>confdefs.h <<\_ACEOF
19509 #define HAVE_INT64_T 1
19515 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19516 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19517 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19527 #include <sys/types.h>
19531 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19536 rm -f conftest.$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538 (eval $ac_compile) 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag"
19546 || test ! -s conftest.err'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_have_u_intxx_t="yes"
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_cv_have_u_intxx_t="no"
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19569 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19570 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19571 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19572 cat >>confdefs.h <<\_ACEOF
19573 #define HAVE_U_INTXX_T 1
19579 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19580 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19581 if test "${ac_cv_have_u_int64_t+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #include <sys/types.h>
19595 u_int64_t a; a = 1;
19600 rm -f conftest.$ac_objext
19601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19602 (eval $ac_compile) 2>conftest.er1
19604 grep -v '^ *+' conftest.er1 >conftest.err
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
19609 { ac_try='test -z "$ac_c_werror_flag"
19610 || test ! -s conftest.err'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try='test -s conftest.$ac_objext'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 ac_cv_have_u_int64_t="yes"
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 ac_cv_have_u_int64_t="no"
19630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19633 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19634 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19635 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19636 cat >>confdefs.h <<\_ACEOF
19637 #define HAVE_U_INT64_T 1
19643 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19644 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19646 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19647 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 #include <sys/bitypes.h>
19658 int8_t a; int16_t b; int32_t c;
19659 u_int8_t e; u_int16_t f; u_int32_t g;
19660 a = b = c = e = f = g = 1;
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag"
19675 || test ! -s conftest.err'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_U_INTXX_T 1
19691 cat >>confdefs.h <<\_ACEOF
19692 #define HAVE_INTXX_T 1
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_SYS_BITYPES_H 1
19699 echo "$as_me:$LINENO: result: yes" >&5
19700 echo "${ECHO_T}yes" >&6
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 echo "$as_me:$LINENO: result: no" >&5
19706 echo "${ECHO_T}no" >&6
19709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19712 if test -z "$have_u_intxx_t" ; then
19713 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19714 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19715 if test "${ac_cv_have_uintxx_t+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #include <sys/types.h>
19729 uint8_t a; uint16_t b;
19730 uint32_t c; a = b = c = 1;
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_have_uintxx_t="yes"
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_have_uintxx_t="no"
19765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19768 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19769 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19770 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19771 cat >>confdefs.h <<\_ACEOF
19772 #define HAVE_UINTXX_T 1
19778 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19779 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19781 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19782 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19783 cat >conftest.$ac_ext <<_ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 #include <sys/bitypes.h>
19793 int64_t a; u_int64_t b;
19799 rm -f conftest.$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_c_werror_flag"
19809 || test ! -s conftest.err'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_U_INT64_T 1
19825 cat >>confdefs.h <<\_ACEOF
19826 #define HAVE_INT64_T 1
19829 echo "$as_me:$LINENO: result: yes" >&5
19830 echo "${ECHO_T}yes" >&6
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 echo "$as_me:$LINENO: result: no" >&5
19836 echo "${ECHO_T}no" >&6
19839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19842 if (test -z "$have_uintxx_t" && \
19843 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19845 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19846 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 #include <sys/bitypes.h>
19857 uint8_t a; uint16_t b;
19858 uint32_t c; a = b = c = 1;
19863 rm -f conftest.$ac_objext
19864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19865 (eval $ac_compile) 2>conftest.er1
19867 grep -v '^ *+' conftest.er1 >conftest.err
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
19872 { ac_try='test -z "$ac_c_werror_flag"
19873 || test ! -s conftest.err'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; } &&
19879 { ac_try='test -s conftest.$ac_objext'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; }; then
19885 cat >>confdefs.h <<\_ACEOF
19886 #define HAVE_UINTXX_T 1
19889 echo "$as_me:$LINENO: result: yes" >&5
19890 echo "${ECHO_T}yes" >&6
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 echo "$as_me:$LINENO: result: no" >&5
19896 echo "${ECHO_T}no" >&6
19899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19936 echo "$as_me:$LINENO: checking for $ac_func" >&5
19937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19938 if eval "test \"\${$as_ac_var+set}\" = set"; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19949 #define $ac_func innocuous_$ac_func
19951 /* System header to define __stub macros and hopefully few prototypes,
19952 which can conflict with char $ac_func (); below.
19953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19954 <limits.h> exists even on freestanding compilers. */
19957 # include <limits.h>
19959 # include <assert.h>
19964 /* Override any gcc2 internal prototype to avoid an error. */
19969 /* We use char because int might match the return type of a gcc2
19970 builtin and then its argument prototype would still apply. */
19972 /* The GNU C library defines this for functions which it implements
19973 to always fail with ENOSYS. Some functions are actually named
19974 something starting with __ and the normal name is an alias. */
19975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19978 char (*f) () = $ac_func;
19987 return f != $ac_func;
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19994 (eval $ac_link) 2>conftest.er1
19996 grep -v '^ *+' conftest.er1 >conftest.err
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } &&
20001 { ac_try='test -z "$ac_c_werror_flag"
20002 || test ! -s conftest.err'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; } &&
20008 { ac_try='test -s conftest$ac_exeext'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; }; then
20014 eval "$as_ac_var=yes"
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 eval "$as_ac_var=no"
20021 rm -f conftest.err conftest.$ac_objext \
20022 conftest$ac_exeext conftest.$ac_ext
20024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20026 if test `eval echo '${'$as_ac_var'}'` = yes; then
20027 cat >>confdefs.h <<_ACEOF
20028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20032 echo 'configure: cannot find needed function.'; exit 1
20039 for ac_func in fchdir
20041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20042 echo "$as_me:$LINENO: checking for $ac_func" >&5
20043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20044 if eval "test \"\${$as_ac_var+set}\" = set"; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 cat >conftest.$ac_ext <<_ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20055 #define $ac_func innocuous_$ac_func
20057 /* System header to define __stub macros and hopefully few prototypes,
20058 which can conflict with char $ac_func (); below.
20059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20060 <limits.h> exists even on freestanding compilers. */
20063 # include <limits.h>
20065 # include <assert.h>
20070 /* Override any gcc2 internal prototype to avoid an error. */
20075 /* We use char because int might match the return type of a gcc2
20076 builtin and then its argument prototype would still apply. */
20078 /* The GNU C library defines this for functions which it implements
20079 to always fail with ENOSYS. Some functions are actually named
20080 something starting with __ and the normal name is an alias. */
20081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20084 char (*f) () = $ac_func;
20093 return f != $ac_func;
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20100 (eval $ac_link) 2>conftest.er1
20102 grep -v '^ *+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -z "$ac_c_werror_flag"
20108 || test ! -s conftest.err'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; } &&
20114 { ac_try='test -s conftest$ac_exeext'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120 eval "$as_ac_var=yes"
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 eval "$as_ac_var=no"
20127 rm -f conftest.err conftest.$ac_objext \
20128 conftest$ac_exeext conftest.$ac_ext
20130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20132 if test `eval echo '${'$as_ac_var'}'` = yes; then
20133 cat >>confdefs.h <<_ACEOF
20134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20136 cat >>confdefs.h <<\_ACEOF
20137 #define HAVE_FCHDIR 1
20144 for ac_func in strtoll
20146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20147 echo "$as_me:$LINENO: checking for $ac_func" >&5
20148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20149 if eval "test \"\${$as_ac_var+set}\" = set"; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 cat >conftest.$ac_ext <<_ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20160 #define $ac_func innocuous_$ac_func
20162 /* System header to define __stub macros and hopefully few prototypes,
20163 which can conflict with char $ac_func (); below.
20164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20165 <limits.h> exists even on freestanding compilers. */
20168 # include <limits.h>
20170 # include <assert.h>
20175 /* Override any gcc2 internal prototype to avoid an error. */
20180 /* We use char because int might match the return type of a gcc2
20181 builtin and then its argument prototype would still apply. */
20183 /* The GNU C library defines this for functions which it implements
20184 to always fail with ENOSYS. Some functions are actually named
20185 something starting with __ and the normal name is an alias. */
20186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20189 char (*f) () = $ac_func;
20198 return f != $ac_func;
20203 rm -f conftest.$ac_objext conftest$ac_exeext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205 (eval $ac_link) 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -z "$ac_c_werror_flag"
20213 || test ! -s conftest.err'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest$ac_exeext'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 eval "$as_ac_var=yes"
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 eval "$as_ac_var=no"
20232 rm -f conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20237 if test `eval echo '${'$as_ac_var'}'` = yes; then
20238 cat >>confdefs.h <<_ACEOF
20239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20241 cat >>confdefs.h <<\_ACEOF
20242 #define HAVE_STRTOLL 1
20250 for ac_func in chflags
20252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20253 echo "$as_me:$LINENO: checking for $ac_func" >&5
20254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20255 if eval "test \"\${$as_ac_var+set}\" = set"; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 cat >conftest.$ac_ext <<_ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20266 #define $ac_func innocuous_$ac_func
20268 /* System header to define __stub macros and hopefully few prototypes,
20269 which can conflict with char $ac_func (); below.
20270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20271 <limits.h> exists even on freestanding compilers. */
20274 # include <limits.h>
20276 # include <assert.h>
20281 /* Override any gcc2 internal prototype to avoid an error. */
20286 /* We use char because int might match the return type of a gcc2
20287 builtin and then its argument prototype would still apply. */
20289 /* The GNU C library defines this for functions which it implements
20290 to always fail with ENOSYS. Some functions are actually named
20291 something starting with __ and the normal name is an alias. */
20292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20295 char (*f) () = $ac_func;
20304 return f != $ac_func;
20309 rm -f conftest.$ac_objext conftest$ac_exeext
20310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20311 (eval $ac_link) 2>conftest.er1
20313 grep -v '^ *+' conftest.er1 >conftest.err
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try='test -z "$ac_c_werror_flag"
20319 || test ! -s conftest.err'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; } &&
20325 { ac_try='test -s conftest$ac_exeext'
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
20331 eval "$as_ac_var=yes"
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20336 eval "$as_ac_var=no"
20338 rm -f conftest.err conftest.$ac_objext \
20339 conftest$ac_exeext conftest.$ac_ext
20341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20343 if test `eval echo '${'$as_ac_var'}'` = yes; then
20344 cat >>confdefs.h <<_ACEOF
20345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20356 for ac_func in snprintf vsnprintf gethostid fseeko
20358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20359 echo "$as_me:$LINENO: checking for $ac_func" >&5
20360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20361 if eval "test \"\${$as_ac_var+set}\" = set"; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20372 #define $ac_func innocuous_$ac_func
20374 /* System header to define __stub macros and hopefully few prototypes,
20375 which can conflict with char $ac_func (); below.
20376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20377 <limits.h> exists even on freestanding compilers. */
20380 # include <limits.h>
20382 # include <assert.h>
20387 /* Override any gcc2 internal prototype to avoid an error. */
20392 /* We use char because int might match the return type of a gcc2
20393 builtin and then its argument prototype would still apply. */
20395 /* The GNU C library defines this for functions which it implements
20396 to always fail with ENOSYS. Some functions are actually named
20397 something starting with __ and the normal name is an alias. */
20398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20401 char (*f) () = $ac_func;
20410 return f != $ac_func;
20415 rm -f conftest.$ac_objext conftest$ac_exeext
20416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20417 (eval $ac_link) 2>conftest.er1
20419 grep -v '^ *+' conftest.er1 >conftest.err
20421 cat conftest.err >&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } &&
20424 { ac_try='test -z "$ac_c_werror_flag"
20425 || test ! -s conftest.err'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; } &&
20431 { ac_try='test -s conftest$ac_exeext'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 eval "$as_ac_var=yes"
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 eval "$as_ac_var=no"
20444 rm -f conftest.err conftest.$ac_objext \
20445 conftest$ac_exeext conftest.$ac_ext
20447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20449 if test `eval echo '${'$as_ac_var'}'` = yes; then
20450 cat >>confdefs.h <<_ACEOF
20451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20462 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20465 echo "$as_me:$LINENO: checking for $ac_func" >&5
20466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20467 if eval "test \"\${$as_ac_var+set}\" = set"; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20478 #define $ac_func innocuous_$ac_func
20480 /* System header to define __stub macros and hopefully few prototypes,
20481 which can conflict with char $ac_func (); below.
20482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20483 <limits.h> exists even on freestanding compilers. */
20486 # include <limits.h>
20488 # include <assert.h>
20493 /* Override any gcc2 internal prototype to avoid an error. */
20498 /* We use char because int might match the return type of a gcc2
20499 builtin and then its argument prototype would still apply. */
20501 /* The GNU C library defines this for functions which it implements
20502 to always fail with ENOSYS. Some functions are actually named
20503 something starting with __ and the normal name is an alias. */
20504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20507 char (*f) () = $ac_func;
20516 return f != $ac_func;
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20523 (eval $ac_link) 2>conftest.er1
20525 grep -v '^ *+' conftest.er1 >conftest.err
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
20530 { ac_try='test -z "$ac_c_werror_flag"
20531 || test ! -s conftest.err'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest$ac_exeext'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 eval "$as_ac_var=yes"
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20548 eval "$as_ac_var=no"
20550 rm -f conftest.err conftest.$ac_objext \
20551 conftest$ac_exeext conftest.$ac_ext
20553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20555 if test `eval echo '${'$as_ac_var'}'` = yes; then
20556 cat >>confdefs.h <<_ACEOF
20557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20564 # If resolver functions are not in libc check for -lnsl or -lresolv.
20565 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20566 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20567 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 cat >conftest.$ac_ext <<_ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20576 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20578 #define gethostbyname_r innocuous_gethostbyname_r
20580 /* System header to define __stub macros and hopefully few prototypes,
20581 which can conflict with char gethostbyname_r (); below.
20582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20583 <limits.h> exists even on freestanding compilers. */
20586 # include <limits.h>
20588 # include <assert.h>
20591 #undef gethostbyname_r
20593 /* Override any gcc2 internal prototype to avoid an error. */
20598 /* We use char because int might match the return type of a gcc2
20599 builtin and then its argument prototype would still apply. */
20600 char gethostbyname_r ();
20601 /* The GNU C library defines this for functions which it implements
20602 to always fail with ENOSYS. Some functions are actually named
20603 something starting with __ and the normal name is an alias. */
20604 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20607 char (*f) () = gethostbyname_r;
20616 return f != gethostbyname_r;
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623 (eval $ac_link) 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
20630 { ac_try='test -z "$ac_c_werror_flag"
20631 || test ! -s conftest.err'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; } &&
20637 { ac_try='test -s conftest$ac_exeext'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 ac_cv_func_gethostbyname_r=yes
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ac_cv_func_gethostbyname_r=no
20650 rm -f conftest.err conftest.$ac_objext \
20651 conftest$ac_exeext conftest.$ac_ext
20653 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20654 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20655 if test $ac_cv_func_gethostbyname_r = yes; then
20656 echo "$as_me:$LINENO: result: using libc's resolver" >&5
20657 echo "${ECHO_T}using libc's resolver" >&6
20660 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20661 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20662 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20665 ac_check_lib_save_LIBS=$LIBS
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 /* Override any gcc2 internal prototype to avoid an error. */
20678 /* We use char because int might match the return type of a gcc2
20679 builtin and then its argument prototype would still apply. */
20680 char gethostbyname_r ();
20684 gethostbyname_r ();
20689 rm -f conftest.$ac_objext conftest$ac_exeext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691 (eval $ac_link) 2>conftest.er1
20693 grep -v '^ *+' conftest.er1 >conftest.err
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -z "$ac_c_werror_flag"
20699 || test ! -s conftest.err'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; } &&
20705 { ac_try='test -s conftest$ac_exeext'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; }; then
20711 ac_cv_lib_nsl_gethostbyname_r=yes
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 ac_cv_lib_nsl_gethostbyname_r=no
20718 rm -f conftest.err conftest.$ac_objext \
20719 conftest$ac_exeext conftest.$ac_ext
20720 LIBS=$ac_check_lib_save_LIBS
20722 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20723 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20724 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define HAVE_LIBNSL 1
20734 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20735 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20736 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-lresolv $LIBS"
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20748 /* Override any gcc2 internal prototype to avoid an error. */
20752 /* We use char because int might match the return type of a gcc2
20753 builtin and then its argument prototype would still apply. */
20754 char gethostbyname_r ();
20758 gethostbyname_r ();
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765 (eval $ac_link) 2>conftest.er1
20767 grep -v '^ *+' conftest.er1 >conftest.err
20769 cat conftest.err >&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } &&
20772 { ac_try='test -z "$ac_c_werror_flag"
20773 || test ! -s conftest.err'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; } &&
20779 { ac_try='test -s conftest$ac_exeext'
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785 ac_cv_lib_resolv_gethostbyname_r=yes
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20790 ac_cv_lib_resolv_gethostbyname_r=no
20792 rm -f conftest.err conftest.$ac_objext \
20793 conftest$ac_exeext conftest.$ac_ext
20794 LIBS=$ac_check_lib_save_LIBS
20796 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20797 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20798 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20799 cat >>confdefs.h <<_ACEOF
20800 #define HAVE_LIBRESOLV 1
20803 LIBS="-lresolv $LIBS"
20813 for ac_func in inet_pton
20815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20816 echo "$as_me:$LINENO: checking for $ac_func" >&5
20817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20818 if eval "test \"\${$as_ac_var+set}\" = set"; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20829 #define $ac_func innocuous_$ac_func
20831 /* System header to define __stub macros and hopefully few prototypes,
20832 which can conflict with char $ac_func (); below.
20833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834 <limits.h> exists even on freestanding compilers. */
20837 # include <limits.h>
20839 # include <assert.h>
20844 /* Override any gcc2 internal prototype to avoid an error. */
20849 /* We use char because int might match the return type of a gcc2
20850 builtin and then its argument prototype would still apply. */
20852 /* The GNU C library defines this for functions which it implements
20853 to always fail with ENOSYS. Some functions are actually named
20854 something starting with __ and the normal name is an alias. */
20855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20858 char (*f) () = $ac_func;
20867 return f != $ac_func;
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20874 (eval $ac_link) 2>conftest.er1
20876 grep -v '^ *+' conftest.er1 >conftest.err
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } &&
20881 { ac_try='test -z "$ac_c_werror_flag"
20882 || test ! -s conftest.err'
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; } &&
20888 { ac_try='test -s conftest$ac_exeext'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894 eval "$as_ac_var=yes"
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899 eval "$as_ac_var=no"
20901 rm -f conftest.err conftest.$ac_objext \
20902 conftest$ac_exeext conftest.$ac_ext
20904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20906 if test `eval echo '${'$as_ac_var'}'` = yes; then
20907 cat >>confdefs.h <<_ACEOF
20908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_INET_PTON 1
20918 for ac_func in inet_ntop
20920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20921 echo "$as_me:$LINENO: checking for $ac_func" >&5
20922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20923 if eval "test \"\${$as_ac_var+set}\" = set"; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 cat >conftest.$ac_ext <<_ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20934 #define $ac_func innocuous_$ac_func
20936 /* System header to define __stub macros and hopefully few prototypes,
20937 which can conflict with char $ac_func (); below.
20938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20939 <limits.h> exists even on freestanding compilers. */
20942 # include <limits.h>
20944 # include <assert.h>
20949 /* Override any gcc2 internal prototype to avoid an error. */
20954 /* We use char because int might match the return type of a gcc2
20955 builtin and then its argument prototype would still apply. */
20957 /* The GNU C library defines this for functions which it implements
20958 to always fail with ENOSYS. Some functions are actually named
20959 something starting with __ and the normal name is an alias. */
20960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20963 char (*f) () = $ac_func;
20972 return f != $ac_func;
20977 rm -f conftest.$ac_objext conftest$ac_exeext
20978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20979 (eval $ac_link) 2>conftest.er1
20981 grep -v '^ *+' conftest.er1 >conftest.err
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
20986 { ac_try='test -z "$ac_c_werror_flag"
20987 || test ! -s conftest.err'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; } &&
20993 { ac_try='test -s conftest$ac_exeext'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 eval "$as_ac_var=yes"
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 eval "$as_ac_var=no"
21006 rm -f conftest.err conftest.$ac_objext \
21007 conftest$ac_exeext conftest.$ac_ext
21009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21011 if test `eval echo '${'$as_ac_var'}'` = yes; then
21012 cat >>confdefs.h <<_ACEOF
21013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21015 cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_INET_NTOP 1
21023 for ac_func in gethostbyname2
21025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21026 echo "$as_me:$LINENO: checking for $ac_func" >&5
21027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21028 if eval "test \"\${$as_ac_var+set}\" = set"; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21039 #define $ac_func innocuous_$ac_func
21041 /* System header to define __stub macros and hopefully few prototypes,
21042 which can conflict with char $ac_func (); below.
21043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21044 <limits.h> exists even on freestanding compilers. */
21047 # include <limits.h>
21049 # include <assert.h>
21054 /* Override any gcc2 internal prototype to avoid an error. */
21059 /* We use char because int might match the return type of a gcc2
21060 builtin and then its argument prototype would still apply. */
21062 /* The GNU C library defines this for functions which it implements
21063 to always fail with ENOSYS. Some functions are actually named
21064 something starting with __ and the normal name is an alias. */
21065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21068 char (*f) () = $ac_func;
21077 return f != $ac_func;
21082 rm -f conftest.$ac_objext conftest$ac_exeext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084 (eval $ac_link) 2>conftest.er1
21086 grep -v '^ *+' conftest.er1 >conftest.err
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -z "$ac_c_werror_flag"
21092 || test ! -s conftest.err'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; } &&
21098 { ac_try='test -s conftest$ac_exeext'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }; then
21104 eval "$as_ac_var=yes"
21106 echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 eval "$as_ac_var=no"
21111 rm -f conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
21114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21116 if test `eval echo '${'$as_ac_var'}'` = yes; then
21117 cat >>confdefs.h <<_ACEOF
21118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21120 cat >>confdefs.h <<\_ACEOF
21121 #define HAVE_GETHOSTBYNAME2 1
21128 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
21129 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
21130 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 #include <sys/socket.h>
21143 struct sockaddr s; s.sa_len;
21148 rm -f conftest.$ac_objext
21149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21150 (eval $ac_compile) 2>conftest.er1
21152 grep -v '^ *+' conftest.er1 >conftest.err
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } &&
21157 { ac_try='test -z "$ac_c_werror_flag"
21158 || test ! -s conftest.err'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; } &&
21164 { ac_try='test -s conftest.$ac_objext'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 ac_cv_struct_sockaddr_sa_len=yes
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21175 ac_cv_struct_sockaddr_sa_len=no
21177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21179 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21180 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21182 if test $ac_cv_struct_sockaddr_sa_len = yes; then
21184 cat >>confdefs.h <<\_ACEOF
21185 #define HAVE_SA_LEN 1
21191 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21192 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21193 if test "${ac_cv_ipv6_support+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 #include <sys/types.h>
21203 #include <sys/socket.h>
21204 #include <netinet/in.h>
21208 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21214 rm -f conftest.$ac_objext conftest$ac_exeext
21215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21216 (eval $ac_link) 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } &&
21223 { ac_try='test -z "$ac_c_werror_flag"
21224 || test ! -s conftest.err'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; } &&
21230 { ac_try='test -s conftest$ac_exeext'
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; }; then
21236 ac_cv_ipv6_support=yes
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21241 ac_cv_ipv6_support=no
21243 rm -f conftest.err conftest.$ac_objext \
21244 conftest$ac_exeext conftest.$ac_ext
21246 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21247 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21249 if test "$ac_cv_ipv6_support" = yes; then
21251 cat >>confdefs.h <<\_ACEOF
21252 #define HAVE_IPV6 1
21260 for ac_func in strftime
21262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21263 echo "$as_me:$LINENO: checking for $ac_func" >&5
21264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21265 if eval "test \"\${$as_ac_var+set}\" = set"; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21276 #define $ac_func innocuous_$ac_func
21278 /* System header to define __stub macros and hopefully few prototypes,
21279 which can conflict with char $ac_func (); below.
21280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21281 <limits.h> exists even on freestanding compilers. */
21284 # include <limits.h>
21286 # include <assert.h>
21291 /* Override any gcc2 internal prototype to avoid an error. */
21296 /* We use char because int might match the return type of a gcc2
21297 builtin and then its argument prototype would still apply. */
21299 /* The GNU C library defines this for functions which it implements
21300 to always fail with ENOSYS. Some functions are actually named
21301 something starting with __ and the normal name is an alias. */
21302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21305 char (*f) () = $ac_func;
21314 return f != $ac_func;
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21321 (eval $ac_link) 2>conftest.er1
21323 grep -v '^ *+' conftest.er1 >conftest.err
21325 cat conftest.err >&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } &&
21328 { ac_try='test -z "$ac_c_werror_flag"
21329 || test ! -s conftest.err'
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; } &&
21335 { ac_try='test -s conftest$ac_exeext'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
21341 eval "$as_ac_var=yes"
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 eval "$as_ac_var=no"
21348 rm -f conftest.err conftest.$ac_objext \
21349 conftest$ac_exeext conftest.$ac_ext
21351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21353 if test `eval echo '${'$as_ac_var'}'` = yes; then
21354 cat >>confdefs.h <<_ACEOF
21355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21359 # strftime is in -lintl on SCO UNIX.
21360 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21361 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21362 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 ac_check_lib_save_LIBS=$LIBS
21366 LIBS="-lintl $LIBS"
21367 cat >conftest.$ac_ext <<_ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21374 /* Override any gcc2 internal prototype to avoid an error. */
21378 /* We use char because int might match the return type of a gcc2
21379 builtin and then its argument prototype would still apply. */
21389 rm -f conftest.$ac_objext conftest$ac_exeext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21391 (eval $ac_link) 2>conftest.er1
21393 grep -v '^ *+' conftest.er1 >conftest.err
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } &&
21398 { ac_try='test -z "$ac_c_werror_flag"
21399 || test ! -s conftest.err'
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; } &&
21405 { ac_try='test -s conftest$ac_exeext'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 ac_cv_lib_intl_strftime=yes
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21416 ac_cv_lib_intl_strftime=no
21418 rm -f conftest.err conftest.$ac_objext \
21419 conftest$ac_exeext conftest.$ac_ext
21420 LIBS=$ac_check_lib_save_LIBS
21422 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21423 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21424 if test $ac_cv_lib_intl_strftime = yes; then
21425 cat >>confdefs.h <<\_ACEOF
21426 #define HAVE_STRFTIME 1
21429 LIBS="-lintl $LIBS"
21436 for ac_func in vprintf
21438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21439 echo "$as_me:$LINENO: checking for $ac_func" >&5
21440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21441 if eval "test \"\${$as_ac_var+set}\" = set"; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 cat >conftest.$ac_ext <<_ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h. */
21450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21452 #define $ac_func innocuous_$ac_func
21454 /* System header to define __stub macros and hopefully few prototypes,
21455 which can conflict with char $ac_func (); below.
21456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457 <limits.h> exists even on freestanding compilers. */
21460 # include <limits.h>
21462 # include <assert.h>
21467 /* Override any gcc2 internal prototype to avoid an error. */
21472 /* We use char because int might match the return type of a gcc2
21473 builtin and then its argument prototype would still apply. */
21475 /* The GNU C library defines this for functions which it implements
21476 to always fail with ENOSYS. Some functions are actually named
21477 something starting with __ and the normal name is an alias. */
21478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21481 char (*f) () = $ac_func;
21490 return f != $ac_func;
21495 rm -f conftest.$ac_objext conftest$ac_exeext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497 (eval $ac_link) 2>conftest.er1
21499 grep -v '^ *+' conftest.er1 >conftest.err
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } &&
21504 { ac_try='test -z "$ac_c_werror_flag"
21505 || test ! -s conftest.err'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; } &&
21511 { ac_try='test -s conftest$ac_exeext'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 eval "$as_ac_var=yes"
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 eval "$as_ac_var=no"
21524 rm -f conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext conftest.$ac_ext
21527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21529 if test `eval echo '${'$as_ac_var'}'` = yes; then
21530 cat >>confdefs.h <<_ACEOF
21531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21534 echo "$as_me:$LINENO: checking for _doprnt" >&5
21535 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21536 if test "${ac_cv_func__doprnt+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 cat >conftest.$ac_ext <<_ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21547 #define _doprnt innocuous__doprnt
21549 /* System header to define __stub macros and hopefully few prototypes,
21550 which can conflict with char _doprnt (); below.
21551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21552 <limits.h> exists even on freestanding compilers. */
21555 # include <limits.h>
21557 # include <assert.h>
21562 /* Override any gcc2 internal prototype to avoid an error. */
21567 /* We use char because int might match the return type of a gcc2
21568 builtin and then its argument prototype would still apply. */
21570 /* The GNU C library defines this for functions which it implements
21571 to always fail with ENOSYS. Some functions are actually named
21572 something starting with __ and the normal name is an alias. */
21573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21576 char (*f) () = _doprnt;
21585 return f != _doprnt;
21590 rm -f conftest.$ac_objext conftest$ac_exeext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21592 (eval $ac_link) 2>conftest.er1
21594 grep -v '^ *+' conftest.er1 >conftest.err
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
21599 { ac_try='test -z "$ac_c_werror_flag"
21600 || test ! -s conftest.err'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest$ac_exeext'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21612 ac_cv_func__doprnt=yes
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_cv_func__doprnt=no
21619 rm -f conftest.err conftest.$ac_objext \
21620 conftest$ac_exeext conftest.$ac_ext
21622 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21623 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21624 if test $ac_cv_func__doprnt = yes; then
21626 cat >>confdefs.h <<\_ACEOF
21627 #define HAVE_DOPRNT 1
21636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21637 # for constant arguments. Useless!
21638 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21639 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21640 if test "${ac_cv_working_alloca_h+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 cat >conftest.$ac_ext <<_ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 #include <alloca.h>
21653 char *p = (char *) alloca (2 * sizeof (int));
21658 rm -f conftest.$ac_objext conftest$ac_exeext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21660 (eval $ac_link) 2>conftest.er1
21662 grep -v '^ *+' conftest.er1 >conftest.err
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -z "$ac_c_werror_flag"
21668 || test ! -s conftest.err'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; } &&
21674 { ac_try='test -s conftest$ac_exeext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_working_alloca_h=yes
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ac_cv_working_alloca_h=no
21687 rm -f conftest.err conftest.$ac_objext \
21688 conftest$ac_exeext conftest.$ac_ext
21690 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21691 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21692 if test $ac_cv_working_alloca_h = yes; then
21694 cat >>confdefs.h <<\_ACEOF
21695 #define HAVE_ALLOCA_H 1
21700 echo "$as_me:$LINENO: checking for alloca" >&5
21701 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21702 if test "${ac_cv_func_alloca_works+set}" = set; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21712 # define alloca __builtin_alloca
21715 # include <malloc.h>
21716 # define alloca _alloca
21719 # include <alloca.h>
21724 # ifndef alloca /* predefined by HP cc +Olibcalls */
21735 char *p = (char *) alloca (1);
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21742 (eval $ac_link) 2>conftest.er1
21744 grep -v '^ *+' conftest.er1 >conftest.err
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
21749 { ac_try='test -z "$ac_c_werror_flag"
21750 || test ! -s conftest.err'
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; } &&
21756 { ac_try='test -s conftest$ac_exeext'
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; }; then
21762 ac_cv_func_alloca_works=yes
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21767 ac_cv_func_alloca_works=no
21769 rm -f conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext conftest.$ac_ext
21772 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21773 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21775 if test $ac_cv_func_alloca_works = yes; then
21777 cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_ALLOCA 1
21782 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21783 # that cause trouble. Some versions do not even contain alloca or
21784 # contain a buggy version. If you still want to use their alloca,
21785 # use ar to extract alloca.o from them instead of compiling alloca.c.
21787 ALLOCA=alloca.$ac_objext
21789 cat >>confdefs.h <<\_ACEOF
21794 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21795 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21796 if test "${ac_cv_os_cray+set}" = set; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21799 cat >conftest.$ac_ext <<_ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 #if defined(CRAY) && ! defined(CRAY2)
21812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21813 $EGREP "webecray" >/dev/null 2>&1; then
21821 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21822 echo "${ECHO_T}$ac_cv_os_cray" >&6
21823 if test $ac_cv_os_cray = yes; then
21824 for ac_func in _getb67 GETB67 getb67; do
21825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21826 echo "$as_me:$LINENO: checking for $ac_func" >&5
21827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21828 if eval "test \"\${$as_ac_var+set}\" = set"; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21839 #define $ac_func innocuous_$ac_func
21841 /* System header to define __stub macros and hopefully few prototypes,
21842 which can conflict with char $ac_func (); below.
21843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21844 <limits.h> exists even on freestanding compilers. */
21847 # include <limits.h>
21849 # include <assert.h>
21854 /* Override any gcc2 internal prototype to avoid an error. */
21859 /* We use char because int might match the return type of a gcc2
21860 builtin and then its argument prototype would still apply. */
21862 /* The GNU C library defines this for functions which it implements
21863 to always fail with ENOSYS. Some functions are actually named
21864 something starting with __ and the normal name is an alias. */
21865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21868 char (*f) () = $ac_func;
21877 return f != $ac_func;
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21884 (eval $ac_link) 2>conftest.er1
21886 grep -v '^ *+' conftest.er1 >conftest.err
21888 cat conftest.err >&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } &&
21891 { ac_try='test -z "$ac_c_werror_flag"
21892 || test ! -s conftest.err'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; } &&
21898 { ac_try='test -s conftest$ac_exeext'
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }; then
21904 eval "$as_ac_var=yes"
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 eval "$as_ac_var=no"
21911 rm -f conftest.err conftest.$ac_objext \
21912 conftest$ac_exeext conftest.$ac_ext
21914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21916 if test `eval echo '${'$as_ac_var'}'` = yes; then
21918 cat >>confdefs.h <<_ACEOF
21919 #define CRAY_STACKSEG_END $ac_func
21928 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21929 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21930 if test "${ac_cv_c_stack_direction+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21933 if test "$cross_compiling" = yes; then
21934 ac_cv_c_stack_direction=0
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21943 find_stack_direction ()
21945 static char *addr = 0;
21950 return find_stack_direction ();
21953 return (&dummy > addr) ? 1 : -1;
21959 exit (find_stack_direction () < 0);
21962 rm -f conftest$ac_exeext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21964 (eval $ac_link) 2>&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; }; then
21973 ac_cv_c_stack_direction=1
21975 echo "$as_me: program exited with status $ac_status" >&5
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21979 ( exit $ac_status )
21980 ac_cv_c_stack_direction=-1
21982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21985 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21986 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21988 cat >>confdefs.h <<_ACEOF
21989 #define STACK_DIRECTION $ac_cv_c_stack_direction
21995 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21996 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21997 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21998 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 ac_check_lib_save_LIBS=$LIBS
22003 cat >conftest.$ac_ext <<_ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22010 /* Override any gcc2 internal prototype to avoid an error. */
22014 /* We use char because int might match the return type of a gcc2
22015 builtin and then its argument prototype would still apply. */
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027 (eval $ac_link) 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } &&
22034 { ac_try='test -z "$ac_c_werror_flag"
22035 || test ! -s conftest.err'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ac_cv_lib_sun_getmntent=yes
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ac_cv_lib_sun_getmntent=no
22054 rm -f conftest.err conftest.$ac_objext \
22055 conftest$ac_exeext conftest.$ac_ext
22056 LIBS=$ac_check_lib_save_LIBS
22058 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
22059 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
22060 if test $ac_cv_lib_sun_getmntent = yes; then
22063 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
22064 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
22065 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22068 ac_check_lib_save_LIBS=$LIBS
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 /* Override any gcc2 internal prototype to avoid an error. */
22081 /* We use char because int might match the return type of a gcc2
22082 builtin and then its argument prototype would still apply. */
22092 rm -f conftest.$ac_objext conftest$ac_exeext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22094 (eval $ac_link) 2>conftest.er1
22096 grep -v '^ *+' conftest.er1 >conftest.err
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try='test -z "$ac_c_werror_flag"
22102 || test ! -s conftest.err'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; } &&
22108 { ac_try='test -s conftest$ac_exeext'
22109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; }; then
22114 ac_cv_lib_seq_getmntent=yes
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ac_cv_lib_seq_getmntent=no
22121 rm -f conftest.err conftest.$ac_objext \
22122 conftest$ac_exeext conftest.$ac_ext
22123 LIBS=$ac_check_lib_save_LIBS
22125 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
22126 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
22127 if test $ac_cv_lib_seq_getmntent = yes; then
22130 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
22131 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
22132 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 ac_check_lib_save_LIBS=$LIBS
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22144 /* Override any gcc2 internal prototype to avoid an error. */
22148 /* We use char because int might match the return type of a gcc2
22149 builtin and then its argument prototype would still apply. */
22159 rm -f conftest.$ac_objext conftest$ac_exeext
22160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22161 (eval $ac_link) 2>conftest.er1
22163 grep -v '^ *+' conftest.er1 >conftest.err
22165 cat conftest.err >&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } &&
22168 { ac_try='test -z "$ac_c_werror_flag"
22169 || test ! -s conftest.err'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; } &&
22175 { ac_try='test -s conftest$ac_exeext'
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22181 ac_cv_lib_gen_getmntent=yes
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ac_cv_lib_gen_getmntent=no
22188 rm -f conftest.err conftest.$ac_objext \
22189 conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22192 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22193 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22194 if test $ac_cv_lib_gen_getmntent = yes; then
22203 for ac_func in getmntent
22205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22206 echo "$as_me:$LINENO: checking for $ac_func" >&5
22207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22208 if eval "test \"\${$as_ac_var+set}\" = set"; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22219 #define $ac_func innocuous_$ac_func
22221 /* System header to define __stub macros and hopefully few prototypes,
22222 which can conflict with char $ac_func (); below.
22223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22224 <limits.h> exists even on freestanding compilers. */
22227 # include <limits.h>
22229 # include <assert.h>
22234 /* Override any gcc2 internal prototype to avoid an error. */
22239 /* We use char because int might match the return type of a gcc2
22240 builtin and then its argument prototype would still apply. */
22242 /* The GNU C library defines this for functions which it implements
22243 to always fail with ENOSYS. Some functions are actually named
22244 something starting with __ and the normal name is an alias. */
22245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22248 char (*f) () = $ac_func;
22257 return f != $ac_func;
22262 rm -f conftest.$ac_objext conftest$ac_exeext
22263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22264 (eval $ac_link) 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
22271 { ac_try='test -z "$ac_c_werror_flag"
22272 || test ! -s conftest.err'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; } &&
22278 { ac_try='test -s conftest$ac_exeext'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; }; then
22284 eval "$as_ac_var=yes"
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22289 eval "$as_ac_var=no"
22291 rm -f conftest.err conftest.$ac_objext \
22292 conftest$ac_exeext conftest.$ac_ext
22294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22296 if test `eval echo '${'$as_ac_var'}'` = yes; then
22297 cat >>confdefs.h <<_ACEOF
22298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22306 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22307 if test "${ac_cv_func_closedir_void+set}" = set; then
22308 echo $ECHO_N "(cached) $ECHO_C" >&6
22310 if test "$cross_compiling" = yes; then
22311 ac_cv_func_closedir_void=yes
22313 cat >conftest.$ac_ext <<_ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22319 $ac_includes_default
22320 #include <$ac_header_dirent>
22321 #ifndef __cplusplus
22328 exit (closedir (opendir (".")) != 0);
22333 rm -f conftest$ac_exeext
22334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22335 (eval $ac_link) 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340 (eval $ac_try) 2>&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); }; }; then
22344 ac_cv_func_closedir_void=no
22346 echo "$as_me: program exited with status $ac_status" >&5
22347 echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22350 ( exit $ac_status )
22351 ac_cv_func_closedir_void=yes
22353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22356 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22357 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22358 if test $ac_cv_func_closedir_void = yes; then
22360 cat >>confdefs.h <<\_ACEOF
22361 #define CLOSEDIR_VOID 1
22366 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22367 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22368 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 if test "$cross_compiling" = yes; then
22372 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22373 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22374 { (exit 1); exit 1; }; }
22376 cat >conftest.$ac_ext <<_ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22383 # include <unistd.h>
22389 /* If this system has a BSD-style setpgrp which takes arguments,
22390 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22391 exit successfully. */
22392 exit (setpgrp (1,1) == -1 ? 0 : 1);
22397 rm -f conftest$ac_exeext
22398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22399 (eval $ac_link) 2>&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 ac_cv_func_setpgrp_void=no
22410 echo "$as_me: program exited with status $ac_status" >&5
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ( exit $ac_status )
22415 ac_cv_func_setpgrp_void=yes
22417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22420 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22421 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22422 if test $ac_cv_func_setpgrp_void = yes; then
22424 cat >>confdefs.h <<\_ACEOF
22425 #define SETPGRP_VOID 1
22429 # AC_FUNC_FNMATCH dnl use local version
22432 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22433 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22434 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 ac_check_lib_save_LIBS=$LIBS
22438 LIBS="-lxpg4 $LIBS"
22439 cat >conftest.$ac_ext <<_ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22446 /* Override any gcc2 internal prototype to avoid an error. */
22450 /* We use char because int might match the return type of a gcc2
22451 builtin and then its argument prototype would still apply. */
22461 rm -f conftest.$ac_objext conftest$ac_exeext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22463 (eval $ac_link) 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -z "$ac_c_werror_flag"
22471 || test ! -s conftest.err'
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; } &&
22477 { ac_try='test -s conftest$ac_exeext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_cv_lib_xpg4_setlocale=yes
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 ac_cv_lib_xpg4_setlocale=no
22490 rm -f conftest.err conftest.$ac_objext \
22491 conftest$ac_exeext conftest.$ac_ext
22492 LIBS=$ac_check_lib_save_LIBS
22494 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22495 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22496 if test $ac_cv_lib_xpg4_setlocale = yes; then
22497 LIBS="$LIBS -lxpg4"
22503 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22504 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22505 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 ac_check_lib_save_LIBS=$LIBS
22510 cat >conftest.$ac_ext <<_ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22517 /* Override any gcc2 internal prototype to avoid an error. */
22521 /* We use char because int might match the return type of a gcc2
22522 builtin and then its argument prototype would still apply. */
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22534 (eval $ac_link) 2>conftest.er1
22536 grep -v '^ *+' conftest.er1 >conftest.err
22538 cat conftest.err >&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } &&
22541 { ac_try='test -z "$ac_c_werror_flag"
22542 || test ! -s conftest.err'
22543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544 (eval $ac_try) 2>&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; } &&
22548 { ac_try='test -s conftest$ac_exeext'
22549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550 (eval $ac_try) 2>&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; }; then
22554 ac_cv_lib_sun_getpwnam=yes
22556 echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_cv_lib_sun_getpwnam=no
22561 rm -f conftest.err conftest.$ac_objext \
22562 conftest$ac_exeext conftest.$ac_ext
22563 LIBS=$ac_check_lib_save_LIBS
22565 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22566 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22567 if test $ac_cv_lib_sun_getpwnam = yes; then
22568 cat >>confdefs.h <<_ACEOF
22569 #define HAVE_LIBSUN 1
22578 for ac_header in zlib.h
22580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22582 echo "$as_me:$LINENO: checking for $ac_header" >&5
22583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22590 # Is the header compilable?
22591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22593 cat >conftest.$ac_ext <<_ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599 $ac_includes_default
22600 #include <$ac_header>
22602 rm -f conftest.$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604 (eval $ac_compile) 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
22611 { ac_try='test -z "$ac_c_werror_flag"
22612 || test ! -s conftest.err'
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; } &&
22618 { ac_try='test -s conftest.$ac_objext'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; }; then
22624 ac_header_compiler=yes
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 ac_header_compiler=no
22631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22633 echo "${ECHO_T}$ac_header_compiler" >&6
22635 # Is the header present?
22636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22638 cat >conftest.$ac_ext <<_ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h. */
22644 #include <$ac_header>
22646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22649 grep -v '^ *+' conftest.er1 >conftest.err
22651 cat conftest.err >&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } >/dev/null; then
22654 if test -s conftest.err; then
22655 ac_cpp_err=$ac_c_preproc_warn_flag
22656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22663 if test -z "$ac_cpp_err"; then
22664 ac_header_preproc=yes
22666 echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22669 ac_header_preproc=no
22671 rm -f conftest.err conftest.$ac_ext
22672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22673 echo "${ECHO_T}$ac_header_preproc" >&6
22675 # So? What about this header?
22676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22682 ac_header_preproc=yes
22685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22699 ## ------------------------------------------ ##
22700 ## Report this to the AC_PACKAGE_NAME lists. ##
22701 ## ------------------------------------------ ##
22704 sed "s/^/$as_me: WARNING: /" >&2
22707 echo "$as_me:$LINENO: checking for $ac_header" >&5
22708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 eval "$as_ac_Header=\$ac_header_preproc"
22714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22719 cat >>confdefs.h <<_ACEOF
22720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22727 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22728 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22729 if test "${ac_cv_lib_z_deflate+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22732 ac_check_lib_save_LIBS=$LIBS
22734 cat >conftest.$ac_ext <<_ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22741 /* Override any gcc2 internal prototype to avoid an error. */
22745 /* We use char because int might match the return type of a gcc2
22746 builtin and then its argument prototype would still apply. */
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758 (eval $ac_link) 2>conftest.er1
22760 grep -v '^ *+' conftest.er1 >conftest.err
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } &&
22765 { ac_try='test -z "$ac_c_werror_flag"
22766 || test ! -s conftest.err'
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; } &&
22772 { ac_try='test -s conftest$ac_exeext'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
22778 ac_cv_lib_z_deflate=yes
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 ac_cv_lib_z_deflate=no
22785 rm -f conftest.err conftest.$ac_objext \
22786 conftest$ac_exeext conftest.$ac_ext
22787 LIBS=$ac_check_lib_save_LIBS
22789 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22790 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22791 if test $ac_cv_lib_z_deflate = yes; then
22796 if test x$FDLIBS = x-lz; then
22797 cat >>confdefs.h <<\_ACEOF
22798 #define HAVE_LIBZ 1
22805 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22806 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22807 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22808 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22811 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22812 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22814 # Is the header compilable?
22815 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22816 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22817 cat >conftest.$ac_ext <<_ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 $ac_includes_default
22824 #include <sys/acl.h>
22826 rm -f conftest.$ac_objext
22827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22828 (eval $ac_compile) 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } &&
22835 { ac_try='test -z "$ac_c_werror_flag"
22836 || test ! -s conftest.err'
22837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838 (eval $ac_try) 2>&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); }; } &&
22842 { ac_try='test -s conftest.$ac_objext'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 ac_header_compiler=yes
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22853 ac_header_compiler=no
22855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22857 echo "${ECHO_T}$ac_header_compiler" >&6
22859 # Is the header present?
22860 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22861 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 #include <sys/acl.h>
22870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22873 grep -v '^ *+' conftest.er1 >conftest.err
22875 cat conftest.err >&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } >/dev/null; then
22878 if test -s conftest.err; then
22879 ac_cpp_err=$ac_c_preproc_warn_flag
22880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22887 if test -z "$ac_cpp_err"; then
22888 ac_header_preproc=yes
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ac_header_preproc=no
22895 rm -f conftest.err conftest.$ac_ext
22896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22897 echo "${ECHO_T}$ac_header_preproc" >&6
22899 # So? What about this header?
22900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22902 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22903 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22904 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22905 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22906 ac_header_preproc=yes
22909 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22910 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22911 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
22912 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
22913 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22914 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22915 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
22916 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22917 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22918 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22919 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22920 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22923 ## ------------------------------------------ ##
22924 ## Report this to the AC_PACKAGE_NAME lists. ##
22925 ## ------------------------------------------ ##
22928 sed "s/^/$as_me: WARNING: /" >&2
22931 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22932 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22933 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 ac_cv_header_sys_acl_h=$ac_header_preproc
22938 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22939 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22944 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22945 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22946 if test "${ac_cv_func_acl_get_file+set}" = set; then
22947 echo $ECHO_N "(cached) $ECHO_C" >&6
22949 cat >conftest.$ac_ext <<_ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h. */
22955 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22957 #define acl_get_file innocuous_acl_get_file
22959 /* System header to define __stub macros and hopefully few prototypes,
22960 which can conflict with char acl_get_file (); below.
22961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22962 <limits.h> exists even on freestanding compilers. */
22965 # include <limits.h>
22967 # include <assert.h>
22970 #undef acl_get_file
22972 /* Override any gcc2 internal prototype to avoid an error. */
22977 /* We use char because int might match the return type of a gcc2
22978 builtin and then its argument prototype would still apply. */
22979 char acl_get_file ();
22980 /* The GNU C library defines this for functions which it implements
22981 to always fail with ENOSYS. Some functions are actually named
22982 something starting with __ and the normal name is an alias. */
22983 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22986 char (*f) () = acl_get_file;
22995 return f != acl_get_file;
23000 rm -f conftest.$ac_objext conftest$ac_exeext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23002 (eval $ac_link) 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } &&
23009 { ac_try='test -z "$ac_c_werror_flag"
23010 || test ! -s conftest.err'
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; } &&
23016 { ac_try='test -s conftest$ac_exeext'
23017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; }; then
23022 ac_cv_func_acl_get_file=yes
23024 echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23027 ac_cv_func_acl_get_file=no
23029 rm -f conftest.err conftest.$ac_objext \
23030 conftest$ac_exeext conftest.$ac_ext
23032 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
23033 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
23034 if test $ac_cv_func_acl_get_file = yes; then
23037 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23038 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23039 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 ac_check_lib_save_LIBS=$LIBS
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23051 /* Override any gcc2 internal prototype to avoid an error. */
23055 /* We use char because int might match the return type of a gcc2
23056 builtin and then its argument prototype would still apply. */
23057 char acl_get_file ();
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068 (eval $ac_link) 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -z "$ac_c_werror_flag"
23076 || test ! -s conftest.err'
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; } &&
23082 { ac_try='test -s conftest$ac_exeext'
23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 ac_cv_lib_acl_acl_get_file=yes
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 ac_cv_lib_acl_acl_get_file=no
23095 rm -f conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
23097 LIBS=$ac_check_lib_save_LIBS
23099 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23100 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23101 if test $ac_cv_lib_acl_acl_get_file = yes; then
23102 have_acl=yes; FDLIBS="-lacl $FDLIBS"
23108 if test $have_acl = yes; then
23109 cat >>confdefs.h <<\_ACEOF
23116 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23117 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
23118 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 ac_check_lib_save_LIBS=$LIBS
23122 LIBS="-lpthread $LIBS"
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23130 /* Override any gcc2 internal prototype to avoid an error. */
23134 /* We use char because int might match the return type of a gcc2
23135 builtin and then its argument prototype would still apply. */
23136 char pthread_create ();
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147 (eval $ac_link) 2>conftest.er1
23149 grep -v '^ *+' conftest.er1 >conftest.err
23151 cat conftest.err >&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
23154 { ac_try='test -z "$ac_c_werror_flag"
23155 || test ! -s conftest.err'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try='test -s conftest$ac_exeext'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167 ac_cv_lib_pthread_pthread_create=yes
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ac_cv_lib_pthread_pthread_create=no
23174 rm -f conftest.err conftest.$ac_objext \
23175 conftest$ac_exeext conftest.$ac_ext
23176 LIBS=$ac_check_lib_save_LIBS
23178 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23179 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23180 if test $ac_cv_lib_pthread_pthread_create = yes; then
23181 PTHREAD_LIB="-lpthread"
23183 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23184 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23185 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 ac_check_lib_save_LIBS=$LIBS
23189 LIBS="-lpthreads $LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23197 /* Override any gcc2 internal prototype to avoid an error. */
23201 /* We use char because int might match the return type of a gcc2
23202 builtin and then its argument prototype would still apply. */
23203 char pthread_create ();
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23214 (eval $ac_link) 2>conftest.er1
23216 grep -v '^ *+' conftest.er1 >conftest.err
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try='test -z "$ac_c_werror_flag"
23222 || test ! -s conftest.err'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest$ac_exeext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_lib_pthreads_pthread_create=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_cv_lib_pthreads_pthread_create=no
23241 rm -f conftest.err conftest.$ac_objext \
23242 conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS
23245 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23246 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23247 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23248 PTHREAD_LIB="-lpthreads"
23250 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23251 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23252 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23255 ac_check_lib_save_LIBS=$LIBS
23257 cat >conftest.$ac_ext <<_ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h. */
23264 /* Override any gcc2 internal prototype to avoid an error. */
23268 /* We use char because int might match the return type of a gcc2
23269 builtin and then its argument prototype would still apply. */
23270 char pthread_create ();
23279 rm -f conftest.$ac_objext conftest$ac_exeext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23281 (eval $ac_link) 2>conftest.er1
23283 grep -v '^ *+' conftest.er1 >conftest.err
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } &&
23288 { ac_try='test -z "$ac_c_werror_flag"
23289 || test ! -s conftest.err'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; } &&
23295 { ac_try='test -s conftest$ac_exeext'
23296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23297 (eval $ac_try) 2>&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); }; }; then
23301 ac_cv_lib_c_r_pthread_create=yes
23303 echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23306 ac_cv_lib_c_r_pthread_create=no
23308 rm -f conftest.err conftest.$ac_objext \
23309 conftest$ac_exeext conftest.$ac_ext
23310 LIBS=$ac_check_lib_save_LIBS
23312 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23313 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23314 if test $ac_cv_lib_c_r_pthread_create = yes; then
23315 PTHREAD_LIB="-lc_r"
23317 echo "$as_me:$LINENO: checking for pthread_create" >&5
23318 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23319 if test "${ac_cv_func_pthread_create+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 cat >conftest.$ac_ext <<_ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23328 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23330 #define pthread_create innocuous_pthread_create
23332 /* System header to define __stub macros and hopefully few prototypes,
23333 which can conflict with char pthread_create (); below.
23334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23335 <limits.h> exists even on freestanding compilers. */
23338 # include <limits.h>
23340 # include <assert.h>
23343 #undef pthread_create
23345 /* Override any gcc2 internal prototype to avoid an error. */
23350 /* We use char because int might match the return type of a gcc2
23351 builtin and then its argument prototype would still apply. */
23352 char pthread_create ();
23353 /* The GNU C library defines this for functions which it implements
23354 to always fail with ENOSYS. Some functions are actually named
23355 something starting with __ and the normal name is an alias. */
23356 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23359 char (*f) () = pthread_create;
23368 return f != pthread_create;
23373 rm -f conftest.$ac_objext conftest$ac_exeext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23375 (eval $ac_link) 2>conftest.er1
23377 grep -v '^ *+' conftest.er1 >conftest.err
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
23382 { ac_try='test -z "$ac_c_werror_flag"
23383 || test ! -s conftest.err'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; } &&
23389 { ac_try='test -s conftest$ac_exeext'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 ac_cv_func_pthread_create=yes
23397 echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23400 ac_cv_func_pthread_create=no
23402 rm -f conftest.err conftest.$ac_objext \
23403 conftest$ac_exeext conftest.$ac_ext
23405 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23406 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23419 cat >>confdefs.h <<\_ACEOF
23425 CFLAGS=${CFLAGS--O}
23426 LDFLAGS=${LDFLAGS--O}
23427 DB_LIBS="${SQL_LFLAGS}"
23429 CPPFLAGS="$CPPFLAGS"
23455 # Finally we set appropriate distribution specific
23456 # variables and defaults
23458 # PFILES are platform specific files
23459 PFILES="platforms/Makefile"
23463 hostname=`uname -n | cut -d '.' -f 1`
23464 case "$DISTNAME" in
23467 PSCMD="ps -e -o pid,comm"
23468 PFILES="${PFILES} \
23469 platforms/aix/Makefile"
23470 TAPEDRIVE="/dev/rmt0.1"
23474 PTHREAD_LIB="-lpthread -lexc"
23475 if test "${CC}" = "gcc" ; then
23482 TAPEDRIVE="/dev/nrmt0"
23485 DISTVER=`uname -a |awk '{print $3}'`
23486 TAPEDRIVE="/dev/nrmt0"
23487 PTHREAD_LIB="-pthread"
23488 CFLAGS="${CFLAGS} -pthread"
23489 PSCMD="ps -ax -o pid,command"
23492 PFILES="${PFILES} \
23493 platforms/bsdi/Makefile \
23494 platforms/bsdi/bacula-fd \
23495 platforms/bsdi/bacula-sd \
23496 platforms/bsdi/bacula-dir"
23497 largefile_support="yes"
23500 DISTVER=`uname -a |awk '{print $3}'`
23501 TAPEDRIVE="/dev/nrst0"
23503 WCFLAGS="-mwindows"
23504 WLDFLAGS="-mwindows"
23508 TAPEDRIVE="/dev/nst0"
23509 PSCMD="ps -e -o pid,command"
23511 PFILES="${PFILES} \
23512 platforms/darwin/Makefile"
23515 DISTVER=`cat /etc/debian_version`
23516 TAPEDRIVE="/dev/nrst0"
23517 PSCMD="ps -e -o pid,command"
23520 DISTVER=`uname -a |awk '{print $3}'`
23521 VER=`echo $DISTVER | cut -c 1`
23522 if test x$VER = x4 ; then
23523 PTHREAD_LIB="-pthread"
23524 CFLAGS="${CFLAGS} -pthread"
23528 TAPEDRIVE="/dev/nrsa0"
23529 PSCMD="ps -ax -o pid,command"
23530 PFILES="${PFILES} \
23531 platforms/freebsd/Makefile \
23532 platforms/freebsd/bacula-fd \
23533 platforms/freebsd/bacula-sd \
23534 platforms/freebsd/bacula-dir"
23535 largefile_support="yes"
23538 PSCMD="UNIX95=1 ps -e -o pid,comm"
23539 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23541 TAPEDRIVE="/dev/rmt/0hnb"
23542 PTHREAD_LIB="-lpthread"
23543 cat >>confdefs.h <<\_ACEOF
23544 #define _INCLUDE_LONGLONG 1
23550 TAPEDRIVE="/dev/rmt/0cbn"
23551 PSCMD="ps -e -o pid,comm"
23552 PFILES="${PFILES} \
23553 platforms/irix/Makefile \
23554 platforms/irix/bacula-fd \
23555 platforms/irix/bacula-sd \
23556 platforms/irix/bacula-dir"
23559 DISTVER=`uname -a |awk '{print $3}'`
23562 TAPEDRIVE="/dev/nrst0"
23563 PSCMD="ps -ax -o pid,command"
23564 PTHREAD_LIB="-pthread"
23565 CFLAGS="${CFLAGS} -pthread"
23568 DISTVER=`uname -a |awk '{print $3}'`
23571 TAPEDRIVE="/dev/nrst0"
23572 PSCMD="ps -ax -o pid,command"
23573 PTHREAD_LIB="-pthread"
23574 CFLAGS="${CFLAGS} -pthread"
23575 PFILES="${PFILES} \
23576 platforms/openbsd/Makefile \
23577 platforms/openbsd/bacula-fd \
23578 platforms/openbsd/bacula-sd \
23579 platforms/openbsd/bacula-dir"
23582 if test -f /etc/whitebox-release ; then
23583 f=/etc/whitebox-release
23585 f=/etc/redhat-release
23587 if test `cat $f | grep release |\
23588 cut -f 3 -d ' '`x = "Enterprise"x ; then
23589 DISTVER="Enterprise "`cat $f | grep release |\
23592 DISTVER=`cat /etc/redhat-release | grep release |\
23595 TAPEDRIVE="/dev/nst0"
23596 PSCMD="ps -e -o pid,command"
23597 PFILES="${PFILES} \
23598 platforms/redhat/Makefile \
23599 platforms/redhat/bacula-fd \
23600 platforms/redhat/bacula-sd \
23601 platforms/redhat/bacula-dir \
23602 platforms/redhat/bacula.spec \
23604 hostname=`hostname -s`
23607 DISTVER=`cat /etc/mandrake-release | grep release |\
23609 TAPEDRIVE="/dev/nst0"
23610 PSCMD="ps -e -o pid,command"
23611 PFILES="${PFILES} \
23612 platforms/mandrake/Makefile \
23613 platforms/mandrake/bacula-fd \
23614 platforms/mandrake/bacula-sd \
23615 platforms/mandrake/bacula-dir \
23616 platforms/mandrake/bacula.spec \
23620 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23621 TAPEDRIVE="/dev/nst0"
23622 PSCMD="ps -e -o pid,command"
23623 PFILES="${PFILES} \
23624 platforms/gentoo/Makefile \
23625 platforms/gentoo/bacula-init \
23626 platforms/gentoo/bacula-fd \
23627 platforms/gentoo/bacula-sd \
23628 platforms/gentoo/bacula-dir"
23631 DISTVER=`cat /etc/slackware-version`
23632 TAPEDRIVE="/dev/nst0"
23633 PSCMD="ps -e -o pid,command"
23634 PFILES="${PFILES} \
23635 platforms/slackware/Makefile \
23636 platforms/slackware/rc.bacula-fd \
23637 platforms/slackware/rc.bacula-sd \
23638 platforms/slackware/rc.bacula-dir\
23639 platforms/slackware/functions.bacula"
23643 TAPEDRIVE="/dev/rmt/0cbn"
23644 PSCMD="ps -e -o pid,comm"
23645 PFILES="${PFILES} \
23646 platforms/solaris/Makefile \
23647 platforms/solaris/bacula-fd \
23648 platforms/solaris/bacula-sd \
23649 platforms/solaris/bacula-dir"
23650 if test x$DISTVER = x5.6 ; then
23651 cat >>confdefs.h <<\_ACEOF
23652 #define HAVE_OLD_SOCKOPT 1
23656 LIBS="$LIBS -lresolv"
23659 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23661 TAPEDRIVE="/dev/nst0"
23662 PSCMD="ps -e -o pid,command"
23663 PFILES="${PFILES} \
23664 platforms/suse/Makefile \
23665 platforms/suse/bacula-fd \
23666 platforms/suse/bacula-sd \
23667 platforms/suse/bacula-dir \
23668 platforms/suse/bacula \
23669 platforms/suse/bacula.spec"
23674 TAPEDRIVE="/dev/nst0"
23675 PSCMD="ps -e -o pid,command"
23676 PFILES="${PFILES} \
23677 platforms/suse/Makefile \
23678 platforms/suse/bacula-fd \
23679 platforms/suse/bacula-sd \
23680 platforms/suse/bacula-dir"
23684 TAPEDRIVE="/dev/nst0"
23687 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23693 LIBS="$PTHREAD_LIB $LIBS"
23695 cat >>confdefs.h <<_ACEOF
23699 cat >>confdefs.h <<_ACEOF
23710 MCOMMON=./autoconf/Make.common
23713 if test "x${subsysdir}" = "x${sbindir}" ; then
23716 echo "You have set both --sbindir and --with-subsys-dir"
23717 echo " equal to: ${subsysdir} "
23718 echo "This is not permitted. Please reconfigure."
23720 echo "Aborting configuration ..."
23726 ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
23727 ac_config_commands="$ac_config_commands default"
23728 cat >confcache <<\_ACEOF
23729 # This file is a shell script that caches the results of configure
23730 # tests run on this system so they can be shared between configure
23731 # scripts and configure runs, see configure's option --config-cache.
23732 # It is not useful on other systems. If it contains results you don't
23733 # want to keep, you may remove or edit it.
23735 # config.status only pays attention to the cache file if you give it
23736 # the --recheck option to rerun configure.
23738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23740 # following values.
23744 # The following way of writing the cache mishandles newlines in values,
23745 # but we know of no workaround that is simple, portable, and efficient.
23746 # So, don't put newlines in cache variables' values.
23747 # Ultrix sh set writes to stderr and can't be redirected directly,
23748 # and sets the high bit in the cache file unless we assign to the vars.
23751 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23753 # `set' does not quote correctly, so add quotes (double-quote
23754 # substitution turns \\\\ into \\, and sed turns \\ into \).
23757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23760 # `set' quotes correctly as required by POSIX, so do not add quotes.
23762 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23771 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23773 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23774 if test -w $cache_file; then
23775 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23776 cat confcache >$cache_file
23778 echo "not updating unwritable cache $cache_file"
23783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23784 # Let make expand exec_prefix.
23785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23787 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23788 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23789 # trailing colons and then remove the whole line if VPATH becomes empty
23790 # (actually we leave an empty line to preserve line numbers).
23791 if test "x$srcdir" = x.; then
23792 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23793 s/:*\$(srcdir):*/:/;
23794 s/:*\${srcdir}:*/:/;
23796 s/^\([^=]*=[ ]*\):*/\1/;
23802 DEFS=-DHAVE_CONFIG_H
23806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23807 # 1. Remove the extension, and $U if already installed.
23808 ac_i=`echo "$ac_i" |
23809 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23811 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23812 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23814 LIBOBJS=$ac_libobjs
23816 LTLIBOBJS=$ac_ltlibobjs
23820 : ${CONFIG_STATUS=./config.status}
23821 ac_clean_files_save=$ac_clean_files
23822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23823 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23824 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23825 cat >$CONFIG_STATUS <<_ACEOF
23827 # Generated by $as_me.
23828 # Run this file to recreate the current configuration.
23829 # Compiler output produced by configure, useful for debugging
23830 # configure, is in config.log if it exists.
23833 ac_cs_recheck=false
23835 SHELL=\${CONFIG_SHELL-$SHELL}
23838 cat >>$CONFIG_STATUS <<\_ACEOF
23839 ## --------------------- ##
23840 ## M4sh Initialization. ##
23841 ## --------------------- ##
23843 # Be Bourne compatible
23844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23847 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23848 # is contrary to our usage. Disable this feature.
23849 alias -g '${1+"$@"}'='"$@"'
23850 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23853 DUALCASE=1; export DUALCASE # for MKS sh
23855 # Support unset when possible.
23856 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23863 # Work around bugs in pre-3.0 UWIN ksh.
23864 $as_unset ENV MAIL MAILPATH
23871 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23872 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23873 LC_TELEPHONE LC_TIME
23875 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23876 eval $as_var=C; export $as_var
23882 # Required to use basename.
23883 if expr a : '\(a\)' >/dev/null 2>&1; then
23889 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23890 as_basename=basename
23896 # Name of the executable.
23897 as_me=`$as_basename "$0" ||
23898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23899 X"$0" : 'X\(//\)$' \| \
23900 X"$0" : 'X\(/\)$' \| \
23901 . : '\(.\)' 2>/dev/null ||
23903 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23904 /^X\/\(\/\/\)$/{ s//\1/; q; }
23905 /^X\/\(\/\).*/{ s//\1/; q; }
23909 # PATH needs CR, and LINENO needs CR and PATH.
23910 # Avoid depending upon Character Ranges.
23911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23914 as_cr_digits='0123456789'
23915 as_cr_alnum=$as_cr_Letters$as_cr_digits
23917 # The user is always right.
23918 if test "${PATH_SEPARATOR+set}" != set; then
23919 echo "#! /bin/sh" >conf$$.sh
23920 echo "exit 0" >>conf$$.sh
23922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23931 as_lineno_1=$LINENO
23932 as_lineno_2=$LINENO
23933 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23934 test "x$as_lineno_1" != "x$as_lineno_2" &&
23935 test "x$as_lineno_3" = "x$as_lineno_2" || {
23936 # Find who we are. Look in the path if we contain no path at all
23939 *[\\/]* ) as_myself=$0 ;;
23940 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23941 for as_dir in $PATH
23944 test -z "$as_dir" && as_dir=.
23945 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23950 # We did not find ourselves, most probably we were run as `sh COMMAND'
23951 # in which case we are not to be found in the path.
23952 if test "x$as_myself" = x; then
23955 if test ! -f "$as_myself"; then
23956 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23957 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23958 { (exit 1); exit 1; }; }
23960 case $CONFIG_SHELL in
23962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23963 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23966 test -z "$as_dir" && as_dir=.
23967 for as_base in sh bash ksh sh5; do
23970 if ("$as_dir/$as_base" -c '
23971 as_lineno_1=$LINENO
23972 as_lineno_2=$LINENO
23973 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23974 test "x$as_lineno_1" != "x$as_lineno_2" &&
23975 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23976 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23977 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23978 CONFIG_SHELL=$as_dir/$as_base
23979 export CONFIG_SHELL
23980 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23988 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23989 # uniformly replaced by the line number. The first 'sed' inserts a
23990 # line-number line before each line; the second 'sed' does the real
23991 # work. The second script uses 'N' to pair each line-number line
23992 # with the numbered line, and appends trailing '-' during
23993 # substitution so that $LINENO is not a special case at line end.
23994 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23995 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23996 sed '=' <$as_myself |
24001 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24004 s,^['$as_cr_digits']*\n,,
24005 ' >$as_me.lineno &&
24006 chmod +x $as_me.lineno ||
24007 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24008 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24009 { (exit 1); exit 1; }; }
24011 # Don't try to exec as it changes $[0], causing all sort of problems
24012 # (the dirname of $[0] is not the place where we might find the
24013 # original and so on. Autoconf is especially sensible to this).
24015 # Exit status is that of the last command.
24020 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24021 *c*,-n*) ECHO_N= ECHO_C='
24023 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24024 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24027 if expr a : '\(a\)' >/dev/null 2>&1; then
24033 rm -f conf$$ conf$$.exe conf$$.file
24035 if ln -s conf$$.file conf$$ 2>/dev/null; then
24036 # We could just check for DJGPP; but this test a) works b) is more generic
24037 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24038 if test -f conf$$.exe; then
24039 # Don't use ln at all; we don't have any links
24044 elif ln conf$$.file conf$$ 2>/dev/null; then
24049 rm -f conf$$ conf$$.exe conf$$.file
24051 if mkdir -p . 2>/dev/null; then
24054 test -d ./-p && rmdir ./-p
24058 as_executable_p="test -f"
24060 # Sed expression to map a string onto a valid CPP name.
24061 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24063 # Sed expression to map a string onto a valid variable name.
24064 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24068 # We need space, tab and new line, in precisely that order.
24078 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24079 # report actual input values of CONFIG_FILES etc. instead of their
24080 # values after options handling. Logging --version etc. is OK.
24084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24085 ## Running $as_me. ##
24090 This file was extended by $as_me, which was
24091 generated by GNU Autoconf 2.59. Invocation command line was
24093 CONFIG_FILES = $CONFIG_FILES
24094 CONFIG_HEADERS = $CONFIG_HEADERS
24095 CONFIG_LINKS = $CONFIG_LINKS
24096 CONFIG_COMMANDS = $CONFIG_COMMANDS
24100 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24104 # Files that config.status was made for.
24105 if test -n "$ac_config_files"; then
24106 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24109 if test -n "$ac_config_headers"; then
24110 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24113 if test -n "$ac_config_links"; then
24114 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24117 if test -n "$ac_config_commands"; then
24118 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24121 cat >>$CONFIG_STATUS <<\_ACEOF
24124 \`$as_me' instantiates files from templates according to the
24125 current configuration.
24127 Usage: $0 [OPTIONS] [FILE]...
24129 -h, --help print this help, then exit
24130 -V, --version print version number, then exit
24131 -q, --quiet do not print progress messages
24132 -d, --debug don't remove temporary files
24133 --recheck update $as_me by reconfiguring in the same conditions
24134 --file=FILE[:TEMPLATE]
24135 instantiate the configuration file FILE
24136 --header=FILE[:TEMPLATE]
24137 instantiate the configuration header FILE
24139 Configuration files:
24142 Configuration headers:
24145 Configuration commands:
24148 Report bugs to <bug-autoconf@gnu.org>."
24151 cat >>$CONFIG_STATUS <<_ACEOF
24154 configured by $0, generated by GNU Autoconf 2.59,
24155 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24157 Copyright (C) 2003 Free Software Foundation, Inc.
24158 This config.status script is free software; the Free Software Foundation
24159 gives unlimited permission to copy, distribute and modify it."
24164 cat >>$CONFIG_STATUS <<\_ACEOF
24165 # If no file are specified by the user, then we need to provide default
24166 # value. By we need to know if files were specified by the user.
24172 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24173 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24181 *) # This is not an option, so the user has probably given explicit
24184 ac_need_defaults=false;;
24188 # Handling of the options.
24190 cat >>$CONFIG_STATUS <<\_ACEOF
24191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24193 --version | --vers* | -V )
24194 echo "$ac_cs_version"; exit 0 ;;
24196 # Conflict between --help and --header
24197 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24198 Try \`$0 --help' for more information." >&5
24199 echo "$as_me: error: ambiguous option: $1
24200 Try \`$0 --help' for more information." >&2;}
24201 { (exit 1); exit 1; }; };;
24202 --help | --hel | -h )
24203 echo "$ac_cs_usage"; exit 0 ;;
24204 --debug | --d* | -d )
24206 --file | --fil | --fi | --f )
24208 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24209 ac_need_defaults=false;;
24210 --header | --heade | --head | --hea )
24212 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24213 ac_need_defaults=false;;
24214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24215 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24218 # This is an error.
24219 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24220 Try \`$0 --help' for more information." >&5
24221 echo "$as_me: error: unrecognized option: $1
24222 Try \`$0 --help' for more information." >&2;}
24223 { (exit 1); exit 1; }; } ;;
24225 *) ac_config_targets="$ac_config_targets $1" ;;
24231 ac_configure_extra_args=
24233 if $ac_cs_silent; then
24235 ac_configure_extra_args="$ac_configure_extra_args --silent"
24239 cat >>$CONFIG_STATUS <<_ACEOF
24240 if \$ac_cs_recheck; then
24241 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24242 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24247 cat >>$CONFIG_STATUS <<_ACEOF
24249 # INIT-COMMANDS section.
24252 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24253 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24255 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24256 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24257 LINGUAS="${LINGUAS-%UNSET%}"
24264 cat >>$CONFIG_STATUS <<\_ACEOF
24265 for ac_config_target in $ac_config_targets
24267 case "$ac_config_target" in
24268 # Handling of arguments.
24269 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24270 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24271 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24272 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24273 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24274 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24275 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24276 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24277 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24278 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24279 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24280 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24281 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24282 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24283 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24284 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24285 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24286 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24287 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24288 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24289 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24290 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24291 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24292 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24293 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24294 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24295 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24296 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24297 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24298 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24299 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24300 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24301 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24302 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24303 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24304 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24305 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24306 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24307 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24308 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24309 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24310 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24311 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24312 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24313 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24314 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24315 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24316 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24317 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24318 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24319 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24320 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24321 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24322 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24323 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24324 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24325 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24326 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24327 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24328 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24329 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24330 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24331 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24332 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24333 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24334 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24335 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24336 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24337 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24338 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24339 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24340 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24341 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24342 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24343 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24344 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24345 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24346 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24347 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24348 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24349 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24350 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24351 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24352 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24353 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24354 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24355 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24356 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24357 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24358 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24359 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24360 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24361 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24362 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24363 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24364 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24365 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24366 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24367 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24368 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24369 { (exit 1); exit 1; }; };;
24373 # If the user did not use the arguments to specify the items to instantiate,
24374 # then the envvar interface is used. Set only those that are not.
24375 # We use the long form for the default assignment because of an extremely
24376 # bizarre bug on SunOS 4.1.3.
24377 if $ac_need_defaults; then
24378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24380 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24383 # Have a temporary directory for convenience. Make it in the build tree
24384 # simply because there is no reason to put it here, and in addition,
24385 # creating and moving files from /tmp can sometimes cause problems.
24386 # Create a temporary directory, and hook for its removal unless debugging.
24389 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24390 trap '{ (exit 1); exit 1; }' 1 2 13 15
24393 # Create a (secure) tmp directory for tmp files.
24396 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24397 test -n "$tmp" && test -d "$tmp"
24400 tmp=./confstat$$-$RANDOM
24401 (umask 077 && mkdir $tmp)
24404 echo "$me: cannot create a temporary directory in ." >&2
24405 { (exit 1); exit 1; }
24410 cat >>$CONFIG_STATUS <<_ACEOF
24413 # CONFIG_FILES section.
24416 # No need to generate the scripts if there are no CONFIG_FILES.
24417 # This happens for instance when ./config.status config.h
24418 if test -n "\$CONFIG_FILES"; then
24419 # Protect against being on the right side of a sed subst in config.status.
24420 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24421 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24422 s,@SHELL@,$SHELL,;t t
24423 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24424 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24425 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24426 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24427 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24428 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24429 s,@exec_prefix@,$exec_prefix,;t t
24430 s,@prefix@,$prefix,;t t
24431 s,@program_transform_name@,$program_transform_name,;t t
24432 s,@bindir@,$bindir,;t t
24433 s,@sbindir@,$sbindir,;t t
24434 s,@libexecdir@,$libexecdir,;t t
24435 s,@datadir@,$datadir,;t t
24436 s,@sysconfdir@,$sysconfdir,;t t
24437 s,@sharedstatedir@,$sharedstatedir,;t t
24438 s,@localstatedir@,$localstatedir,;t t
24439 s,@libdir@,$libdir,;t t
24440 s,@includedir@,$includedir,;t t
24441 s,@oldincludedir@,$oldincludedir,;t t
24442 s,@infodir@,$infodir,;t t
24443 s,@mandir@,$mandir,;t t
24444 s,@build_alias@,$build_alias,;t t
24445 s,@host_alias@,$host_alias,;t t
24446 s,@target_alias@,$target_alias,;t t
24447 s,@DEFS@,$DEFS,;t t
24448 s,@ECHO_C@,$ECHO_C,;t t
24449 s,@ECHO_N@,$ECHO_N,;t t
24450 s,@ECHO_T@,$ECHO_T,;t t
24451 s,@LIBS@,$LIBS,;t t
24452 s,@BUILD_DIR@,$BUILD_DIR,;t t
24453 s,@TRUEPRG@,$TRUEPRG,;t t
24454 s,@FALSEPRG@,$FALSEPRG,;t t
24455 s,@VERSION@,$VERSION,;t t
24456 s,@DATE@,$DATE,;t t
24457 s,@LSMDATE@,$LSMDATE,;t t
24459 s,@CFLAGS@,$CFLAGS,;t t
24460 s,@LDFLAGS@,$LDFLAGS,;t t
24461 s,@CPPFLAGS@,$CPPFLAGS,;t t
24462 s,@ac_ct_CC@,$ac_ct_CC,;t t
24463 s,@EXEEXT@,$EXEEXT,;t t
24464 s,@OBJEXT@,$OBJEXT,;t t
24466 s,@CXXFLAGS@,$CXXFLAGS,;t t
24467 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24469 s,@EGREP@,$EGREP,;t t
24470 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24471 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24472 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24473 s,@RANLIB@,$RANLIB,;t t
24474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24479 s,@ECHO@,$ECHO,;t t
24483 s,@OPENSSL@,$OPENSSL,;t t
24486 s,@MKISOFS@,$MKISOFS,;t t
24487 s,@PYTHON@,$PYTHON,;t t
24488 s,@GROWISOFS@,$GROWISOFS,;t t
24489 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24490 s,@PKGCONFIG@,$PKGCONFIG,;t t
24491 s,@WXCONFIG@,$WXCONFIG,;t t
24492 s,@WXFLAGS@,$WXFLAGS,;t t
24493 s,@CDRECORD@,$CDRECORD,;t t
24494 s,@PIDOF@,$PIDOF,;t t
24496 s,@ARFLAGS@,$ARFLAGS,;t t
24497 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24498 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24499 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24500 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24501 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24502 s,@build@,$build,;t t
24503 s,@build_cpu@,$build_cpu,;t t
24504 s,@build_vendor@,$build_vendor,;t t
24505 s,@build_os@,$build_os,;t t
24506 s,@host@,$host,;t t
24507 s,@host_cpu@,$host_cpu,;t t
24508 s,@host_vendor@,$host_vendor,;t t
24509 s,@host_os@,$host_os,;t t
24510 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24511 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24512 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24513 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24514 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24515 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24516 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24517 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24518 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24519 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24520 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24521 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24522 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24523 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24524 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24525 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24526 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24527 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24528 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24529 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24530 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24531 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24532 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24533 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24534 s,@SET_MAKE@,$SET_MAKE,;t t
24535 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24536 s,@USE_NLS@,$USE_NLS,;t t
24537 s,@MSGFMT@,$MSGFMT,;t t
24538 s,@GMSGFMT@,$GMSGFMT,;t t
24539 s,@XGETTEXT@,$XGETTEXT,;t t
24540 s,@MSGMERGE@,$MSGMERGE,;t t
24541 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24542 s,@LIBICONV@,$LIBICONV,;t t
24543 s,@LTLIBICONV@,$LTLIBICONV,;t t
24544 s,@INTLLIBS@,$INTLLIBS,;t t
24545 s,@LIBINTL@,$LIBINTL,;t t
24546 s,@LTLIBINTL@,$LTLIBINTL,;t t
24547 s,@POSUB@,$POSUB,;t t
24548 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24549 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24550 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24551 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24552 s,@GNOME_DIR@,$GNOME_DIR,;t t
24553 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24554 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24555 s,@WX_DIR@,$WX_DIR,;t t
24556 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24557 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24558 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24559 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24560 s,@STATIC_FD@,$STATIC_FD,;t t
24561 s,@STATIC_SD@,$STATIC_SD,;t t
24562 s,@STATIC_DIR@,$STATIC_DIR,;t t
24563 s,@STATIC_CONS@,$STATIC_CONS,;t t
24564 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24565 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24566 s,@ALL_DIRS@,$ALL_DIRS,;t t
24567 s,@DIRD_DIR@,$DIRD_DIR,;t t
24568 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
24569 s,@STORED_DIR@,$STORED_DIR,;t t
24570 s,@CONS_INC@,$CONS_INC,;t t
24571 s,@CONS_OBJ@,$CONS_OBJ,;t t
24572 s,@CONS_SRC@,$CONS_SRC,;t t
24573 s,@CONS_LIBS@,$CONS_LIBS,;t t
24574 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24575 s,@READLINE_SRC@,$READLINE_SRC,;t t
24576 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24577 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24578 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24579 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24580 s,@working_dir@,$working_dir,;t t
24581 s,@scriptdir@,$scriptdir,;t t
24582 s,@dump_email@,$dump_email,;t t
24583 s,@job_email@,$job_email,;t t
24584 s,@smtp_host@,$smtp_host,;t t
24585 s,@piddir@,$piddir,;t t
24586 s,@subsysdir@,$subsysdir,;t t
24587 s,@baseport@,$baseport,;t t
24588 s,@dir_port@,$dir_port,;t t
24589 s,@fd_port@,$fd_port,;t t
24590 s,@sd_port@,$sd_port,;t t
24591 s,@dir_password@,$dir_password,;t t
24592 s,@fd_password@,$fd_password,;t t
24593 s,@sd_password@,$sd_password,;t t
24594 s,@mon_dir_password@,$mon_dir_password,;t t
24595 s,@mon_fd_password@,$mon_fd_password,;t t
24596 s,@mon_sd_password@,$mon_sd_password,;t t
24597 s,@dir_user@,$dir_user,;t t
24598 s,@dir_group@,$dir_group,;t t
24599 s,@sd_user@,$sd_user,;t t
24600 s,@sd_group@,$sd_group,;t t
24601 s,@fd_user@,$fd_user,;t t
24602 s,@fd_group@,$fd_group,;t t
24603 s,@SBINPERM@,$SBINPERM,;t t
24604 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24605 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24606 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24607 s,@cats@,$cats,;t t
24608 s,@DB_NAME@,$DB_NAME,;t t
24609 s,@GETCONF@,$GETCONF,;t t
24610 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24611 s,@X_CFLAGS@,$X_CFLAGS,;t t
24612 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24613 s,@X_LIBS@,$X_LIBS,;t t
24614 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24615 s,@LIBOBJS@,$LIBOBJS,;t t
24616 s,@ALLOCA@,$ALLOCA,;t t
24617 s,@FDLIBS@,$FDLIBS,;t t
24618 s,@DEBUG@,$DEBUG,;t t
24619 s,@DINCLUDE@,$DINCLUDE,;t t
24620 s,@DLIB@,$DLIB,;t t
24621 s,@DB_LIBS@,$DB_LIBS,;t t
24622 s,@WCFLAGS@,$WCFLAGS,;t t
24623 s,@WLDFLAGS@,$WLDFLAGS,;t t
24624 s,@OBJLIST@,$OBJLIST,;t t
24625 s,@hostname@,$hostname,;t t
24626 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24627 s,@PSCMD@,$PSCMD,;t t
24628 s,@WIN32@,$WIN32,;t t
24629 s,@MACOSX@,$MACOSX,;t t
24630 s,@DISTNAME@,$DISTNAME,;t t
24631 s,@DISTVER@,$DISTVER,;t t
24632 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24633 /@MCOMMON@/r $MCOMMON
24639 cat >>$CONFIG_STATUS <<\_ACEOF
24640 # Split the substitutions into bite-sized pieces for seds with
24641 # small command number limits, like on Digital OSF/1 and HP-UX.
24642 ac_max_sed_lines=48
24643 ac_sed_frag=1 # Number of current file.
24644 ac_beg=1 # First line for current file.
24645 ac_end=$ac_max_sed_lines # Line after last line for current file.
24648 while $ac_more_lines; do
24649 if test $ac_beg -gt 1; then
24650 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24652 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24654 if test ! -s $tmp/subs.frag; then
24655 ac_more_lines=false
24657 # The purpose of the label and of the branching condition is to
24658 # speed up the sed processing (if there are no `@' at all, there
24659 # is no need to browse any of the substitutions).
24660 # These are the two extra sed commands mentioned above.
24662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24663 if test -z "$ac_sed_cmds"; then
24664 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24666 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24668 ac_sed_frag=`expr $ac_sed_frag + 1`
24670 ac_end=`expr $ac_end + $ac_max_sed_lines`
24673 if test -z "$ac_sed_cmds"; then
24676 fi # test -n "$CONFIG_FILES"
24679 cat >>$CONFIG_STATUS <<\_ACEOF
24680 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24681 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24683 - | *:- | *:-:* ) # input from stdin
24685 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24687 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24688 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24689 * ) ac_file_in=$ac_file.in ;;
24692 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24693 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24695 X"$ac_file" : 'X\(//\)[^/]' \| \
24696 X"$ac_file" : 'X\(//\)$' \| \
24697 X"$ac_file" : 'X\(/\)' \| \
24698 . : '\(.\)' 2>/dev/null ||
24700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24702 /^X\(\/\/\)$/{ s//\1/; q; }
24703 /^X\(\/\).*/{ s//\1/; q; }
24705 { if $as_mkdir_p; then
24710 while test ! -d "$as_dir"; do
24711 as_dirs="$as_dir $as_dirs"
24712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24714 X"$as_dir" : 'X\(//\)[^/]' \| \
24715 X"$as_dir" : 'X\(//\)$' \| \
24716 X"$as_dir" : 'X\(/\)' \| \
24717 . : '\(.\)' 2>/dev/null ||
24719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24721 /^X\(\/\/\)$/{ s//\1/; q; }
24722 /^X\(\/\).*/{ s//\1/; q; }
24725 test ! -n "$as_dirs" || mkdir $as_dirs
24726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24727 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24728 { (exit 1); exit 1; }; }; }
24732 if test "$ac_dir" != .; then
24733 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24734 # A "../" for each directory in $ac_dir_suffix.
24735 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24737 ac_dir_suffix= ac_top_builddir=
24741 .) # No --srcdir option. We are building in place.
24743 if test -z "$ac_top_builddir"; then
24746 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24748 [\\/]* | ?:[\\/]* ) # Absolute path.
24749 ac_srcdir=$srcdir$ac_dir_suffix;
24750 ac_top_srcdir=$srcdir ;;
24751 *) # Relative path.
24752 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24753 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24756 # Do not use `cd foo && pwd` to compute absolute paths, because
24757 # the directories may not exist.
24759 .) ac_abs_builddir="$ac_dir";;
24762 .) ac_abs_builddir=`pwd`;;
24763 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24764 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24767 case $ac_abs_builddir in
24768 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24770 case ${ac_top_builddir}. in
24771 .) ac_abs_top_builddir=$ac_abs_builddir;;
24772 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24773 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24776 case $ac_abs_builddir in
24777 .) ac_abs_srcdir=$ac_srcdir;;
24780 .) ac_abs_srcdir=$ac_abs_builddir;;
24781 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24782 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24785 case $ac_abs_builddir in
24786 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24788 case $ac_top_srcdir in
24789 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24790 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24791 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24798 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24801 if test x"$ac_file" != x-; then
24802 { echo "$as_me:$LINENO: creating $ac_file" >&5
24803 echo "$as_me: creating $ac_file" >&6;}
24806 # Let's still pretend it is `configure' which instantiates (i.e., don't
24807 # use $as_me), people would be surprised to read:
24808 # /* config.h. Generated by config.status. */
24809 if test x"$ac_file" = x-; then
24812 configure_input="$ac_file. "
24814 configure_input=$configure_input"Generated from `echo $ac_file_in |
24815 sed 's,.*/,,'` by configure."
24817 # First look for the input files in the build tree, otherwise in the
24819 ac_file_inputs=`IFS=:
24820 for f in $ac_file_in; do
24822 -) echo $tmp/stdin ;;
24824 # Absolute (can't be DOS-style, as IFS=:)
24825 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24826 echo "$as_me: error: cannot find input file: $f" >&2;}
24827 { (exit 1); exit 1; }; }
24830 if test -f "$f"; then
24833 elif test -f "$srcdir/$f"; then
24838 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24839 echo "$as_me: error: cannot find input file: $f" >&2;}
24840 { (exit 1); exit 1; }; }
24843 done` || { (exit 1); exit 1; }
24845 cat >>$CONFIG_STATUS <<_ACEOF
24849 cat >>$CONFIG_STATUS <<\_ACEOF
24851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24852 s,@configure_input@,$configure_input,;t t
24853 s,@srcdir@,$ac_srcdir,;t t
24854 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24855 s,@top_srcdir@,$ac_top_srcdir,;t t
24856 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24857 s,@builddir@,$ac_builddir,;t t
24858 s,@abs_builddir@,$ac_abs_builddir,;t t
24859 s,@top_builddir@,$ac_top_builddir,;t t
24860 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24861 s,@INSTALL@,$ac_INSTALL,;t t
24862 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24864 if test x"$ac_file" != x-; then
24865 mv $tmp/out $ac_file
24873 cat >>$CONFIG_STATUS <<\_ACEOF
24876 # CONFIG_HEADER section.
24879 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24880 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24882 # ac_d sets the value in "#define NAME VALUE" lines.
24883 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24884 ac_dB='[ ].*$,\1#\2'
24887 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24888 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24889 ac_uB='$,\1#\2define\3'
24893 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24894 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24896 - | *:- | *:-:* ) # input from stdin
24898 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24900 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24901 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24902 * ) ac_file_in=$ac_file.in ;;
24905 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24906 echo "$as_me: creating $ac_file" >&6;}
24908 # First look for the input files in the build tree, otherwise in the
24910 ac_file_inputs=`IFS=:
24911 for f in $ac_file_in; do
24913 -) echo $tmp/stdin ;;
24915 # Absolute (can't be DOS-style, as IFS=:)
24916 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24917 echo "$as_me: error: cannot find input file: $f" >&2;}
24918 { (exit 1); exit 1; }; }
24919 # Do quote $f, to prevent DOS paths from being IFS'd.
24922 if test -f "$f"; then
24925 elif test -f "$srcdir/$f"; then
24930 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24931 echo "$as_me: error: cannot find input file: $f" >&2;}
24932 { (exit 1); exit 1; }; }
24935 done` || { (exit 1); exit 1; }
24936 # Remove the trailing spaces.
24937 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24941 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24942 # `conftest.undefs', that substitutes the proper values into
24943 # config.h.in to produce config.h. The first handles `#define'
24944 # templates, and the second `#undef' templates.
24945 # And first: Protect against being on the right side of a sed subst in
24946 # config.status. Protect against being in an unquoted here document
24947 # in config.status.
24948 rm -f conftest.defines conftest.undefs
24949 # Using a here document instead of a string reduces the quoting nightmare.
24950 # Putting comments in sed scripts is not portable.
24952 # `end' is used to avoid that the second main sed command (meant for
24953 # 0-ary CPP macros) applies to n-ary macro definitions.
24954 # See the Autoconf documentation for `clear'.
24955 cat >confdef2sed.sed <<\_ACEOF
24960 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24962 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24965 # If some macros were called several times there might be several times
24966 # the same #defines, which is useless. Nevertheless, we may not want to
24967 # sort them, since we want the *last* AC-DEFINE to be honored.
24968 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24969 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24970 rm -f confdef2sed.sed
24972 # This sed command replaces #undef with comments. This is necessary, for
24973 # example, in the case of _POSIX_SOURCE, which is predefined and required
24974 # on some systems where configure will not decide to define it.
24975 cat >>conftest.undefs <<\_ACEOF
24976 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24979 # Break up conftest.defines because some shells have a limit on the size
24980 # of here documents, and old seds have small limits too (100 cmds).
24981 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24982 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24983 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24984 echo ' :' >>$CONFIG_STATUS
24985 rm -f conftest.tail
24986 while grep . conftest.defines >/dev/null
24988 # Write a limited-size here document to $tmp/defines.sed.
24989 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24990 # Speed up: don't consider the non `#define' lines.
24991 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24992 # Work around the forget-to-reset-the-flag bug.
24993 echo 't clr' >>$CONFIG_STATUS
24994 echo ': clr' >>$CONFIG_STATUS
24995 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24997 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24999 mv $tmp/out $tmp/in
25001 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25002 rm -f conftest.defines
25003 mv conftest.tail conftest.defines
25005 rm -f conftest.defines
25006 echo ' fi # grep' >>$CONFIG_STATUS
25007 echo >>$CONFIG_STATUS
25009 # Break up conftest.undefs because some shells have a limit on the size
25010 # of here documents, and old seds have small limits too (100 cmds).
25011 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25012 rm -f conftest.tail
25013 while grep . conftest.undefs >/dev/null
25015 # Write a limited-size here document to $tmp/undefs.sed.
25016 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25017 # Speed up: don't consider the non `#undef'
25018 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25019 # Work around the forget-to-reset-the-flag bug.
25020 echo 't clr' >>$CONFIG_STATUS
25021 echo ': clr' >>$CONFIG_STATUS
25022 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25024 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25026 mv $tmp/out $tmp/in
25028 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25029 rm -f conftest.undefs
25030 mv conftest.tail conftest.undefs
25032 rm -f conftest.undefs
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25035 # Let's still pretend it is `configure' which instantiates (i.e., don't
25036 # use $as_me), people would be surprised to read:
25037 # /* config.h. Generated by config.status. */
25038 if test x"$ac_file" = x-; then
25039 echo "/* Generated by configure. */" >$tmp/config.h
25041 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25043 cat $tmp/in >>$tmp/config.h
25045 if test x"$ac_file" != x-; then
25046 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25047 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25048 echo "$as_me: $ac_file is unchanged" >&6;}
25050 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25052 X"$ac_file" : 'X\(//\)[^/]' \| \
25053 X"$ac_file" : 'X\(//\)$' \| \
25054 X"$ac_file" : 'X\(/\)' \| \
25055 . : '\(.\)' 2>/dev/null ||
25057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25059 /^X\(\/\/\)$/{ s//\1/; q; }
25060 /^X\(\/\).*/{ s//\1/; q; }
25062 { if $as_mkdir_p; then
25067 while test ! -d "$as_dir"; do
25068 as_dirs="$as_dir $as_dirs"
25069 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25071 X"$as_dir" : 'X\(//\)[^/]' \| \
25072 X"$as_dir" : 'X\(//\)$' \| \
25073 X"$as_dir" : 'X\(/\)' \| \
25074 . : '\(.\)' 2>/dev/null ||
25076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25078 /^X\(\/\/\)$/{ s//\1/; q; }
25079 /^X\(\/\).*/{ s//\1/; q; }
25082 test ! -n "$as_dirs" || mkdir $as_dirs
25083 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25085 { (exit 1); exit 1; }; }; }
25088 mv $tmp/config.h $ac_file
25092 rm -f $tmp/config.h
25096 cat >>$CONFIG_STATUS <<\_ACEOF
25099 # CONFIG_COMMANDS section.
25101 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25102 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25103 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25104 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25105 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25106 X"$ac_dest" : 'X\(//\)[^/]' \| \
25107 X"$ac_dest" : 'X\(//\)$' \| \
25108 X"$ac_dest" : 'X\(/\)' \| \
25109 . : '\(.\)' 2>/dev/null ||
25111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25113 /^X\(\/\/\)$/{ s//\1/; q; }
25114 /^X\(\/\).*/{ s//\1/; q; }
25116 { if $as_mkdir_p; then
25121 while test ! -d "$as_dir"; do
25122 as_dirs="$as_dir $as_dirs"
25123 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25125 X"$as_dir" : 'X\(//\)[^/]' \| \
25126 X"$as_dir" : 'X\(//\)$' \| \
25127 X"$as_dir" : 'X\(/\)' \| \
25128 . : '\(.\)' 2>/dev/null ||
25130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25132 /^X\(\/\/\)$/{ s//\1/; q; }
25133 /^X\(\/\).*/{ s//\1/; q; }
25136 test ! -n "$as_dirs" || mkdir $as_dirs
25137 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25139 { (exit 1); exit 1; }; }; }
25143 if test "$ac_dir" != .; then
25144 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25145 # A "../" for each directory in $ac_dir_suffix.
25146 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25148 ac_dir_suffix= ac_top_builddir=
25152 .) # No --srcdir option. We are building in place.
25154 if test -z "$ac_top_builddir"; then
25157 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25159 [\\/]* | ?:[\\/]* ) # Absolute path.
25160 ac_srcdir=$srcdir$ac_dir_suffix;
25161 ac_top_srcdir=$srcdir ;;
25162 *) # Relative path.
25163 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25164 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25167 # Do not use `cd foo && pwd` to compute absolute paths, because
25168 # the directories may not exist.
25170 .) ac_abs_builddir="$ac_dir";;
25173 .) ac_abs_builddir=`pwd`;;
25174 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25175 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25178 case $ac_abs_builddir in
25179 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25181 case ${ac_top_builddir}. in
25182 .) ac_abs_top_builddir=$ac_abs_builddir;;
25183 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25184 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25187 case $ac_abs_builddir in
25188 .) ac_abs_srcdir=$ac_srcdir;;
25191 .) ac_abs_srcdir=$ac_abs_builddir;;
25192 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25193 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25196 case $ac_abs_builddir in
25197 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25199 case $ac_top_srcdir in
25200 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25201 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25202 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25207 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25208 echo "$as_me: executing $ac_dest commands" >&6;}
25211 for ac_file in $CONFIG_FILES; do
25212 # Support "outfile[:infile[:infile...]]"
25214 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25216 # PO directories have a Makefile.in generated from Makefile.in.in.
25217 case "$ac_file" in */Makefile.in)
25218 # Adjust a relative srcdir.
25219 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25220 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25221 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25222 # In autoconf-2.13 it is called $ac_given_srcdir.
25223 # In autoconf-2.50 it is called $srcdir.
25224 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25225 case "$ac_given_srcdir" in
25226 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25227 /*) top_srcdir="$ac_given_srcdir" ;;
25228 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25230 # Treat a directory as a PO directory if and only if it has a
25231 # POTFILES.in file. This allows packages to have multiple PO
25232 # directories under different names or in different locations.
25233 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25234 rm -f "$ac_dir/POTFILES"
25235 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25236 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25237 POMAKEFILEDEPS="POTFILES.in"
25238 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25239 # on $ac_dir but don't depend on user-specified configuration
25241 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25242 # The LINGUAS file contains the set of available languages.
25243 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25244 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25246 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25247 # Hide the ALL_LINGUAS assigment from automake.
25248 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25249 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25251 # The set of available languages was given in configure.in.
25252 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25255 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25256 # Compute UPDATEPOFILES
25257 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25258 # Compute DUMMYPOFILES
25259 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25261 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25262 case "$ac_given_srcdir" in
25264 *) srcdirpre='$(srcdir)/' ;;
25270 for lang in $ALL_LINGUAS; do
25271 POFILES="$POFILES $srcdirpre$lang.po"
25272 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25273 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25274 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25276 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25277 # environment variable.
25279 if test -n "$ALL_LINGUAS"; then
25280 for presentlang in $ALL_LINGUAS; do
25282 if test "%UNSET%" != "$LINGUAS"; then
25283 desiredlanguages="$LINGUAS"
25285 desiredlanguages="$ALL_LINGUAS"
25287 for desiredlang in $desiredlanguages; do
25288 # Use the presentlang catalog if desiredlang is
25289 # a. equal to presentlang, or
25290 # b. a variant of presentlang (because in this case,
25291 # presentlang can be used as a fallback for messages
25292 # which are not translated in the desiredlang catalog).
25293 case "$desiredlang" in
25294 "$presentlang"*) useit=yes;;
25297 if test $useit = yes; then
25298 INST_LINGUAS="$INST_LINGUAS $presentlang"
25303 if test -n "$INST_LINGUAS"; then
25304 for lang in $INST_LINGUAS; do
25305 CATALOGS="$CATALOGS $lang.gmo"
25308 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25309 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
25310 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25311 if test -f "$f"; then
25313 *.orig | *.bak | *~) ;;
25314 *) cat "$f" >> "$ac_dir/Makefile" ;;
25322 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25328 cat >>$CONFIG_STATUS <<\_ACEOF
25330 { (exit 0); exit 0; }
25332 chmod +x $CONFIG_STATUS
25333 ac_clean_files=$ac_clean_files_save
25336 # configure is writing to config.log, and then calls config.status.
25337 # config.status does its own redirection, appending to config.log.
25338 # Unfortunately, on DOS this fails, as config.log is still kept open
25339 # by configure, so config.status won't be able to write to it; its
25340 # output is simply discarded. So we exec the FD to /dev/null,
25341 # effectively closing config.log, so it can be properly (re)opened and
25342 # appended to by config.status. When coming back to configure, we
25343 # need to make the FD available again.
25344 if test "$no_create" != yes; then
25346 ac_config_status_args=
25347 test "$silent" = yes &&
25348 ac_config_status_args="$ac_config_status_args --quiet"
25350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25353 # would make configure fail if this is the last instruction.
25354 $ac_cs_success || { (exit 1); exit 1; }
25359 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25360 chmod 755 dvd-writepart dvd-freespace
25361 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25366 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
25367 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
25369 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
25370 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
25372 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
25373 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
25375 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
25376 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
25378 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
25379 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
25381 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25382 chmod 755 $c/sqlite
25385 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25386 largefile_support="yes"
25390 # A whole lot of hand springs to get the compiler version.
25391 # This is because gcc changed the output in version 3.0
25393 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25394 if test "x${CCVERSION}" = "x" ; then
25395 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25397 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25398 if test x"${CXXVERSION}" = x ; then
25399 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25402 if test "x${subsysdir}" = "x${sbindir}" ; then
25405 echo "You have set --sbindir and --with-subsys-dir"
25406 echo " both equal to: ${subsysdir} "
25407 echo " This is not permitted. Please reconfigure."
25409 echo "Aborting configuration ..."
25415 if test "x${db_name}" = "xInternal" ; then
25418 echo "You have not specified either --enable-client-only or one of the"
25419 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25420 echo " This is not permitted. Please reconfigure."
25422 echo "Aborting the configuration ..."
25429 Configuration on `date`:
25431 Host: $host -- ${DISTNAME} ${DISTVER}
25432 Bacula version: ${VERSION} (${DATE})
25433 Source code location: ${srcdir}
25434 Install binaries: ${sbindir}
25435 Install config files: ${sysconfdir}
25436 Scripts directory: ${scriptdir}
25437 Working directory: ${working_dir}
25438 PID directory: ${piddir}
25439 Subsys directory: ${subsysdir}
25440 Man directory: ${mandir}
25441 Data directory: ${datadir}
25442 C Compiler: ${CC} ${CCVERSION}
25443 C++ Compiler: ${CXX} ${CXXVERSION}
25444 Compiler flags: ${WCFLAGS} ${CFLAGS}
25445 Linker flags: ${WLDFLAGS} ${LDFLAGS}
25447 Statically Linked Tools: ${support_static_tools}
25448 Statically Linked FD: ${support_static_fd}
25449 Statically Linked SD: ${support_static_sd}
25450 Statically Linked DIR: ${support_static_dir}
25451 Statically Linked CONS: ${support_static_cons}
25452 Database type: ${db_name}
25453 Database lib: ${DB_LIBS}
25455 Job Output Email: ${job_email}
25456 Traceback Email: ${dump_email}
25457 SMTP Host Address: ${smtp_host}
25459 Director Port: ${dir_port}
25460 File daemon Port: ${fd_port}
25461 Storage daemon Port: ${sd_port}
25463 Director User: ${dir_user}
25464 Director Group: ${dir_group}
25465 Storage Daemon User: ${sd_user}
25466 Storage DaemonGroup: ${sd_group}
25467 File Daemon User: ${fd_user}
25468 File Daemon Group: ${fd_group}
25470 SQL binaries Directory ${SQL_BINDIR}
25472 Large file support: $largefile_support
25473 Bacula conio support: ${got_conio} ${CONS_LIBS}
25474 readline support: ${got_readline} ${PRTREADLINE_SRC}
25475 TCP Wrappers support: ${TCPW_MSG}
25476 TLS support: ${support_tls}
25477 ZLIB support: ${have_zlib}
25478 enable-smartalloc: ${support_smartalloc}
25479 enable-gnome: ${support_gnome} ${gnome_version}
25480 enable-wx-console: ${support_wx_console} ${wx_version}
25481 enable-tray-monitor: ${support_tray_monitor}
25482 client-only: ${build_client_only}
25483 build-dird: ${build_dird}
25484 build-stored: ${build_stored}
25485 ACL support: ${have_acl}
25486 Python support: ${support_python} ${PYTHON_LIBS}