2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for Concurrent Versions System (CVS) 1.12.9.
5 # Report bugs to <bug-cvs@gnu.org>.
7 # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
8 # 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
9 # Free Software Foundation, Inc.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # Copyright (C) 2003 Free Software Foundation, Inc.
22 # This configure script is free software; the Free Software Foundation
23 # gives unlimited permission to copy, distribute and modify it.
24 ## --------------------- ##
25 ## M4sh Initialization. ##
26 ## --------------------- ##
28 # Be Bourne compatible
29 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33 # is contrary to our usage. Disable this feature.
34 alias -g '${1+"$@"}'='"$@"'
35 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38 DUALCASE=1; export DUALCASE # for MKS sh
40 # Support unset when possible.
41 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48 # Work around bugs in pre-3.0 UWIN ksh.
49 $as_unset ENV MAIL MAILPATH
56 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
57 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
60 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
61 eval $as_var=C; export $as_var
67 # Required to use basename.
68 if expr a : '\(a\)' >/dev/null 2>&1; then
74 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
81 # Name of the executable.
82 as_me=`$as_basename "$0" ||
83 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
84 X"$0" : 'X\(//\)$' \| \
85 X"$0" : 'X\(/\)$' \| \
86 . : '\(.\)' 2>/dev/null ||
88 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
89 /^X\/\(\/\/\)$/{ s//\1/; q; }
90 /^X\/\(\/\).*/{ s//\1/; q; }
94 # PATH needs CR, and LINENO needs CR and PATH.
95 # Avoid depending upon Character Ranges.
96 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
97 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
98 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
99 as_cr_digits='0123456789'
100 as_cr_alnum=$as_cr_Letters$as_cr_digits
102 # The user is always right.
103 if test "${PATH_SEPARATOR+set}" != set; then
104 echo "#! /bin/sh" >conf$$.sh
105 echo "exit 0" >>conf$$.sh
107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
118 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
119 test "x$as_lineno_1" != "x$as_lineno_2" &&
120 test "x$as_lineno_3" = "x$as_lineno_2" || {
121 # Find who we are. Look in the path if we contain no path at all
124 *[\\/]* ) as_myself=$0 ;;
125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 test -z "$as_dir" && as_dir=.
130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
135 # We did not find ourselves, most probably we were run as `sh COMMAND'
136 # in which case we are not to be found in the path.
137 if test "x$as_myself" = x; then
140 if test ! -f "$as_myself"; then
141 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
142 { (exit 1); exit 1; }; }
144 case $CONFIG_SHELL in
146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
147 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
150 test -z "$as_dir" && as_dir=.
151 for as_base in sh bash ksh sh5; do
154 if ("$as_dir/$as_base" -c '
157 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
158 test "x$as_lineno_1" != "x$as_lineno_2" &&
159 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
160 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
161 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
162 CONFIG_SHELL=$as_dir/$as_base
164 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
172 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
173 # uniformly replaced by the line number. The first 'sed' inserts a
174 # line-number line before each line; the second 'sed' does the real
175 # work. The second script uses 'N' to pair each line-number line
176 # with the numbered line, and appends trailing '-' during
177 # substitution so that $LINENO is not a special case at line end.
178 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
179 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
180 sed '=' <$as_myself |
185 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
188 s,^['$as_cr_digits']*\n,,
190 chmod +x $as_me.lineno ||
191 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
192 { (exit 1); exit 1; }; }
194 # Don't try to exec as it changes $[0], causing all sort of problems
195 # (the dirname of $[0] is not the place where we might find the
196 # original and so on. Autoconf is especially sensible to this).
198 # Exit status is that of the last command.
203 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
204 *c*,-n*) ECHO_N= ECHO_C='
206 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
207 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
210 if expr a : '\(a\)' >/dev/null 2>&1; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if ln -s conf$$.file conf$$ 2>/dev/null; then
219 # We could just check for DJGPP; but this test a) works b) is more generic
220 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
221 if test -f conf$$.exe; then
222 # Don't use ln at all; we don't have any links
227 elif ln conf$$.file conf$$ 2>/dev/null; then
232 rm -f conf$$ conf$$.exe conf$$.file
234 if mkdir -p . 2>/dev/null; then
237 test -d ./-p && rmdir ./-p
241 as_executable_p="test -f"
243 # Sed expression to map a string onto a valid CPP name.
244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
246 # Sed expression to map a string onto a valid variable name.
247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
251 # We need space, tab and new line, in precisely that order.
261 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
262 # so uname gets run too.
263 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
270 ac_default_prefix=/usr/local
271 ac_config_libobj_dir=.
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Maximum number of lines to put in a shell here document.
279 # This variable seems obsolete. It should probably be removed, and
280 # only ac_max_sed_lines should be used.
281 : ${ac_max_here_lines=38}
283 # Identity of this package.
284 PACKAGE_NAME='Concurrent Versions System (CVS)'
285 PACKAGE_TARNAME='cvs'
286 PACKAGE_VERSION='1.12.9'
287 PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.9'
288 PACKAGE_BUGREPORT='bug-cvs@gnu.org'
290 ac_unique_file="src/cvs.h"
291 # Factoring default headers for most tests.
292 ac_includes_default="\
295 # include <sys/types.h>
298 # include <sys/stat.h>
309 # if !STDC_HEADERS && HAVE_MEMORY_H
315 # include <strings.h>
318 # include <inttypes.h>
330 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot ac_prefix_program MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S PERL CSH MKTEMP SENDMAIL PR ROFF PS2PDF TEXI2DVI MAKE_TARGETS_IN_VPATH_TRUE MAKE_TARGETS_IN_VPATH_FALSE LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H FNMATCH_H LIB_NANOSLEEP YACC YFLAGS LIB_CLOCK_GETTIME HAVE_PUTENV cvs_client_objects KRB4 ZLIB_SUBDIRS ZLIB_CPPFLAGS ZLIB_LIBS with_default_rsh RSH_DFLT EDITOR LTLIBOBJS'
331 ac_subst_files='MKTEMP_SH_FUNCTION'
333 # Initialize some variables set by options.
335 ac_init_version=false
336 # The variables have the same names as the options, with
337 # dashes changed to underlines.
345 program_transform_name=s,x,x,
353 # Installation directory options.
354 # These are left unexpanded so users can "make install exec_prefix=/foo"
355 # and all the variables that are supposed to be based on exec_prefix
356 # by default will actually change.
357 # Use braces instead of parens because sh, perl, etc. also accept them.
358 bindir='${exec_prefix}/bin'
359 sbindir='${exec_prefix}/sbin'
360 libexecdir='${exec_prefix}/libexec'
361 datadir='${prefix}/share'
362 sysconfdir='${prefix}/etc'
363 sharedstatedir='${prefix}/com'
364 localstatedir='${prefix}/var'
365 libdir='${exec_prefix}/lib'
366 includedir='${prefix}/include'
367 oldincludedir='/usr/include'
368 infodir='${prefix}/info'
369 mandir='${prefix}/man'
374 # If the previous option needs an argument, assign it.
375 if test -n "$ac_prev"; then
376 eval "$ac_prev=\$ac_option"
381 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
383 # Accept the important Cygnus configure options, so we can diagnose typos.
387 -bindir | --bindir | --bindi | --bind | --bin | --bi)
389 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
392 -build | --build | --buil | --bui | --bu)
393 ac_prev=build_alias ;;
394 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
395 build_alias=$ac_optarg ;;
397 -cache-file | --cache-file | --cache-fil | --cache-fi \
398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
399 ac_prev=cache_file ;;
400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
402 cache_file=$ac_optarg ;;
405 cache_file=config.cache ;;
407 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
409 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
411 datadir=$ac_optarg ;;
413 -disable-* | --disable-*)
414 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
415 # Reject names that are not valid shell variable names.
416 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
417 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
418 { (exit 1); exit 1; }; }
419 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
420 eval "enable_$ac_feature=no" ;;
422 -enable-* | --enable-*)
423 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
424 # Reject names that are not valid shell variable names.
425 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
426 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
427 { (exit 1); exit 1; }; }
428 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
430 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 eval "enable_$ac_feature='$ac_optarg'" ;;
435 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
436 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
437 | --exec | --exe | --ex)
438 ac_prev=exec_prefix ;;
439 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
440 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
441 | --exec=* | --exe=* | --ex=*)
442 exec_prefix=$ac_optarg ;;
444 -gas | --gas | --ga | --g)
445 # Obsolete; use --with-gas.
448 -help | --help | --hel | --he | -h)
450 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
451 ac_init_help=recursive ;;
452 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
453 ac_init_help=short ;;
455 -host | --host | --hos | --ho)
456 ac_prev=host_alias ;;
457 -host=* | --host=* | --hos=* | --ho=*)
458 host_alias=$ac_optarg ;;
460 -includedir | --includedir | --includedi | --included | --include \
461 | --includ | --inclu | --incl | --inc)
462 ac_prev=includedir ;;
463 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
464 | --includ=* | --inclu=* | --incl=* | --inc=*)
465 includedir=$ac_optarg ;;
467 -infodir | --infodir | --infodi | --infod | --info | --inf)
469 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
470 infodir=$ac_optarg ;;
472 -libdir | --libdir | --libdi | --libd)
474 -libdir=* | --libdir=* | --libdi=* | --libd=*)
477 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
478 | --libexe | --libex | --libe)
479 ac_prev=libexecdir ;;
480 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
481 | --libexe=* | --libex=* | --libe=*)
482 libexecdir=$ac_optarg ;;
484 -localstatedir | --localstatedir | --localstatedi | --localstated \
485 | --localstate | --localstat | --localsta | --localst \
486 | --locals | --local | --loca | --loc | --lo)
487 ac_prev=localstatedir ;;
488 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
489 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
490 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
491 localstatedir=$ac_optarg ;;
493 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
495 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
499 # Obsolete; use --without-fp.
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c | -n)
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
510 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
511 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
512 | --oldin | --oldi | --old | --ol | --o)
513 ac_prev=oldincludedir ;;
514 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
515 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
516 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
517 oldincludedir=$ac_optarg ;;
519 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
521 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
524 -program-prefix | --program-prefix | --program-prefi | --program-pref \
525 | --program-pre | --program-pr | --program-p)
526 ac_prev=program_prefix ;;
527 -program-prefix=* | --program-prefix=* | --program-prefi=* \
528 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
529 program_prefix=$ac_optarg ;;
531 -program-suffix | --program-suffix | --program-suffi | --program-suff \
532 | --program-suf | --program-su | --program-s)
533 ac_prev=program_suffix ;;
534 -program-suffix=* | --program-suffix=* | --program-suffi=* \
535 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
536 program_suffix=$ac_optarg ;;
538 -program-transform-name | --program-transform-name \
539 | --program-transform-nam | --program-transform-na \
540 | --program-transform-n | --program-transform- \
541 | --program-transform | --program-transfor \
542 | --program-transfo | --program-transf \
543 | --program-trans | --program-tran \
544 | --progr-tra | --program-tr | --program-t)
545 ac_prev=program_transform_name ;;
546 -program-transform-name=* | --program-transform-name=* \
547 | --program-transform-nam=* | --program-transform-na=* \
548 | --program-transform-n=* | --program-transform-=* \
549 | --program-transform=* | --program-transfor=* \
550 | --program-transfo=* | --program-transf=* \
551 | --program-trans=* | --program-tran=* \
552 | --progr-tra=* | --program-tr=* | --program-t=*)
553 program_transform_name=$ac_optarg ;;
555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
556 | -silent | --silent | --silen | --sile | --sil)
559 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
561 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
563 sbindir=$ac_optarg ;;
565 -sharedstatedir | --sharedstatedir | --sharedstatedi \
566 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
567 | --sharedst | --shareds | --shared | --share | --shar \
569 ac_prev=sharedstatedir ;;
570 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
571 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
572 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
574 sharedstatedir=$ac_optarg ;;
576 -site | --site | --sit)
578 -site=* | --site=* | --sit=*)
581 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
583 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
586 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
587 | --syscon | --sysco | --sysc | --sys | --sy)
588 ac_prev=sysconfdir ;;
589 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
590 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
591 sysconfdir=$ac_optarg ;;
593 -target | --target | --targe | --targ | --tar | --ta | --t)
594 ac_prev=target_alias ;;
595 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
596 target_alias=$ac_optarg ;;
598 -v | -verbose | --verbose | --verbos | --verbo | --verb)
601 -version | --version | --versio | --versi | --vers | -V)
605 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package| sed 's/-/_/g'`
612 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
615 eval "with_$ac_package='$ac_optarg'" ;;
617 -without-* | --without-*)
618 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid package name: $ac_package" >&2
622 { (exit 1); exit 1; }; }
623 ac_package=`echo $ac_package | sed 's/-/_/g'`
624 eval "with_$ac_package=no" ;;
627 # Obsolete; use --with-x.
630 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
631 | --x-incl | --x-inc | --x-in | --x-i)
632 ac_prev=x_includes ;;
633 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
634 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
635 x_includes=$ac_optarg ;;
637 -x-libraries | --x-libraries | --x-librarie | --x-librari \
638 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
639 ac_prev=x_libraries ;;
640 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
641 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
642 x_libraries=$ac_optarg ;;
644 -*) { echo "$as_me: error: unrecognized option: $ac_option
645 Try \`$0 --help' for more information." >&2
646 { (exit 1); exit 1; }; }
650 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
651 # Reject names that are not valid shell variable names.
652 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
653 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
654 { (exit 1); exit 1; }; }
655 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
656 eval "$ac_envvar='$ac_optarg'"
660 # FIXME: should be removed in autoconf 3.0.
661 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
662 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
663 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
664 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
670 if test -n "$ac_prev"; then
671 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
672 { echo "$as_me: error: missing argument to $ac_option" >&2
673 { (exit 1); exit 1; }; }
676 # Be sure to have absolute paths.
677 for ac_var in exec_prefix prefix
679 eval ac_val=$`echo $ac_var`
681 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
687 # Be sure to have absolute paths.
688 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
689 localstatedir libdir includedir oldincludedir infodir mandir
691 eval ac_val=$`echo $ac_var`
693 [\\/$]* | ?:[\\/]* ) ;;
694 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
695 { (exit 1); exit 1; }; };;
699 # There might be people who depend on the old broken behavior: `$host'
700 # used to hold the argument of --host etc.
701 # FIXME: To remove some day.
706 # FIXME: To remove some day.
707 if test "x$host_alias" != x; then
708 if test "x$build_alias" = x; then
709 cross_compiling=maybe
710 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
711 If a cross compiler is detected then cross compile mode will be used." >&2
712 elif test "x$build_alias" != "x$host_alias"; then
718 test -n "$host_alias" && ac_tool_prefix=$host_alias-
720 test "$silent" = yes && exec 6>/dev/null
723 # Find the source files, if location was not specified.
724 if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent.
727 ac_confdir=`(dirname "$0") 2>/dev/null ||
728 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
729 X"$0" : 'X\(//\)[^/]' \| \
730 X"$0" : 'X\(//\)$' \| \
731 X"$0" : 'X\(/\)' \| \
732 . : '\(.\)' 2>/dev/null ||
734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
736 /^X\(\/\/\)$/{ s//\1/; q; }
737 /^X\(\/\).*/{ s//\1/; q; }
740 if test ! -r $srcdir/$ac_unique_file; then
744 ac_srcdir_defaulted=no
746 if test ! -r $srcdir/$ac_unique_file; then
747 if test "$ac_srcdir_defaulted" = yes; then
748 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
749 { (exit 1); exit 1; }; }
751 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
752 { (exit 1); exit 1; }; }
755 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
756 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
757 { (exit 1); exit 1; }; }
758 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
759 ac_env_build_alias_set=${build_alias+set}
760 ac_env_build_alias_value=$build_alias
761 ac_cv_env_build_alias_set=${build_alias+set}
762 ac_cv_env_build_alias_value=$build_alias
763 ac_env_host_alias_set=${host_alias+set}
764 ac_env_host_alias_value=$host_alias
765 ac_cv_env_host_alias_set=${host_alias+set}
766 ac_cv_env_host_alias_value=$host_alias
767 ac_env_target_alias_set=${target_alias+set}
768 ac_env_target_alias_value=$target_alias
769 ac_cv_env_target_alias_set=${target_alias+set}
770 ac_cv_env_target_alias_value=$target_alias
771 ac_env_CC_set=${CC+set}
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
779 ac_env_LDFLAGS_set=${LDFLAGS+set}
780 ac_env_LDFLAGS_value=$LDFLAGS
781 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
782 ac_cv_env_LDFLAGS_value=$LDFLAGS
783 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
784 ac_env_CPPFLAGS_value=$CPPFLAGS
785 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
786 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
787 ac_env_CPP_set=${CPP+set}
788 ac_env_CPP_value=$CPP
789 ac_cv_env_CPP_set=${CPP+set}
790 ac_cv_env_CPP_value=$CPP
791 ac_env_YACC_set=${YACC+set}
792 ac_env_YACC_value=$YACC
793 ac_cv_env_YACC_set=${YACC+set}
794 ac_cv_env_YACC_value=$YACC
795 ac_env_YFLAGS_set=${YFLAGS+set}
796 ac_env_YFLAGS_value=$YFLAGS
797 ac_cv_env_YFLAGS_set=${YFLAGS+set}
798 ac_cv_env_YFLAGS_value=$YFLAGS
799 ac_env_EDITOR_set=${EDITOR+set}
800 ac_env_EDITOR_value=$EDITOR
801 ac_cv_env_EDITOR_set=${EDITOR+set}
802 ac_cv_env_EDITOR_value=$EDITOR
805 # Report the --help message.
807 if test "$ac_init_help" = "long"; then
808 # Omit some internal or obsolete options to make the list less imposing.
809 # This message is too long to be a string in the A/UX 3.1 sh.
811 \`configure' configures Concurrent Versions System (CVS) 1.12.9 to adapt to many kinds of systems.
813 Usage: $0 [OPTION]... [VAR=VALUE]...
815 To assign environment variables (e.g., CC, CFLAGS...), specify them as
816 VAR=VALUE. See below for descriptions of some of the useful variables.
818 Defaults for the options are specified in brackets.
821 -h, --help display this help and exit
822 --help=short display options specific to this package
823 --help=recursive display the short help of all the included packages
824 -V, --version display version information and exit
825 -q, --quiet, --silent do not print \`checking...' messages
826 --cache-file=FILE cache test results in FILE [disabled]
827 -C, --config-cache alias for \`--cache-file=config.cache'
828 -n, --no-create do not create output files
829 --srcdir=DIR find the sources in DIR [configure dir or \`..']
834 Installation directories:
835 --prefix=PREFIX install architecture-independent files in PREFIX
837 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
840 By default, \`make install' will install all the files in
841 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
842 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
843 for instance \`--prefix=\$HOME'.
845 For better control, use the options below.
847 Fine tuning of the installation directories:
848 --bindir=DIR user executables [EPREFIX/bin]
849 --sbindir=DIR system admin executables [EPREFIX/sbin]
850 --libexecdir=DIR program executables [EPREFIX/libexec]
851 --datadir=DIR read-only architecture-independent data [PREFIX/share]
852 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
853 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
854 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
855 --libdir=DIR object code libraries [EPREFIX/lib]
856 --includedir=DIR C header files [PREFIX/include]
857 --oldincludedir=DIR C header files for non-gcc [/usr/include]
858 --infodir=DIR info documentation [PREFIX/info]
859 --mandir=DIR man documentation [PREFIX/man]
865 --program-prefix=PREFIX prepend PREFIX to installed program names
866 --program-suffix=SUFFIX append SUFFIX to installed program names
867 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
870 --build=BUILD configure for building on BUILD [guessed]
871 --host=HOST cross-compile to build programs to run on HOST [BUILD]
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.12.9:";;
882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing) to the casual installer
886 --disable-dependency-tracking Speeds up one-time builds
887 --enable-dependency-tracking Do not reject slow dependency extractors
888 --disable-largefile omit support for large files
889 --disable-nls do not use Native Language Support
890 --disable-rpath do not hardcode runtime library paths
891 --enable-cvs-ndbm Use the NDBM library distributed with CVS rather
892 than attempting to use a system NDBM library.
893 Disabling this may not work. (default)
894 --enable-client Include code for running as a remote client
896 --enable-password-authenticated-client
897 Enable pserver as a remote access method in the CVS
899 --enable-server Include code for running as a server (default)
900 --enable-server-flow-control
901 If you are working with a large remote repository
902 and a 'cvs checkout' is swamping your network and
903 memory, define these to enable flow control. You may
904 optionally pass a low water mark in bytes and a high
905 water mark in bytes, separated by commas. (default
907 --enable-pam Use to enable system authentication with PAM instead
908 of using the simple getpwnam interface. This allows
909 authentication (in theory) with any PAM module, e.g.
910 on systems with shadow passwords or via LDAP
911 --enable-case-sensitivity
912 Force CVS to expect a case sensitive file system.
913 Enabling this on a case insensitive system should
914 have little effect on the server or client
915 operation, though client users may ocassionally be
916 suprised that the CVS server appears to be case
917 sensitive. Disabling this for a case sensitive
918 server disables server support for case insensitive
919 clients, which can confuse all users of case
920 insensitive clients contacting the server. Disabling
921 this for a case sensitive client will cause the
922 client to ask servers to behave case insensitively,
923 which could cause confusion for users, but also
924 probably no real harm. (default autoselects based on
925 the case sensitivity of the file system containing
926 the current working directory)
927 --enable-encryption Enable encryption support (disabled by default)
928 --enable-force-editor When committing or importing files, you must enter a
929 log message. Normally, you can do this either via
930 the -m flag on the command line, the -F flag on the
931 command line, or an editor will be started for you.
932 If you like to use logging templates (the rcsinfo
933 file within the $CVSROOT/CVSROOT directory), you
934 might want to force people to use the editor even if
935 they specify a message with -m or -F.
936 --enable-force-editor will cause the -m or -F
937 message to be appended to the temp file when the
938 editor is started. (disabled by default)
939 --enable-lock-compatibility
940 Include locking code which prevents versions of CVS
941 earlier than 1.12.4 directly accessing the same
942 repositiory as this executable from ignoring this
943 executable's promotable read locks. If only CVS
944 versions 1.12.4 and later will be accessing your
945 repository directly (as a server or locally), you
946 can safely disable this option in return for fewer
947 disk accesses and a small speed increase. Disabling
948 this option when versions of CVS earlier than 1,12,4
949 _will_ be accessing your repository, however, is
950 *VERY* *VERY* *VERY* dangerous and could result in
951 data loss. (enabled by default)
952 --enable-rootcommit Allow the root user to commit files (disabled by
954 --enable-old-info-format-support
955 Enable support for the pre 1.12.1 *info scripting
956 hook format strings. Disable this option for a
957 smaller executable once your scripting hooks have
958 been updated to use the new *info format strings
962 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
963 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
964 --with-gnu-ld assume the C compiler uses GNU ld default=no
965 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
966 --without-libiconv-prefix don't search for libiconv in includedir and libdir
967 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
968 --without-libintl-prefix don't search for libintl in includedir and libdir
969 --without-included-regex don't compile regex; this is the default on
970 systems with version 2 of the GNU C library
971 (use with caution on other system)
972 --with-krb4 Kerberos 4 directory (default /usr/kerberos)
973 --with-gssapi GSSAPI directory (default autoselects)
974 --with-external-zlib Use the specified ZLIB library (defaults to the
975 version distributed with the CVS source)
976 --with-rsh The default remote shell CVS will use for :ext:
977 transport (default rsh)
978 --with-editor The default text editor CVS should use for log
979 messages (default autoselects)
980 --with-hardcoded-pam-service-name
981 Use this to hard code a service name for PAM CVS
982 authentication. The special name, `program_name',
983 will cause CVS to use whatever name it was invoked
984 as as the service name. (defaults to `cvs')
985 --with-tmpdir The temporary directory CVS should use as a default
986 (default autoselects)
987 --with-umask Set the umask CVS will use by default in the
988 repository (default 002)
989 --with-cvs-admin-group=GROUP
990 The CVS admin command is restricted to the members
991 of this group. If this group does not exist, all
992 users are allowed to run CVS admin. To disable the
993 CVS admin command for all users, create an empty
994 group by specifying the --with-cvs-admin-group=
995 option. To disable access control for CVS admin, run
996 configure with the --without-cvs-admin-group option.
999 Some influential environment variables:
1000 CC C compiler command
1001 CFLAGS C compiler flags
1002 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1003 nonstandard directory <lib dir>
1004 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1005 headers in a nonstandard directory <include dir>
1007 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1008 `bison -y'. Values other than `bison -y' will most likely break
1010 YFLAGS YFLAGS contains the list arguments that will be passed by
1011 default to Bison. This script will default YFLAGS to the empty
1012 string to avoid a default value of `-d' given by some make
1014 EDITOR The text editor CVS will use by default for log messages.
1016 Use these variables to override the choices made by `configure' or to help
1017 it to find libraries and programs with nonstandard names/locations.
1019 Report bugs to <bug-cvs@gnu.org>.
1023 if test "$ac_init_help" = "recursive"; then
1024 # If there are subdirs, report their specific --help.
1026 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1027 test -d $ac_dir || continue
1030 if test "$ac_dir" != .; then
1031 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1032 # A "../" for each directory in $ac_dir_suffix.
1033 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1035 ac_dir_suffix= ac_top_builddir=
1039 .) # No --srcdir option. We are building in place.
1041 if test -z "$ac_top_builddir"; then
1044 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1046 [\\/]* | ?:[\\/]* ) # Absolute path.
1047 ac_srcdir=$srcdir$ac_dir_suffix;
1048 ac_top_srcdir=$srcdir ;;
1050 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1051 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1054 .) ac_abs_builddir=$ac_builddir;;
1056 case $ac_builddir in
1057 .) ac_abs_builddir="$ac_dir";;
1058 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1059 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1063 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1065 case ${ac_top_builddir}. in
1066 .) ac_abs_top_builddir="$ac_dir";;
1067 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1068 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1072 .) ac_abs_srcdir=$ac_srcdir;;
1075 .) ac_abs_srcdir="$ac_dir";;
1076 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1077 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1081 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1083 case $ac_top_srcdir in
1084 .) ac_abs_top_srcdir="$ac_dir";;
1085 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1086 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1091 # Check for guested configure; otherwise get Cygnus style configure.
1092 if test -f $ac_srcdir/configure.gnu; then
1094 $SHELL $ac_srcdir/configure.gnu --help=recursive
1095 elif test -f $ac_srcdir/configure; then
1097 $SHELL $ac_srcdir/configure --help=recursive
1098 elif test -f $ac_srcdir/configure.ac ||
1099 test -f $ac_srcdir/configure.in; then
1101 $ac_configure --help
1103 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1109 test -n "$ac_init_help" && exit 0
1110 if $ac_init_version; then
1112 Concurrent Versions System (CVS) configure 1.12.9
1113 generated by GNU Autoconf 2.58
1115 Copyright (C) 2003 Free Software Foundation, Inc.
1116 This configure script is free software; the Free Software Foundation
1117 gives unlimited permission to copy, distribute and modify it.
1119 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
1120 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
1121 Free Software Foundation, Inc.
1123 This program is free software; you can redistribute it and/or modify
1124 it under the terms of the GNU General Public License as published by
1125 the Free Software Foundation; either version 2, or (at your option)
1128 This program is distributed in the hope that it will be useful,
1129 but WITHOUT ANY WARRANTY; without even the implied warranty of
1130 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1131 GNU General Public License for more details.
1137 This file contains any messages produced by compilers while
1138 running configure, to aid debugging if configure makes a mistake.
1140 It was created by Concurrent Versions System (CVS) $as_me 1.12.9, which was
1141 generated by GNU Autoconf 2.58. Invocation command line was
1152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1164 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175 test -z "$as_dir" && as_dir=.
1176 echo "PATH: $as_dir"
1191 # Keep a trace of the command line.
1192 # Strip out --no-create and --no-recursion so they do not pile up.
1193 # Strip out --silent because we don't want to record it for future runs.
1194 # Also quote any args containing shell meta-characters.
1195 # Make two passes to allow for proper duplicate-argument suppression.
1200 ac_must_keep_next=false
1206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1210 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1211 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1214 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1217 if test $ac_must_keep_next = true; then
1218 ac_must_keep_next=false # Got value, back to normal.
1221 *=* | --config-cache | -C | -disable-* | --disable-* \
1222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1224 | -with-* | --with-* | -without-* | --without-* | --x)
1225 case "$ac_configure_args0 " in
1226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1229 -* ) ac_must_keep_next=true ;;
1232 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1233 # Get rid of the leading space.
1239 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1240 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242 # When interrupted or exit'd, cleanup temporary files, and complete
1243 # config.log. We remove comments because anyway the quotes in there
1244 # would cause problems or look ugly.
1245 # WARNING: Be sure not to use single quotes in there, as some shells,
1246 # such as our DU 5.0 friend, will then `close' the trap.
1247 trap 'exit_status=$?
1248 # Save into config.log some information that might help in debugging.
1253 ## ---------------- ##
1254 ## Cache variables. ##
1255 ## ---------------- ##
1258 # The following way of writing the cache mishandles newlines in values,
1261 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1264 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1276 ## ----------------- ##
1277 ## Output variables. ##
1278 ## ----------------- ##
1281 for ac_var in $ac_subst_vars
1283 eval ac_val=$`echo $ac_var`
1284 echo "$ac_var='"'"'$ac_val'"'"'"
1288 if test -n "$ac_subst_files"; then
1295 for ac_var in $ac_subst_files
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1303 if test -s confdefs.h; then
1310 sed "/^$/d" confdefs.h | sort
1313 test "$ac_signal" != 0 &&
1314 echo "$as_me: caught signal $ac_signal"
1315 echo "$as_me: exit $exit_status"
1317 rm -f core *.core &&
1318 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1321 for ac_signal in 1 2 13 15; do
1322 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1327 rm -rf conftest* confdefs.h
1328 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1331 # Predefined preprocessor variables.
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_NAME "$PACKAGE_NAME"
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_STRING "$PACKAGE_STRING"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358 # Let the site file select an alternate cache file if it wants to.
1359 # Prefer explicitly selected file to automatically selected ones.
1360 if test -z "$CONFIG_SITE"; then
1361 if test "x$prefix" != xNONE; then
1362 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1367 for ac_site_file in $CONFIG_SITE; do
1368 if test -r "$ac_site_file"; then
1369 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1370 echo "$as_me: loading site script $ac_site_file" >&6;}
1371 sed 's/^/| /' "$ac_site_file" >&5
1376 if test -r "$cache_file"; then
1377 # Some versions of bash will fail to source /dev/null (special
1378 # files actually), so we avoid doing that.
1379 if test -f "$cache_file"; then
1380 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1381 echo "$as_me: loading cache $cache_file" >&6;}
1383 [\\/]* | ?:[\\/]* ) . $cache_file;;
1384 *) . ./$cache_file;;
1388 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1389 echo "$as_me: creating cache $cache_file" >&6;}
1393 # Check that the precious variables saved in the cache have kept the same
1395 ac_cache_corrupted=false
1396 for ac_var in `(set) 2>&1 |
1397 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1398 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1399 eval ac_new_set=\$ac_env_${ac_var}_set
1400 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1401 eval ac_new_val="\$ac_env_${ac_var}_value"
1402 case $ac_old_set,$ac_new_set in
1404 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1406 ac_cache_corrupted=: ;;
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1413 if test "x$ac_old_val" != "x$ac_new_val"; then
1414 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1417 echo "$as_me: former value: $ac_old_val" >&2;}
1418 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1419 echo "$as_me: current value: $ac_new_val" >&2;}
1420 ac_cache_corrupted=:
1423 # Pass precious variables to config.status.
1424 if test "$ac_new_set" = set; then
1426 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1427 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1428 *) ac_arg=$ac_var=$ac_new_val ;;
1430 case " $ac_configure_args " in
1431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1432 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 if $ac_cache_corrupted; then
1437 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1438 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1439 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1440 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1441 { (exit 1); exit 1; }; }
1445 ac_cpp='$CPP $CPPFLAGS'
1446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1451 gl_header_list="$gl_header_list fcntl.h"
1452 gl_header_list="$gl_header_list sys/time.h"
1453 gl_header_list="$gl_header_list unistd.h"
1454 gl_func_list="$gl_func_list mempcpy"
1455 gl_func_list="$gl_func_list isascii"
1456 gl_func_list="$gl_func_list gettimeofday"
1457 gl_header_list="$gl_header_list sys/param.h"
1458 gl_header_list="$gl_header_list wchar.h"
1459 gl_header_list="$gl_header_list wctype.h"
1460 gl_header_list="$gl_header_list stdlib.h"
1487 am__api_version="1.7"
1489 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490 if test -f $ac_dir/install-sh; then
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1494 elif test -f $ac_dir/install.sh; then
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1498 elif test -f $ac_dir/shtool; then
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1504 if test -z "$ac_aux_dir"; then
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507 { (exit 1); exit 1; }; }
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513 # Find a good install program. We prefer a C program (faster),
1514 # so one script is as good as another. But avoid the broken or
1515 # incompatible versions:
1516 # SysV /etc/install, /usr/sbin/install
1517 # SunOS /usr/etc/install
1518 # IRIX /sbin/install
1520 # AmigaOS /C/install, which installs bootblocks on floppy discs
1521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1524 # OS/2's system install, which has a completely different semantic
1525 # ./install, which can be erroneously created by make from ./install.sh.
1526 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1527 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1528 if test -z "$INSTALL"; then
1529 if test "${ac_cv_path_install+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 # Account for people who put trailing slashes in PATH elements.
1539 ./ | .// | /cC/* | \
1540 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1541 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1544 # OSF1 and SCO ODT 3.0 have their own names for install.
1545 # Don't use installbsd from OSF since it installs stuff as root
1547 for ac_prog in ginstall scoinst install; do
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1550 if test $ac_prog = install &&
1551 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1552 # AIX install. It has an incompatible calling convention.
1554 elif test $ac_prog = install &&
1555 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1556 # program-specific install script used by HP pwplus--don't use.
1559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1571 if test "${ac_cv_path_install+set}" = set; then
1572 INSTALL=$ac_cv_path_install
1574 # As a last resort, use the slow shell script. We don't cache a
1575 # path for INSTALL within a source directory, because that will
1576 # break other packages using the cache if that directory is
1577 # removed, or if the path is relative.
1578 INSTALL=$ac_install_sh
1581 echo "$as_me:$LINENO: result: $INSTALL" >&5
1582 echo "${ECHO_T}$INSTALL" >&6
1584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1585 # It thinks the first close brace ends the variable substitution.
1586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1592 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1593 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1596 echo timestamp > conftest.file
1597 # Do `set' in a subshell so we don't clobber the current shell's
1598 # arguments. Must try -L first in case configure is actually a
1599 # symlink; some systems play weird games with the mod time of symlinks
1600 # (eg FreeBSD returns the mod time of the symlink's containing
1603 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1604 if test "$*" = "X"; then
1606 set X `ls -t $srcdir/configure conftest.file`
1609 if test "$*" != "X $srcdir/configure conftest.file" \
1610 && test "$*" != "X conftest.file $srcdir/configure"; then
1612 # If neither matched, then we have a broken ls. This can happen
1613 # if, for instance, CONFIG_SHELL is bash and it inherits a
1614 # broken ls alias from the environment. This has actually
1615 # happened. Such a system could not be considered "sane".
1616 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1617 alias in your environment" >&5
1618 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1619 alias in your environment" >&2;}
1620 { (exit 1); exit 1; }; }
1623 test "$2" = conftest.file
1629 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1630 Check your system clock" >&5
1631 echo "$as_me: error: newly created file is older than distributed files!
1632 Check your system clock" >&2;}
1633 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: result: yes" >&5
1636 echo "${ECHO_T}yes" >&6
1637 test "$program_prefix" != NONE &&
1638 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1639 # Use a double $ so make ignores it.
1640 test "$program_suffix" != NONE &&
1641 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1642 # Double any \ or $. echo might interpret backslashes.
1643 # By default was `s,x,x', remove it if useless.
1644 cat <<\_ACEOF >conftest.sed
1645 s/[\\$]/&&/g;s/;s,x,x,$//
1647 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1651 # expand $ac_aux_dir to an absolute path
1652 am_aux_dir=`cd $ac_aux_dir && pwd`
1654 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1655 # Use eval to expand $SHELL
1656 if eval "$MISSING --run true"; then
1657 am_missing_run="$MISSING --run "
1660 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1661 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1664 for ac_prog in gawk mawk nawk awk
1666 # Extract the first word of "$ac_prog", so it can be a program name with args.
1667 set dummy $ac_prog; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_AWK+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 if test -n "$AWK"; then
1674 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_AWK="$ac_prog"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 if test -n "$AWK"; then
1694 echo "$as_me:$LINENO: result: $AWK" >&5
1695 echo "${ECHO_T}$AWK" >&6
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1701 test -n "$AWK" && break
1704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 cat >conftest.make <<\_ACEOF
1712 @echo 'ac_maketemp="$(MAKE)"'
1714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1716 if test -n "$ac_maketemp"; then
1717 eval ac_cv_prog_make_${ac_make}_set=yes
1719 eval ac_cv_prog_make_${ac_make}_set=no
1723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1724 echo "$as_me:$LINENO: result: yes" >&5
1725 echo "${ECHO_T}yes" >&6
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1730 SET_MAKE="MAKE=${MAKE-make}"
1733 rm -rf .tst 2>/dev/null
1734 mkdir .tst 2>/dev/null
1735 if test -d .tst; then
1740 rmdir .tst 2>/dev/null
1742 # test to see if srcdir already configured
1743 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1744 test -f $srcdir/config.status; then
1745 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1746 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1747 { (exit 1); exit 1; }; }
1750 # test whether we have cygpath
1751 if test -z "$CYGPATH_W"; then
1752 if (cygpath --version) >/dev/null 2>/dev/null; then
1753 CYGPATH_W='cygpath -w'
1760 # Define the identity of the package.
1765 # Some tools Automake needs.
1767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1782 AMTAR=${AMTAR-"${am_missing_run}tar"}
1784 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1786 # Installed binaries are usually stripped using `strip' when the user
1787 # run `make install-strip'. However `strip' might not be the right
1788 # tool to use in cross-compilation environments, therefore Automake
1789 # will honor the `STRIP' environment variable to overrule this program.
1790 if test "$cross_compiling" != no; then
1791 if test -n "$ac_tool_prefix"; then
1792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}strip; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_STRIP+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 if test -n "$STRIP"; then
1800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 STRIP=$ac_cv_prog_STRIP
1819 if test -n "$STRIP"; then
1820 echo "$as_me:$LINENO: result: $STRIP" >&5
1821 echo "${ECHO_T}$STRIP" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$ac_cv_prog_STRIP"; then
1830 # Extract the first word of "strip", so it can be a program name with args.
1831 set dummy strip; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$ac_ct_STRIP"; then
1838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_ac_ct_STRIP="strip"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1858 if test -n "$ac_ct_STRIP"; then
1859 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1860 echo "${ECHO_T}$ac_ct_STRIP" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1868 STRIP="$ac_cv_prog_STRIP"
1872 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1874 # We need awk for the "check" target. The system "awk" is bad on
1881 if test "x$prefix" = xNONE; then
1882 echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1883 # Extract the first word of "cvs", so it can be a program name with args.
1884 set dummy cvs; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 case $ac_prefix_program in
1892 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 ac_prefix_program=$ac_cv_path_ac_prefix_program
1914 if test -n "$ac_prefix_program"; then
1915 echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1916 echo "${ECHO_T}$ac_prefix_program" >&6
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1922 if test -n "$ac_prefix_program"; then
1923 prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1924 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1925 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1926 X"$ac_prefix_program" : 'X\(//\)$' \| \
1927 X"$ac_prefix_program" : 'X\(/\)' \| \
1928 . : '\(.\)' 2>/dev/null ||
1929 echo X"$ac_prefix_program" |
1930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1932 /^X\(\/\/\)$/{ s//\1/; q; }
1933 /^X\(\/\).*/{ s//\1/; q; }
1935 prefix=`(dirname "$prefix") 2>/dev/null ||
1936 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1937 X"$prefix" : 'X\(//\)[^/]' \| \
1938 X"$prefix" : 'X\(//\)$' \| \
1939 X"$prefix" : 'X\(/\)' \| \
1940 . : '\(.\)' 2>/dev/null ||
1942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1944 /^X\(\/\/\)$/{ s//\1/; q; }
1945 /^X\(\/\).*/{ s//\1/; q; }
1950 ac_config_headers="$ac_config_headers config.h"
1952 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1953 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1954 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1955 if test "${enable_maintainer_mode+set}" = set; then
1956 enableval="$enable_maintainer_mode"
1957 USE_MAINTAINER_MODE=$enableval
1959 USE_MAINTAINER_MODE=no
1961 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1962 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1965 if test $USE_MAINTAINER_MODE = yes; then
1966 MAINTAINER_MODE_TRUE=
1967 MAINTAINER_MODE_FALSE='#'
1969 MAINTAINER_MODE_TRUE='#'
1970 MAINTAINER_MODE_FALSE=
1973 MAINT=$MAINTAINER_MODE_TRUE
1978 cat >>confdefs.h <<\_ACEOF
1979 #define _GNU_SOURCE 1
1983 DEPDIR="${am__leading_dot}deps"
1985 ac_config_commands="$ac_config_commands depfiles"
1988 am_make=${MAKE-make}
1989 cat > confinc << 'END'
1994 # If we don't find an include directive, just comment out the code.
1995 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1996 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2000 # First try GNU make style include.
2001 echo "include confinc" > confmf
2002 # We grep out `Entering directory' and `Leaving directory'
2003 # messages which can occur if `w' ends up in MAKEFLAGS.
2004 # In particular we don't look at `^make:' because GNU make might
2005 # be invoked under some other name (usually "gmake"), in which
2006 # case it prints its new name instead of `make'.
2007 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2012 # Now try BSD make style include.
2013 if test "$am__include" = "#"; then
2014 echo '.include "confinc"' > confmf
2015 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2016 am__include=.include
2023 echo "$as_me:$LINENO: result: $_am_result" >&5
2024 echo "${ECHO_T}$_am_result" >&6
2025 rm -f confinc confmf
2027 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2028 if test "${enable_dependency_tracking+set}" = set; then
2029 enableval="$enable_dependency_tracking"
2032 if test "x$enable_dependency_tracking" != xno; then
2033 am_depcomp="$ac_aux_dir/depcomp"
2038 if test "x$enable_dependency_tracking" != xno; then
2049 ac_cpp='$CPP $CPPFLAGS'
2050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053 if test -n "$ac_tool_prefix"; then
2054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$CC"; then
2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 if test -n "$CC"; then
2082 echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6
2085 echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2090 if test -z "$ac_cv_prog_CC"; then
2092 # Extract the first word of "gcc", so it can be a program name with args.
2093 set dummy gcc; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test -n "$ac_ct_CC"; then
2100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109 ac_cv_prog_ac_ct_CC="gcc"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6
2123 echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2132 if test -z "$CC"; then
2133 if test -n "$ac_tool_prefix"; then
2134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2135 set dummy ${ac_tool_prefix}cc; ac_word=$2
2136 echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138 if test "${ac_cv_prog_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 if test -n "$CC"; then
2142 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151 ac_cv_prog_CC="${ac_tool_prefix}cc"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 if test -n "$CC"; then
2162 echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6
2165 echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6
2170 if test -z "$ac_cv_prog_CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$ac_ct_CC"; then
2180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189 ac_cv_prog_ac_ct_CC="cc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2199 if test -n "$ac_ct_CC"; then
2200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2201 echo "${ECHO_T}$ac_ct_CC" >&6
2203 echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2213 if test -z "$CC"; then
2214 # Extract the first word of "cc", so it can be a program name with args.
2215 set dummy cc; ac_word=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2233 ac_prog_rejected=yes
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 if test $ac_prog_rejected = yes; then
2244 # We found a bogon in the path, so make sure we never use it.
2245 set dummy $ac_cv_prog_CC
2247 if test $# != 0; then
2248 # We chose a different compiler from the bogus one.
2249 # However, it has the same basename, so the bogon will be chosen
2250 # first if we set CC to just the basename; use the full file name.
2252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2258 if test -n "$CC"; then
2259 echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6
2262 echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2267 if test -z "$CC"; then
2268 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_CC+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC="$CC" # Let the user override the test.
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 if test -n "$CC"; then
2299 echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2302 echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2306 test -n "$CC" && break
2309 if test -z "$CC"; then
2313 # Extract the first word of "$ac_prog", so it can be a program name with args.
2314 set dummy $ac_prog; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 if test -n "$ac_ct_CC"; then
2321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_ac_ct_CC="$ac_prog"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2340 if test -n "$ac_ct_CC"; then
2341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2342 echo "${ECHO_T}$ac_ct_CC" >&6
2344 echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2348 test -n "$ac_ct_CC" && break
2357 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: no acceptable C compiler found in \$PATH
2360 See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2363 # Provide some information about the compiler.
2364 echo "$as_me:$LINENO:" \
2365 "checking for C compiler version" >&5
2366 ac_compiler=`set X $ac_compile; echo $2`
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2368 (eval $ac_compiler --version </dev/null >&5) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2373 (eval $ac_compiler -v </dev/null >&5) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2378 (eval $ac_compiler -V </dev/null >&5) 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }
2383 cat >conftest.$ac_ext <<_ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2398 ac_clean_files_save=$ac_clean_files
2399 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2400 # Try to create an executable without -o first, disregard a.out.
2401 # It will help us diagnose broken compilers, and finding out an intuition
2403 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2404 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2405 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2406 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2407 (eval $ac_link_default) 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; then
2411 # Find the output, starting from the most likely. This scheme is
2412 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2415 # Be careful to initialize this variable, since it used to be cached.
2416 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2418 # b.out is created by i960 compilers.
2419 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2421 test -f "$ac_file" || continue
2423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2426 # This is the source file.
2429 # We found the default executable, but exeext='' is most
2433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2434 # FIXME: I believe we export ac_cv_exeext for Libtool,
2435 # but it would be cool to find out if it's true. Does anybody
2436 # maintain Libtool? --akim.
2444 echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2448 See \`config.log' for more details." >&5
2449 echo "$as_me: error: C compiler cannot create executables
2450 See \`config.log' for more details." >&2;}
2451 { (exit 77); exit 77; }; }
2454 ac_exeext=$ac_cv_exeext
2455 echo "$as_me:$LINENO: result: $ac_file" >&5
2456 echo "${ECHO_T}$ac_file" >&6
2458 # Check the compiler produces executables we can run. If not, either
2459 # the compiler is broken, or we cross compile.
2460 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2461 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2462 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2463 # If not cross compiling, check that we can run a simple program.
2464 if test "$cross_compiling" != yes; then
2465 if { ac_try='./$ac_file'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2473 if test "$cross_compiling" = maybe; then
2476 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&2;}
2482 { (exit 1); exit 1; }; }
2486 echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6
2489 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2490 ac_clean_files=$ac_clean_files_save
2491 # Check the compiler produces executables we can run. If not, either
2492 # the compiler is broken, or we cross compile.
2493 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2494 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2495 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2496 echo "${ECHO_T}$cross_compiling" >&6
2498 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2499 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2501 (eval $ac_link) 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; then
2505 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2506 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2507 # work properly (i.e., refer to `conftest.exe'), while it won't with
2509 for ac_file in conftest.exe conftest conftest.*; do
2510 test -f "$ac_file" || continue
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2513 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2520 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2523 See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2527 rm -f conftest$ac_cv_exeext
2528 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2529 echo "${ECHO_T}$ac_cv_exeext" >&6
2531 rm -f conftest.$ac_ext
2532 EXEEXT=$ac_cv_exeext
2534 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2535 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2536 if test "${ac_cv_objext+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 cat >conftest.$ac_ext <<_ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2554 rm -f conftest.o conftest.obj
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; then
2560 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2563 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2572 See \`config.log' for more details." >&5
2573 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2574 See \`config.log' for more details." >&2;}
2575 { (exit 1); exit 1; }; }
2578 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2580 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2581 echo "${ECHO_T}$ac_cv_objext" >&6
2582 OBJEXT=$ac_cv_objext
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2586 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 cat >conftest.$ac_ext <<_ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2640 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2641 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2642 GCC=`test $ac_compiler_gnu = yes && echo yes`
2643 ac_test_CFLAGS=${CFLAGS+set}
2644 ac_save_CFLAGS=$CFLAGS
2646 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2647 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2648 if test "${ac_cv_prog_cc_g+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2699 if test "$ac_test_CFLAGS" = set; then
2700 CFLAGS=$ac_save_CFLAGS
2701 elif test $ac_cv_prog_cc_g = yes; then
2702 if test "$GCC" = yes; then
2708 if test "$GCC" = yes; then
2714 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2715 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2716 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 ac_cv_prog_cc_stdc=no
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2729 #include <sys/types.h>
2730 #include <sys/stat.h>
2731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2732 struct buf { int x; };
2733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2734 static char *e (p, i)
2740 static char *f (char * (*g) (char **, int), char **p, ...)
2745 s = g (p, va_arg (v,int));
2750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2751 function prototypes and stuff, but not '\xHH' hex character constants.
2752 These don't provoke an error unfortunately, instead are silently treated
2753 as 'x'. The following induces an error, until -std1 is added to get
2754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2755 array size at least. It's necessary to write '\x00'==0 to get something
2756 that's true only with -std1. */
2757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2759 int test (int i, double x);
2760 struct s1 {int (*f) (int a);};
2761 struct s2 {int (*f) (double a);};
2762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2768 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2773 # Don't try gcc -ansi; that turns off useful extensions and
2774 # breaks some systems' header files.
2775 # AIX -qlanglvl=ansi
2776 # Ultrix and OSF/1 -std1
2777 # HP-UX 10.20 and later -Ae
2778 # HP-UX older versions -Aa -D_HPUX_SOURCE
2779 # SVR4 -Xc -D__EXTENSIONS__
2780 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2782 CC="$ac_save_CC $ac_arg"
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 ac_cv_prog_cc_stdc=$ac_arg
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2812 rm -f conftest.err conftest.$ac_objext
2814 rm -f conftest.$ac_ext conftest.$ac_objext
2819 case "x$ac_cv_prog_cc_stdc" in
2821 echo "$as_me:$LINENO: result: none needed" >&5
2822 echo "${ECHO_T}none needed" >&6 ;;
2824 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2826 CC="$CC $ac_cv_prog_cc_stdc" ;;
2829 # Some people use a C++ compiler to compile C. Since we use `exit',
2830 # in C++ we need to declare it. In case someone uses the same compiler
2831 # for both compiling C and C++ we need to have the C++ compiler decide
2832 # the declaration of exit, since it's the most demanding environment.
2833 cat >conftest.$ac_ext <<_ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -z "$ac_c_werror_flag"
2848 || test ! -s conftest.err'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 for ac_declaration in \
2862 'extern "C" void std::exit (int) throw (); using std::exit;' \
2863 'extern "C" void std::exit (int); using std::exit;' \
2864 'extern "C" void exit (int) throw ();' \
2865 'extern "C" void exit (int);' \
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>conftest.er1
2933 grep -v '^ *+' conftest.er1 >conftest.err
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -z "$ac_c_werror_flag"
2939 || test ! -s conftest.err'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; } &&
2945 { ac_try='test -s conftest.$ac_objext'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 if test -n "$ac_declaration"; then
2961 echo '#ifdef __cplusplus' >>confdefs.h
2962 echo $ac_declaration >>confdefs.h
2963 echo '#endif' >>confdefs.h
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 depcc="$CC" am_compiler_list=
2980 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2981 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2982 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2986 # We make a subdir and do the tests there. Otherwise we can end up
2987 # making bogus files that we don't know about and never remove. For
2988 # instance it was reported that on HP-UX the gcc test will end up
2989 # making a dummy file named `D' -- because `-MD' means `put the output
2992 # Copy depcomp to subdir because otherwise we won't find it if we're
2993 # using a relative directory.
2994 cp "$am_depcomp" conftest.dir
2996 # We will build objects and dependencies in a subdirectory because
2997 # it helps to detect inapplicable dependency modes. For instance
2998 # both Tru64's cc and ICC support -MD to output dependencies as a
2999 # side effect of compilation, but ICC will put the dependencies in
3000 # the current directory while Tru64 will put them in the object
3004 am_cv_CC_dependencies_compiler_type=none
3005 if test "$am_compiler_list" = ""; then
3006 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3008 for depmode in $am_compiler_list; do
3009 # Setup a source with many dependencies, because some compilers
3010 # like to wrap large dependency lists on column 80 (with \), and
3011 # we should not choose a depcomp mode which is confused by this.
3013 # We need to recreate these files for each test, as the compiler may
3014 # overwrite some of them when testing with obscure command lines.
3015 # This happens at least with the AIX C compiler.
3017 for i in 1 2 3 4 5 6; do
3018 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3025 # after this tag, mechanisms are not by side-effect, so they'll
3026 # only be used when explicitly requested
3027 if test "x$enable_dependency_tracking" = xyes; then
3035 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3036 # mode. It turns out that the SunPro C++ compiler does not properly
3037 # handle `-M -o', and we need to detect this.
3038 if depmode=$depmode \
3039 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3041 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3042 >/dev/null 2>conftest.err &&
3043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3044 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3046 # icc doesn't choke on unknown options, it will just issue warnings
3047 # (even with -Werror). So we grep stderr for any message
3048 # that says an option was ignored.
3049 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3050 am_cv_CC_dependencies_compiler_type=$depmode
3059 am_cv_CC_dependencies_compiler_type=none
3063 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3070 test "x$enable_dependency_tracking" != xno \
3071 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3073 am__fastdepCC_FALSE='#'
3075 am__fastdepCC_TRUE='#'
3076 am__fastdepCC_FALSE=
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3087 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3088 # On Suns, sometimes $CPP names a directory.
3089 if test -n "$CPP" && test -d "$CPP"; then
3092 if test -z "$CPP"; then
3093 if test "${ac_cv_prog_CPP+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 # Double quotes because CPP needs to be expanded
3097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3100 for ac_c_preproc_warn_flag in '' yes
3102 # Use a header file that comes with gcc, so configuring glibc
3103 # with a fresh cross-compiler works.
3104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3105 # <limits.h> exists even on freestanding compilers.
3106 # On the NeXT, cc -E runs the code through the compiler's parser,
3107 # not just through cpp. "Syntax error" is here to catch this case.
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3115 # include <limits.h>
3117 # include <assert.h>
3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3138 if test -z "$ac_cpp_err"; then
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 # Broken: fails on valid input.
3147 rm -f conftest.err conftest.$ac_ext
3149 # OK, works on sane cases. Now check whether non-existent headers
3150 # can be detected and how.
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157 #include <ac_nonexistent.h>
3159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3162 grep -v '^ *+' conftest.er1 >conftest.err
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } >/dev/null; then
3167 if test -s conftest.err; then
3168 ac_cpp_err=$ac_c_preproc_warn_flag
3169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3176 if test -z "$ac_cpp_err"; then
3177 # Broken: success on invalid input.
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 # Passes both tests.
3187 rm -f conftest.err conftest.$ac_ext
3190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3191 rm -f conftest.err conftest.$ac_ext
3192 if $ac_preproc_ok; then
3204 echo "$as_me:$LINENO: result: $CPP" >&5
3205 echo "${ECHO_T}$CPP" >&6
3207 for ac_c_preproc_warn_flag in '' yes
3209 # Use a header file that comes with gcc, so configuring glibc
3210 # with a fresh cross-compiler works.
3211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3212 # <limits.h> exists even on freestanding compilers.
3213 # On the NeXT, cc -E runs the code through the compiler's parser,
3214 # not just through cpp. "Syntax error" is here to catch this case.
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3222 # include <limits.h>
3224 # include <assert.h>
3228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } >/dev/null; then
3236 if test -s conftest.err; then
3237 ac_cpp_err=$ac_c_preproc_warn_flag
3238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3245 if test -z "$ac_cpp_err"; then
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 # Broken: fails on valid input.
3254 rm -f conftest.err conftest.$ac_ext
3256 # OK, works on sane cases. Now check whether non-existent headers
3257 # can be detected and how.
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264 #include <ac_nonexistent.h>
3266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3269 grep -v '^ *+' conftest.er1 >conftest.err
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null; then
3274 if test -s conftest.err; then
3275 ac_cpp_err=$ac_c_preproc_warn_flag
3276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3283 if test -z "$ac_cpp_err"; then
3284 # Broken: success on invalid input.
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 # Passes both tests.
3294 rm -f conftest.err conftest.$ac_ext
3297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3298 rm -f conftest.err conftest.$ac_ext
3299 if $ac_preproc_ok; then
3302 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3303 See \`config.log' for more details." >&5
3304 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3305 See \`config.log' for more details." >&2;}
3306 { (exit 1); exit 1; }; }
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316 echo "$as_me:$LINENO: checking for egrep" >&5
3317 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3318 if test "${ac_cv_prog_egrep+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3322 then ac_cv_prog_egrep='grep -E'
3323 else ac_cv_prog_egrep='egrep'
3326 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3327 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3328 EGREP=$ac_cv_prog_egrep
3332 echo "$as_me:$LINENO: checking for AIX" >&5
3333 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3334 cat >conftest.$ac_ext <<_ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3346 $EGREP "yes" >/dev/null 2>&1; then
3347 echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6
3349 cat >>confdefs.h <<\_ACEOF
3350 #define _ALL_SOURCE 1
3354 echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3360 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_cv_header_stdc=yes
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_cv_header_stdc=no
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415 if test $ac_cv_header_stdc = yes; then
3416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3427 $EGREP "memchr" >/dev/null 2>&1; then
3430 ac_cv_header_stdc=no
3436 if test $ac_cv_header_stdc = yes; then
3437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 $EGREP "free" >/dev/null 2>&1; then
3451 ac_cv_header_stdc=no
3457 if test $ac_cv_header_stdc = yes; then
3458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3459 if test "$cross_compiling" = yes; then
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 #if ((' ' & 0x0FF) == 0x020)
3470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3473 # define ISLOWER(c) \
3474 (('a' <= (c) && (c) <= 'i') \
3475 || ('j' <= (c) && (c) <= 'r') \
3476 || ('s' <= (c) && (c) <= 'z'))
3477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3485 for (i = 0; i < 256; i++)
3486 if (XOR (islower (i), ISLOWER (i))
3487 || toupper (i) != TOUPPER (i))
3492 rm -f conftest$ac_exeext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3494 (eval $ac_link) 2>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3505 echo "$as_me: program exited with status $ac_status" >&5
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_cv_header_stdc=no
3512 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3516 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3517 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3518 if test $ac_cv_header_stdc = yes; then
3520 cat >>confdefs.h <<\_ACEOF
3521 #define STDC_HEADERS 1
3526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3537 inttypes.h stdint.h unistd.h
3539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3540 echo "$as_me:$LINENO: checking for $ac_header" >&5
3541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 $ac_includes_default
3553 #include <$ac_header>
3555 rm -f conftest.$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -z "$ac_c_werror_flag"
3565 || test ! -s conftest.err'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; } &&
3571 { ac_try='test -s conftest.$ac_objext'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; }; then
3577 eval "$as_ac_Header=yes"
3579 echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 eval "$as_ac_Header=no"
3584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3589 cat >>confdefs.h <<_ACEOF
3590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598 if test "${ac_cv_header_minix_config_h+set}" = set; then
3599 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3600 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3601 if test "${ac_cv_header_minix_config_h+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3605 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3607 # Is the header compilable?
3608 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3609 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3610 cat >conftest.$ac_ext <<_ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 $ac_includes_default
3617 #include <minix/config.h>
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag"
3629 || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest.$ac_objext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_header_compiler=yes
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 ac_header_compiler=no
3648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3650 echo "${ECHO_T}$ac_header_compiler" >&6
3652 # Is the header present?
3653 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3654 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #include <minix/config.h>
3663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } >/dev/null; then
3671 if test -s conftest.err; then
3672 ac_cpp_err=$ac_c_preproc_warn_flag
3673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3680 if test -z "$ac_cpp_err"; then
3681 ac_header_preproc=yes
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 ac_header_preproc=no
3688 rm -f conftest.err conftest.$ac_ext
3689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690 echo "${ECHO_T}$ac_header_preproc" >&6
3692 # So? What about this header?
3693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3695 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3698 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3699 ac_header_preproc=yes
3702 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3707 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3709 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3711 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3713 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3716 ## ------------------------------ ##
3717 ## Report this to bug-cvs@gnu.org ##
3718 ## ------------------------------ ##
3721 sed "s/^/$as_me: WARNING: /" >&2
3724 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3725 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3726 if test "${ac_cv_header_minix_config_h+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 ac_cv_header_minix_config_h=$ac_header_preproc
3731 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3732 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3735 if test $ac_cv_header_minix_config_h = yes; then
3742 if test "$MINIX" = yes; then
3744 cat >>confdefs.h <<\_ACEOF
3745 #define _POSIX_SOURCE 1
3749 cat >>confdefs.h <<\_ACEOF
3750 #define _POSIX_1_SOURCE 2
3754 cat >>confdefs.h <<\_ACEOF
3770 cat >>confdefs.h <<\_ACEOF
3771 #define __EXTENSIONS__ 1
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_CC+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 if test -n "$CC"; then
3810 echo "$as_me:$LINENO: result: $CC" >&5
3811 echo "${ECHO_T}$CC" >&6
3813 echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3818 if test -z "$ac_cv_prog_CC"; then
3820 # Extract the first word of "gcc", so it can be a program name with args.
3821 set dummy gcc; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 if test -n "$ac_ct_CC"; then
3828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
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_prog_ac_ct_CC="gcc"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3847 if test -n "$ac_ct_CC"; then
3848 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3849 echo "${ECHO_T}$ac_ct_CC" >&6
3851 echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6
3860 if test -z "$CC"; then
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}cc; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_CC+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$CC"; then
3870 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_CC="${ac_tool_prefix}cc"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 if test -n "$CC"; then
3890 echo "$as_me:$LINENO: result: $CC" >&5
3891 echo "${ECHO_T}$CC" >&6
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3898 if test -z "$ac_cv_prog_CC"; then
3900 # Extract the first word of "cc", so it can be a program name with args.
3901 set dummy cc; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$ac_ct_CC"; then
3908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
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_prog_ac_ct_CC="cc"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3927 if test -n "$ac_ct_CC"; then
3928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3929 echo "${ECHO_T}$ac_ct_CC" >&6
3931 echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3941 if test -z "$CC"; then
3942 # Extract the first word of "cc", so it can be a program name with args.
3943 set dummy cc; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_CC+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 if test -n "$CC"; then
3950 ac_cv_prog_CC="$CC" # Let the user override the test.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3961 ac_prog_rejected=yes
3965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 if test $ac_prog_rejected = yes; then
3972 # We found a bogon in the path, so make sure we never use it.
3973 set dummy $ac_cv_prog_CC
3975 if test $# != 0; then
3976 # We chose a different compiler from the bogus one.
3977 # However, it has the same basename, so the bogon will be chosen
3978 # first if we set CC to just the basename; use the full file name.
3980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3986 if test -n "$CC"; then
3987 echo "$as_me:$LINENO: result: $CC" >&5
3988 echo "${ECHO_T}$CC" >&6
3990 echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3995 if test -z "$CC"; then
3996 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_CC+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 if test -n "$CC"; then
4027 echo "$as_me:$LINENO: result: $CC" >&5
4028 echo "${ECHO_T}$CC" >&6
4030 echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4034 test -n "$CC" && break
4037 if test -z "$CC"; then
4041 # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 if test -n "$ac_ct_CC"; then
4049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_ac_ct_CC="$ac_prog"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4068 if test -n "$ac_ct_CC"; then
4069 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4070 echo "${ECHO_T}$ac_ct_CC" >&6
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4076 test -n "$ac_ct_CC" && break
4085 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4086 See \`config.log' for more details." >&5
4087 echo "$as_me: error: no acceptable C compiler found in \$PATH
4088 See \`config.log' for more details." >&2;}
4089 { (exit 1); exit 1; }; }
4091 # Provide some information about the compiler.
4092 echo "$as_me:$LINENO:" \
4093 "checking for C compiler version" >&5
4094 ac_compiler=`set X $ac_compile; echo $2`
4095 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4096 (eval $ac_compiler --version </dev/null >&5) 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }
4100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4101 (eval $ac_compiler -v </dev/null >&5) 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }
4105 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4106 (eval $ac_compiler -V </dev/null >&5) 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }
4111 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4112 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4167 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4168 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4169 GCC=`test $ac_compiler_gnu = yes && echo yes`
4170 ac_test_CFLAGS=${CFLAGS+set}
4171 ac_save_CFLAGS=$CFLAGS
4173 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4174 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4175 if test "${ac_cv_prog_cc_g+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4193 rm -f conftest.$ac_objext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195 (eval $ac_compile) 2>conftest.er1
4197 grep -v '^ *+' conftest.er1 >conftest.err
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -z "$ac_c_werror_flag"
4203 || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest.$ac_objext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4225 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4226 if test "$ac_test_CFLAGS" = set; then
4227 CFLAGS=$ac_save_CFLAGS
4228 elif test $ac_cv_prog_cc_g = yes; then
4229 if test "$GCC" = yes; then
4235 if test "$GCC" = yes; then
4241 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4242 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4243 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 ac_cv_prog_cc_stdc=no
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 #include <sys/stat.h>
4258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4259 struct buf { int x; };
4260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4261 static char *e (p, i)
4267 static char *f (char * (*g) (char **, int), char **p, ...)
4272 s = g (p, va_arg (v,int));
4277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4278 function prototypes and stuff, but not '\xHH' hex character constants.
4279 These don't provoke an error unfortunately, instead are silently treated
4280 as 'x'. The following induces an error, until -std1 is added to get
4281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4282 array size at least. It's necessary to write '\x00'==0 to get something
4283 that's true only with -std1. */
4284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4286 int test (int i, double x);
4287 struct s1 {int (*f) (int a);};
4288 struct s2 {int (*f) (double a);};
4289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4300 # Don't try gcc -ansi; that turns off useful extensions and
4301 # breaks some systems' header files.
4302 # AIX -qlanglvl=ansi
4303 # Ultrix and OSF/1 -std1
4304 # HP-UX 10.20 and later -Ae
4305 # HP-UX older versions -Aa -D_HPUX_SOURCE
4306 # SVR4 -Xc -D__EXTENSIONS__
4307 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4309 CC="$ac_save_CC $ac_arg"
4310 rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312 (eval $ac_compile) 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag"
4320 || test ! -s conftest.err'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; } &&
4326 { ac_try='test -s conftest.$ac_objext'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 ac_cv_prog_cc_stdc=$ac_arg
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4339 rm -f conftest.err conftest.$ac_objext
4341 rm -f conftest.$ac_ext conftest.$ac_objext
4346 case "x$ac_cv_prog_cc_stdc" in
4348 echo "$as_me:$LINENO: result: none needed" >&5
4349 echo "${ECHO_T}none needed" >&6 ;;
4351 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4352 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4353 CC="$CC $ac_cv_prog_cc_stdc" ;;
4356 # Some people use a C++ compiler to compile C. Since we use `exit',
4357 # in C++ we need to declare it. In case someone uses the same compiler
4358 # for both compiling C and C++ we need to have the C++ compiler decide
4359 # the declaration of exit, since it's the most demanding environment.
4360 cat >conftest.$ac_ext <<_ACEOF
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -z "$ac_c_werror_flag"
4375 || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 for ac_declaration in \
4389 'extern "C" void std::exit (int) throw (); using std::exit;' \
4390 'extern "C" void std::exit (int); using std::exit;' \
4391 'extern "C" void exit (int) throw ();' \
4392 'extern "C" void exit (int);' \
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4411 rm -f conftest.$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -z "$ac_c_werror_flag"
4421 || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>conftest.er1
4460 grep -v '^ *+' conftest.er1 >conftest.err
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -z "$ac_c_werror_flag"
4466 || test ! -s conftest.err'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4487 if test -n "$ac_declaration"; then
4488 echo '#ifdef __cplusplus' >>confdefs.h
4489 echo $ac_declaration >>confdefs.h
4490 echo '#endif' >>confdefs.h
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 depcc="$CC" am_compiler_list=
4507 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4508 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4509 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4513 # We make a subdir and do the tests there. Otherwise we can end up
4514 # making bogus files that we don't know about and never remove. For
4515 # instance it was reported that on HP-UX the gcc test will end up
4516 # making a dummy file named `D' -- because `-MD' means `put the output
4519 # Copy depcomp to subdir because otherwise we won't find it if we're
4520 # using a relative directory.
4521 cp "$am_depcomp" conftest.dir
4523 # We will build objects and dependencies in a subdirectory because
4524 # it helps to detect inapplicable dependency modes. For instance
4525 # both Tru64's cc and ICC support -MD to output dependencies as a
4526 # side effect of compilation, but ICC will put the dependencies in
4527 # the current directory while Tru64 will put them in the object
4531 am_cv_CC_dependencies_compiler_type=none
4532 if test "$am_compiler_list" = ""; then
4533 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4535 for depmode in $am_compiler_list; do
4536 # Setup a source with many dependencies, because some compilers
4537 # like to wrap large dependency lists on column 80 (with \), and
4538 # we should not choose a depcomp mode which is confused by this.
4540 # We need to recreate these files for each test, as the compiler may
4541 # overwrite some of them when testing with obscure command lines.
4542 # This happens at least with the AIX C compiler.
4544 for i in 1 2 3 4 5 6; do
4545 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4552 # after this tag, mechanisms are not by side-effect, so they'll
4553 # only be used when explicitly requested
4554 if test "x$enable_dependency_tracking" = xyes; then
4562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4563 # mode. It turns out that the SunPro C++ compiler does not properly
4564 # handle `-M -o', and we need to detect this.
4565 if depmode=$depmode \
4566 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4568 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4569 >/dev/null 2>conftest.err &&
4570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4571 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4573 # icc doesn't choke on unknown options, it will just issue warnings
4574 # (even with -Werror). So we grep stderr for any message
4575 # that says an option was ignored.
4576 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4577 am_cv_CC_dependencies_compiler_type=$depmode
4586 am_cv_CC_dependencies_compiler_type=none
4590 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4591 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4592 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4597 test "x$enable_dependency_tracking" != xno \
4598 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4600 am__fastdepCC_FALSE='#'
4602 am__fastdepCC_TRUE='#'
4603 am__fastdepCC_FALSE=
4607 if test "x$CC" != xcc; then
4608 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4609 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4611 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4612 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4614 set dummy $CC; ac_cc=`echo $2 |
4615 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4616 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4634 # Make sure it works both with $CC and with simple cc.
4635 # We do the test twice because some compilers refuse to overwrite an
4636 # existing .o file with -o, though they will create one.
4637 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4638 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); };
4649 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4650 if test "x$CC" != xcc; then
4651 # Test first that cc exists at all.
4652 if { ac_try='cc -c conftest.$ac_ext >&5'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4659 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); };
4673 # cc exists but doesn't like -o.
4674 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4679 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4684 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686 echo "${ECHO_T}yes" >&6
4688 echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4691 cat >>confdefs.h <<\_ACEOF
4692 #define NO_MINUS_C_MINUS_O 1
4697 # FIXME: we rely on the cache variable name because
4698 # there is no other way.
4700 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4701 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4702 # Losing compiler, so override with the script.
4703 # FIXME: It is wrong to rewrite CC.
4704 # But if we don't then we get into trouble of one sort or another.
4705 # A longer-term fix would be to have automake use am__CC in this case,
4706 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4707 CC="$am_aux_dir/compile $CC"
4711 # Find the posix library needed on INTERACTIVE UNIX (ISC)
4712 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4713 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4714 if test "${ac_cv_search_strerror+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 ac_func_search_save_LIBS=$LIBS
4718 ac_cv_search_strerror=no
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4741 rm -f conftest.$ac_objext conftest$ac_exeext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743 (eval $ac_link) 2>conftest.er1
4745 grep -v '^ *+' conftest.er1 >conftest.err
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest$ac_exeext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 ac_cv_search_strerror="none required"
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4769 rm -f conftest.err conftest.$ac_objext \
4770 conftest$ac_exeext conftest.$ac_ext
4771 if test "$ac_cv_search_strerror" = no; then
4772 for ac_lib in cposix; do
4773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4781 /* Override any gcc2 internal prototype to avoid an error. */
4785 /* We use char because int might match the return type of a gcc2
4786 builtin and then its argument prototype would still apply. */
4796 rm -f conftest.$ac_objext conftest$ac_exeext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4798 (eval $ac_link) 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest$ac_exeext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_cv_search_strerror="-l$ac_lib"
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4825 rm -f conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4829 LIBS=$ac_func_search_save_LIBS
4831 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4832 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4833 if test "$ac_cv_search_strerror" != no; then
4834 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4840 if test -n "$ac_tool_prefix"; then
4841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4843 echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845 if test "${ac_cv_prog_RANLIB+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 if test -n "$RANLIB"; then
4849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 RANLIB=$ac_cv_prog_RANLIB
4868 if test -n "$RANLIB"; then
4869 echo "$as_me:$LINENO: result: $RANLIB" >&5
4870 echo "${ECHO_T}$RANLIB" >&6
4872 echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4877 if test -z "$ac_cv_prog_RANLIB"; then
4878 ac_ct_RANLIB=$RANLIB
4879 # Extract the first word of "ranlib", so it can be a program name with args.
4880 set dummy ranlib; ac_word=$2
4881 echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test -n "$ac_ct_RANLIB"; then
4887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_ac_ct_RANLIB="ranlib"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4907 if test -n "$ac_ct_RANLIB"; then
4908 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4909 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4911 echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6
4915 RANLIB=$ac_ct_RANLIB
4917 RANLIB="$ac_cv_prog_RANLIB"
4920 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4921 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4923 if test "$LN_S" = "ln -s"; then
4924 echo "$as_me:$LINENO: result: yes" >&5
4925 echo "${ECHO_T}yes" >&6
4927 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4928 echo "${ECHO_T}no, using $LN_S" >&6
4931 # Check whether --enable-largefile or --disable-largefile was given.
4932 if test "${enable_largefile+set}" = set; then
4933 enableval="$enable_largefile"
4936 if test "$enable_largefile" != no; then
4938 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4939 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4940 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 ac_cv_sys_largefile_CC=no
4944 if test "$GCC" != yes; then
4947 # IRIX 6.2 and later do not support large files by default,
4948 # so use the C compiler's -n32 option if that helps.
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 #include <sys/types.h>
4956 /* Check that off_t can represent 2**63 - 1 correctly.
4957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4958 since some C++ compilers masquerading as C compilers
4959 incorrectly reject 9223372036854775807. */
4960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4962 && LARGE_OFF_T % 2147483647 == 1)
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -z "$ac_c_werror_flag"
4982 || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
5000 rm -f conftest.err conftest.$ac_objext
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1 >conftest.err
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_sys_largefile_CC=' -n32'; break
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 rm -f conftest.err conftest.$ac_objext
5034 rm -f conftest.$ac_ext
5037 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5038 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5039 if test "$ac_cv_sys_largefile_CC" != no; then
5040 CC=$CC$ac_cv_sys_largefile_CC
5043 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5044 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5045 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 ac_cv_sys_file_offset_bits=no
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 #include <sys/types.h>
5057 /* Check that off_t can represent 2**63 - 1 correctly.
5058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5059 since some C++ compilers masquerading as C compilers
5060 incorrectly reject 9223372036854775807. */
5061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5063 && LARGE_OFF_T % 2147483647 == 1)
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5077 grep -v '^ *+' conftest.er1 >conftest.err
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag"
5083 || test ! -s conftest.err'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest.$ac_objext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #define _FILE_OFFSET_BITS 64
5109 #include <sys/types.h>
5110 /* Check that off_t can represent 2**63 - 1 correctly.
5111 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5112 since some C++ compilers masquerading as C compilers
5113 incorrectly reject 9223372036854775807. */
5114 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5116 && LARGE_OFF_T % 2147483647 == 1)
5126 rm -f conftest.$ac_objext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128 (eval $ac_compile) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest.$ac_objext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_sys_file_offset_bits=64; break
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5158 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5159 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5160 if test "$ac_cv_sys_file_offset_bits" != no; then
5162 cat >>confdefs.h <<_ACEOF
5163 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5168 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5169 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5170 if test "${ac_cv_sys_large_files+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_cv_sys_large_files=no
5175 cat >conftest.$ac_ext <<_ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 #include <sys/types.h>
5182 /* Check that off_t can represent 2**63 - 1 correctly.
5183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5184 since some C++ compilers masquerading as C compilers
5185 incorrectly reject 9223372036854775807. */
5186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5188 && LARGE_OFF_T % 2147483647 == 1)
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227 cat >conftest.$ac_ext <<_ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #define _LARGE_FILES 1
5234 #include <sys/types.h>
5235 /* Check that off_t can represent 2**63 - 1 correctly.
5236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5237 since some C++ compilers masquerading as C compilers
5238 incorrectly reject 9223372036854775807. */
5239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5241 && LARGE_OFF_T % 2147483647 == 1)
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag"
5261 || test ! -s conftest.err'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest.$ac_objext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_sys_large_files=1; break
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5283 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5284 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5285 if test "$ac_cv_sys_large_files" != no; then
5287 cat >>confdefs.h <<_ACEOF
5288 #define _LARGE_FILES $ac_cv_sys_large_files
5297 # Extract the first word of "perl", so it can be a program name with args.
5298 set dummy perl; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_path_PERL+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5327 PERL=$ac_cv_path_PERL
5329 if test -n "$PERL"; then
5330 echo "$as_me:$LINENO: result: $PERL" >&5
5331 echo "${ECHO_T}$PERL" >&6
5333 echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6
5337 # Extract the first word of "csh", so it can be a program name with args.
5338 set dummy csh; ac_word=$2
5339 echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5341 if test "${ac_cv_path_CSH+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
5369 if test -n "$CSH"; then
5370 echo "$as_me:$LINENO: result: $CSH" >&5
5371 echo "${ECHO_T}$CSH" >&6
5373 echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5377 # for contrib/rcs2log.sh & src/cvsbug.in.
5378 # Extract the first word of "mktemp", so it can be a program name with args.
5379 set dummy mktemp; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_MKTEMP+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
5408 MKTEMP=$ac_cv_path_MKTEMP
5410 if test -n "$MKTEMP"; then
5411 echo "$as_me:$LINENO: result: $MKTEMP" >&5
5412 echo "${ECHO_T}$MKTEMP" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5418 if test x"$MKTEMP" = xmktemp; then
5419 MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
5421 MKTEMP_SH_FUNCTION=/dev/null
5425 # Extract the first word of "sendmail", so it can be a program name with args.
5426 set dummy sendmail; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_SENDMAIL+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 as_dummy="$PATH:/usr/sbin:/usr/lib"
5439 for as_dir in $as_dummy
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
5456 SENDMAIL=$ac_cv_path_SENDMAIL
5458 if test -n "$SENDMAIL"; then
5459 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
5460 echo "${ECHO_T}$SENDMAIL" >&6
5462 echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5467 # Extract the first word of "pr", so it can be a program name with args.
5468 set dummy pr; ac_word=$2
5469 echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471 if test "${ac_cv_path_PR+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_cv_path_PR="$PR" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
5487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
5499 if test -n "$PR"; then
5500 echo "$as_me:$LINENO: result: $PR" >&5
5501 echo "${ECHO_T}$PR" >&6
5503 echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5507 if test x"$PR" != xno; then
5509 cat >>confdefs.h <<_ACEOF
5510 #define PR_PROGRAM "$PR"
5515 missing_dir=`cd $ac_aux_dir && pwd`
5516 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
5517 for ac_prog in groff roff
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523 if test "${ac_cv_path_ROFF+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $glocs
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
5539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 ROFF=$ac_cv_path_ROFF
5550 if test -n "$ROFF"; then
5551 echo "$as_me:$LINENO: result: $ROFF" >&5
5552 echo "${ECHO_T}$ROFF" >&6
5554 echo "$as_me:$LINENO: result: no" >&5
5555 echo "${ECHO_T}no" >&6
5558 test -n "$ROFF" && break
5560 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
5562 # Extract the first word of "ps2pdf", so it can be a program name with args.
5563 set dummy ps2pdf; ac_word=$2
5564 echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566 if test "${ac_cv_path_PS2PDF+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
5582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
5592 PS2PDF=$ac_cv_path_PS2PDF
5594 if test -n "$PS2PDF"; then
5595 echo "$as_me:$LINENO: result: $PS2PDF" >&5
5596 echo "${ECHO_T}$PS2PDF" >&6
5598 echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5602 # Extract the first word of "texi2dvi", so it can be a program name with args.
5603 set dummy texi2dvi; ac_word=$2
5604 echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
5622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
5632 TEXI2DVI=$ac_cv_path_TEXI2DVI
5634 if test -n "$TEXI2DVI"; then
5635 echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
5636 echo "${ECHO_T}$TEXI2DVI" >&6
5638 echo "$as_me:$LINENO: result: no" >&5
5639 echo "${ECHO_T}no" >&6
5643 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
5644 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
5645 if test "${ac_cv_sys_interpreter+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
5653 if test $? -ne 69; then
5654 ac_cv_sys_interpreter=yes
5656 ac_cv_sys_interpreter=no
5660 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
5661 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
5662 interpval=$ac_cv_sys_interpreter
5664 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
5665 # silly trick to avoid problems in AC macros...
5666 ac_msg='perl scripts using #! may not be invoked properly'
5667 { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
5668 echo "$as_me: WARNING: $ac_msg" >&2;}
5671 # BSD's logo is a devil for a reason, hey?
5672 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
5673 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
5674 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 if test ! -d ac_test_dir ; then
5678 { ac_try='mkdir ac_test_dir'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }
5685 cat >conftestmake <<EOF
5687 ac_test_target: ac_test_dep
5688 echo BSD VPATH bug present >&2
5689 ac_test_dep: ac_test_dep_dep
5691 touch ac_test_dir/ac_test_dep_dep
5692 touch ac_test_dir/ac_test_dep
5693 touch ac_test_target
5694 # Don't know why, but the following test doesn't work under FreeBSD 4.2
5695 # without this sleep command
5697 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } ; then
5703 ccvs_cv_bsd_make_vpath_bug=yes
5705 ccvs_cv_bsd_make_vpath_bug=no
5707 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }
5714 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
5715 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
5716 # We also don't need to worry about the bug when $srcdir = $builddir
5720 test $ccvs_cv_bsd_make_vpath_bug = no \
5721 || test $srcdir = .; then
5722 MAKE_TARGETS_IN_VPATH_TRUE=
5723 MAKE_TARGETS_IN_VPATH_FALSE='#'
5725 MAKE_TARGETS_IN_VPATH_TRUE='#'
5726 MAKE_TARGETS_IN_VPATH_FALSE=
5736 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5737 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5738 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5739 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <sys/types.h>
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_c_werror_flag"
5771 || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 eval "$as_ac_Header=yes"
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 eval "$as_ac_Header=no"
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5795 cat >>confdefs.h <<_ACEOF
5796 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5799 ac_header_dirent=$ac_hdr; break
5803 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5804 if test $ac_header_dirent = dirent.h; then
5805 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5807 if test "${ac_cv_search_opendir+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 ac_func_search_save_LIBS=$LIBS
5811 ac_cv_search_opendir=no
5812 cat >conftest.$ac_ext <<_ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5819 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5834 rm -f conftest.$ac_objext conftest$ac_exeext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5836 (eval $ac_link) 2>conftest.er1
5838 grep -v '^ *+' conftest.er1 >conftest.err
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } &&
5843 { ac_try='test -z "$ac_c_werror_flag"
5844 || test ! -s conftest.err'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; } &&
5850 { ac_try='test -s conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_search_opendir="none required"
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5862 rm -f conftest.err conftest.$ac_objext \
5863 conftest$ac_exeext conftest.$ac_ext
5864 if test "$ac_cv_search_opendir" = no; then
5865 for ac_lib in dir; do
5866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5867 cat >conftest.$ac_ext <<_ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5874 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5891 (eval $ac_link) 2>conftest.er1
5893 grep -v '^ *+' conftest.er1 >conftest.err
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -z "$ac_c_werror_flag"
5899 || test ! -s conftest.err'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; } &&
5905 { ac_try='test -s conftest$ac_exeext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 ac_cv_search_opendir="-l$ac_lib"
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5918 rm -f conftest.err conftest.$ac_objext \
5919 conftest$ac_exeext conftest.$ac_ext
5922 LIBS=$ac_func_search_save_LIBS
5924 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5925 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5926 if test "$ac_cv_search_opendir" != no; then
5927 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5932 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5933 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5934 if test "${ac_cv_search_opendir+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 ac_func_search_save_LIBS=$LIBS
5938 ac_cv_search_opendir=no
5939 cat >conftest.$ac_ext <<_ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5946 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5961 rm -f conftest.$ac_objext conftest$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>conftest.er1
5965 grep -v '^ *+' conftest.er1 >conftest.err
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try='test -z "$ac_c_werror_flag"
5971 || test ! -s conftest.err'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest$ac_exeext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_search_opendir="none required"
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5989 rm -f conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
5991 if test "$ac_cv_search_opendir" = no; then
5993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6001 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>conftest.er1
6020 grep -v '^ *+' conftest.er1 >conftest.err
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try='test -z "$ac_c_werror_flag"
6026 || test ! -s conftest.err'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest$ac_exeext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_search_opendir="-l$ac_lib"
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6045 rm -f conftest.err conftest.$ac_objext \
6046 conftest$ac_exeext conftest.$ac_ext
6049 LIBS=$ac_func_search_save_LIBS
6051 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6052 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6053 if test "$ac_cv_search_opendir" != no; then
6054 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6060 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6061 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6062 if test "${ac_cv_header_stdc+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6084 rm -f conftest.$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
6088 grep -v '^ *+' conftest.er1 >conftest.err
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_c_werror_flag"
6094 || test ! -s conftest.err'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; } &&
6100 { ac_try='test -s conftest.$ac_objext'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_header_stdc=yes
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_header_stdc=no
6113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6115 if test $ac_cv_header_stdc = yes; then
6116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6117 cat >conftest.$ac_ext <<_ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 $EGREP "memchr" >/dev/null 2>&1; then
6130 ac_cv_header_stdc=no
6136 if test $ac_cv_header_stdc = yes; then
6137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "free" >/dev/null 2>&1; then
6151 ac_cv_header_stdc=no
6157 if test $ac_cv_header_stdc = yes; then
6158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6159 if test "$cross_compiling" = yes; then
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6169 #if ((' ' & 0x0FF) == 0x020)
6170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6173 # define ISLOWER(c) \
6174 (('a' <= (c) && (c) <= 'i') \
6175 || ('j' <= (c) && (c) <= 'r') \
6176 || ('s' <= (c) && (c) <= 'z'))
6177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6185 for (i = 0; i < 256; i++)
6186 if (XOR (islower (i), ISLOWER (i))
6187 || toupper (i) != TOUPPER (i))
6192 rm -f conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194 (eval $ac_link) 2>&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6205 echo "$as_me: program exited with status $ac_status" >&5
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_cv_header_stdc=no
6212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6216 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6217 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6218 if test $ac_cv_header_stdc = yes; then
6220 cat >>confdefs.h <<\_ACEOF
6221 #define STDC_HEADERS 1
6226 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6227 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6228 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #include <sys/types.h>
6238 #include <sys/wait.h>
6240 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6251 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6256 rm -f conftest.$ac_objext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258 (eval $ac_compile) 2>conftest.er1
6260 grep -v '^ *+' conftest.er1 >conftest.err
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } &&
6265 { ac_try='test -z "$ac_c_werror_flag"
6266 || test ! -s conftest.err'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; } &&
6272 { ac_try='test -s conftest.$ac_objext'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_cv_header_sys_wait_h=yes
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6283 ac_cv_header_sys_wait_h=no
6285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6287 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6288 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6289 if test $ac_cv_header_sys_wait_h = yes; then
6291 cat >>confdefs.h <<\_ACEOF
6292 #define HAVE_SYS_WAIT_H 1
6328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6330 echo "$as_me:$LINENO: checking for $ac_header" >&5
6331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6338 # Is the header compilable?
6339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6341 cat >conftest.$ac_ext <<_ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6348 #include <$ac_header>
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag"
6360 || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 ac_header_compiler=yes
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6377 ac_header_compiler=no
6379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6381 echo "${ECHO_T}$ac_header_compiler" >&6
6383 # Is the header present?
6384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 #include <$ac_header>
6394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6397 grep -v '^ *+' conftest.er1 >conftest.err
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } >/dev/null; then
6402 if test -s conftest.err; then
6403 ac_cpp_err=$ac_c_preproc_warn_flag
6404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6411 if test -z "$ac_cpp_err"; then
6412 ac_header_preproc=yes
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 ac_header_preproc=no
6419 rm -f conftest.err conftest.$ac_ext
6420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6421 echo "${ECHO_T}$ac_header_preproc" >&6
6423 # So? What about this header?
6424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6430 ac_header_preproc=yes
6433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6447 ## ------------------------------ ##
6448 ## Report this to bug-cvs@gnu.org ##
6449 ## ------------------------------ ##
6452 sed "s/^/$as_me: WARNING: /" >&2
6455 echo "$as_me:$LINENO: checking for $ac_header" >&5
6456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 eval "$as_ac_Header=\$ac_header_preproc"
6462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6467 cat >>confdefs.h <<_ACEOF
6468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6475 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6476 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6477 if test "${ac_cv_header_stat_broken+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 #include <sys/types.h>
6487 #include <sys/stat.h>
6489 #if defined(S_ISBLK) && defined(S_IFDIR)
6490 # if S_ISBLK (S_IFDIR)
6495 #if defined(S_ISBLK) && defined(S_IFCHR)
6496 # if S_ISBLK (S_IFCHR)
6501 #if defined(S_ISLNK) && defined(S_IFREG)
6502 # if S_ISLNK (S_IFREG)
6507 #if defined(S_ISSOCK) && defined(S_IFREG)
6508 # if S_ISSOCK (S_IFREG)
6514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515 $EGREP "You lose" >/dev/null 2>&1; then
6516 ac_cv_header_stat_broken=yes
6518 ac_cv_header_stat_broken=no
6523 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6524 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6525 if test $ac_cv_header_stat_broken = yes; then
6527 cat >>confdefs.h <<\_ACEOF
6528 #define STAT_MACROS_BROKEN 1
6534 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6535 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6536 if test "${ac_cv_c_const+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 cat >conftest.$ac_ext <<_ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6549 /* FIXME: Include the comments suggested by Paul. */
6551 /* Ultrix mips cc rejects this. */
6552 typedef int charset[2];
6554 /* SunOS 4.1.1 cc rejects this. */
6555 char const *const *ccp;
6557 /* NEC SVR4.0.2 mips cc rejects this. */
6558 struct point {int x, y;};
6559 static struct point const zero = {0,0};
6560 /* AIX XL C 1.02.0.0 rejects this.
6561 It does not let you subtract one const X* pointer from another in
6562 an arm of an if-expression whose if-part is not a constant
6564 const char *g = "string";
6565 ccp = &g + (g ? g-g : 0);
6566 /* HPUX 7.0 cc rejects these. */
6569 ccp = (char const *const *) p;
6570 { /* SCO 3.2v4 cc rejects this. */
6572 char const *s = 0 ? (char *) 0 : (char const *) 0;
6576 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6578 const int *foo = &x[0];
6581 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6582 typedef const int *iptr;
6586 { /* AIX XL C 1.02.0.0 rejects this saying
6587 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6588 struct s { int j; const int *ap[3]; };
6589 struct s *b; b->j = 5;
6591 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6600 rm -f conftest.$ac_objext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602 (eval $ac_compile) 2>conftest.er1
6604 grep -v '^ *+' conftest.er1 >conftest.err
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_c_werror_flag"
6610 || test ! -s conftest.err'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; } &&
6616 { ac_try='test -s conftest.$ac_objext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6631 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6632 echo "${ECHO_T}$ac_cv_c_const" >&6
6633 if test $ac_cv_c_const = no; then
6635 cat >>confdefs.h <<\_ACEOF
6641 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6642 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6643 if test "${ac_cv_type_uid_t+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <sys/types.h>
6655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6656 $EGREP "uid_t" >/dev/null 2>&1; then
6657 ac_cv_type_uid_t=yes
6664 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6665 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6666 if test $ac_cv_type_uid_t = no; then
6668 cat >>confdefs.h <<\_ACEOF
6673 cat >>confdefs.h <<\_ACEOF
6679 echo "$as_me:$LINENO: checking for mode_t" >&5
6680 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6681 if test "${ac_cv_type_mode_t+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 $ac_includes_default
6696 if (sizeof (mode_t))
6702 rm -f conftest.$ac_objext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704 (eval $ac_compile) 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -z "$ac_c_werror_flag"
6712 || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_type_mode_t=yes
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_type_mode_t=no
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6734 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6735 if test $ac_cv_type_mode_t = yes; then
6739 cat >>confdefs.h <<_ACEOF
6745 echo "$as_me:$LINENO: checking for pid_t" >&5
6746 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6747 if test "${ac_cv_type_pid_t+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 cat >conftest.$ac_ext <<_ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6768 rm -f conftest.$ac_objext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6770 (eval $ac_compile) 2>conftest.er1
6772 grep -v '^ *+' conftest.er1 >conftest.err
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_c_werror_flag"
6778 || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try='test -s conftest.$ac_objext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_type_pid_t=yes
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6799 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6800 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6801 if test $ac_cv_type_pid_t = yes; then
6805 cat >>confdefs.h <<_ACEOF
6811 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6812 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6813 if test "${ac_cv_type_signal+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 #include <sys/types.h>
6828 extern "C" void (*signal (int, void (*)(int)))(int);
6830 void (*signal ()) ();
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>conftest.er1
6845 grep -v '^ *+' conftest.er1 >conftest.err
6847 cat conftest.err >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -z "$ac_c_werror_flag"
6851 || test ! -s conftest.err'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; } &&
6857 { ac_try='test -s conftest.$ac_objext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 ac_cv_type_signal=void
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 ac_cv_type_signal=int
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6873 echo "${ECHO_T}$ac_cv_type_signal" >&6
6875 cat >>confdefs.h <<_ACEOF
6876 #define RETSIGTYPE $ac_cv_type_signal
6881 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6882 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6883 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6896 static struct stat ac_aggr;
6897 if (ac_aggr.st_blksize)
6903 rm -f conftest.$ac_objext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905 (eval $ac_compile) 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_c_werror_flag"
6913 || test ! -s conftest.err'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest.$ac_objext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_member_struct_stat_st_blksize=yes
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6936 $ac_includes_default
6940 static struct stat ac_aggr;
6941 if (sizeof ac_aggr.st_blksize)
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949 (eval $ac_compile) 2>conftest.er1
6951 grep -v '^ *+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -z "$ac_c_werror_flag"
6957 || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_member_struct_stat_st_blksize=yes
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 ac_cv_member_struct_stat_st_blksize=no
6976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6981 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6982 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6984 cat >>confdefs.h <<_ACEOF
6985 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6991 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6992 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6993 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7006 static struct stat ac_aggr;
7007 if (ac_aggr.st_rdev)
7013 rm -f conftest.$ac_objext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag"
7023 || test ! -s conftest.err'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; } &&
7029 { ac_try='test -s conftest.$ac_objext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 ac_cv_member_struct_stat_st_rdev=yes
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 $ac_includes_default
7050 static struct stat ac_aggr;
7051 if (sizeof ac_aggr.st_rdev)
7057 rm -f conftest.$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_member_struct_stat_st_rdev=yes
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 ac_cv_member_struct_stat_st_rdev=no
7086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7090 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7091 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7092 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7094 cat >>confdefs.h <<_ACEOF
7095 #define HAVE_STRUCT_STAT_ST_RDEV 1
7102 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7103 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7104 if test "${ac_cv_sys_largefile_source+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_cv_sys_largefile_source=no
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>conftest.er1
7128 grep -v '^ *+' conftest.er1 >conftest.err
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_c_werror_flag"
7134 || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest.$ac_objext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7153 cat >conftest.$ac_ext <<_ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #define _LARGEFILE_SOURCE 1
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>conftest.er1
7173 grep -v '^ *+' conftest.er1 >conftest.err
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -z "$ac_c_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_cv_sys_largefile_source=1; break
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7201 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7202 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7203 if test "$ac_cv_sys_largefile_source" != no; then
7205 cat >>confdefs.h <<_ACEOF
7206 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7212 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7213 # in glibc 2.1.3, but that breaks too many other things.
7214 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7215 echo "$as_me:$LINENO: checking for fseeko" >&5
7216 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
7217 if test "${ac_cv_func_fseeko+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7230 return fseeko && fseeko (stdin, 0, 0);
7235 rm -f conftest.$ac_objext conftest$ac_exeext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7237 (eval $ac_link) 2>conftest.er1
7239 grep -v '^ *+' conftest.er1 >conftest.err
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -z "$ac_c_werror_flag"
7245 || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try='test -s conftest$ac_exeext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_func_fseeko=yes
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 ac_cv_func_fseeko=no
7264 rm -f conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7267 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
7268 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
7269 if test $ac_cv_func_fseeko = yes; then
7271 cat >>confdefs.h <<\_ACEOF
7272 #define HAVE_FSEEKO 1
7277 if test $ac_cv_func_fseeko = no; then
7279 "fseeko.$ac_objext" | \
7280 *" fseeko.$ac_objext" | \
7281 "fseeko.$ac_objext "* | \
7282 *" fseeko.$ac_objext "* ) ;;
7283 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext" ;;
7287 "ftello.$ac_objext" | \
7288 *" ftello.$ac_objext" | \
7289 "ftello.$ac_objext "* | \
7290 *" ftello.$ac_objext "* ) ;;
7291 *) LIBOBJS="$LIBOBJS ftello.$ac_objext" ;;
7296 # Replace functions with versions in lib/ when they can't be found.
7316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7317 echo "$as_me:$LINENO: checking for $ac_func" >&5
7318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7319 if eval "test \"\${$as_ac_var+set}\" = set"; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7330 #define $ac_func innocuous_$ac_func
7332 /* System header to define __stub macros and hopefully few prototypes,
7333 which can conflict with char $ac_func (); below.
7334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335 <limits.h> exists even on freestanding compilers. */
7338 # include <limits.h>
7340 # include <assert.h>
7345 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7353 /* The GNU C library defines this for functions which it implements
7354 to always fail with ENOSYS. Some functions are actually named
7355 something starting with __ and the normal name is an alias. */
7356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7359 char (*f) () = $ac_func;
7368 return f != $ac_func;
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375 (eval $ac_link) 2>conftest.er1
7377 grep -v '^ *+' conftest.er1 >conftest.err
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag"
7383 || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest$ac_exeext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 eval "$as_ac_var=yes"
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7400 eval "$as_ac_var=no"
7402 rm -f conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
7405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7407 if test `eval echo '${'$as_ac_var'}'` = yes; then
7408 cat >>confdefs.h <<_ACEOF
7409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7414 "$ac_func.$ac_objext" | \
7415 *" $ac_func.$ac_objext" | \
7416 "$ac_func.$ac_objext "* | \
7417 *" $ac_func.$ac_objext "* ) ;;
7418 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7429 # Begin GNULIB stuff.
7432 # Look for functions from GNULIB and replace with versions in lib/ when
7434 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7435 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7436 if test "${ac_cv_header_time+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <sys/types.h>
7446 #include <sys/time.h>
7452 if ((struct tm *) 0)
7458 rm -f conftest.$ac_objext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460 (eval $ac_compile) 2>conftest.er1
7462 grep -v '^ *+' conftest.er1 >conftest.err
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -z "$ac_c_werror_flag"
7468 || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest.$ac_objext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 ac_cv_header_time=yes
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_cv_header_time=no
7487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7489 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7490 echo "${ECHO_T}$ac_cv_header_time" >&6
7491 if test $ac_cv_header_time = yes; then
7493 cat >>confdefs.h <<\_ACEOF
7494 #define TIME_WITH_SYS_TIME 1
7501 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
7502 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
7503 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 if test "$cross_compiling" = yes; then
7507 jm_cv_func_gettimeofday_clobber=yes
7509 cat >conftest.$ac_ext <<_ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7519 #if TIME_WITH_SYS_TIME
7520 # include <sys/time.h>
7523 # if HAVE_SYS_TIME_H
7524 # include <sys/time.h>
7539 lt = localtime (&t);
7541 gettimeofday (&tv, NULL);
7542 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
7549 rm -f conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 jm_cv_func_gettimeofday_clobber=no
7562 echo "$as_me: program exited with status $ac_status" >&5
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7567 jm_cv_func_gettimeofday_clobber=yes
7569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7573 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
7574 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
7575 if test $jm_cv_func_gettimeofday_clobber = yes; then
7578 "gettimeofday.$ac_objext" | \
7579 *" gettimeofday.$ac_objext" | \
7580 "gettimeofday.$ac_objext "* | \
7581 *" gettimeofday.$ac_objext "* ) ;;
7582 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
7586 cat >>confdefs.h <<\_ACEOF
7587 #define gmtime rpl_gmtime
7591 cat >>confdefs.h <<\_ACEOF
7592 #define localtime rpl_localtime
7598 cat >>confdefs.h <<\_ACEOF
7599 #define gettimeofday rpl_gettimeofday
7603 cat >>confdefs.h <<\_ACEOF
7604 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
7612 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
7613 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
7614 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 $ac_includes_default
7628 char *p = (char *) strerror_r;
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>conftest.er1
7639 grep -v '^ *+' conftest.er1 >conftest.err
7641 cat conftest.err >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try='test -z "$ac_c_werror_flag"
7645 || test ! -s conftest.err'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; } &&
7651 { ac_try='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 ac_cv_have_decl_strerror_r=yes
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 ac_cv_have_decl_strerror_r=no
7664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
7667 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
7668 if test $ac_cv_have_decl_strerror_r = yes; then
7670 cat >>confdefs.h <<_ACEOF
7671 #define HAVE_DECL_STRERROR_R 1
7676 cat >>confdefs.h <<_ACEOF
7677 #define HAVE_DECL_STRERROR_R 0
7685 for ac_func in strerror_r
7687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7688 echo "$as_me:$LINENO: checking for $ac_func" >&5
7689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7690 if eval "test \"\${$as_ac_var+set}\" = set"; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7701 #define $ac_func innocuous_$ac_func
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char $ac_func (); below.
7705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 <limits.h> exists even on freestanding compilers. */
7709 # include <limits.h>
7711 # include <assert.h>
7716 /* Override any gcc2 internal prototype to avoid an error. */
7721 /* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7724 /* The GNU C library defines this for functions which it implements
7725 to always fail with ENOSYS. Some functions are actually named
7726 something starting with __ and the normal name is an alias. */
7727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7730 char (*f) () = $ac_func;
7739 return f != $ac_func;
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 eval "$as_ac_var=yes"
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 eval "$as_ac_var=no"
7773 rm -f conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7778 if test `eval echo '${'$as_ac_var'}'` = yes; then
7779 cat >>confdefs.h <<_ACEOF
7780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7786 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
7787 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
7788 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 ac_cv_func_strerror_r_char_p=no
7793 if test $ac_cv_have_decl_strerror_r = yes; then
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 $ac_includes_default
7806 char x = *strerror_r (0, buf, sizeof buf);
7807 char *p = strerror_r (0, buf, sizeof buf);
7813 rm -f conftest.$ac_objext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815 (eval $ac_compile) 2>conftest.er1
7817 grep -v '^ *+' conftest.er1 >conftest.err
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } &&
7822 { ac_try='test -z "$ac_c_werror_flag"
7823 || test ! -s conftest.err'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest.$ac_objext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_cv_func_strerror_r_char_p=yes
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7843 # strerror_r is not declared. Choose between
7844 # systems that have relatively inaccessible declarations for the
7845 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7846 # former has a strerror_r that returns char*, while the latter
7847 # has a strerror_r that returns `int'.
7848 # This test should segfault on the DEC system.
7849 if test "$cross_compiling" = yes; then
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 $ac_includes_default
7859 extern char *strerror_r ();
7864 char x = *strerror_r (0, buf, sizeof buf);
7865 exit (!isalpha (x));
7870 rm -f conftest$ac_exeext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7872 (eval $ac_link) 2>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 ac_cv_func_strerror_r_char_p=yes
7883 echo "$as_me: program exited with status $ac_status" >&5
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
7894 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
7895 if test $ac_cv_func_strerror_r_char_p = yes; then
7897 cat >>confdefs.h <<\_ACEOF
7898 #define STRERROR_R_CHAR_P 1
7904 echo "$as_me:$LINENO: checking for ssize_t" >&5
7905 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7906 if test "${gt_cv_ssize_t+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 #include <sys/types.h>
7919 int x = sizeof (ssize_t *) + sizeof (ssize_t);
7924 rm -f conftest.$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926 (eval $ac_compile) 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag"
7934 || test ! -s conftest.err'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest.$ac_objext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7955 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
7956 echo "${ECHO_T}$gt_cv_ssize_t" >&6
7957 if test $gt_cv_ssize_t = no; then
7959 cat >>confdefs.h <<\_ACEOF
7968 am_getline_needs_run_time_check=no
7969 echo "$as_me:$LINENO: checking for getline" >&5
7970 echo $ECHO_N "checking for getline... $ECHO_C" >&6
7971 if test "${ac_cv_func_getline+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
7981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7982 #define getline innocuous_getline
7984 /* System header to define __stub macros and hopefully few prototypes,
7985 which can conflict with char getline (); below.
7986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7987 <limits.h> exists even on freestanding compilers. */
7990 # include <limits.h>
7992 # include <assert.h>
7997 /* Override any gcc2 internal prototype to avoid an error. */
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8005 /* The GNU C library defines this for functions which it implements
8006 to always fail with ENOSYS. Some functions are actually named
8007 something starting with __ and the normal name is an alias. */
8008 #if defined (__stub_getline) || defined (__stub___getline)
8011 char (*f) () = getline;
8020 return f != getline;
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027 (eval $ac_link) 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag"
8035 || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_func_getline=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_cv_func_getline=no
8054 rm -f conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8057 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
8058 echo "${ECHO_T}$ac_cv_func_getline" >&6
8059 if test $ac_cv_func_getline = yes; then
8060 am_getline_needs_run_time_check=yes
8062 am_cv_func_working_getline=no
8065 if test $am_getline_needs_run_time_check = yes; then
8066 echo "$as_me:$LINENO: checking for working getline function" >&5
8067 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
8068 if test "${am_cv_func_working_getline+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
8072 if test "$cross_compiling" = yes; then
8073 am_cv_func_working_getline=no
8075 cat >conftest.$ac_ext <<_ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8083 # include <stdlib.h>
8084 # include <string.h>
8086 { /* Based on a test program from Karl Heuer. */
8090 FILE *in = fopen ("./conftest.data", "r");
8093 len = getline (&line, &siz, in);
8094 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
8098 rm -f conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 am_cv_func_working_getline=yes
8111 echo "$as_me: program exited with status $ac_status" >&5
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8116 am_cv_func_working_getline=no
8118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
8122 echo "${ECHO_T}$am_cv_func_working_getline" >&6
8125 if test $am_cv_func_working_getline = no; then
8127 cat >>confdefs.h <<\_ACEOF
8128 #define getline gnu_getline
8132 "getline.$ac_objext" | \
8133 *" getline.$ac_objext" | \
8134 "getline.$ac_objext "* | \
8135 *" getline.$ac_objext "* ) ;;
8136 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
8140 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
8141 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
8142 case " $LIBOBJS " in
8143 *" getndelim2.$ac_objext "* ) ;;
8145 "getndelim2.$ac_objext" | \
8146 *" getndelim2.$ac_objext" | \
8147 "getndelim2.$ac_objext "* | \
8148 *" getndelim2.$ac_objext "* ) ;;
8149 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
8156 for ac_func in getdelim
8158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8159 echo "$as_me:$LINENO: checking for $ac_func" >&5
8160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8161 if eval "test \"\${$as_ac_var+set}\" = set"; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8172 #define $ac_func innocuous_$ac_func
8174 /* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char $ac_func (); below.
8176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177 <limits.h> exists even on freestanding compilers. */
8180 # include <limits.h>
8182 # include <assert.h>
8187 /* Override any gcc2 internal prototype to avoid an error. */
8192 /* We use char because int might match the return type of a gcc2
8193 builtin and then its argument prototype would still apply. */
8195 /* The GNU C library defines this for functions which it implements
8196 to always fail with ENOSYS. Some functions are actually named
8197 something starting with __ and the normal name is an alias. */
8198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8201 char (*f) () = $ac_func;
8210 return f != $ac_func;
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag"
8225 || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 eval "$as_ac_var=yes"
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 eval "$as_ac_var=no"
8244 rm -f conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8249 if test `eval echo '${'$as_ac_var'}'` = yes; then
8250 cat >>confdefs.h <<_ACEOF
8251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8265 if test -n "$ac_aux_dir"; then
8266 case "$ac_aux_dir" in
8267 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
8268 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
8271 if test -z "$MKINSTALLDIRS"; then
8272 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8277 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8278 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8279 # Check whether --enable-nls or --disable-nls was given.
8280 if test "${enable_nls+set}" = set; then
8281 enableval="$enable_nls"
8286 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8287 echo "${ECHO_T}$USE_NLS" >&6
8294 # Prepare PATH_SEPARATOR.
8295 # The user is always right.
8296 if test "${PATH_SEPARATOR+set}" != set; then
8297 echo "#! /bin/sh" >conf$$.sh
8298 echo "exit 0" >>conf$$.sh
8300 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8308 # Find out how to test for executable files. Don't use a zero-byte file,
8309 # as systems may use methods other than mode bits to determine executability.
8310 cat >conf$$.file <<_ASEOF
8314 chmod +x conf$$.file
8315 if test -x conf$$.file >/dev/null 2>&1; then
8316 ac_executable_p="test -x"
8318 ac_executable_p="test -f"
8322 # Extract the first word of "msgfmt", so it can be a program name with args.
8323 set dummy msgfmt; ac_word=$2
8324 echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8326 if test "${ac_cv_path_MSGFMT+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8334 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8335 for ac_dir in $PATH; do
8337 test -z "$ac_dir" && ac_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8340 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8341 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8342 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8349 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8353 MSGFMT="$ac_cv_path_MSGFMT"
8354 if test "$MSGFMT" != ":"; then
8355 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8356 echo "${ECHO_T}$MSGFMT" >&6
8358 echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6
8362 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8363 set dummy gmsgfmt; ac_word=$2
8364 echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8366 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8392 GMSGFMT=$ac_cv_path_GMSGFMT
8394 if test -n "$GMSGFMT"; then
8395 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8396 echo "${ECHO_T}$GMSGFMT" >&6
8398 echo "$as_me:$LINENO: result: no" >&5
8399 echo "${ECHO_T}no" >&6
8404 # Prepare PATH_SEPARATOR.
8405 # The user is always right.
8406 if test "${PATH_SEPARATOR+set}" != set; then
8407 echo "#! /bin/sh" >conf$$.sh
8408 echo "exit 0" >>conf$$.sh
8410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8418 # Find out how to test for executable files. Don't use a zero-byte file,
8419 # as systems may use methods other than mode bits to determine executability.
8420 cat >conf$$.file <<_ASEOF
8424 chmod +x conf$$.file
8425 if test -x conf$$.file >/dev/null 2>&1; then
8426 ac_executable_p="test -x"
8428 ac_executable_p="test -f"
8432 # Extract the first word of "xgettext", so it can be a program name with args.
8433 set dummy xgettext; ac_word=$2
8434 echo "$as_me:$LINENO: checking for $ac_word" >&5
8435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8436 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8444 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8445 for ac_dir in $PATH; do
8447 test -z "$ac_dir" && ac_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8450 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8451 (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
8452 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8459 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8463 XGETTEXT="$ac_cv_path_XGETTEXT"
8464 if test "$XGETTEXT" != ":"; then
8465 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8466 echo "${ECHO_T}$XGETTEXT" >&6
8468 echo "$as_me:$LINENO: result: no" >&5
8469 echo "${ECHO_T}no" >&6
8475 # Prepare PATH_SEPARATOR.
8476 # The user is always right.
8477 if test "${PATH_SEPARATOR+set}" != set; then
8478 echo "#! /bin/sh" >conf$$.sh
8479 echo "exit 0" >>conf$$.sh
8481 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8489 # Find out how to test for executable files. Don't use a zero-byte file,
8490 # as systems may use methods other than mode bits to determine executability.
8491 cat >conf$$.file <<_ASEOF
8495 chmod +x conf$$.file
8496 if test -x conf$$.file >/dev/null 2>&1; then
8497 ac_executable_p="test -x"
8499 ac_executable_p="test -f"
8503 # Extract the first word of "msgmerge", so it can be a program name with args.
8504 set dummy msgmerge; ac_word=$2
8505 echo "$as_me:$LINENO: checking for $ac_word" >&5
8506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8507 if test "${ac_cv_path_MSGMERGE+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8515 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8516 for ac_dir in $PATH; do
8518 test -z "$ac_dir" && ac_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8521 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
8522 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8529 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8533 MSGMERGE="$ac_cv_path_MSGMERGE"
8534 if test "$MSGMERGE" != ":"; then
8535 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8536 echo "${ECHO_T}$MSGMERGE" >&6
8538 echo "$as_me:$LINENO: result: no" >&5
8539 echo "${ECHO_T}no" >&6
8543 if test "$GMSGFMT" != ":"; then
8544 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8545 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8548 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8549 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8550 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
8555 if test "$XGETTEXT" != ":"; then
8556 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8557 (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
8560 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8561 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8567 ac_config_commands="$ac_config_commands default-1"
8571 if test "X$prefix" = "XNONE"; then
8572 acl_final_prefix="$ac_default_prefix"
8574 acl_final_prefix="$prefix"
8576 if test "X$exec_prefix" = "XNONE"; then
8577 acl_final_exec_prefix='${prefix}'
8579 acl_final_exec_prefix="$exec_prefix"
8581 acl_save_prefix="$prefix"
8582 prefix="$acl_final_prefix"
8583 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8584 prefix="$acl_save_prefix"
8586 # Make sure we can run config.sub.
8587 $ac_config_sub sun4 >/dev/null 2>&1 ||
8588 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
8589 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
8590 { (exit 1); exit 1; }; }
8592 echo "$as_me:$LINENO: checking build system type" >&5
8593 echo $ECHO_N "checking build system type... $ECHO_C" >&6
8594 if test "${ac_cv_build+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 ac_cv_build_alias=$build_alias
8598 test -z "$ac_cv_build_alias" &&
8599 ac_cv_build_alias=`$ac_config_guess`
8600 test -z "$ac_cv_build_alias" &&
8601 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8602 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8603 { (exit 1); exit 1; }; }
8604 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
8605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
8606 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
8607 { (exit 1); exit 1; }; }
8610 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8611 echo "${ECHO_T}$ac_cv_build" >&6
8613 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8614 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8615 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8618 echo "$as_me:$LINENO: checking host system type" >&5
8619 echo $ECHO_N "checking host system type... $ECHO_C" >&6
8620 if test "${ac_cv_host+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 ac_cv_host_alias=$host_alias
8624 test -z "$ac_cv_host_alias" &&
8625 ac_cv_host_alias=$ac_cv_build_alias
8626 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
8627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
8628 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
8629 { (exit 1); exit 1; }; }
8632 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8633 echo "${ECHO_T}$ac_cv_host" >&6
8635 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8636 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8637 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8641 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8642 if test "${with_gnu_ld+set}" = set; then
8643 withval="$with_gnu_ld"
8644 test "$withval" = no || with_gnu_ld=yes
8649 if test "$GCC" = yes; then
8650 # Check if gcc -print-prog-name=ld gives a path.
8651 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8652 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8655 # gcc leaves a trailing carriage return which upsets mingw
8656 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8658 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8661 # Accept absolute paths.
8662 [\\/]* | [A-Za-z]:[\\/]*)
8663 re_direlt='/[^/][^/]*/\.\./'
8664 # Canonicalize the path of ld
8665 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8666 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8667 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8669 test -z "$LD" && LD="$ac_prog"
8672 # If it fails, then pretend we aren't using GCC.
8676 # If it is relative, then search for the first ld in PATH.
8680 elif test "$with_gnu_ld" = yes; then
8681 echo "$as_me:$LINENO: checking for GNU ld" >&5
8682 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8684 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8685 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8687 if test "${acl_cv_path_LD+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 if test -z "$LD"; then
8691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8692 for ac_dir in $PATH; do
8693 test -z "$ac_dir" && ac_dir=.
8694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8695 acl_cv_path_LD="$ac_dir/$ac_prog"
8696 # Check to see if the program is GNU ld. I'd rather use --version,
8697 # but apparently some GNU ld's only accept -v.
8698 # Break only if it was the GNU/non-GNU ld that we prefer.
8699 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8700 test "$with_gnu_ld" != no && break
8702 test "$with_gnu_ld" != yes && break
8708 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8712 LD="$acl_cv_path_LD"
8713 if test -n "$LD"; then
8714 echo "$as_me:$LINENO: result: $LD" >&5
8715 echo "${ECHO_T}$LD" >&6
8717 echo "$as_me:$LINENO: result: no" >&5
8718 echo "${ECHO_T}no" >&6
8720 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8721 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8722 { (exit 1); exit 1; }; }
8723 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8724 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8725 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8729 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8730 acl_cv_prog_gnu_ld=yes
8732 acl_cv_prog_gnu_ld=no
8735 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8736 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8737 with_gnu_ld=$acl_cv_prog_gnu_ld
8741 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8742 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8743 if test "${acl_cv_rpath+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8748 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8754 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8755 echo "${ECHO_T}$acl_cv_rpath" >&6
8757 libext="$acl_cv_libext"
8758 shlibext="$acl_cv_shlibext"
8759 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8760 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8761 hardcode_direct="$acl_cv_hardcode_direct"
8762 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8763 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
8764 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
8765 # Check whether --enable-rpath or --disable-rpath was given.
8766 if test "${enable_rpath+set}" = set; then
8767 enableval="$enable_rpath"
8781 acl_save_prefix="$prefix"
8782 prefix="$acl_final_prefix"
8783 acl_save_exec_prefix="$exec_prefix"
8784 exec_prefix="$acl_final_exec_prefix"
8786 eval additional_includedir=\"$includedir\"
8787 eval additional_libdir=\"$libdir\"
8789 exec_prefix="$acl_save_exec_prefix"
8790 prefix="$acl_save_prefix"
8793 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8794 if test "${with_libiconv_prefix+set}" = set; then
8795 withval="$with_libiconv_prefix"
8797 if test "X$withval" = "Xno"; then
8800 if test "X$withval" = "X"; then
8802 acl_save_prefix="$prefix"
8803 prefix="$acl_final_prefix"
8804 acl_save_exec_prefix="$exec_prefix"
8805 exec_prefix="$acl_final_exec_prefix"
8807 eval additional_includedir=\"$includedir\"
8808 eval additional_libdir=\"$libdir\"
8810 exec_prefix="$acl_save_exec_prefix"
8811 prefix="$acl_save_prefix"
8814 additional_includedir="$withval/include"
8815 additional_libdir="$withval/lib"
8825 names_already_handled=
8826 names_next_round='iconv '
8827 while test -n "$names_next_round"; do
8828 names_this_round="$names_next_round"
8830 for name in $names_this_round; do
8832 for n in $names_already_handled; do
8833 if test "$n" = "$name"; then
8838 if test -z "$already_handled"; then
8839 names_already_handled="$names_already_handled $name"
8840 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8841 eval value=\"\$HAVE_LIB$uppername\"
8842 if test -n "$value"; then
8843 if test "$value" = yes; then
8844 eval value=\"\$LIB$uppername\"
8845 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8846 eval value=\"\$LTLIB$uppername\"
8847 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8856 if test $use_additional = yes; then
8857 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8858 found_dir="$additional_libdir"
8859 found_so="$additional_libdir/lib$name.$shlibext"
8860 if test -f "$additional_libdir/lib$name.la"; then
8861 found_la="$additional_libdir/lib$name.la"
8864 if test -f "$additional_libdir/lib$name.$libext"; then
8865 found_dir="$additional_libdir"
8866 found_a="$additional_libdir/lib$name.$libext"
8867 if test -f "$additional_libdir/lib$name.la"; then
8868 found_la="$additional_libdir/lib$name.la"
8873 if test "X$found_dir" = "X"; then
8874 for x in $LDFLAGS $LTLIBICONV; do
8876 acl_save_prefix="$prefix"
8877 prefix="$acl_final_prefix"
8878 acl_save_exec_prefix="$exec_prefix"
8879 exec_prefix="$acl_final_exec_prefix"
8881 exec_prefix="$acl_save_exec_prefix"
8882 prefix="$acl_save_prefix"
8886 dir=`echo "X$x" | sed -e 's/^X-L//'`
8887 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8889 found_so="$dir/lib$name.$shlibext"
8890 if test -f "$dir/lib$name.la"; then
8891 found_la="$dir/lib$name.la"
8894 if test -f "$dir/lib$name.$libext"; then
8896 found_a="$dir/lib$name.$libext"
8897 if test -f "$dir/lib$name.la"; then
8898 found_la="$dir/lib$name.la"
8904 if test "X$found_dir" != "X"; then
8909 if test "X$found_dir" != "X"; then
8910 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8911 if test "X$found_so" != "X"; then
8912 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8916 for x in $ltrpathdirs; do
8917 if test "X$x" = "X$found_dir"; then
8922 if test -z "$haveit"; then
8923 ltrpathdirs="$ltrpathdirs $found_dir"
8925 if test "$hardcode_direct" = yes; then
8926 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8928 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8931 for x in $rpathdirs; do
8932 if test "X$x" = "X$found_dir"; then
8937 if test -z "$haveit"; then
8938 rpathdirs="$rpathdirs $found_dir"
8942 for x in $LDFLAGS $LIBICONV; do
8944 acl_save_prefix="$prefix"
8945 prefix="$acl_final_prefix"
8946 acl_save_exec_prefix="$exec_prefix"
8947 exec_prefix="$acl_final_exec_prefix"
8949 exec_prefix="$acl_save_exec_prefix"
8950 prefix="$acl_save_prefix"
8952 if test "X$x" = "X-L$found_dir"; then
8957 if test -z "$haveit"; then
8958 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8960 if test "$hardcode_minus_L" != no; then
8961 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8963 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8969 if test "X$found_a" != "X"; then
8970 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8972 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8975 additional_includedir=
8976 case "$found_dir" in
8978 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8979 additional_includedir="$basedir/include"
8982 if test "X$additional_includedir" != "X"; then
8983 if test "X$additional_includedir" != "X/usr/include"; then
8985 if test "X$additional_includedir" = "X/usr/local/include"; then
8986 if test -n "$GCC"; then
8988 linux*) haveit=yes;;
8992 if test -z "$haveit"; then
8993 for x in $CPPFLAGS $INCICONV; do
8995 acl_save_prefix="$prefix"
8996 prefix="$acl_final_prefix"
8997 acl_save_exec_prefix="$exec_prefix"
8998 exec_prefix="$acl_final_exec_prefix"
9000 exec_prefix="$acl_save_exec_prefix"
9001 prefix="$acl_save_prefix"
9003 if test "X$x" = "X-I$additional_includedir"; then
9008 if test -z "$haveit"; then
9009 if test -d "$additional_includedir"; then
9010 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9016 if test -n "$found_la"; then
9017 save_libdir="$libdir"
9019 */* | *\\*) . "$found_la" ;;
9020 *) . "./$found_la" ;;
9022 libdir="$save_libdir"
9023 for dep in $dependency_libs; do
9026 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9027 if test "X$additional_libdir" != "X/usr/lib"; then
9029 if test "X$additional_libdir" = "X/usr/local/lib"; then
9030 if test -n "$GCC"; then
9032 linux*) haveit=yes;;
9036 if test -z "$haveit"; then
9038 for x in $LDFLAGS $LIBICONV; do
9040 acl_save_prefix="$prefix"
9041 prefix="$acl_final_prefix"
9042 acl_save_exec_prefix="$exec_prefix"
9043 exec_prefix="$acl_final_exec_prefix"
9045 exec_prefix="$acl_save_exec_prefix"
9046 prefix="$acl_save_prefix"
9048 if test "X$x" = "X-L$additional_libdir"; then
9053 if test -z "$haveit"; then
9054 if test -d "$additional_libdir"; then
9055 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9059 for x in $LDFLAGS $LTLIBICONV; do
9061 acl_save_prefix="$prefix"
9062 prefix="$acl_final_prefix"
9063 acl_save_exec_prefix="$exec_prefix"
9064 exec_prefix="$acl_final_exec_prefix"
9066 exec_prefix="$acl_save_exec_prefix"
9067 prefix="$acl_save_prefix"
9069 if test "X$x" = "X-L$additional_libdir"; then
9074 if test -z "$haveit"; then
9075 if test -d "$additional_libdir"; then
9076 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9083 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9084 if test "$enable_rpath" != no; then
9086 for x in $rpathdirs; do
9087 if test "X$x" = "X$dir"; then
9092 if test -z "$haveit"; then
9093 rpathdirs="$rpathdirs $dir"
9096 for x in $ltrpathdirs; do
9097 if test "X$x" = "X$dir"; then
9102 if test -z "$haveit"; then
9103 ltrpathdirs="$ltrpathdirs $dir"
9108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9114 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9121 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9122 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9128 if test "X$rpathdirs" != "X"; then
9129 if test -n "$hardcode_libdir_separator"; then
9131 for found_dir in $rpathdirs; do
9132 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9134 acl_save_libdir="$libdir"
9136 eval flag=\"$hardcode_libdir_flag_spec\"
9137 libdir="$acl_save_libdir"
9138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9140 for found_dir in $rpathdirs; do
9141 acl_save_libdir="$libdir"
9143 eval flag=\"$hardcode_libdir_flag_spec\"
9144 libdir="$acl_save_libdir"
9145 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9149 if test "X$ltrpathdirs" != "X"; then
9150 for found_dir in $ltrpathdirs; do
9151 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9172 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9173 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9174 # Check whether --enable-nls or --disable-nls was given.
9175 if test "${enable_nls+set}" = set; then
9176 enableval="$enable_nls"
9181 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9182 echo "${ECHO_T}$USE_NLS" >&6
9191 if test "$USE_NLS" = "yes"; then
9192 gt_use_preinstalled_gnugettext=no
9199 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9200 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9201 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 cat >conftest.$ac_ext <<_ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 #include <libintl.h>
9211 extern int _nl_msg_cat_cntr;
9212 extern int *_nl_domain_bindings;
9216 bindtextdomain ("", "");
9217 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224 (eval $ac_link) 2>conftest.er1
9226 grep -v '^ *+' conftest.er1 >conftest.err
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -z "$ac_c_werror_flag"
9232 || test ! -s conftest.err'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest$ac_exeext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 gt_cv_func_gnugettext1_libc=yes
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 gt_cv_func_gnugettext1_libc=no
9251 rm -f conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9254 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9255 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9257 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9263 am_save_CPPFLAGS="$CPPFLAGS"
9265 for element in $INCICONV; do
9267 for x in $CPPFLAGS; do
9269 acl_save_prefix="$prefix"
9270 prefix="$acl_final_prefix"
9271 acl_save_exec_prefix="$exec_prefix"
9272 exec_prefix="$acl_final_exec_prefix"
9274 exec_prefix="$acl_save_exec_prefix"
9275 prefix="$acl_save_prefix"
9277 if test "X$x" = "X$element"; then
9282 if test -z "$haveit"; then
9283 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9288 echo "$as_me:$LINENO: checking for iconv" >&5
9289 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9290 if test "${am_cv_func_iconv+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 am_cv_func_iconv="no, consider installing GNU libiconv"
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9307 iconv_t cd = iconv_open("","");
9308 iconv(cd,NULL,NULL,NULL,NULL);
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>conftest.er1
9318 grep -v '^ *+' conftest.er1 >conftest.err
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -z "$ac_c_werror_flag"
9324 || test ! -s conftest.err'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; } &&
9330 { ac_try='test -s conftest$ac_exeext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 am_cv_func_iconv=yes
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9342 rm -f conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344 if test "$am_cv_func_iconv" != yes; then
9345 am_save_LIBS="$LIBS"
9346 LIBS="$LIBS $LIBICONV"
9347 cat >conftest.$ac_ext <<_ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9358 iconv_t cd = iconv_open("","");
9359 iconv(cd,NULL,NULL,NULL,NULL);
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367 (eval $ac_link) 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest$ac_exeext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9388 am_cv_func_iconv=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9394 rm -f conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396 LIBS="$am_save_LIBS"
9400 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9401 echo "${ECHO_T}$am_cv_func_iconv" >&6
9402 if test "$am_cv_func_iconv" = yes; then
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_ICONV 1
9409 if test "$am_cv_lib_iconv" = yes; then
9410 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9411 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9412 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9413 echo "${ECHO_T}$LIBICONV" >&6
9415 CPPFLAGS="$am_save_CPPFLAGS"
9427 acl_save_prefix="$prefix"
9428 prefix="$acl_final_prefix"
9429 acl_save_exec_prefix="$exec_prefix"
9430 exec_prefix="$acl_final_exec_prefix"
9432 eval additional_includedir=\"$includedir\"
9433 eval additional_libdir=\"$libdir\"
9435 exec_prefix="$acl_save_exec_prefix"
9436 prefix="$acl_save_prefix"
9439 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9440 if test "${with_libintl_prefix+set}" = set; then
9441 withval="$with_libintl_prefix"
9443 if test "X$withval" = "Xno"; then
9446 if test "X$withval" = "X"; then
9448 acl_save_prefix="$prefix"
9449 prefix="$acl_final_prefix"
9450 acl_save_exec_prefix="$exec_prefix"
9451 exec_prefix="$acl_final_exec_prefix"
9453 eval additional_includedir=\"$includedir\"
9454 eval additional_libdir=\"$libdir\"
9456 exec_prefix="$acl_save_exec_prefix"
9457 prefix="$acl_save_prefix"
9460 additional_includedir="$withval/include"
9461 additional_libdir="$withval/lib"
9471 names_already_handled=
9472 names_next_round='intl '
9473 while test -n "$names_next_round"; do
9474 names_this_round="$names_next_round"
9476 for name in $names_this_round; do
9478 for n in $names_already_handled; do
9479 if test "$n" = "$name"; then
9484 if test -z "$already_handled"; then
9485 names_already_handled="$names_already_handled $name"
9486 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9487 eval value=\"\$HAVE_LIB$uppername\"
9488 if test -n "$value"; then
9489 if test "$value" = yes; then
9490 eval value=\"\$LIB$uppername\"
9491 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9492 eval value=\"\$LTLIB$uppername\"
9493 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9502 if test $use_additional = yes; then
9503 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9504 found_dir="$additional_libdir"
9505 found_so="$additional_libdir/lib$name.$shlibext"
9506 if test -f "$additional_libdir/lib$name.la"; then
9507 found_la="$additional_libdir/lib$name.la"
9510 if test -f "$additional_libdir/lib$name.$libext"; then
9511 found_dir="$additional_libdir"
9512 found_a="$additional_libdir/lib$name.$libext"
9513 if test -f "$additional_libdir/lib$name.la"; then
9514 found_la="$additional_libdir/lib$name.la"
9519 if test "X$found_dir" = "X"; then
9520 for x in $LDFLAGS $LTLIBINTL; do
9522 acl_save_prefix="$prefix"
9523 prefix="$acl_final_prefix"
9524 acl_save_exec_prefix="$exec_prefix"
9525 exec_prefix="$acl_final_exec_prefix"
9527 exec_prefix="$acl_save_exec_prefix"
9528 prefix="$acl_save_prefix"
9532 dir=`echo "X$x" | sed -e 's/^X-L//'`
9533 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9535 found_so="$dir/lib$name.$shlibext"
9536 if test -f "$dir/lib$name.la"; then
9537 found_la="$dir/lib$name.la"
9540 if test -f "$dir/lib$name.$libext"; then
9542 found_a="$dir/lib$name.$libext"
9543 if test -f "$dir/lib$name.la"; then
9544 found_la="$dir/lib$name.la"
9550 if test "X$found_dir" != "X"; then
9555 if test "X$found_dir" != "X"; then
9556 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9557 if test "X$found_so" != "X"; then
9558 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9559 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9562 for x in $ltrpathdirs; do
9563 if test "X$x" = "X$found_dir"; then
9568 if test -z "$haveit"; then
9569 ltrpathdirs="$ltrpathdirs $found_dir"
9571 if test "$hardcode_direct" = yes; then
9572 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9574 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9575 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9577 for x in $rpathdirs; do
9578 if test "X$x" = "X$found_dir"; then
9583 if test -z "$haveit"; then
9584 rpathdirs="$rpathdirs $found_dir"
9588 for x in $LDFLAGS $LIBINTL; do
9590 acl_save_prefix="$prefix"
9591 prefix="$acl_final_prefix"
9592 acl_save_exec_prefix="$exec_prefix"
9593 exec_prefix="$acl_final_exec_prefix"
9595 exec_prefix="$acl_save_exec_prefix"
9596 prefix="$acl_save_prefix"
9598 if test "X$x" = "X-L$found_dir"; then
9603 if test -z "$haveit"; then
9604 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9606 if test "$hardcode_minus_L" != no; then
9607 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9609 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9615 if test "X$found_a" != "X"; then
9616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9618 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9621 additional_includedir=
9622 case "$found_dir" in
9624 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9625 additional_includedir="$basedir/include"
9628 if test "X$additional_includedir" != "X"; then
9629 if test "X$additional_includedir" != "X/usr/include"; then
9631 if test "X$additional_includedir" = "X/usr/local/include"; then
9632 if test -n "$GCC"; then
9634 linux*) haveit=yes;;
9638 if test -z "$haveit"; then
9639 for x in $CPPFLAGS $INCINTL; do
9641 acl_save_prefix="$prefix"
9642 prefix="$acl_final_prefix"
9643 acl_save_exec_prefix="$exec_prefix"
9644 exec_prefix="$acl_final_exec_prefix"
9646 exec_prefix="$acl_save_exec_prefix"
9647 prefix="$acl_save_prefix"
9649 if test "X$x" = "X-I$additional_includedir"; then
9654 if test -z "$haveit"; then
9655 if test -d "$additional_includedir"; then
9656 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9662 if test -n "$found_la"; then
9663 save_libdir="$libdir"
9665 */* | *\\*) . "$found_la" ;;
9666 *) . "./$found_la" ;;
9668 libdir="$save_libdir"
9669 for dep in $dependency_libs; do
9672 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9673 if test "X$additional_libdir" != "X/usr/lib"; then
9675 if test "X$additional_libdir" = "X/usr/local/lib"; then
9676 if test -n "$GCC"; then
9678 linux*) haveit=yes;;
9682 if test -z "$haveit"; then
9684 for x in $LDFLAGS $LIBINTL; do
9686 acl_save_prefix="$prefix"
9687 prefix="$acl_final_prefix"
9688 acl_save_exec_prefix="$exec_prefix"
9689 exec_prefix="$acl_final_exec_prefix"
9691 exec_prefix="$acl_save_exec_prefix"
9692 prefix="$acl_save_prefix"
9694 if test "X$x" = "X-L$additional_libdir"; then
9699 if test -z "$haveit"; then
9700 if test -d "$additional_libdir"; then
9701 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9705 for x in $LDFLAGS $LTLIBINTL; do
9707 acl_save_prefix="$prefix"
9708 prefix="$acl_final_prefix"
9709 acl_save_exec_prefix="$exec_prefix"
9710 exec_prefix="$acl_final_exec_prefix"
9712 exec_prefix="$acl_save_exec_prefix"
9713 prefix="$acl_save_prefix"
9715 if test "X$x" = "X-L$additional_libdir"; then
9720 if test -z "$haveit"; then
9721 if test -d "$additional_libdir"; then
9722 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9729 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9730 if test "$enable_rpath" != no; then
9732 for x in $rpathdirs; do
9733 if test "X$x" = "X$dir"; then
9738 if test -z "$haveit"; then
9739 rpathdirs="$rpathdirs $dir"
9742 for x in $ltrpathdirs; do
9743 if test "X$x" = "X$dir"; then
9748 if test -z "$haveit"; then
9749 ltrpathdirs="$ltrpathdirs $dir"
9754 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9757 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9760 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9761 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9767 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9768 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9774 if test "X$rpathdirs" != "X"; then
9775 if test -n "$hardcode_libdir_separator"; then
9777 for found_dir in $rpathdirs; do
9778 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9780 acl_save_libdir="$libdir"
9782 eval flag=\"$hardcode_libdir_flag_spec\"
9783 libdir="$acl_save_libdir"
9784 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9786 for found_dir in $rpathdirs; do
9787 acl_save_libdir="$libdir"
9789 eval flag=\"$hardcode_libdir_flag_spec\"
9790 libdir="$acl_save_libdir"
9791 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9795 if test "X$ltrpathdirs" != "X"; then
9796 for found_dir in $ltrpathdirs; do
9797 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9801 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9802 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9803 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 gt_save_CPPFLAGS="$CPPFLAGS"
9807 CPPFLAGS="$CPPFLAGS $INCINTL"
9808 gt_save_LIBS="$LIBS"
9809 LIBS="$LIBS $LIBINTL"
9810 cat >conftest.$ac_ext <<_ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 #include <libintl.h>
9817 extern int _nl_msg_cat_cntr;
9822 const char *_nl_expand_alias ();
9826 bindtextdomain ("", "");
9827 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834 (eval $ac_link) 2>conftest.er1
9836 grep -v '^ *+' conftest.er1 >conftest.err
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag"
9842 || test ! -s conftest.err'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; } &&
9848 { ac_try='test -s conftest$ac_exeext'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 gt_cv_func_gnugettext1_libintl=yes
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 gt_cv_func_gnugettext1_libintl=no
9861 rm -f conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9864 LIBS="$LIBS $LIBICONV"
9865 cat >conftest.$ac_ext <<_ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 #include <libintl.h>
9872 extern int _nl_msg_cat_cntr;
9877 const char *_nl_expand_alias ();
9881 bindtextdomain ("", "");
9882 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889 (eval $ac_link) 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 LIBINTL="$LIBINTL $LIBICONV"
9910 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9911 gt_cv_func_gnugettext1_libintl=yes
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9921 CPPFLAGS="$gt_save_CPPFLAGS"
9922 LIBS="$gt_save_LIBS"
9924 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9925 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9928 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9929 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9930 && test "$PACKAGE" != gettext-runtime \
9931 && test "$PACKAGE" != gettext-tools; }; then
9932 gt_use_preinstalled_gnugettext=yes
9941 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9942 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9944 cat >>confdefs.h <<\_ACEOF
9945 #define ENABLE_NLS 1
9953 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9954 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9955 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9956 echo "${ECHO_T}$USE_NLS" >&6
9957 if test "$USE_NLS" = "yes"; then
9958 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9959 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9960 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9961 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9962 gt_source="external libintl"
9967 gt_source="included intl directory"
9969 echo "$as_me:$LINENO: result: $gt_source" >&5
9970 echo "${ECHO_T}$gt_source" >&6
9973 if test "$USE_NLS" = "yes"; then
9975 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9976 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9977 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9978 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9979 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9980 echo "${ECHO_T}$LIBINTL" >&6
9982 for element in $INCINTL; do
9984 for x in $CPPFLAGS; do
9986 acl_save_prefix="$prefix"
9987 prefix="$acl_final_prefix"
9988 acl_save_exec_prefix="$exec_prefix"
9989 exec_prefix="$acl_final_exec_prefix"
9991 exec_prefix="$acl_save_exec_prefix"
9992 prefix="$acl_save_prefix"
9994 if test "X$x" = "X$element"; then
9999 if test -z "$haveit"; then
10000 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_GETTEXT 1
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_DCGETTEXT 1
10023 INTLLIBS="$LIBINTL"
10030 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10031 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10032 if test "${ac_cv_header_stdbool_h+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10042 #include <stdbool.h>
10044 "error: bool is not defined"
10047 "error: false is not defined"
10050 "error: false is not 0"
10053 "error: false is not defined"
10056 "error: true is not 1"
10058 #ifndef __bool_true_false_are_defined
10059 "error: __bool_true_false_are_defined is not defined"
10062 struct s { _Bool s: 1; _Bool t; } s;
10064 char a[true == 1 ? 1 : -1];
10065 char b[false == 0 ? 1 : -1];
10066 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10067 char d[(bool) -0.5 == true ? 1 : -1];
10069 char f[(_Bool) -0.0 == false ? 1 : -1];
10071 char h[sizeof (_Bool)];
10072 char i[sizeof s.t];
10077 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10082 rm -f conftest.$ac_objext
10083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10084 (eval $ac_compile) 2>conftest.er1
10086 grep -v '^ *+' conftest.er1 >conftest.err
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -z "$ac_c_werror_flag"
10092 || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest.$ac_objext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_header_stdbool_h=yes
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ac_cv_header_stdbool_h=no
10111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10113 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10114 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10115 echo "$as_me:$LINENO: checking for _Bool" >&5
10116 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10117 if test "${ac_cv_type__Bool+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10132 if (sizeof (_Bool))
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest.$ac_objext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_type__Bool=yes
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ac_cv_type__Bool=no
10167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10169 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10170 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10171 if test $ac_cv_type__Bool = yes; then
10173 cat >>confdefs.h <<_ACEOF
10174 #define HAVE__BOOL 1
10180 if test $ac_cv_header_stdbool_h = yes; then
10182 cat >>confdefs.h <<\_ACEOF
10183 #define HAVE_STDBOOL_H 1
10190 # Define two additional variables used in the Makefile substitution.
10192 if test "$ac_cv_header_stdbool_h" = yes; then
10195 STDBOOL_H='stdbool.h'
10199 if test "$ac_cv_type__Bool" = yes; then
10211 for ac_header in $gl_header_list
10213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10215 echo "$as_me:$LINENO: checking for $ac_header" >&5
10216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10223 # Is the header compilable?
10224 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10233 #include <$ac_header>
10235 rm -f conftest.$ac_objext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237 (eval $ac_compile) 2>conftest.er1
10239 grep -v '^ *+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag"
10245 || test ! -s conftest.err'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_header_compiler=yes
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_header_compiler=no
10264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10266 echo "${ECHO_T}$ac_header_compiler" >&6
10268 # Is the header present?
10269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10271 cat >conftest.$ac_ext <<_ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 #include <$ac_header>
10279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10282 grep -v '^ *+' conftest.er1 >conftest.err
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } >/dev/null; then
10287 if test -s conftest.err; then
10288 ac_cpp_err=$ac_c_preproc_warn_flag
10289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10296 if test -z "$ac_cpp_err"; then
10297 ac_header_preproc=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ac_header_preproc=no
10304 rm -f conftest.err conftest.$ac_ext
10305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10306 echo "${ECHO_T}$ac_header_preproc" >&6
10308 # So? What about this header?
10309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10315 ac_header_preproc=yes
10318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10332 ## ------------------------------ ##
10333 ## Report this to bug-cvs@gnu.org ##
10334 ## ------------------------------ ##
10337 sed "s/^/$as_me: WARNING: /" >&2
10340 echo "$as_me:$LINENO: checking for $ac_header" >&5
10341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 eval "$as_ac_Header=\$ac_header_preproc"
10347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10352 cat >>confdefs.h <<_ACEOF
10353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10378 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10379 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10380 if test "${ac_cv_have_decl_getenv+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 cat >conftest.$ac_ext <<_ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10389 $ac_includes_default
10394 char *p = (char *) getenv;
10401 rm -f conftest.$ac_objext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403 (eval $ac_compile) 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try='test -z "$ac_c_werror_flag"
10411 || test ! -s conftest.err'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 ac_cv_have_decl_getenv=yes
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 ac_cv_have_decl_getenv=no
10430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10433 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10434 if test $ac_cv_have_decl_getenv = yes; then
10436 cat >>confdefs.h <<_ACEOF
10437 #define HAVE_DECL_GETENV 1
10442 cat >>confdefs.h <<_ACEOF
10443 #define HAVE_DECL_GETENV 0
10452 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10453 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10454 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 cat >conftest.$ac_ext <<_ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 #include <sys/types.h>
10464 #include <inttypes.h>
10468 uintmax_t i = (uintmax_t) -1;
10473 rm -f conftest.$ac_objext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>conftest.er1
10477 grep -v '^ *+' conftest.er1 >conftest.err
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -z "$ac_c_werror_flag"
10483 || test ! -s conftest.err'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest.$ac_objext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 jm_ac_cv_header_inttypes_h=yes
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 jm_ac_cv_header_inttypes_h=no
10502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10504 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
10505 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
10506 if test $jm_ac_cv_header_inttypes_h = yes; then
10508 cat >>confdefs.h <<_ACEOF
10509 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
10515 echo "$as_me:$LINENO: checking for stdint.h" >&5
10516 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
10517 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 cat >conftest.$ac_ext <<_ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 #include <sys/types.h>
10527 #include <stdint.h>
10531 uintmax_t i = (uintmax_t) -1;
10536 rm -f conftest.$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag"
10546 || test ! -s conftest.err'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; } &&
10552 { ac_try='test -s conftest.$ac_objext'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 jm_ac_cv_header_stdint_h=yes
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10563 jm_ac_cv_header_stdint_h=no
10565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10567 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
10568 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
10569 if test $jm_ac_cv_header_stdint_h = yes; then
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_STDINT_H_WITH_UINTMAX 1
10578 echo "$as_me:$LINENO: checking for unsigned long long" >&5
10579 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
10580 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589 unsigned long long ull = 1ULL; int i = 63;
10593 unsigned long long ullmax = (unsigned long long) -1;
10594 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601 (eval $ac_link) 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -z "$ac_c_werror_flag"
10609 || test ! -s conftest.err'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_type_unsigned_long_long=yes
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 ac_cv_type_unsigned_long_long=no
10628 rm -f conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10631 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10632 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
10633 if test $ac_cv_type_unsigned_long_long = yes; then
10635 cat >>confdefs.h <<\_ACEOF
10636 #define HAVE_UNSIGNED_LONG_LONG 1
10644 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
10646 test $ac_cv_type_unsigned_long_long = yes \
10647 && ac_type='unsigned long long' \
10648 || ac_type='unsigned long'
10650 cat >>confdefs.h <<_ACEOF
10651 #define uintmax_t $ac_type
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_UINTMAX_T 1
10663 for ac_func in mkstemp
10665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10666 echo "$as_me:$LINENO: checking for $ac_func" >&5
10667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10668 if eval "test \"\${$as_ac_var+set}\" = set"; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10679 #define $ac_func innocuous_$ac_func
10681 /* System header to define __stub macros and hopefully few prototypes,
10682 which can conflict with char $ac_func (); below.
10683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684 <limits.h> exists even on freestanding compilers. */
10687 # include <limits.h>
10689 # include <assert.h>
10694 /* Override any gcc2 internal prototype to avoid an error. */
10699 /* We use char because int might match the return type of a gcc2
10700 builtin and then its argument prototype would still apply. */
10702 /* The GNU C library defines this for functions which it implements
10703 to always fail with ENOSYS. Some functions are actually named
10704 something starting with __ and the normal name is an alias. */
10705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10708 char (*f) () = $ac_func;
10717 return f != $ac_func;
10722 rm -f conftest.$ac_objext conftest$ac_exeext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10724 (eval $ac_link) 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag"
10732 || test ! -s conftest.err'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 eval "$as_ac_var=yes"
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 eval "$as_ac_var=no"
10751 rm -f conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10756 if test `eval echo '${'$as_ac_var'}'` = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10763 "$ac_func.$ac_objext" | \
10764 *" $ac_func.$ac_objext" | \
10765 "$ac_func.$ac_objext "* | \
10766 *" $ac_func.$ac_objext "* ) ;;
10767 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
10774 if test $ac_cv_func_mkstemp = no; then
10775 utils_cv_func_mkstemp_limitations=yes
10777 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
10778 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
10779 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 if test "$cross_compiling" = yes; then
10784 utils_cv_func_mkstemp_limitations=yes
10787 cat >conftest.$ac_ext <<_ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10794 # include <stdlib.h>
10798 for (i = 0; i < 30; i++)
10800 char template[] = "conftestXXXXXX";
10801 int fd = mkstemp (template);
10810 rm -f conftest$ac_exeext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10812 (eval $ac_link) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 utils_cv_func_mkstemp_limitations=no
10823 echo "$as_me: program exited with status $ac_status" >&5
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ( exit $ac_status )
10828 utils_cv_func_mkstemp_limitations=yes
10830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10835 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
10836 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
10839 if test $utils_cv_func_mkstemp_limitations = yes; then
10841 "mkstemp.$ac_objext" | \
10842 *" mkstemp.$ac_objext" | \
10843 "mkstemp.$ac_objext "* | \
10844 *" mkstemp.$ac_objext "* ) ;;
10845 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
10849 "tempname.$ac_objext" | \
10850 *" tempname.$ac_objext" | \
10851 "tempname.$ac_objext "* | \
10852 *" tempname.$ac_objext "* ) ;;
10853 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
10857 cat >>confdefs.h <<\_ACEOF
10858 #define mkstemp rpl_mkstemp
10880 for ac_header in stdint.h
10882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10884 echo "$as_me:$LINENO: checking for $ac_header" >&5
10885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10892 # Is the header compilable?
10893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10895 cat >conftest.$ac_ext <<_ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10901 $ac_includes_default
10902 #include <$ac_header>
10904 rm -f conftest.$ac_objext
10905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10906 (eval $ac_compile) 2>conftest.er1
10908 grep -v '^ *+' conftest.er1 >conftest.err
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -z "$ac_c_werror_flag"
10914 || test ! -s conftest.err'
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; } &&
10920 { ac_try='test -s conftest.$ac_objext'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10926 ac_header_compiler=yes
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_header_compiler=no
10933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935 echo "${ECHO_T}$ac_header_compiler" >&6
10937 # Is the header present?
10938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10940 cat >conftest.$ac_ext <<_ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 #include <$ac_header>
10948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } >/dev/null; then
10956 if test -s conftest.err; then
10957 ac_cpp_err=$ac_c_preproc_warn_flag
10958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10965 if test -z "$ac_cpp_err"; then
10966 ac_header_preproc=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_header_preproc=no
10973 rm -f conftest.err conftest.$ac_ext
10974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10975 echo "${ECHO_T}$ac_header_preproc" >&6
10977 # So? What about this header?
10978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10984 ac_header_preproc=yes
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11001 ## ------------------------------ ##
11002 ## Report this to bug-cvs@gnu.org ##
11003 ## ------------------------------ ##
11006 sed "s/^/$as_me: WARNING: /" >&2
11009 echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 eval "$as_ac_Header=\$ac_header_preproc"
11016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11031 for ac_func in __secure_getenv gettimeofday
11033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11034 echo "$as_me:$LINENO: checking for $ac_func" >&5
11035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11036 if eval "test \"\${$as_ac_var+set}\" = set"; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11047 #define $ac_func innocuous_$ac_func
11049 /* System header to define __stub macros and hopefully few prototypes,
11050 which can conflict with char $ac_func (); below.
11051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052 <limits.h> exists even on freestanding compilers. */
11055 # include <limits.h>
11057 # include <assert.h>
11062 /* Override any gcc2 internal prototype to avoid an error. */
11067 /* We use char because int might match the return type of a gcc2
11068 builtin and then its argument prototype would still apply. */
11070 /* The GNU C library defines this for functions which it implements
11071 to always fail with ENOSYS. Some functions are actually named
11072 something starting with __ and the normal name is an alias. */
11073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11076 char (*f) () = $ac_func;
11085 return f != $ac_func;
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag"
11100 || test ! -s conftest.err'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest$ac_exeext'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 eval "$as_ac_var=yes"
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 eval "$as_ac_var=no"
11119 rm -f conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125 cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11143 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
11144 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
11145 if test "${gl_cv_c_restrict+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 gl_cv_c_restrict=no
11149 # Try the official restrict keyword, then gcc's __restrict, and
11150 # the less common variants.
11151 for ac_kw in restrict __restrict __restrict__ _Restrict; do
11152 cat >conftest.$ac_ext <<_ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11164 grep -v '^ *+' conftest.er1 >conftest.err
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 gl_cv_c_restrict=$ac_kw; break
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11192 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
11193 echo "${ECHO_T}$gl_cv_c_restrict" >&6
11194 case $gl_cv_c_restrict in
11197 cat >>confdefs.h <<\_ACEOF
11201 *) cat >>confdefs.h <<_ACEOF
11202 #define restrict $gl_cv_c_restrict
11208 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
11209 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
11210 if test "${ac_cv_win_or_dos+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 cat >conftest.$ac_ext <<_ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11224 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11225 neither MSDOS nor Windows
11231 rm -f conftest.$ac_objext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>conftest.er1
11235 grep -v '^ *+' conftest.er1 >conftest.err
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest.$ac_objext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_win_or_dos=yes
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_cv_win_or_dos=no
11260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
11264 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
11266 if test x"$ac_cv_win_or_dos" = xyes; then
11267 ac_fs_accepts_drive_letter_prefix=1
11268 ac_fs_backslash_is_file_name_separator=1
11270 ac_fs_accepts_drive_letter_prefix=0
11271 ac_fs_backslash_is_file_name_separator=0
11278 cat >>confdefs.h <<_ACEOF
11279 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11287 cat >>confdefs.h <<_ACEOF
11288 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11300 # for constant arguments. Useless!
11301 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11302 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11303 if test "${ac_cv_working_alloca_h+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 #include <alloca.h>
11316 char *p = (char *) alloca (2 * sizeof (int));
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>conftest.er1
11325 grep -v '^ *+' conftest.er1 >conftest.err
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try='test -z "$ac_c_werror_flag"
11331 || test ! -s conftest.err'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; } &&
11337 { ac_try='test -s conftest$ac_exeext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_working_alloca_h=yes
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_cv_working_alloca_h=no
11350 rm -f conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11353 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11354 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11355 if test $ac_cv_working_alloca_h = yes; then
11357 cat >>confdefs.h <<\_ACEOF
11358 #define HAVE_ALLOCA_H 1
11363 echo "$as_me:$LINENO: checking for alloca" >&5
11364 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11365 if test "${ac_cv_func_alloca_works+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11375 # define alloca __builtin_alloca
11378 # include <malloc.h>
11379 # define alloca _alloca
11382 # include <alloca.h>
11387 # ifndef alloca /* predefined by HP cc +Olibcalls */
11398 char *p = (char *) alloca (1);
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405 (eval $ac_link) 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag"
11413 || test ! -s conftest.err'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; } &&
11419 { ac_try='test -s conftest$ac_exeext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_func_alloca_works=yes
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_cv_func_alloca_works=no
11432 rm -f conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11435 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11436 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11438 if test $ac_cv_func_alloca_works = yes; then
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_ALLOCA 1
11445 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11446 # that cause trouble. Some versions do not even contain alloca or
11447 # contain a buggy version. If you still want to use their alloca,
11448 # use ar to extract alloca.o from them instead of compiling alloca.c.
11450 ALLOCA=alloca.$ac_objext
11452 cat >>confdefs.h <<\_ACEOF
11457 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11458 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11459 if test "${ac_cv_os_cray+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 #if defined(CRAY) && ! defined(CRAY2)
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476 $EGREP "webecray" >/dev/null 2>&1; then
11484 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11485 echo "${ECHO_T}$ac_cv_os_cray" >&6
11486 if test $ac_cv_os_cray = yes; then
11487 for ac_func in _getb67 GETB67 getb67; do
11488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11489 echo "$as_me:$LINENO: checking for $ac_func" >&5
11490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11491 if eval "test \"\${$as_ac_var+set}\" = set"; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11502 #define $ac_func innocuous_$ac_func
11504 /* System header to define __stub macros and hopefully few prototypes,
11505 which can conflict with char $ac_func (); below.
11506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11507 <limits.h> exists even on freestanding compilers. */
11510 # include <limits.h>
11512 # include <assert.h>
11517 /* Override any gcc2 internal prototype to avoid an error. */
11522 /* We use char because int might match the return type of a gcc2
11523 builtin and then its argument prototype would still apply. */
11525 /* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
11528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11531 char (*f) () = $ac_func;
11540 return f != $ac_func;
11545 rm -f conftest.$ac_objext conftest$ac_exeext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11547 (eval $ac_link) 2>conftest.er1
11549 grep -v '^ *+' conftest.er1 >conftest.err
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -z "$ac_c_werror_flag"
11555 || test ! -s conftest.err'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; } &&
11561 { ac_try='test -s conftest$ac_exeext'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
11567 eval "$as_ac_var=yes"
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 eval "$as_ac_var=no"
11574 rm -f conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11579 if test `eval echo '${'$as_ac_var'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define CRAY_STACKSEG_END $ac_func
11591 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11592 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11593 if test "${ac_cv_c_stack_direction+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 if test "$cross_compiling" = yes; then
11597 ac_cv_c_stack_direction=0
11599 cat >conftest.$ac_ext <<_ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11606 find_stack_direction ()
11608 static char *addr = 0;
11613 return find_stack_direction ();
11616 return (&dummy > addr) ? 1 : -1;
11622 exit (find_stack_direction () < 0);
11625 rm -f conftest$ac_exeext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_cv_c_stack_direction=1
11638 echo "$as_me: program exited with status $ac_status" >&5
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ( exit $ac_status )
11643 ac_cv_c_stack_direction=-1
11645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11648 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11649 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11651 cat >>confdefs.h <<_ACEOF
11652 #define STACK_DIRECTION $ac_cv_c_stack_direction
11663 if test $ac_cv_func_alloca_works = no; then
11667 # Define an additional variable used in the Makefile substitution.
11669 cat >conftest.$ac_ext <<_ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11676 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
11681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11682 $EGREP "Need own alloca" >/dev/null 2>&1; then
11693 for ac_func in atexit
11695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11696 echo "$as_me:$LINENO: checking for $ac_func" >&5
11697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11698 if eval "test \"\${$as_ac_var+set}\" = set"; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 cat >conftest.$ac_ext <<_ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11709 #define $ac_func innocuous_$ac_func
11711 /* System header to define __stub macros and hopefully few prototypes,
11712 which can conflict with char $ac_func (); below.
11713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11714 <limits.h> exists even on freestanding compilers. */
11717 # include <limits.h>
11719 # include <assert.h>
11724 /* Override any gcc2 internal prototype to avoid an error. */
11729 /* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11732 /* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11738 char (*f) () = $ac_func;
11747 return f != $ac_func;
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag"
11762 || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 eval "$as_ac_var=yes"
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11779 eval "$as_ac_var=no"
11781 rm -f conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
11784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11786 if test `eval echo '${'$as_ac_var'}'` = yes; then
11787 cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11793 "$ac_func.$ac_objext" | \
11794 *" $ac_func.$ac_objext" | \
11795 "$ac_func.$ac_objext "* | \
11796 *" $ac_func.$ac_objext "* ) ;;
11797 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11804 if test $ac_cv_func_atexit = no; then
11810 echo "$as_me:$LINENO: checking for mbstate_t" >&5
11811 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
11812 if test "${ac_cv_type_mbstate_t+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11822 # include <wchar.h>
11826 mbstate_t x; return sizeof x;
11831 rm -f conftest.$ac_objext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11833 (eval $ac_compile) 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 ac_cv_type_mbstate_t=yes
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_cv_type_mbstate_t=no
11860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
11863 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
11864 if test $ac_cv_type_mbstate_t = yes; then
11866 cat >>confdefs.h <<\_ACEOF
11867 #define HAVE_MBSTATE_T 1
11872 cat >>confdefs.h <<\_ACEOF
11873 #define mbstate_t int
11879 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
11880 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
11881 if test "${ac_cv_func_fnmatch_posix+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 # Some versions of Solaris, SCO, and the GNU C Library
11885 # have a broken or incompatible fnmatch.
11886 # So we run a test program. If we are cross-compiling, take no chance.
11887 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
11888 if test "$cross_compiling" = yes; then
11889 ac_cv_func_fnmatch_posix=cross
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11898 # include <stdlib.h>
11899 # include <fnmatch.h>
11900 # define y(a, b, c) (fnmatch (a, b, c) == 0)
11901 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
11907 (!(y ("a*", "abc", 0)
11908 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
11909 && y ("a\\\\bc", "abc", 0)
11910 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
11911 && y ("*x", ".x", 0)
11912 && n ("*x", ".x", FNM_PERIOD)
11918 rm -f conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 ac_cv_func_fnmatch_posix=yes
11931 echo "$as_me: program exited with status $ac_status" >&5
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ( exit $ac_status )
11936 ac_cv_func_fnmatch_posix=no
11938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11941 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
11942 echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6
11943 if test $ac_cv_func_fnmatch_posix = yes; then
11944 rm -f lib/fnmatch.h
11946 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11947 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11948 if test "${ac_cv_have_decl_getenv+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 cat >conftest.$ac_ext <<_ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11957 $ac_includes_default
11962 char *p = (char *) getenv;
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971 (eval $ac_compile) 2>conftest.er1
11973 grep -v '^ *+' conftest.er1 >conftest.err
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 ac_cv_have_decl_getenv=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_cv_have_decl_getenv=no
11998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12001 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12002 if test $ac_cv_have_decl_getenv = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005 #define HAVE_DECL_GETENV 1
12010 cat >>confdefs.h <<_ACEOF
12011 #define HAVE_DECL_GETENV 0
12022 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
12024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12025 echo "$as_me:$LINENO: checking for $ac_func" >&5
12026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12027 if eval "test \"\${$as_ac_var+set}\" = set"; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 cat >conftest.$ac_ext <<_ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12038 #define $ac_func innocuous_$ac_func
12040 /* System header to define __stub macros and hopefully few prototypes,
12041 which can conflict with char $ac_func (); below.
12042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043 <limits.h> exists even on freestanding compilers. */
12046 # include <limits.h>
12048 # include <assert.h>
12053 /* Override any gcc2 internal prototype to avoid an error. */
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12061 /* The GNU C library defines this for functions which it implements
12062 to always fail with ENOSYS. Some functions are actually named
12063 something starting with __ and the normal name is an alias. */
12064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12067 char (*f) () = $ac_func;
12076 return f != $ac_func;
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083 (eval $ac_link) 2>conftest.er1
12085 grep -v '^ *+' conftest.er1 >conftest.err
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 eval "$as_ac_var=no"
12110 rm -f conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12125 for ac_header in wchar.h wctype.h
12127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12129 echo "$as_me:$LINENO: checking for $ac_header" >&5
12130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12137 # Is the header compilable?
12138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 $ac_includes_default
12147 #include <$ac_header>
12149 rm -f conftest.$ac_objext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12151 (eval $ac_compile) 2>conftest.er1
12153 grep -v '^ *+' conftest.er1 >conftest.err
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -z "$ac_c_werror_flag"
12159 || test ! -s conftest.err'
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); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_header_compiler=yes
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_header_compiler=no
12178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12180 echo "${ECHO_T}$ac_header_compiler" >&6
12182 # Is the header present?
12183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12185 cat >conftest.$ac_ext <<_ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 #include <$ac_header>
12193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12196 grep -v '^ *+' conftest.er1 >conftest.err
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } >/dev/null; then
12201 if test -s conftest.err; then
12202 ac_cpp_err=$ac_c_preproc_warn_flag
12203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12210 if test -z "$ac_cpp_err"; then
12211 ac_header_preproc=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_header_preproc=no
12218 rm -f conftest.err conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12220 echo "${ECHO_T}$ac_header_preproc" >&6
12222 # So? What about this header?
12223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12229 ac_header_preproc=yes
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12246 ## ------------------------------ ##
12247 ## Report this to bug-cvs@gnu.org ##
12248 ## ------------------------------ ##
12251 sed "s/^/$as_me: WARNING: /" >&2
12254 echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 eval "$as_ac_Header=\$ac_header_preproc"
12261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12266 cat >>confdefs.h <<_ACEOF
12267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12275 "fnmatch.$ac_objext" | \
12276 *" fnmatch.$ac_objext" | \
12277 "fnmatch.$ac_objext "* | \
12278 *" fnmatch.$ac_objext "* ) ;;
12279 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
12282 FNMATCH_H=fnmatch.h
12287 if test $ac_cv_func_fnmatch_posix != yes; then
12289 cat >>confdefs.h <<\_ACEOF
12290 #define fnmatch posix_fnmatch
12298 for ac_func in gethostname
12300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12301 echo "$as_me:$LINENO: checking for $ac_func" >&5
12302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12303 if eval "test \"\${$as_ac_var+set}\" = set"; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 cat >conftest.$ac_ext <<_ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12314 #define $ac_func innocuous_$ac_func
12316 /* System header to define __stub macros and hopefully few prototypes,
12317 which can conflict with char $ac_func (); below.
12318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12319 <limits.h> exists even on freestanding compilers. */
12322 # include <limits.h>
12324 # include <assert.h>
12329 /* Override any gcc2 internal prototype to avoid an error. */
12334 /* We use char because int might match the return type of a gcc2
12335 builtin and then its argument prototype would still apply. */
12337 /* The GNU C library defines this for functions which it implements
12338 to always fail with ENOSYS. Some functions are actually named
12339 something starting with __ and the normal name is an alias. */
12340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12343 char (*f) () = $ac_func;
12352 return f != $ac_func;
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag"
12367 || test ! -s conftest.err'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest$ac_exeext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 eval "$as_ac_var=yes"
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 eval "$as_ac_var=no"
12386 rm -f conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12391 if test `eval echo '${'$as_ac_var'}'` = yes; then
12392 cat >>confdefs.h <<_ACEOF
12393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12398 "$ac_func.$ac_objext" | \
12399 *" $ac_func.$ac_objext" | \
12400 "$ac_func.$ac_objext "* | \
12401 *" $ac_func.$ac_objext "* ) ;;
12402 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12409 if test $ac_cv_func_gethostname = no; then
12412 for ac_func in uname
12414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12415 echo "$as_me:$LINENO: checking for $ac_func" >&5
12416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12417 if eval "test \"\${$as_ac_var+set}\" = set"; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 cat >conftest.$ac_ext <<_ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12428 #define $ac_func innocuous_$ac_func
12430 /* System header to define __stub macros and hopefully few prototypes,
12431 which can conflict with char $ac_func (); below.
12432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433 <limits.h> exists even on freestanding compilers. */
12436 # include <limits.h>
12438 # include <assert.h>
12443 /* Override any gcc2 internal prototype to avoid an error. */
12448 /* We use char because int might match the return type of a gcc2
12449 builtin and then its argument prototype would still apply. */
12451 /* The GNU C library defines this for functions which it implements
12452 to always fail with ENOSYS. Some functions are actually named
12453 something starting with __ and the normal name is an alias. */
12454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12457 char (*f) () = $ac_func;
12466 return f != $ac_func;
12471 rm -f conftest.$ac_objext conftest$ac_exeext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473 (eval $ac_link) 2>conftest.er1
12475 grep -v '^ *+' conftest.er1 >conftest.err
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest$ac_exeext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 eval "$as_ac_var=yes"
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12498 eval "$as_ac_var=no"
12500 rm -f conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12505 if test `eval echo '${'$as_ac_var'}'` = yes; then
12506 cat >>confdefs.h <<_ACEOF
12507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12517 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
12518 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
12519 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 cat >conftest.$ac_ext <<_ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 $ac_includes_default
12532 #ifndef clearerr_unlocked
12533 char *p = (char *) clearerr_unlocked;
12540 rm -f conftest.$ac_objext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_have_decl_clearerr_unlocked=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 ac_cv_have_decl_clearerr_unlocked=no
12569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
12572 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
12573 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
12575 cat >>confdefs.h <<_ACEOF
12576 #define HAVE_DECL_CLEARERR_UNLOCKED 1
12581 cat >>confdefs.h <<_ACEOF
12582 #define HAVE_DECL_CLEARERR_UNLOCKED 0
12591 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12592 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12593 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12606 #ifndef feof_unlocked
12607 char *p = (char *) feof_unlocked;
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_c_werror_flag"
12624 || test ! -s conftest.err'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_cv_have_decl_feof_unlocked=yes
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12641 ac_cv_have_decl_feof_unlocked=no
12643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12646 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12647 if test $ac_cv_have_decl_feof_unlocked = yes; then
12649 cat >>confdefs.h <<_ACEOF
12650 #define HAVE_DECL_FEOF_UNLOCKED 1
12655 cat >>confdefs.h <<_ACEOF
12656 #define HAVE_DECL_FEOF_UNLOCKED 0
12665 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
12666 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
12667 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 cat >conftest.$ac_ext <<_ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 $ac_includes_default
12680 #ifndef ferror_unlocked
12681 char *p = (char *) ferror_unlocked;
12688 rm -f conftest.$ac_objext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest.$ac_objext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_have_decl_ferror_unlocked=yes
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ac_cv_have_decl_ferror_unlocked=no
12717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12719 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
12720 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
12721 if test $ac_cv_have_decl_ferror_unlocked = yes; then
12723 cat >>confdefs.h <<_ACEOF
12724 #define HAVE_DECL_FERROR_UNLOCKED 1
12729 cat >>confdefs.h <<_ACEOF
12730 #define HAVE_DECL_FERROR_UNLOCKED 0
12739 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
12740 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
12741 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 cat >conftest.$ac_ext <<_ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12754 #ifndef fflush_unlocked
12755 char *p = (char *) fflush_unlocked;
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>conftest.er1
12766 grep -v '^ *+' conftest.er1 >conftest.err
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_have_decl_fflush_unlocked=yes
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_cv_have_decl_fflush_unlocked=no
12791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12793 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
12794 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
12795 if test $ac_cv_have_decl_fflush_unlocked = yes; then
12797 cat >>confdefs.h <<_ACEOF
12798 #define HAVE_DECL_FFLUSH_UNLOCKED 1
12803 cat >>confdefs.h <<_ACEOF
12804 #define HAVE_DECL_FFLUSH_UNLOCKED 0
12813 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12814 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
12815 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 cat >conftest.$ac_ext <<_ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12824 $ac_includes_default
12828 #ifndef fgets_unlocked
12829 char *p = (char *) fgets_unlocked;
12836 rm -f conftest.$ac_objext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838 (eval $ac_compile) 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest.$ac_objext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_have_decl_fgets_unlocked=yes
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_cv_have_decl_fgets_unlocked=no
12865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12867 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12868 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
12869 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12871 cat >>confdefs.h <<_ACEOF
12872 #define HAVE_DECL_FGETS_UNLOCKED 1
12877 cat >>confdefs.h <<_ACEOF
12878 #define HAVE_DECL_FGETS_UNLOCKED 0
12887 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
12888 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
12889 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 $ac_includes_default
12902 #ifndef fputc_unlocked
12903 char *p = (char *) fputc_unlocked;
12910 rm -f conftest.$ac_objext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912 (eval $ac_compile) 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag"
12920 || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest.$ac_objext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_have_decl_fputc_unlocked=yes
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12937 ac_cv_have_decl_fputc_unlocked=no
12939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12941 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
12942 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
12943 if test $ac_cv_have_decl_fputc_unlocked = yes; then
12945 cat >>confdefs.h <<_ACEOF
12946 #define HAVE_DECL_FPUTC_UNLOCKED 1
12951 cat >>confdefs.h <<_ACEOF
12952 #define HAVE_DECL_FPUTC_UNLOCKED 0
12961 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
12962 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
12963 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 $ac_includes_default
12976 #ifndef fputs_unlocked
12977 char *p = (char *) fputs_unlocked;
12984 rm -f conftest.$ac_objext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>conftest.er1
12988 grep -v '^ *+' conftest.er1 >conftest.err
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_c_werror_flag"
12994 || test ! -s conftest.err'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; } &&
13000 { ac_try='test -s conftest.$ac_objext'
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 ac_cv_have_decl_fputs_unlocked=yes
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 ac_cv_have_decl_fputs_unlocked=no
13013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
13016 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
13017 if test $ac_cv_have_decl_fputs_unlocked = yes; then
13019 cat >>confdefs.h <<_ACEOF
13020 #define HAVE_DECL_FPUTS_UNLOCKED 1
13025 cat >>confdefs.h <<_ACEOF
13026 #define HAVE_DECL_FPUTS_UNLOCKED 0
13035 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
13036 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
13037 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 $ac_includes_default
13050 #ifndef fread_unlocked
13051 char *p = (char *) fread_unlocked;
13058 rm -f conftest.$ac_objext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13060 (eval $ac_compile) 2>conftest.er1
13062 grep -v '^ *+' conftest.er1 >conftest.err
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -z "$ac_c_werror_flag"
13068 || test ! -s conftest.err'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try='test -s conftest.$ac_objext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_have_decl_fread_unlocked=yes
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ac_cv_have_decl_fread_unlocked=no
13087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13089 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
13090 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
13091 if test $ac_cv_have_decl_fread_unlocked = yes; then
13093 cat >>confdefs.h <<_ACEOF
13094 #define HAVE_DECL_FREAD_UNLOCKED 1
13099 cat >>confdefs.h <<_ACEOF
13100 #define HAVE_DECL_FREAD_UNLOCKED 0
13109 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
13110 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
13111 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 cat >conftest.$ac_ext <<_ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13120 $ac_includes_default
13124 #ifndef fwrite_unlocked
13125 char *p = (char *) fwrite_unlocked;
13132 rm -f conftest.$ac_objext
13133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13134 (eval $ac_compile) 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag"
13142 || test ! -s conftest.err'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; } &&
13148 { ac_try='test -s conftest.$ac_objext'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_have_decl_fwrite_unlocked=yes
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_cv_have_decl_fwrite_unlocked=no
13161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13163 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
13164 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
13165 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define HAVE_DECL_FWRITE_UNLOCKED 1
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_DECL_FWRITE_UNLOCKED 0
13183 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13184 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13185 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 $ac_includes_default
13198 #ifndef getc_unlocked
13199 char *p = (char *) getc_unlocked;
13206 rm -f conftest.$ac_objext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13208 (eval $ac_compile) 2>conftest.er1
13210 grep -v '^ *+' conftest.er1 >conftest.err
13212 cat conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -z "$ac_c_werror_flag"
13216 || test ! -s conftest.err'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest.$ac_objext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_cv_have_decl_getc_unlocked=yes
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ac_cv_have_decl_getc_unlocked=no
13235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13237 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13238 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13239 if test $ac_cv_have_decl_getc_unlocked = yes; then
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_DECL_GETC_UNLOCKED 1
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_DECL_GETC_UNLOCKED 0
13257 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
13258 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
13259 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 cat >conftest.$ac_ext <<_ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13268 $ac_includes_default
13272 #ifndef getchar_unlocked
13273 char *p = (char *) getchar_unlocked;
13280 rm -f conftest.$ac_objext
13281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13282 (eval $ac_compile) 2>conftest.er1
13284 grep -v '^ *+' conftest.er1 >conftest.err
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -z "$ac_c_werror_flag"
13290 || test ! -s conftest.err'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest.$ac_objext'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_have_decl_getchar_unlocked=yes
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 ac_cv_have_decl_getchar_unlocked=no
13309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
13312 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
13313 if test $ac_cv_have_decl_getchar_unlocked = yes; then
13315 cat >>confdefs.h <<_ACEOF
13316 #define HAVE_DECL_GETCHAR_UNLOCKED 1
13321 cat >>confdefs.h <<_ACEOF
13322 #define HAVE_DECL_GETCHAR_UNLOCKED 0
13331 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
13332 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
13333 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 cat >conftest.$ac_ext <<_ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 $ac_includes_default
13346 #ifndef putc_unlocked
13347 char *p = (char *) putc_unlocked;
13354 rm -f conftest.$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>conftest.er1
13358 grep -v '^ *+' conftest.er1 >conftest.err
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_cv_have_decl_putc_unlocked=yes
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13381 ac_cv_have_decl_putc_unlocked=no
13383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13385 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
13386 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
13387 if test $ac_cv_have_decl_putc_unlocked = yes; then
13389 cat >>confdefs.h <<_ACEOF
13390 #define HAVE_DECL_PUTC_UNLOCKED 1
13395 cat >>confdefs.h <<_ACEOF
13396 #define HAVE_DECL_PUTC_UNLOCKED 0
13405 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
13406 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
13407 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 $ac_includes_default
13420 #ifndef putchar_unlocked
13421 char *p = (char *) putchar_unlocked;
13428 rm -f conftest.$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>conftest.er1
13432 grep -v '^ *+' conftest.er1 >conftest.err
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -z "$ac_c_werror_flag"
13438 || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_cv_have_decl_putchar_unlocked=yes
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13455 ac_cv_have_decl_putchar_unlocked=no
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13459 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
13460 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
13461 if test $ac_cv_have_decl_putchar_unlocked = yes; then
13463 cat >>confdefs.h <<_ACEOF
13464 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
13469 cat >>confdefs.h <<_ACEOF
13470 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
13530 for ac_func in $gl_func_list
13532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13533 echo "$as_me:$LINENO: checking for $ac_func" >&5
13534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13535 if eval "test \"\${$as_ac_var+set}\" = set"; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13546 #define $ac_func innocuous_$ac_func
13548 /* System header to define __stub macros and hopefully few prototypes,
13549 which can conflict with char $ac_func (); below.
13550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13551 <limits.h> exists even on freestanding compilers. */
13554 # include <limits.h>
13556 # include <assert.h>
13561 /* Override any gcc2 internal prototype to avoid an error. */
13566 /* We use char because int might match the return type of a gcc2
13567 builtin and then its argument prototype would still apply. */
13569 /* The GNU C library defines this for functions which it implements
13570 to always fail with ENOSYS. Some functions are actually named
13571 something starting with __ and the normal name is an alias. */
13572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13575 char (*f) () = $ac_func;
13584 return f != $ac_func;
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13591 (eval $ac_link) 2>conftest.er1
13593 grep -v '^ *+' conftest.er1 >conftest.err
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -z "$ac_c_werror_flag"
13599 || test ! -s conftest.err'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest$ac_exeext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 eval "$as_ac_var=yes"
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 eval "$as_ac_var=no"
13618 rm -f conftest.err conftest.$ac_objext \
13619 conftest$ac_exeext conftest.$ac_ext
13621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13623 if test `eval echo '${'$as_ac_var'}'` = yes; then
13624 cat >>confdefs.h <<_ACEOF
13625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13636 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13637 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13638 if test "${ac_cv_struct_tm+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 #include <sys/types.h>
13653 struct tm *tp; tp->tm_sec;
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>conftest.er1
13662 grep -v '^ *+' conftest.er1 >conftest.err
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -z "$ac_c_werror_flag"
13668 || test ! -s conftest.err'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_cv_struct_tm=time.h
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13685 ac_cv_struct_tm=sys/time.h
13687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13689 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13690 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13691 if test $ac_cv_struct_tm = sys/time.h; then
13693 cat >>confdefs.h <<\_ACEOF
13694 #define TM_IN_SYS_TIME 1
13700 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
13701 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
13702 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 cat >conftest.$ac_ext <<_ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13716 static struct tm ac_aggr;
13717 if (ac_aggr.tm_gmtoff)
13723 rm -f conftest.$ac_objext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 (eval $ac_compile) 2>conftest.er1
13727 grep -v '^ *+' conftest.er1 >conftest.err
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -z "$ac_c_werror_flag"
13733 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest.$ac_objext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_member_struct_tm_tm_gmtoff=yes
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 cat >conftest.$ac_ext <<_ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13761 static struct tm ac_aggr;
13762 if (sizeof ac_aggr.tm_gmtoff)
13768 rm -f conftest.$ac_objext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag"
13778 || test ! -s conftest.err'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_member_struct_tm_tm_gmtoff=yes
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_cv_member_struct_tm_tm_gmtoff=no
13797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
13802 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
13803 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
13805 cat >>confdefs.h <<\_ACEOF
13806 #define HAVE_TM_GMTOFF 1
13814 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
13815 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
13816 if test "${gl_cv_func_tzset_clobber+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 if test "$cross_compiling" = yes; then
13821 gl_cv_func_tzset_clobber=yes
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13830 #if TIME_WITH_SYS_TIME
13831 # include <sys/time.h>
13834 # if HAVE_SYS_TIME_H
13835 # include <sys/time.h>
13840 #include <stdlib.h>
13845 time_t t1 = 853958121;
13847 putenv ("TZ=GMT0");
13848 p = localtime (&t1);
13850 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
13852 exit (p->tm_year != s.tm_year
13853 || p->tm_mon != s.tm_mon
13854 || p->tm_mday != s.tm_mday
13855 || p->tm_hour != s.tm_hour
13856 || p->tm_min != s.tm_min
13857 || p->tm_sec != s.tm_sec);
13861 rm -f conftest$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863 (eval $ac_link) 2>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 gl_cv_func_tzset_clobber=no
13874 echo "$as_me: program exited with status $ac_status" >&5
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13878 ( exit $ac_status )
13879 gl_cv_func_tzset_clobber=yes
13881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13884 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
13885 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
13888 cat >>confdefs.h <<\_ACEOF
13889 #define HAVE_RUN_TZSET_TEST 1
13893 if test $gl_cv_func_tzset_clobber = yes; then
13896 "gettimeofday.$ac_objext" | \
13897 *" gettimeofday.$ac_objext" | \
13898 "gettimeofday.$ac_objext "* | \
13899 *" gettimeofday.$ac_objext "* ) ;;
13900 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
13904 cat >>confdefs.h <<\_ACEOF
13905 #define gmtime rpl_gmtime
13909 cat >>confdefs.h <<\_ACEOF
13910 #define localtime rpl_localtime
13916 cat >>confdefs.h <<\_ACEOF
13917 #define tzset rpl_tzset
13921 cat >>confdefs.h <<\_ACEOF
13922 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
13930 for ac_func in strftime
13932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13933 echo "$as_me:$LINENO: checking for $ac_func" >&5
13934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13935 if eval "test \"\${$as_ac_var+set}\" = set"; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 cat >conftest.$ac_ext <<_ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13946 #define $ac_func innocuous_$ac_func
13948 /* System header to define __stub macros and hopefully few prototypes,
13949 which can conflict with char $ac_func (); below.
13950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13951 <limits.h> exists even on freestanding compilers. */
13954 # include <limits.h>
13956 # include <assert.h>
13961 /* Override any gcc2 internal prototype to avoid an error. */
13966 /* We use char because int might match the return type of a gcc2
13967 builtin and then its argument prototype would still apply. */
13969 /* The GNU C library defines this for functions which it implements
13970 to always fail with ENOSYS. Some functions are actually named
13971 something starting with __ and the normal name is an alias. */
13972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13975 char (*f) () = $ac_func;
13984 return f != $ac_func;
13989 rm -f conftest.$ac_objext conftest$ac_exeext
13990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13991 (eval $ac_link) 2>conftest.er1
13993 grep -v '^ *+' conftest.er1 >conftest.err
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } &&
13998 { ac_try='test -z "$ac_c_werror_flag"
13999 || test ! -s conftest.err'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest$ac_exeext'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 eval "$as_ac_var=yes"
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14016 eval "$as_ac_var=no"
14018 rm -f conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14023 if test `eval echo '${'$as_ac_var'}'` = yes; then
14024 cat >>confdefs.h <<_ACEOF
14025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14029 # strftime is in -lintl on SCO UNIX.
14030 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14031 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14032 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lintl $LIBS"
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14044 /* Override any gcc2 internal prototype to avoid an error. */
14048 /* We use char because int might match the return type of a gcc2
14049 builtin and then its argument prototype would still apply. */
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14061 (eval $ac_link) 2>conftest.er1
14063 grep -v '^ *+' conftest.er1 >conftest.err
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -z "$ac_c_werror_flag"
14069 || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest$ac_exeext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_cv_lib_intl_strftime=yes
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_cv_lib_intl_strftime=no
14088 rm -f conftest.err conftest.$ac_objext \
14089 conftest$ac_exeext conftest.$ac_ext
14090 LIBS=$ac_check_lib_save_LIBS
14092 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14093 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14094 if test $ac_cv_lib_intl_strftime = yes; then
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_STRFTIME 1
14099 LIBS="-lintl $LIBS"
14114 for ac_func in tzset
14116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14117 echo "$as_me:$LINENO: checking for $ac_func" >&5
14118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14119 if eval "test \"\${$as_ac_var+set}\" = set"; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14130 #define $ac_func innocuous_$ac_func
14132 /* System header to define __stub macros and hopefully few prototypes,
14133 which can conflict with char $ac_func (); below.
14134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14135 <limits.h> exists even on freestanding compilers. */
14138 # include <limits.h>
14140 # include <assert.h>
14145 /* Override any gcc2 internal prototype to avoid an error. */
14150 /* We use char because int might match the return type of a gcc2
14151 builtin and then its argument prototype would still apply. */
14153 /* The GNU C library defines this for functions which it implements
14154 to always fail with ENOSYS. Some functions are actually named
14155 something starting with __ and the normal name is an alias. */
14156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14159 char (*f) () = $ac_func;
14168 return f != $ac_func;
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175 (eval $ac_link) 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_c_werror_flag"
14183 || test ! -s conftest.err'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 eval "$as_ac_var=yes"
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 eval "$as_ac_var=no"
14202 rm -f conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14207 if test `eval echo '${'$as_ac_var'}'` = yes; then
14208 cat >>confdefs.h <<_ACEOF
14209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14216 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
14217 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14218 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14219 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 cat >conftest.$ac_ext <<_ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 #include <sys/types.h>
14229 #include <$ac_cv_struct_tm>
14235 static struct tm ac_aggr;
14236 if (ac_aggr.tm_zone)
14242 rm -f conftest.$ac_objext
14243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14244 (eval $ac_compile) 2>conftest.er1
14246 grep -v '^ *+' conftest.er1 >conftest.err
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag"
14252 || test ! -s conftest.err'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest.$ac_objext'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 ac_cv_member_struct_tm_tm_zone=yes
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 cat >conftest.$ac_ext <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include <sys/types.h>
14276 #include <$ac_cv_struct_tm>
14282 static struct tm ac_aggr;
14283 if (sizeof ac_aggr.tm_zone)
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291 (eval $ac_compile) 2>conftest.er1
14293 grep -v '^ *+' conftest.er1 >conftest.err
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -z "$ac_c_werror_flag"
14299 || test ! -s conftest.err'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; } &&
14305 { ac_try='test -s conftest.$ac_objext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_member_struct_tm_tm_zone=yes
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 ac_cv_member_struct_tm_tm_zone=no
14318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14322 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14323 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14324 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14326 cat >>confdefs.h <<_ACEOF
14327 #define HAVE_STRUCT_TM_TM_ZONE 1
14333 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14335 cat >>confdefs.h <<\_ACEOF
14336 #define HAVE_TM_ZONE 1
14340 echo "$as_me:$LINENO: checking for tzname" >&5
14341 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14342 if test "${ac_cv_var_tzname+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 cat >conftest.$ac_ext <<_ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14352 #ifndef tzname /* For SGI. */
14353 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14364 rm -f conftest.$ac_objext conftest$ac_exeext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14366 (eval $ac_link) 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest$ac_exeext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_cv_var_tzname=yes
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ac_cv_var_tzname=no
14393 rm -f conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14397 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14398 if test $ac_cv_var_tzname = yes; then
14400 cat >>confdefs.h <<\_ACEOF
14401 #define HAVE_TZNAME 1
14410 for ac_func in mblen mbrlen
14412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14413 echo "$as_me:$LINENO: checking for $ac_func" >&5
14414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14415 if eval "test \"\${$as_ac_var+set}\" = set"; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14426 #define $ac_func innocuous_$ac_func
14428 /* System header to define __stub macros and hopefully few prototypes,
14429 which can conflict with char $ac_func (); below.
14430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14431 <limits.h> exists even on freestanding compilers. */
14434 # include <limits.h>
14436 # include <assert.h>
14441 /* Override any gcc2 internal prototype to avoid an error. */
14446 /* We use char because int might match the return type of a gcc2
14447 builtin and then its argument prototype would still apply. */
14449 /* The GNU C library defines this for functions which it implements
14450 to always fail with ENOSYS. Some functions are actually named
14451 something starting with __ and the normal name is an alias. */
14452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14455 char (*f) () = $ac_func;
14464 return f != $ac_func;
14469 rm -f conftest.$ac_objext conftest$ac_exeext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14471 (eval $ac_link) 2>conftest.er1
14473 grep -v '^ *+' conftest.er1 >conftest.err
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -z "$ac_c_werror_flag"
14479 || test ! -s conftest.err'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; } &&
14485 { ac_try='test -s conftest$ac_exeext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 eval "$as_ac_var=yes"
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 eval "$as_ac_var=no"
14498 rm -f conftest.err conftest.$ac_objext \
14499 conftest$ac_exeext conftest.$ac_ext
14501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14503 if test `eval echo '${'$as_ac_var'}'` = yes; then
14504 cat >>confdefs.h <<_ACEOF
14505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14511 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14512 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14513 if test "${ac_cv_type_mbstate_t+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 $ac_includes_default
14523 # include <wchar.h>
14527 mbstate_t x; return sizeof x;
14532 rm -f conftest.$ac_objext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534 (eval $ac_compile) 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag"
14542 || test ! -s conftest.err'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_type_mbstate_t=yes
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_cv_type_mbstate_t=no
14561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14563 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14564 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14565 if test $ac_cv_type_mbstate_t = yes; then
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE_MBSTATE_T 1
14573 cat >>confdefs.h <<\_ACEOF
14574 #define mbstate_t int
14591 cat >>confdefs.h <<\_ACEOF
14592 #define my_strftime nstrftime
14598 for ac_func in memmove
14600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14601 echo "$as_me:$LINENO: checking for $ac_func" >&5
14602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14603 if eval "test \"\${$as_ac_var+set}\" = set"; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14614 #define $ac_func innocuous_$ac_func
14616 /* System header to define __stub macros and hopefully few prototypes,
14617 which can conflict with char $ac_func (); below.
14618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14619 <limits.h> exists even on freestanding compilers. */
14622 # include <limits.h>
14624 # include <assert.h>
14629 /* Override any gcc2 internal prototype to avoid an error. */
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14637 /* The GNU C library defines this for functions which it implements
14638 to always fail with ENOSYS. Some functions are actually named
14639 something starting with __ and the normal name is an alias. */
14640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14643 char (*f) () = $ac_func;
14652 return f != $ac_func;
14657 rm -f conftest.$ac_objext conftest$ac_exeext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14659 (eval $ac_link) 2>conftest.er1
14661 grep -v '^ *+' conftest.er1 >conftest.err
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -z "$ac_c_werror_flag"
14667 || test ! -s conftest.err'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try='test -s conftest$ac_exeext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 eval "$as_ac_var=yes"
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 eval "$as_ac_var=no"
14686 rm -f conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14691 if test `eval echo '${'$as_ac_var'}'` = yes; then
14692 cat >>confdefs.h <<_ACEOF
14693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14698 "$ac_func.$ac_objext" | \
14699 *" $ac_func.$ac_objext" | \
14700 "$ac_func.$ac_objext "* | \
14701 *" $ac_func.$ac_objext "* ) ;;
14702 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14709 if test $ac_cv_func_memmove = no; then
14718 for ac_header in stdlib.h sys/time.h unistd.h
14720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo "$as_me:$LINENO: checking for $ac_header" >&5
14723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730 # Is the header compilable?
14731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 $ac_includes_default
14740 #include <$ac_header>
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1 >conftest.err
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_header_compiler=no
14771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773 echo "${ECHO_T}$ac_header_compiler" >&6
14775 # Is the header present?
14776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <$ac_header>
14786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } >/dev/null; then
14794 if test -s conftest.err; then
14795 ac_cpp_err=$ac_c_preproc_warn_flag
14796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14803 if test -z "$ac_cpp_err"; then
14804 ac_header_preproc=yes
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_header_preproc=no
14811 rm -f conftest.err conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813 echo "${ECHO_T}$ac_header_preproc" >&6
14815 # So? What about this header?
14816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14839 ## ------------------------------ ##
14840 ## Report this to bug-cvs@gnu.org ##
14841 ## ------------------------------ ##
14844 sed "s/^/$as_me: WARNING: /" >&2
14847 echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 eval "$as_ac_Header=\$ac_header_preproc"
14854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14859 cat >>confdefs.h <<_ACEOF
14860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14868 for ac_func in alarm
14870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14871 echo "$as_me:$LINENO: checking for $ac_func" >&5
14872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14873 if eval "test \"\${$as_ac_var+set}\" = set"; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 cat >conftest.$ac_ext <<_ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14884 #define $ac_func innocuous_$ac_func
14886 /* System header to define __stub macros and hopefully few prototypes,
14887 which can conflict with char $ac_func (); below.
14888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14889 <limits.h> exists even on freestanding compilers. */
14892 # include <limits.h>
14894 # include <assert.h>
14899 /* Override any gcc2 internal prototype to avoid an error. */
14904 /* We use char because int might match the return type of a gcc2
14905 builtin and then its argument prototype would still apply. */
14907 /* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14913 char (*f) () = $ac_func;
14922 return f != $ac_func;
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14929 (eval $ac_link) 2>conftest.er1
14931 grep -v '^ *+' conftest.er1 >conftest.err
14933 cat conftest.err >&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } &&
14936 { ac_try='test -z "$ac_c_werror_flag"
14937 || test ! -s conftest.err'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; } &&
14943 { ac_try='test -s conftest$ac_exeext'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 eval "$as_ac_var=yes"
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 eval "$as_ac_var=no"
14956 rm -f conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14961 if test `eval echo '${'$as_ac_var'}'` = yes; then
14962 cat >>confdefs.h <<_ACEOF
14963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14969 echo "$as_me:$LINENO: checking for working mktime" >&5
14970 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14971 if test "${ac_cv_func_working_mktime+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 if test "$cross_compiling" = yes; then
14975 ac_cv_func_working_mktime=no
14977 cat >conftest.$ac_ext <<_ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 /* Test program from Paul Eggert and Tony Leneis. */
14984 #if TIME_WITH_SYS_TIME
14985 # include <sys/time.h>
14988 # if HAVE_SYS_TIME_H
14989 # include <sys/time.h>
14996 # include <stdlib.h>
15000 # include <unistd.h>
15004 # define alarm(X) /* empty */
15007 /* Work around redefinition to rpl_putenv by other config tests. */
15010 static time_t time_t_max;
15011 static time_t time_t_min;
15013 /* Values we'll use to set the TZ environment variable. */
15014 static char *tz_strings[] = {
15015 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15016 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15018 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15020 /* Fail if mktime fails to convert a date in the spring-forward gap.
15021 Based on a problem report from Andreas Jaeger. */
15023 spring_forward_gap ()
15025 /* glibc (up to about 1998-10-07) failed this test. */
15028 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15029 instead of "TZ=America/Vancouver" in order to detect the bug even
15030 on systems that don't support the Olson extension, or don't have the
15031 full zoneinfo tables installed. */
15032 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15041 if (mktime (&tm) == (time_t)-1)
15050 if ((lt = localtime (&now)) && mktime (lt) != now)
15058 mktime_test1 (now);
15059 mktime_test1 ((time_t) (time_t_max - now));
15060 mktime_test1 ((time_t) (time_t_min + now));
15066 /* Based on code from Ariel Faigon. */
15076 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15086 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15087 now = mktime (&tm);
15088 if (now != (time_t) -1)
15090 struct tm *lt = localtime (&now);
15092 && lt->tm_year == tm.tm_year
15093 && lt->tm_mon == tm.tm_mon
15094 && lt->tm_mday == tm.tm_mday
15095 && lt->tm_hour == tm.tm_hour
15096 && lt->tm_min == tm.tm_min
15097 && lt->tm_sec == tm.tm_sec
15098 && lt->tm_yday == tm.tm_yday
15099 && lt->tm_wday == tm.tm_wday
15100 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15101 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15112 /* This test makes some buggy mktime implementations loop.
15113 Give up after 60 seconds; a mktime slower than that
15114 isn't worth using anyway. */
15117 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15120 if ((time_t) -1 < 0)
15121 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15123 delta = time_t_max / 997; /* a suitable prime number */
15124 for (i = 0; i < N_STRINGS; i++)
15127 putenv (tz_strings[i]);
15129 for (t = 0; t <= time_t_max - delta; t += delta)
15131 mktime_test ((time_t) 1);
15132 mktime_test ((time_t) (60 * 60));
15133 mktime_test ((time_t) (60 * 60 * 24));
15135 for (j = 1; 0 < j; j *= 2)
15137 bigtime_test (j - 1);
15140 spring_forward_gap ();
15144 rm -f conftest$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146 (eval $ac_link) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 ac_cv_func_working_mktime=yes
15157 echo "$as_me: program exited with status $ac_status" >&5
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ( exit $ac_status )
15162 ac_cv_func_working_mktime=no
15164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15167 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15168 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15169 if test $ac_cv_func_working_mktime = no; then
15171 "mktime.$ac_objext" | \
15172 *" mktime.$ac_objext" | \
15173 "mktime.$ac_objext "* | \
15174 *" mktime.$ac_objext "* ) ;;
15175 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15182 if test $ac_cv_func_working_mktime = no; then
15184 cat >>confdefs.h <<\_ACEOF
15185 #define mktime rpl_mktime
15192 nanosleep_save_libs=$LIBS
15194 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
15195 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
15196 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15197 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15198 if test "${ac_cv_search_nanosleep+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 ac_func_search_save_LIBS=$LIBS
15202 ac_cv_search_nanosleep=no
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15210 /* Override any gcc2 internal prototype to avoid an error. */
15214 /* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227 (eval $ac_link) 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -z "$ac_c_werror_flag"
15235 || test ! -s conftest.err'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 ac_cv_search_nanosleep="none required"
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15253 rm -f conftest.err conftest.$ac_objext \
15254 conftest$ac_exeext conftest.$ac_ext
15255 if test "$ac_cv_search_nanosleep" = no; then
15256 for ac_lib in rt posix4; do
15257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15258 cat >conftest.$ac_ext <<_ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h. */
15265 /* Override any gcc2 internal prototype to avoid an error. */
15269 /* We use char because int might match the return type of a gcc2
15270 builtin and then its argument prototype would still apply. */
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15282 (eval $ac_link) 2>conftest.er1
15284 grep -v '^ *+' conftest.er1 >conftest.err
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_c_werror_flag"
15290 || test ! -s conftest.err'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try='test -s conftest$ac_exeext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_cv_search_nanosleep="-l$ac_lib"
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15309 rm -f conftest.err conftest.$ac_objext \
15310 conftest$ac_exeext conftest.$ac_ext
15313 LIBS=$ac_func_search_save_LIBS
15315 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15316 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15317 if test "$ac_cv_search_nanosleep" != no; then
15318 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15319 test "$ac_cv_search_nanosleep" = "none required" ||
15320 LIB_NANOSLEEP=$ac_cv_search_nanosleep
15325 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
15326 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
15327 if test "${jm_cv_func_nanosleep_works+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 if test "$cross_compiling" = yes; then
15340 jm_cv_func_nanosleep_works=no
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15349 # if TIME_WITH_SYS_TIME
15350 # include <sys/time.h>
15353 # if HAVE_SYS_TIME_H
15354 # include <sys/time.h>
15363 struct timespec ts_sleep, ts_remaining;
15364 ts_sleep.tv_sec = 0;
15365 ts_sleep.tv_nsec = 1;
15366 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
15370 rm -f conftest$ac_exeext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15372 (eval $ac_link) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 jm_cv_func_nanosleep_works=yes
15383 echo "$as_me: program exited with status $ac_status" >&5
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ( exit $ac_status )
15388 jm_cv_func_nanosleep_works=no
15390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15394 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
15395 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
15396 if test $jm_cv_func_nanosleep_works = no; then
15398 "nanosleep.$ac_objext" | \
15399 *" nanosleep.$ac_objext" | \
15400 "nanosleep.$ac_objext "* | \
15401 *" nanosleep.$ac_objext "* ) ;;
15402 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
15406 cat >>confdefs.h <<\_ACEOF
15407 #define nanosleep rpl_nanosleep
15421 LIBS=$nanosleep_save_libs
15425 for ac_func in strerror
15427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15428 echo "$as_me:$LINENO: checking for $ac_func" >&5
15429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15430 if eval "test \"\${$as_ac_var+set}\" = set"; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 cat >conftest.$ac_ext <<_ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15441 #define $ac_func innocuous_$ac_func
15443 /* System header to define __stub macros and hopefully few prototypes,
15444 which can conflict with char $ac_func (); below.
15445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15446 <limits.h> exists even on freestanding compilers. */
15449 # include <limits.h>
15451 # include <assert.h>
15456 /* Override any gcc2 internal prototype to avoid an error. */
15461 /* We use char because int might match the return type of a gcc2
15462 builtin and then its argument prototype would still apply. */
15464 /* The GNU C library defines this for functions which it implements
15465 to always fail with ENOSYS. Some functions are actually named
15466 something starting with __ and the normal name is an alias. */
15467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15470 char (*f) () = $ac_func;
15479 return f != $ac_func;
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15486 (eval $ac_link) 2>conftest.er1
15488 grep -v '^ *+' conftest.er1 >conftest.err
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -z "$ac_c_werror_flag"
15494 || test ! -s conftest.err'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest$ac_exeext'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 eval "$as_ac_var=yes"
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 eval "$as_ac_var=no"
15513 rm -f conftest.err conftest.$ac_objext \
15514 conftest$ac_exeext conftest.$ac_ext
15516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15518 if test `eval echo '${'$as_ac_var'}'` = yes; then
15519 cat >>confdefs.h <<_ACEOF
15520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15525 "$ac_func.$ac_objext" | \
15526 *" $ac_func.$ac_objext" | \
15527 "$ac_func.$ac_objext "* | \
15528 *" $ac_func.$ac_objext "* ) ;;
15529 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15536 if test $ac_cv_func_strerror = no; then
15544 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
15545 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
15546 if test "${gl_cv_func_tzset_clobber+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 if test "$cross_compiling" = yes; then
15551 gl_cv_func_tzset_clobber=yes
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15560 #if TIME_WITH_SYS_TIME
15561 # include <sys/time.h>
15564 # if HAVE_SYS_TIME_H
15565 # include <sys/time.h>
15570 #include <stdlib.h>
15575 time_t t1 = 853958121;
15577 putenv ("TZ=GMT0");
15578 p = localtime (&t1);
15580 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
15582 exit (p->tm_year != s.tm_year
15583 || p->tm_mon != s.tm_mon
15584 || p->tm_mday != s.tm_mday
15585 || p->tm_hour != s.tm_hour
15586 || p->tm_min != s.tm_min
15587 || p->tm_sec != s.tm_sec);
15591 rm -f conftest$ac_exeext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593 (eval $ac_link) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 gl_cv_func_tzset_clobber=no
15604 echo "$as_me: program exited with status $ac_status" >&5
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ( exit $ac_status )
15609 gl_cv_func_tzset_clobber=yes
15611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15614 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
15615 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
15618 cat >>confdefs.h <<\_ACEOF
15619 #define HAVE_RUN_TZSET_TEST 1
15623 if test $gl_cv_func_tzset_clobber = yes; then
15626 "gettimeofday.$ac_objext" | \
15627 *" gettimeofday.$ac_objext" | \
15628 "gettimeofday.$ac_objext "* | \
15629 *" gettimeofday.$ac_objext "* ) ;;
15630 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
15634 cat >>confdefs.h <<\_ACEOF
15635 #define gmtime rpl_gmtime
15639 cat >>confdefs.h <<\_ACEOF
15640 #define localtime rpl_localtime
15646 cat >>confdefs.h <<\_ACEOF
15647 #define tzset rpl_tzset
15651 cat >>confdefs.h <<\_ACEOF
15652 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
15658 echo "$as_me:$LINENO: checking for signed" >&5
15659 echo $ECHO_N "checking for signed... $ECHO_C" >&6
15660 if test "${bh_cv_c_signed+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15678 rm -f conftest.$ac_objext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15680 (eval $ac_compile) 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag"
15688 || test ! -s conftest.err'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15709 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
15710 echo "${ECHO_T}$bh_cv_c_signed" >&6
15711 if test $bh_cv_c_signed = no; then
15713 cat >>confdefs.h <<\_ACEOF
15720 echo "$as_me:$LINENO: checking for long long" >&5
15721 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15722 if test "${ac_cv_type_long_long+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 cat >conftest.$ac_ext <<_ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 long long ll = 1LL; int i = 63;
15735 long long llmax = (long long) -1;
15736 return ll << i | ll >> i | llmax / ll | llmax % ll;
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15743 (eval $ac_link) 2>conftest.er1
15745 grep -v '^ *+' conftest.er1 >conftest.err
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -z "$ac_c_werror_flag"
15751 || test ! -s conftest.err'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest$ac_exeext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_cv_type_long_long=yes
15765 echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_cv_type_long_long=no
15770 rm -f conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15773 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15774 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15775 if test $ac_cv_type_long_long = yes; then
15777 cat >>confdefs.h <<\_ACEOF
15778 #define HAVE_LONG_LONG 1
15784 echo "$as_me:$LINENO: checking for long double" >&5
15785 echo $ECHO_N "checking for long double... $ECHO_C" >&6
15786 if test "${gt_cv_c_long_double+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 if test "$GCC" = yes; then
15790 gt_cv_c_long_double=yes
15792 cat >conftest.$ac_ext <<_ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15799 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
15800 long double foo = 0.0;
15801 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
15802 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>conftest.er1
15816 grep -v '^ *+' conftest.er1 >conftest.err
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 gt_cv_c_long_double=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 gt_cv_c_long_double=no
15841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15844 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
15845 echo "${ECHO_T}$gt_cv_c_long_double" >&6
15846 if test $gt_cv_c_long_double = yes; then
15848 cat >>confdefs.h <<\_ACEOF
15849 #define HAVE_LONG_DOUBLE 1
15855 echo "$as_me:$LINENO: checking for wchar_t" >&5
15856 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15857 if test "${gt_cv_c_wchar_t+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 #include <stddef.h>
15867 wchar_t foo = (wchar_t)'\0';
15876 rm -f conftest.$ac_objext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15878 (eval $ac_compile) 2>conftest.er1
15880 grep -v '^ *+' conftest.er1 >conftest.err
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try='test -z "$ac_c_werror_flag"
15886 || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try='test -s conftest.$ac_objext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 gt_cv_c_wchar_t=yes
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15907 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
15908 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
15909 if test $gt_cv_c_wchar_t = yes; then
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE_WCHAR_T 1
15918 echo "$as_me:$LINENO: checking for wint_t" >&5
15919 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
15920 if test "${gt_cv_c_wint_t+set}" = set; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 cat >conftest.$ac_ext <<_ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15930 wint_t foo = (wchar_t)'\0';
15939 rm -f conftest.$ac_objext
15940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15941 (eval $ac_compile) 2>conftest.er1
15943 grep -v '^ *+' conftest.er1 >conftest.err
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag"
15949 || test ! -s conftest.err'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; } &&
15955 { ac_try='test -s conftest.$ac_objext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15970 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
15971 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
15972 if test $gt_cv_c_wint_t = yes; then
15974 cat >>confdefs.h <<\_ACEOF
15975 #define HAVE_WINT_T 1
15980 echo "$as_me:$LINENO: checking for size_t" >&5
15981 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15982 if test "${ac_cv_type_size_t+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 $ac_includes_default
15997 if (sizeof (size_t))
16003 rm -f conftest.$ac_objext
16004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16005 (eval $ac_compile) 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -z "$ac_c_werror_flag"
16013 || test ! -s conftest.err'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; } &&
16019 { ac_try='test -s conftest.$ac_objext'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 ac_cv_type_size_t=yes
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 ac_cv_type_size_t=no
16032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16034 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16035 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16036 if test $ac_cv_type_size_t = yes; then
16040 cat >>confdefs.h <<_ACEOF
16041 #define size_t unsigned
16049 echo "$as_me:$LINENO: checking for intmax_t" >&5
16050 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
16051 if test "${gt_cv_c_intmax_t+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16061 #include <stddef.h>
16062 #include <stdlib.h>
16063 #if HAVE_STDINT_H_WITH_UINTMAX
16064 #include <stdint.h>
16066 #if HAVE_INTTYPES_H_WITH_UINTMAX
16067 #include <inttypes.h>
16078 rm -f conftest.$ac_objext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16080 (eval $ac_compile) 2>conftest.er1
16082 grep -v '^ *+' conftest.er1 >conftest.err
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -z "$ac_c_werror_flag"
16088 || test ! -s conftest.err'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; } &&
16094 { ac_try='test -s conftest.$ac_objext'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 gt_cv_c_intmax_t=yes
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 gt_cv_c_intmax_t=no
16107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16109 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
16110 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
16111 if test $gt_cv_c_intmax_t = yes; then
16113 cat >>confdefs.h <<\_ACEOF
16114 #define HAVE_INTMAX_T 1
16119 test $ac_cv_type_long_long = yes \
16120 && ac_type='long long' \
16123 cat >>confdefs.h <<_ACEOF
16124 #define intmax_t $ac_type
16131 for ac_func in vasnprintf
16133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16134 echo "$as_me:$LINENO: checking for $ac_func" >&5
16135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16136 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16147 #define $ac_func innocuous_$ac_func
16149 /* System header to define __stub macros and hopefully few prototypes,
16150 which can conflict with char $ac_func (); below.
16151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16152 <limits.h> exists even on freestanding compilers. */
16155 # include <limits.h>
16157 # include <assert.h>
16162 /* Override any gcc2 internal prototype to avoid an error. */
16167 /* We use char because int might match the return type of a gcc2
16168 builtin and then its argument prototype would still apply. */
16170 /* The GNU C library defines this for functions which it implements
16171 to always fail with ENOSYS. Some functions are actually named
16172 something starting with __ and the normal name is an alias. */
16173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16176 char (*f) () = $ac_func;
16185 return f != $ac_func;
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192 (eval $ac_link) 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag"
16200 || test ! -s conftest.err'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest$ac_exeext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 eval "$as_ac_var=yes"
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 eval "$as_ac_var=no"
16219 rm -f conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16224 if test `eval echo '${'$as_ac_var'}'` = yes; then
16225 cat >>confdefs.h <<_ACEOF
16226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16231 "$ac_func.$ac_objext" | \
16232 *" $ac_func.$ac_objext" | \
16233 "$ac_func.$ac_objext "* | \
16234 *" $ac_func.$ac_objext "* ) ;;
16235 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16242 if test $ac_cv_func_vasnprintf = no; then
16244 "printf-args.$ac_objext" | \
16245 *" printf-args.$ac_objext" | \
16246 "printf-args.$ac_objext "* | \
16247 *" printf-args.$ac_objext "* ) ;;
16248 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
16252 "printf-parse.$ac_objext" | \
16253 *" printf-parse.$ac_objext" | \
16254 "printf-parse.$ac_objext "* | \
16255 *" printf-parse.$ac_objext "* ) ;;
16256 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
16260 "asnprintf.$ac_objext" | \
16261 *" asnprintf.$ac_objext" | \
16262 "asnprintf.$ac_objext "* | \
16263 *" asnprintf.$ac_objext "* ) ;;
16264 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
16280 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
16281 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
16282 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 cat >conftest.$ac_ext <<_ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 $ac_includes_default
16295 if ((ptrdiff_t *) 0)
16297 if (sizeof (ptrdiff_t))
16303 rm -f conftest.$ac_objext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag"
16313 || test ! -s conftest.err'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_cv_type_ptrdiff_t=yes
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ac_cv_type_ptrdiff_t=no
16332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16334 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
16335 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
16336 if test $ac_cv_type_ptrdiff_t = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339 #define HAVE_PTRDIFF_T 1
16355 for ac_func in snprintf wcslen
16357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16358 echo "$as_me:$LINENO: checking for $ac_func" >&5
16359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16360 if eval "test \"\${$as_ac_var+set}\" = set"; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 cat >conftest.$ac_ext <<_ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16371 #define $ac_func innocuous_$ac_func
16373 /* System header to define __stub macros and hopefully few prototypes,
16374 which can conflict with char $ac_func (); below.
16375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16376 <limits.h> exists even on freestanding compilers. */
16379 # include <limits.h>
16381 # include <assert.h>
16386 /* Override any gcc2 internal prototype to avoid an error. */
16391 /* We use char because int might match the return type of a gcc2
16392 builtin and then its argument prototype would still apply. */
16394 /* The GNU C library defines this for functions which it implements
16395 to always fail with ENOSYS. Some functions are actually named
16396 something starting with __ and the normal name is an alias. */
16397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16400 char (*f) () = $ac_func;
16409 return f != $ac_func;
16414 rm -f conftest.$ac_objext conftest$ac_exeext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16416 (eval $ac_link) 2>conftest.er1
16418 grep -v '^ *+' conftest.er1 >conftest.err
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest$ac_exeext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 eval "$as_ac_var=yes"
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 eval "$as_ac_var=no"
16443 rm -f conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16448 if test `eval echo '${'$as_ac_var'}'` = yes; then
16449 cat >>confdefs.h <<_ACEOF
16450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16481 echo "$as_me:$LINENO: checking for struct timespec" >&5
16482 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
16483 if test "${fu_cv_sys_struct_timespec+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16486 cat >conftest.$ac_ext <<_ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16493 # if TIME_WITH_SYS_TIME
16494 # include <sys/time.h>
16497 # if HAVE_SYS_TIME_H
16498 # include <sys/time.h>
16507 static struct timespec x; x.tv_sec = x.tv_nsec;
16512 rm -f conftest.$ac_objext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16514 (eval $ac_compile) 2>conftest.er1
16516 grep -v '^ *+' conftest.er1 >conftest.err
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -z "$ac_c_werror_flag"
16522 || test ! -s conftest.err'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 fu_cv_sys_struct_timespec=yes
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 fu_cv_sys_struct_timespec=no
16541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16544 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
16545 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
16547 if test $fu_cv_sys_struct_timespec = yes; then
16549 cat >>confdefs.h <<\_ACEOF
16550 #define HAVE_STRUCT_TIMESPEC 1
16555 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
16556 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
16557 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 ac_save_CPPFLAGS="$CPPFLAGS"
16561 ac_cv_struct_st_mtim_nsec=no
16562 # tv_nsec -- the usual case
16563 # _tv_nsec -- Solaris 2.6, if
16564 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
16565 # && !defined __EXTENSIONS__)
16566 # st__tim.tv_nsec -- UnixWare 2.1.2
16567 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
16568 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
16569 cat >conftest.$ac_ext <<_ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 #include <sys/types.h>
16576 #include <sys/stat.h>
16580 struct stat s; s.st_mtim.ST_MTIM_NSEC;
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587 (eval $ac_compile) 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_cv_struct_st_mtim_nsec=$ac_val; break
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16615 CPPFLAGS="$ac_save_CPPFLAGS"
16617 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
16618 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
16620 if test $ac_cv_struct_st_mtim_nsec != no; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
16632 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
16633 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
16634 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 cat >conftest.$ac_ext <<_ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16649 char *p = (char *) nanosleep;
16656 rm -f conftest.$ac_objext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16658 (eval $ac_compile) 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag"
16666 || test ! -s conftest.err'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; } &&
16672 { ac_try='test -s conftest.$ac_objext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_have_decl_nanosleep=yes
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_have_decl_nanosleep=no
16685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16687 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
16688 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
16689 if test $ac_cv_have_decl_nanosleep = yes; then
16691 cat >>confdefs.h <<_ACEOF
16692 #define HAVE_DECL_NANOSLEEP 1
16697 cat >>confdefs.h <<_ACEOF
16698 #define HAVE_DECL_NANOSLEEP 0
16707 # getdate.y works with bison only.
16709 YACC=${YACC-"${am_missing_run}bison -y"}
16721 # dnl Persuade glibc <time.h> to declare these functions.
16724 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
16725 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
16727 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
16728 # programs in the package would end up linked with that potentially-shared
16729 # library, inducing unnecessary run-time overhead.
16730 fetish_saved_libs=$LIBS
16731 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
16732 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
16733 if test "${ac_cv_search_clock_gettime+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 ac_func_search_save_LIBS=$LIBS
16737 ac_cv_search_clock_gettime=no
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16745 /* Override any gcc2 internal prototype to avoid an error. */
16749 /* We use char because int might match the return type of a gcc2
16750 builtin and then its argument prototype would still apply. */
16751 char clock_gettime ();
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762 (eval $ac_link) 2>conftest.er1
16764 grep -v '^ *+' conftest.er1 >conftest.err
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
16769 { ac_try='test -z "$ac_c_werror_flag"
16770 || test ! -s conftest.err'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest$ac_exeext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 ac_cv_search_clock_gettime="none required"
16784 echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16788 rm -f conftest.err conftest.$ac_objext \
16789 conftest$ac_exeext conftest.$ac_ext
16790 if test "$ac_cv_search_clock_gettime" = no; then
16791 for ac_lib in rt posix4; do
16792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16793 cat >conftest.$ac_ext <<_ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16800 /* Override any gcc2 internal prototype to avoid an error. */
16804 /* We use char because int might match the return type of a gcc2
16805 builtin and then its argument prototype would still apply. */
16806 char clock_gettime ();
16815 rm -f conftest.$ac_objext conftest$ac_exeext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16817 (eval $ac_link) 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest$ac_exeext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_cv_search_clock_gettime="-l$ac_lib"
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16844 rm -f conftest.err conftest.$ac_objext \
16845 conftest$ac_exeext conftest.$ac_ext
16848 LIBS=$ac_func_search_save_LIBS
16850 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
16851 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
16852 if test "$ac_cv_search_clock_gettime" != no; then
16853 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
16854 test "$ac_cv_search_clock_gettime" = "none required" ||
16855 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
16861 for ac_func in clock_gettime clock_settime
16863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864 echo "$as_me:$LINENO: checking for $ac_func" >&5
16865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16866 if eval "test \"\${$as_ac_var+set}\" = set"; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 cat >conftest.$ac_ext <<_ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16877 #define $ac_func innocuous_$ac_func
16879 /* System header to define __stub macros and hopefully few prototypes,
16880 which can conflict with char $ac_func (); below.
16881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882 <limits.h> exists even on freestanding compilers. */
16885 # include <limits.h>
16887 # include <assert.h>
16892 /* Override any gcc2 internal prototype to avoid an error. */
16897 /* We use char because int might match the return type of a gcc2
16898 builtin and then its argument prototype would still apply. */
16900 /* The GNU C library defines this for functions which it implements
16901 to always fail with ENOSYS. Some functions are actually named
16902 something starting with __ and the normal name is an alias. */
16903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16906 char (*f) () = $ac_func;
16915 return f != $ac_func;
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922 (eval $ac_link) 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } &&
16929 { ac_try='test -z "$ac_c_werror_flag"
16930 || test ! -s conftest.err'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; } &&
16936 { ac_try='test -s conftest$ac_exeext'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 eval "$as_ac_var=yes"
16944 echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16947 eval "$as_ac_var=no"
16949 rm -f conftest.err conftest.$ac_objext \
16950 conftest$ac_exeext conftest.$ac_ext
16952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16954 if test `eval echo '${'$as_ac_var'}'` = yes; then
16955 cat >>confdefs.h <<_ACEOF
16956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16962 LIBS=$fetish_saved_libs
16978 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16979 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16980 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 #include <sys/types.h>
16990 #include <$ac_cv_struct_tm>
16996 static struct tm ac_aggr;
16997 if (ac_aggr.tm_zone)
17003 rm -f conftest.$ac_objext
17004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17005 (eval $ac_compile) 2>conftest.er1
17007 grep -v '^ *+' conftest.er1 >conftest.err
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
17012 { ac_try='test -z "$ac_c_werror_flag"
17013 || test ! -s conftest.err'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; } &&
17019 { ac_try='test -s conftest.$ac_objext'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_cv_member_struct_tm_tm_zone=yes
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 cat >conftest.$ac_ext <<_ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17036 #include <sys/types.h>
17037 #include <$ac_cv_struct_tm>
17043 static struct tm ac_aggr;
17044 if (sizeof ac_aggr.tm_zone)
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest.$ac_objext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_member_struct_tm_tm_zone=yes
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ac_cv_member_struct_tm_tm_zone=no
17079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17084 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17085 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17087 cat >>confdefs.h <<_ACEOF
17088 #define HAVE_STRUCT_TM_TM_ZONE 1
17094 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17096 cat >>confdefs.h <<\_ACEOF
17097 #define HAVE_TM_ZONE 1
17101 echo "$as_me:$LINENO: checking for tzname" >&5
17102 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17103 if test "${ac_cv_var_tzname+set}" = set; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 cat >conftest.$ac_ext <<_ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17113 #ifndef tzname /* For SGI. */
17114 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_var_tzname=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_cv_var_tzname=no
17154 rm -f conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17157 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17158 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17159 if test $ac_cv_var_tzname = yes; then
17161 cat >>confdefs.h <<\_ACEOF
17162 #define HAVE_TZNAME 1
17172 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
17173 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
17174 case " $LIBOBJS " in
17175 *" getndelim2.$ac_objext "* ) ;;
17176 *) case $LIBOBJS in
17177 "getndelim2.$ac_objext" | \
17178 *" getndelim2.$ac_objext" | \
17179 "getndelim2.$ac_objext "* | \
17180 *" getndelim2.$ac_objext "* ) ;;
17181 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
17247 # Assume we'll default to using the included regex.c.
17248 ac_use_included_regex=yes
17250 # However, if the system regex support is good enough that it passes the
17251 # the following run test, then default to *not* using the included regex.c.
17252 # If cross compiling, assume the test would fail and use the included
17253 # regex.c. The first failing regular expression is from `Spencer ere
17254 # test #75' in grep-2.3.
17255 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
17256 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
17257 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 if test "$cross_compiling" = yes; then
17261 jm_cv_func_working_re_compile_pattern=no
17263 cat >conftest.$ac_ext <<_ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17270 #include <string.h>
17275 static struct re_pattern_buffer regex;
17277 struct re_registers regs;
17278 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
17279 memset (®ex, 0, sizeof (regex));
17280 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
17281 /* This should fail with _Invalid character class name_ error. */
17285 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
17286 memset (®ex, 0, sizeof (regex));
17287 s = re_compile_pattern ("{1", 2, ®ex);
17292 /* The following example is derived from a problem report
17293 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
17294 memset (®ex, 0, sizeof (regex));
17295 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
17299 /* This should match, but doesn't for e.g. glibc-2.2.1. */
17300 if (re_match (®ex, "an", 2, 0, ®s) != 2)
17303 memset (®ex, 0, sizeof (regex));
17304 s = re_compile_pattern ("x", 1, ®ex);
17308 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
17309 work with a negative RANGE argument. */
17310 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
17317 rm -f conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319 (eval $ac_link) 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 jm_cv_func_working_re_compile_pattern=yes
17330 echo "$as_me: program exited with status $ac_status" >&5
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17334 ( exit $ac_status )
17335 jm_cv_func_working_re_compile_pattern=no
17337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17340 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
17341 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
17342 if test $jm_cv_func_working_re_compile_pattern = yes; then
17343 ac_use_included_regex=no
17346 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
17347 echo "$as_me: error: missing argument" >&2;}
17348 { (exit 1); exit 1; }; }
17352 # Check whether --with-included-regex or --without-included-regex was given.
17353 if test "${with_included_regex+set}" = set; then
17354 withval="$with_included_regex"
17355 jm_with_regex=$withval
17357 jm_with_regex=$ac_use_included_regex
17359 if test "$jm_with_regex" = yes; then
17361 "regex.$ac_objext" | \
17362 *" regex.$ac_objext" | \
17363 "regex.$ac_objext "* | \
17364 *" regex.$ac_objext "* ) ;;
17365 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
17396 for ac_func in btowc
17398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17399 echo "$as_me:$LINENO: checking for $ac_func" >&5
17400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17401 if eval "test \"\${$as_ac_var+set}\" = set"; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 cat >conftest.$ac_ext <<_ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17412 #define $ac_func innocuous_$ac_func
17414 /* System header to define __stub macros and hopefully few prototypes,
17415 which can conflict with char $ac_func (); below.
17416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17417 <limits.h> exists even on freestanding compilers. */
17420 # include <limits.h>
17422 # include <assert.h>
17427 /* Override any gcc2 internal prototype to avoid an error. */
17432 /* We use char because int might match the return type of a gcc2
17433 builtin and then its argument prototype would still apply. */
17435 /* The GNU C library defines this for functions which it implements
17436 to always fail with ENOSYS. Some functions are actually named
17437 something starting with __ and the normal name is an alias. */
17438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17441 char (*f) () = $ac_func;
17450 return f != $ac_func;
17455 rm -f conftest.$ac_objext conftest$ac_exeext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17457 (eval $ac_link) 2>conftest.er1
17459 grep -v '^ *+' conftest.er1 >conftest.err
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest$ac_exeext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 eval "$as_ac_var=yes"
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 eval "$as_ac_var=no"
17484 rm -f conftest.err conftest.$ac_objext \
17485 conftest$ac_exeext conftest.$ac_ext
17487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17489 if test `eval echo '${'$as_ac_var'}'` = yes; then
17490 cat >>confdefs.h <<_ACEOF
17491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17507 echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
17508 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6
17509 if test "${gl_cv_time_r_posix+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 cat >conftest.$ac_ext <<_ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17522 /* We don't need to append 'restrict's to the argument types,
17523 even though the POSIX signature has the 'restrict's,
17524 since C99 says they can't affect type compatibility. */
17525 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17530 rm -f conftest.$ac_objext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17532 (eval $ac_compile) 2>conftest.er1
17534 grep -v '^ *+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -z "$ac_c_werror_flag"
17540 || test ! -s conftest.err'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest.$ac_objext'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 gl_cv_time_r_posix=yes
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 gl_cv_time_r_posix=no
17559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17561 echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
17562 echo "${ECHO_T}$gl_cv_time_r_posix" >&6
17563 if test $gl_cv_time_r_posix = yes; then
17565 cat >>confdefs.h <<\_ACEOF
17566 #define HAVE_TIME_R_POSIX 1
17571 "time_r.$ac_objext" | \
17572 *" time_r.$ac_objext" | \
17573 "time_r.$ac_objext "* | \
17574 *" time_r.$ac_objext "* ) ;;
17575 *) LIBOBJS="$LIBOBJS time_r.$ac_objext" ;;
17603 echo "$as_me:$LINENO: checking for struct timespec" >&5
17604 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
17605 if test "${fu_cv_sys_struct_timespec+set}" = set; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17615 # if TIME_WITH_SYS_TIME
17616 # include <sys/time.h>
17619 # if HAVE_SYS_TIME_H
17620 # include <sys/time.h>
17629 static struct timespec x; x.tv_sec = x.tv_nsec;
17634 rm -f conftest.$ac_objext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest.$ac_objext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 fu_cv_sys_struct_timespec=yes
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17661 fu_cv_sys_struct_timespec=no
17663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17666 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
17667 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
17669 if test $fu_cv_sys_struct_timespec = yes; then
17671 cat >>confdefs.h <<\_ACEOF
17672 #define HAVE_STRUCT_TIMESPEC 1
17677 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
17678 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
17679 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 ac_save_CPPFLAGS="$CPPFLAGS"
17683 ac_cv_struct_st_mtim_nsec=no
17684 # tv_nsec -- the usual case
17685 # _tv_nsec -- Solaris 2.6, if
17686 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
17687 # && !defined __EXTENSIONS__)
17688 # st__tim.tv_nsec -- UnixWare 2.1.2
17689 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
17690 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
17691 cat >conftest.$ac_ext <<_ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 #include <sys/types.h>
17698 #include <sys/stat.h>
17702 struct stat s; s.st_mtim.ST_MTIM_NSEC;
17707 rm -f conftest.$ac_objext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709 (eval $ac_compile) 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag"
17717 || test ! -s conftest.err'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest.$ac_objext'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_struct_st_mtim_nsec=$ac_val; break
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17737 CPPFLAGS="$ac_save_CPPFLAGS"
17739 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
17740 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
17742 if test $ac_cv_struct_st_mtim_nsec != no; then
17744 cat >>confdefs.h <<_ACEOF
17745 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
17754 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
17755 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
17756 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 cat >conftest.$ac_ext <<_ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17771 char *p = (char *) nanosleep;
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>conftest.er1
17782 grep -v '^ *+' conftest.er1 >conftest.err
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest.$ac_objext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 ac_cv_have_decl_nanosleep=yes
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ac_cv_have_decl_nanosleep=no
17807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17809 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
17810 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
17811 if test $ac_cv_have_decl_nanosleep = yes; then
17813 cat >>confdefs.h <<_ACEOF
17814 #define HAVE_DECL_NANOSLEEP 1
17819 cat >>confdefs.h <<_ACEOF
17820 #define HAVE_DECL_NANOSLEEP 0
17828 echo "$as_me:$LINENO: checking for inline" >&5
17829 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17830 if test "${ac_cv_c_inline+set}" = set; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 for ac_kw in inline __inline__ __inline; do
17835 cat >conftest.$ac_ext <<_ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17841 #ifndef __cplusplus
17843 static $ac_kw foo_t static_foo () {return 0; }
17844 $ac_kw foo_t foo () {return 0; }
17848 rm -f conftest.$ac_objext
17849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17850 (eval $ac_compile) 2>conftest.er1
17852 grep -v '^ *+' conftest.er1 >conftest.err
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } &&
17857 { ac_try='test -z "$ac_c_werror_flag"
17858 || test ! -s conftest.err'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; } &&
17864 { ac_try='test -s conftest.$ac_objext'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_cv_c_inline=$ac_kw; break
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17880 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17881 echo "${ECHO_T}$ac_cv_c_inline" >&6
17884 case $ac_cv_c_inline in
17887 case $ac_cv_c_inline in
17889 *) ac_val=$ac_cv_c_inline;;
17891 cat >>confdefs.h <<_ACEOF
17892 #ifndef __cplusplus
17893 #define inline $ac_val
17900 for ac_header in stdlib.h
17902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17904 echo "$as_me:$LINENO: checking for $ac_header" >&5
17905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17912 # Is the header compilable?
17913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17915 cat >conftest.$ac_ext <<_ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17921 $ac_includes_default
17922 #include <$ac_header>
17924 rm -f conftest.$ac_objext
17925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17926 (eval $ac_compile) 2>conftest.er1
17928 grep -v '^ *+' conftest.er1 >conftest.err
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } &&
17933 { ac_try='test -z "$ac_c_werror_flag"
17934 || test ! -s conftest.err'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest.$ac_objext'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17946 ac_header_compiler=yes
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17951 ac_header_compiler=no
17953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17955 echo "${ECHO_T}$ac_header_compiler" >&6
17957 # Is the header present?
17958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17960 cat >conftest.$ac_ext <<_ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17966 #include <$ac_header>
17968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } >/dev/null; then
17976 if test -s conftest.err; then
17977 ac_cpp_err=$ac_c_preproc_warn_flag
17978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17985 if test -z "$ac_cpp_err"; then
17986 ac_header_preproc=yes
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 ac_header_preproc=no
17993 rm -f conftest.err conftest.$ac_ext
17994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17995 echo "${ECHO_T}$ac_header_preproc" >&6
17997 # So? What about this header?
17998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18004 ac_header_preproc=yes
18007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18021 ## ------------------------------ ##
18022 ## Report this to bug-cvs@gnu.org ##
18023 ## ------------------------------ ##
18026 sed "s/^/$as_me: WARNING: /" >&2
18029 echo "$as_me:$LINENO: checking for $ac_header" >&5
18030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 eval "$as_ac_Header=\$ac_header_preproc"
18036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18041 cat >>confdefs.h <<_ACEOF
18042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18049 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18050 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
18051 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 if test "$cross_compiling" = yes; then
18055 ac_cv_func_malloc_0_nonnull=no
18057 cat >conftest.$ac_ext <<_ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 #if STDC_HEADERS || HAVE_STDLIB_H
18064 # include <stdlib.h>
18072 exit (malloc (0) ? 0 : 1);
18077 rm -f conftest$ac_exeext
18078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18079 (eval $ac_link) 2>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 ac_cv_func_malloc_0_nonnull=yes
18090 echo "$as_me: program exited with status $ac_status" >&5
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18094 ( exit $ac_status )
18095 ac_cv_func_malloc_0_nonnull=no
18097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18100 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18101 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
18102 if test $ac_cv_func_malloc_0_nonnull = yes; then
18104 cat >>confdefs.h <<\_ACEOF
18105 #define HAVE_MALLOC 1
18109 cat >>confdefs.h <<\_ACEOF
18110 #define HAVE_MALLOC 0
18114 "malloc.$ac_objext" | \
18115 *" malloc.$ac_objext" | \
18116 "malloc.$ac_objext "* | \
18117 *" malloc.$ac_objext "* ) ;;
18118 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
18122 cat >>confdefs.h <<\_ACEOF
18123 #define malloc rpl_malloc
18132 if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test X"$ac_cv_func_malloc_works" = Xno; then
18139 for ac_header in stdlib.h
18141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18143 echo "$as_me:$LINENO: checking for $ac_header" >&5
18144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18151 # Is the header compilable?
18152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 $ac_includes_default
18161 #include <$ac_header>
18163 rm -f conftest.$ac_objext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165 (eval $ac_compile) 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest.$ac_objext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_header_compiler=yes
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 ac_header_compiler=no
18192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18194 echo "${ECHO_T}$ac_header_compiler" >&6
18196 # Is the header present?
18197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18199 cat >conftest.$ac_ext <<_ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 #include <$ac_header>
18207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18210 grep -v '^ *+' conftest.er1 >conftest.err
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } >/dev/null; then
18215 if test -s conftest.err; then
18216 ac_cpp_err=$ac_c_preproc_warn_flag
18217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18224 if test -z "$ac_cpp_err"; then
18225 ac_header_preproc=yes
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 ac_header_preproc=no
18232 rm -f conftest.err conftest.$ac_ext
18233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18234 echo "${ECHO_T}$ac_header_preproc" >&6
18236 # So? What about this header?
18237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18243 ac_header_preproc=yes
18246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18260 ## ------------------------------ ##
18261 ## Report this to bug-cvs@gnu.org ##
18262 ## ------------------------------ ##
18265 sed "s/^/$as_me: WARNING: /" >&2
18268 echo "$as_me:$LINENO: checking for $ac_header" >&5
18269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 eval "$as_ac_Header=\$ac_header_preproc"
18275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18280 cat >>confdefs.h <<_ACEOF
18281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18288 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
18289 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
18290 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 if test "$cross_compiling" = yes; then
18294 ac_cv_func_realloc_0_nonnull=no
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 #if STDC_HEADERS || HAVE_STDLIB_H
18303 # include <stdlib.h>
18311 exit (realloc (0, 0) ? 0 : 1);
18316 rm -f conftest$ac_exeext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318 (eval $ac_link) 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_cv_func_realloc_0_nonnull=yes
18329 echo "$as_me: program exited with status $ac_status" >&5
18330 echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 ( exit $ac_status )
18334 ac_cv_func_realloc_0_nonnull=no
18336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18339 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
18340 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
18341 if test $ac_cv_func_realloc_0_nonnull = yes; then
18343 cat >>confdefs.h <<\_ACEOF
18344 #define HAVE_REALLOC 1
18348 cat >>confdefs.h <<\_ACEOF
18349 #define HAVE_REALLOC 0
18353 "realloc.$ac_objext" | \
18354 *" realloc.$ac_objext" | \
18355 "realloc.$ac_objext "* | \
18356 *" realloc.$ac_objext "* ) ;;
18357 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
18361 cat >>confdefs.h <<\_ACEOF
18362 #define realloc rpl_realloc
18371 if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then
18393 for ac_header in stdint.h
18395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18397 echo "$as_me:$LINENO: checking for $ac_header" >&5
18398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18405 # Is the header compilable?
18406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 $ac_includes_default
18415 #include <$ac_header>
18417 rm -f conftest.$ac_objext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419 (eval $ac_compile) 2>conftest.er1
18421 grep -v '^ *+' conftest.er1 >conftest.err
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
18426 { ac_try='test -z "$ac_c_werror_flag"
18427 || test ! -s conftest.err'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest.$ac_objext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_header_compiler=yes
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_header_compiler=no
18446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18448 echo "${ECHO_T}$ac_header_compiler" >&6
18450 # Is the header present?
18451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18453 cat >conftest.$ac_ext <<_ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 #include <$ac_header>
18461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18464 grep -v '^ *+' conftest.er1 >conftest.err
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } >/dev/null; then
18469 if test -s conftest.err; then
18470 ac_cpp_err=$ac_c_preproc_warn_flag
18471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18478 if test -z "$ac_cpp_err"; then
18479 ac_header_preproc=yes
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ac_header_preproc=no
18486 rm -f conftest.err conftest.$ac_ext
18487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18488 echo "${ECHO_T}$ac_header_preproc" >&6
18490 # So? What about this header?
18491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18497 ac_header_preproc=yes
18500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18514 ## ------------------------------ ##
18515 ## Report this to bug-cvs@gnu.org ##
18516 ## ------------------------------ ##
18519 sed "s/^/$as_me: WARNING: /" >&2
18522 echo "$as_me:$LINENO: checking for $ac_header" >&5
18523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18527 eval "$as_ac_Header=\$ac_header_preproc"
18529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18534 cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18542 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
18543 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18552 #include <limits.h>
18554 #include <stdint.h>
18561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18562 $EGREP "Found it" >/dev/null 2>&1; then
18567 if test -z "$result"; then
18568 if test "$cross_compiling" = yes; then
18569 # Depending upon the size, compute the lo and hi bounds.
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 #include <stddef.h>
18580 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
18587 rm -f conftest.$ac_objext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589 (eval $ac_compile) 2>conftest.er1
18591 grep -v '^ *+' conftest.er1 >conftest.err
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18611 cat >conftest.$ac_ext <<_ACEOF
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h. */
18617 #include <stddef.h>
18621 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
18628 rm -f conftest.$ac_objext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18630 (eval $ac_compile) 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag"
18638 || test ! -s conftest.err'
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest.$ac_objext'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_hi=$ac_mid; break
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_lo=`expr $ac_mid + 1`
18656 if test $ac_lo -le $ac_mid; then
18660 ac_mid=`expr 2 '*' $ac_mid + 1`
18662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 #include <stddef.h>
18678 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
18685 rm -f conftest.$ac_objext
18686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18687 (eval $ac_compile) 2>conftest.er1
18689 grep -v '^ *+' conftest.er1 >conftest.err
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_c_werror_flag"
18695 || test ! -s conftest.err'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest.$ac_objext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 #include <stddef.h>
18719 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
18726 rm -f conftest.$ac_objext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728 (eval $ac_compile) 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest.$ac_objext'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 ac_lo=$ac_mid; break
18750 echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 ac_hi=`expr '(' $ac_mid ')' - 1`
18754 if test $ac_mid -le $ac_hi; then
18758 ac_mid=`expr 2 '*' $ac_mid`
18760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18771 # Binary search between lo and hi bounds.
18772 while test "x$ac_lo" != "x$ac_hi"; do
18773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 #include <stddef.h>
18784 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
18791 rm -f conftest.$ac_objext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793 (eval $ac_compile) 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 ac_lo=`expr '(' $ac_mid ')' + 1`
18820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18823 ?*) res_hi=$ac_lo;;
18827 if test "$cross_compiling" = yes; then
18828 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18829 See \`config.log' for more details." >&5
18830 echo "$as_me: error: cannot run test program while cross compiling
18831 See \`config.log' for more details." >&2;}
18832 { (exit 1); exit 1; }; }
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <stddef.h>
18841 long longval () { return ~(size_t)0 / 10; }
18842 unsigned long ulongval () { return ~(size_t)0 / 10; }
18844 #include <stdlib.h>
18849 FILE *f = fopen ("conftest.val", "w");
18852 if ((~(size_t)0 / 10) < 0)
18854 long i = longval ();
18855 if (i != (~(size_t)0 / 10))
18857 fprintf (f, "%ld\n", i);
18861 unsigned long i = ulongval ();
18862 if (i != (~(size_t)0 / 10))
18864 fprintf (f, "%lu\n", i);
18866 exit (ferror (f) || fclose (f) != 0);
18872 rm -f conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874 (eval $ac_link) 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 res_hi=`cat conftest.val`
18885 echo "$as_me: program exited with status $ac_status" >&5
18886 echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18889 ( exit $ac_status )
18892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18896 if test "$cross_compiling" = yes; then
18897 # Depending upon the size, compute the lo and hi bounds.
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 #include <stddef.h>
18908 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
18915 rm -f conftest.$ac_objext
18916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18917 (eval $ac_compile) 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
18924 { ac_try='test -z "$ac_c_werror_flag"
18925 || test ! -s conftest.err'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest.$ac_objext'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945 #include <stddef.h>
18949 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
18956 rm -f conftest.$ac_objext
18957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18958 (eval $ac_compile) 2>conftest.er1
18960 grep -v '^ *+' conftest.er1 >conftest.err
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } &&
18965 { ac_try='test -z "$ac_c_werror_flag"
18966 || test ! -s conftest.err'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest.$ac_objext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_hi=$ac_mid; break
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_lo=`expr $ac_mid + 1`
18984 if test $ac_lo -le $ac_mid; then
18988 ac_mid=`expr 2 '*' $ac_mid + 1`
18990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 #include <stddef.h>
19006 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
19013 rm -f conftest.$ac_objext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015 (eval $ac_compile) 2>conftest.er1
19017 grep -v '^ *+' conftest.er1 >conftest.err
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag"
19023 || test ! -s conftest.err'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest.$ac_objext'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 #include <stddef.h>
19047 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_lo=$ac_mid; break
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_hi=`expr '(' $ac_mid ')' - 1`
19082 if test $ac_mid -le $ac_hi; then
19086 ac_mid=`expr 2 '*' $ac_mid`
19088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091 echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19099 # Binary search between lo and hi bounds.
19100 while test "x$ac_lo" != "x$ac_hi"; do
19101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19102 cat >conftest.$ac_ext <<_ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19108 #include <stddef.h>
19112 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
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
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_lo=`expr '(' $ac_mid ')' + 1`
19148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19151 ?*) res_lo=$ac_lo;;
19155 if test "$cross_compiling" = yes; then
19156 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19157 See \`config.log' for more details." >&5
19158 echo "$as_me: error: cannot run test program while cross compiling
19159 See \`config.log' for more details." >&2;}
19160 { (exit 1); exit 1; }; }
19162 cat >conftest.$ac_ext <<_ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 #include <stddef.h>
19169 long longval () { return ~(size_t)0 % 10; }
19170 unsigned long ulongval () { return ~(size_t)0 % 10; }
19172 #include <stdlib.h>
19177 FILE *f = fopen ("conftest.val", "w");
19180 if ((~(size_t)0 % 10) < 0)
19182 long i = longval ();
19183 if (i != (~(size_t)0 % 10))
19185 fprintf (f, "%ld\n", i);
19189 unsigned long i = ulongval ();
19190 if (i != (~(size_t)0 % 10))
19192 fprintf (f, "%lu\n", i);
19194 exit (ferror (f) || fclose (f) != 0);
19200 rm -f conftest$ac_exeext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19202 (eval $ac_link) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 res_lo=`cat conftest.val`
19213 echo "$as_me: program exited with status $ac_status" >&5
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 ( exit $ac_status )
19220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19224 if test "$cross_compiling" = yes; then
19225 # Depending upon the size, compute the lo and hi bounds.
19226 cat >conftest.$ac_ext <<_ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <stddef.h>
19236 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
19243 rm -f conftest.$ac_objext
19244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19245 (eval $ac_compile) 2>conftest.er1
19247 grep -v '^ *+' conftest.er1 >conftest.err
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try='test -z "$ac_c_werror_flag"
19253 || test ! -s conftest.err'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 #include <stddef.h>
19277 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19284 rm -f conftest.$ac_objext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286 (eval $ac_compile) 2>conftest.er1
19288 grep -v '^ *+' conftest.er1 >conftest.err
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_hi=$ac_mid; break
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 ac_lo=`expr $ac_mid + 1`
19312 if test $ac_lo -le $ac_mid; then
19316 ac_mid=`expr 2 '*' $ac_mid + 1`
19318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19321 echo "$as_me: failed program was:" >&5
19322 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 <stddef.h>
19334 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
19341 rm -f conftest.$ac_objext
19342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19343 (eval $ac_compile) 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } &&
19350 { ac_try='test -z "$ac_c_werror_flag"
19351 || test ! -s conftest.err'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest.$ac_objext'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19365 cat >conftest.$ac_ext <<_ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 #include <stddef.h>
19375 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
19382 rm -f conftest.$ac_objext
19383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384 (eval $ac_compile) 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } &&
19391 { ac_try='test -z "$ac_c_werror_flag"
19392 || test ! -s conftest.err'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest.$ac_objext'
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; }; then
19404 ac_lo=$ac_mid; break
19406 echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19409 ac_hi=`expr '(' $ac_mid ')' - 1`
19410 if test $ac_mid -le $ac_hi; then
19414 ac_mid=`expr 2 '*' $ac_mid`
19416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19427 # Binary search between lo and hi bounds.
19428 while test "x$ac_lo" != "x$ac_hi"; do
19429 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19430 cat >conftest.$ac_ext <<_ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 #include <stddef.h>
19440 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19447 rm -f conftest.$ac_objext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19449 (eval $ac_compile) 2>conftest.er1
19451 grep -v '^ *+' conftest.er1 >conftest.err
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
19456 { ac_try='test -z "$ac_c_werror_flag"
19457 || test ! -s conftest.err'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest.$ac_objext'
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_lo=`expr '(' $ac_mid ')' + 1`
19476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19479 ?*) fits_in_uint=$ac_lo;;
19483 if test "$cross_compiling" = yes; then
19484 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19485 See \`config.log' for more details." >&5
19486 echo "$as_me: error: cannot run test program while cross compiling
19487 See \`config.log' for more details." >&2;}
19488 { (exit 1); exit 1; }; }
19490 cat >conftest.$ac_ext <<_ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 #include <stddef.h>
19497 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
19498 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
19500 #include <stdlib.h>
19505 FILE *f = fopen ("conftest.val", "w");
19508 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
19510 long i = longval ();
19511 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19513 fprintf (f, "%ld\n", i);
19517 unsigned long i = ulongval ();
19518 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19520 fprintf (f, "%lu\n", i);
19522 exit (ferror (f) || fclose (f) != 0);
19528 rm -f conftest$ac_exeext
19529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19530 (eval $ac_link) 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 fits_in_uint=`cat conftest.val`
19541 echo "$as_me: program exited with status $ac_status" >&5
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ( exit $ac_status )
19548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19552 if test "$fits_in_uint" = 1; then
19553 cat >conftest.$ac_ext <<_ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h. */
19559 #include <stddef.h>
19561 extern unsigned long foo;
19571 rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573 (eval $ac_compile) 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_c_werror_flag"
19581 || test ! -s conftest.err'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest.$ac_objext'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; }; then
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 if test -z "$result"; then
19602 if test "$fits_in_uint" = 1; then
19603 result="$res_hi$res_lo"U
19605 result="$res_hi$res_lo"UL
19608 result='~(size_t)0'
19611 echo "$as_me:$LINENO: result: $result" >&5
19612 echo "${ECHO_T}$result" >&6
19613 if test "$result" != yes; then
19615 cat >>confdefs.h <<_ACEOF
19616 #define SIZE_MAX $result
19625 for ac_header in stdint.h
19627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19629 echo "$as_me:$LINENO: checking for $ac_header" >&5
19630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19637 # Is the header compilable?
19638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19640 cat >conftest.$ac_ext <<_ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 $ac_includes_default
19647 #include <$ac_header>
19649 rm -f conftest.$ac_objext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19651 (eval $ac_compile) 2>conftest.er1
19653 grep -v '^ *+' conftest.er1 >conftest.err
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_c_werror_flag"
19659 || test ! -s conftest.err'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest.$ac_objext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_header_compiler=yes
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 ac_header_compiler=no
19678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19680 echo "${ECHO_T}$ac_header_compiler" >&6
19682 # Is the header present?
19683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #include <$ac_header>
19693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19696 grep -v '^ *+' conftest.er1 >conftest.err
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } >/dev/null; then
19701 if test -s conftest.err; then
19702 ac_cpp_err=$ac_c_preproc_warn_flag
19703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19710 if test -z "$ac_cpp_err"; then
19711 ac_header_preproc=yes
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19716 ac_header_preproc=no
19718 rm -f conftest.err conftest.$ac_ext
19719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19720 echo "${ECHO_T}$ac_header_preproc" >&6
19722 # So? What about this header?
19723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19729 ac_header_preproc=yes
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19746 ## ------------------------------ ##
19747 ## Report this to bug-cvs@gnu.org ##
19748 ## ------------------------------ ##
19751 sed "s/^/$as_me: WARNING: /" >&2
19754 echo "$as_me:$LINENO: checking for $ac_header" >&5
19755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 eval "$as_ac_Header=\$ac_header_preproc"
19761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19766 cat >>confdefs.h <<_ACEOF
19767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19775 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
19776 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
19777 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 rm -f conftest.sym conftest.file
19781 echo >conftest.file
19782 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19783 if test "$cross_compiling" = yes; then
19784 ac_cv_func_lstat_dereferences_slashed_symlink=no
19786 cat >conftest.$ac_ext <<_ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19792 $ac_includes_default
19797 /* Linux will dereference the symlink and fail.
19798 That is better in the sense that it means we will not
19799 have to compile and use the lstat wrapper. */
19800 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
19805 rm -f conftest$ac_exeext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19807 (eval $ac_link) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_cv_func_lstat_dereferences_slashed_symlink=yes
19818 echo "$as_me: program exited with status $ac_status" >&5
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 ( exit $ac_status )
19823 ac_cv_func_lstat_dereferences_slashed_symlink=no
19825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19828 # If the `ln -s' command failed, then we probably don't even
19829 # have an lstat function.
19830 ac_cv_func_lstat_dereferences_slashed_symlink=no
19832 rm -f conftest.sym conftest.file
19835 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19836 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
19838 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19840 cat >>confdefs.h <<_ACEOF
19841 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19845 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
19847 "lstat.$ac_objext" | \
19848 *" lstat.$ac_objext" | \
19849 "lstat.$ac_objext "* | \
19850 *" lstat.$ac_objext "* ) ;;
19851 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
19863 echo "$as_me:$LINENO: checking whether free is declared" >&5
19864 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
19865 if test "${ac_cv_have_decl_free+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 cat >conftest.$ac_ext <<_ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 $ac_includes_default
19879 char *p = (char *) free;
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888 (eval $ac_compile) 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -z "$ac_c_werror_flag"
19896 || test ! -s conftest.err'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest.$ac_objext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ac_cv_have_decl_free=yes
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 ac_cv_have_decl_free=no
19915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19917 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
19918 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
19919 if test $ac_cv_have_decl_free = yes; then
19921 cat >>confdefs.h <<_ACEOF
19922 #define HAVE_DECL_FREE 1
19927 cat >>confdefs.h <<_ACEOF
19928 #define HAVE_DECL_FREE 0
19937 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
19938 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
19939 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 if test "$cross_compiling" = yes; then
19943 ac_cv_func_lstat_empty_string_bug=yes
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 $ac_includes_default
19956 exit (lstat ("", &sbuf) ? 1 : 0);
19961 rm -f conftest$ac_exeext
19962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19963 (eval $ac_link) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_func_lstat_empty_string_bug=yes
19974 echo "$as_me: program exited with status $ac_status" >&5
19975 echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.$ac_ext >&5
19978 ( exit $ac_status )
19979 ac_cv_func_lstat_empty_string_bug=no
19981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19984 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
19985 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
19986 if test $ac_cv_func_lstat_empty_string_bug = yes; then
19988 "lstat.$ac_objext" | \
19989 *" lstat.$ac_objext" | \
19990 "lstat.$ac_objext "* | \
19991 *" lstat.$ac_objext "* ) ;;
19992 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
19996 cat >>confdefs.h <<_ACEOF
19997 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20002 if test $ac_cv_func_lstat_empty_string_bug = yes ||
20003 test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20025 if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test X"$ac_cv_func_malloc_works" = Xno; then
20033 if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then
20040 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
20041 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
20042 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 if test "$cross_compiling" = yes; then
20046 ac_cv_func_stat_empty_string_bug=yes
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 $ac_includes_default
20059 exit (stat ("", &sbuf) ? 1 : 0);
20064 rm -f conftest$ac_exeext
20065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20066 (eval $ac_link) 2>&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; }; then
20075 ac_cv_func_stat_empty_string_bug=yes
20077 echo "$as_me: program exited with status $ac_status" >&5
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20081 ( exit $ac_status )
20082 ac_cv_func_stat_empty_string_bug=no
20084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20087 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
20088 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
20089 if test $ac_cv_func_stat_empty_string_bug = yes; then
20091 "stat.$ac_objext" | \
20092 *" stat.$ac_objext" | \
20093 "stat.$ac_objext "* | \
20094 *" stat.$ac_objext "* ) ;;
20095 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
20099 cat >>confdefs.h <<_ACEOF
20100 #define HAVE_STAT_EMPTY_STRING_BUG 1
20105 if test $ac_cv_func_stat_empty_string_bug = yes; then
20115 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
20117 test $ac_cv_type_long_long = yes \
20118 && ac_type='long long' \
20121 cat >>confdefs.h <<_ACEOF
20122 #define intmax_t $ac_type
20127 cat >>confdefs.h <<\_ACEOF
20128 #define HAVE_INTMAX_T 1
20141 "getpass.$ac_objext" | \
20142 *" getpass.$ac_objext" | \
20143 "getpass.$ac_objext "* | \
20144 *" getpass.$ac_objext "* ) ;;
20145 *) LIBOBJS="$LIBOBJS getpass.$ac_objext" ;;
20152 cat >>confdefs.h <<\_ACEOF
20153 #define getpass gnu_getpass
20158 cat >>confdefs.h <<\_ACEOF
20159 #define getpass cvs_getpass
20164 # End GNULIB stuff.
20169 # Check for function existance.
20227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20228 echo "$as_me:$LINENO: checking for $ac_func" >&5
20229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20230 if eval "test \"\${$as_ac_var+set}\" = set"; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20241 #define $ac_func innocuous_$ac_func
20243 /* System header to define __stub macros and hopefully few prototypes,
20244 which can conflict with char $ac_func (); below.
20245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20246 <limits.h> exists even on freestanding compilers. */
20249 # include <limits.h>
20251 # include <assert.h>
20256 /* Override any gcc2 internal prototype to avoid an error. */
20261 /* We use char because int might match the return type of a gcc2
20262 builtin and then its argument prototype would still apply. */
20264 /* The GNU C library defines this for functions which it implements
20265 to always fail with ENOSYS. Some functions are actually named
20266 something starting with __ and the normal name is an alias. */
20267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20270 char (*f) () = $ac_func;
20279 return f != $ac_func;
20284 rm -f conftest.$ac_objext conftest$ac_exeext
20285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20286 (eval $ac_link) 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
20293 { ac_try='test -z "$ac_c_werror_flag"
20294 || test ! -s conftest.err'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try='test -s conftest$ac_exeext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 eval "$as_ac_var=yes"
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 eval "$as_ac_var=no"
20313 rm -f conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20318 if test `eval echo '${'$as_ac_var'}'` = yes; then
20319 cat >>confdefs.h <<_ACEOF
20320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20326 HAVE_PUTENV=$ac_cv_func_putenv
20329 if test $cross_compiling = yes ; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define CROSS_COMPILING 1
20336 echo "$as_me:$LINENO: checking for char" >&5
20337 echo $ECHO_N "checking for char... $ECHO_C" >&6
20338 if test "${ac_cv_type_char+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20347 $ac_includes_default
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361 (eval $ac_compile) 2>conftest.er1
20363 grep -v '^ *+' conftest.er1 >conftest.err
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_cv_type_char=yes
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20390 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20391 echo "${ECHO_T}$ac_cv_type_char" >&6
20393 echo "$as_me:$LINENO: checking size of char" >&5
20394 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20395 if test "${ac_cv_sizeof_char+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 if test "$ac_cv_type_char" = yes; then
20399 # The cast to unsigned long works around a bug in the HP C Compiler
20400 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20401 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20402 # This bug is HP SR number 8606223364.
20403 if test "$cross_compiling" = yes; then
20404 # Depending upon the size, compute the lo and hi bounds.
20405 cat >conftest.$ac_ext <<_ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20411 $ac_includes_default
20415 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
20422 rm -f conftest.$ac_objext
20423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20424 (eval $ac_compile) 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } &&
20431 { ac_try='test -z "$ac_c_werror_flag"
20432 || test ! -s conftest.err'
20433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434 (eval $ac_try) 2>&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; } &&
20438 { ac_try='test -s conftest.$ac_objext'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 $ac_includes_default
20456 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465 (eval $ac_compile) 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try='test -z "$ac_c_werror_flag"
20473 || test ! -s conftest.err'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest.$ac_objext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_hi=$ac_mid; break
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_lo=`expr $ac_mid + 1`
20491 if test $ac_lo -le $ac_mid; then
20495 ac_mid=`expr 2 '*' $ac_mid + 1`
20497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 cat >conftest.$ac_ext <<_ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 $ac_includes_default
20513 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
20520 rm -f conftest.$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522 (eval $ac_compile) 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest.$ac_objext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20550 $ac_includes_default
20554 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563 (eval $ac_compile) 2>conftest.er1
20565 grep -v '^ *+' conftest.er1 >conftest.err
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
20570 { ac_try='test -z "$ac_c_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_lo=$ac_mid; break
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_hi=`expr '(' $ac_mid ')' - 1`
20589 if test $ac_mid -le $ac_hi; then
20593 ac_mid=`expr 2 '*' $ac_mid`
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20606 # Binary search between lo and hi bounds.
20607 while test "x$ac_lo" != "x$ac_hi"; do
20608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615 $ac_includes_default
20619 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20626 rm -f conftest.$ac_objext
20627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20628 (eval $ac_compile) 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } &&
20635 { ac_try='test -z "$ac_c_werror_flag"
20636 || test ! -s conftest.err'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; } &&
20642 { ac_try='test -s conftest.$ac_objext'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 ac_lo=`expr '(' $ac_mid ')' + 1`
20655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20658 ?*) ac_cv_sizeof_char=$ac_lo;;
20659 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20660 See \`config.log' for more details." >&5
20661 echo "$as_me: error: cannot compute sizeof (char), 77
20662 See \`config.log' for more details." >&2;}
20663 { (exit 1); exit 1; }; } ;;
20666 if test "$cross_compiling" = yes; then
20667 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20668 See \`config.log' for more details." >&5
20669 echo "$as_me: error: cannot run test program while cross compiling
20670 See \`config.log' for more details." >&2;}
20671 { (exit 1); exit 1; }; }
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 $ac_includes_default
20680 long longval () { return (long) (sizeof (char)); }
20681 unsigned long ulongval () { return (long) (sizeof (char)); }
20683 #include <stdlib.h>
20688 FILE *f = fopen ("conftest.val", "w");
20691 if (((long) (sizeof (char))) < 0)
20693 long i = longval ();
20694 if (i != ((long) (sizeof (char))))
20696 fprintf (f, "%ld\n", i);
20700 unsigned long i = ulongval ();
20701 if (i != ((long) (sizeof (char))))
20703 fprintf (f, "%lu\n", i);
20705 exit (ferror (f) || fclose (f) != 0);
20711 rm -f conftest$ac_exeext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20713 (eval $ac_link) 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_cv_sizeof_char=`cat conftest.val`
20724 echo "$as_me: program exited with status $ac_status" >&5
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ( exit $ac_status )
20729 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20730 See \`config.log' for more details." >&5
20731 echo "$as_me: error: cannot compute sizeof (char), 77
20732 See \`config.log' for more details." >&2;}
20733 { (exit 1); exit 1; }; }
20735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20740 ac_cv_sizeof_char=0
20743 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20744 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20745 cat >>confdefs.h <<_ACEOF
20746 #define SIZEOF_CHAR $ac_cv_sizeof_char
20750 echo "$as_me:$LINENO: checking for uniquely sized char" >&5
20751 echo $ECHO_N "checking for uniquely sized char... $ECHO_C" >&6
20752 if test "${ccvs_cv_unique_int_type_char+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 if set |grep ^ccvs_cv_unique_int_type_ \
20756 |grep "($ac_cv_sizeof_char)" >/dev/null ; then
20757 ccvs_cv_unique_int_type_char=no
20759 ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\)
20762 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_char" >&5
20763 echo "${ECHO_T}$ccvs_cv_unique_int_type_char" >&6
20764 if test $ccvs_cv_unique_int_type_char != no ; then
20766 cat >>confdefs.h <<\_ACEOF
20767 #define UNIQUE_INT_TYPE_CHAR 1
20771 echo "$as_me:$LINENO: checking for short" >&5
20772 echo $ECHO_N "checking for short... $ECHO_C" >&6
20773 if test "${ac_cv_type_short+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 $ac_includes_default
20788 if (sizeof (short))
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -z "$ac_c_werror_flag"
20804 || test ! -s conftest.err'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest.$ac_objext'
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
20816 ac_cv_type_short=yes
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 ac_cv_type_short=no
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20826 echo "${ECHO_T}$ac_cv_type_short" >&6
20828 echo "$as_me:$LINENO: checking size of short" >&5
20829 echo $ECHO_N "checking size of short... $ECHO_C" >&6
20830 if test "${ac_cv_sizeof_short+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 if test "$ac_cv_type_short" = yes; then
20834 # The cast to unsigned long works around a bug in the HP C Compiler
20835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20837 # This bug is HP SR number 8606223364.
20838 if test "$cross_compiling" = yes; then
20839 # Depending upon the size, compute the lo and hi bounds.
20840 cat >conftest.$ac_ext <<_ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 $ac_includes_default
20850 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
20857 rm -f conftest.$ac_objext
20858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20859 (eval $ac_compile) 2>conftest.er1
20861 grep -v '^ *+' conftest.er1 >conftest.err
20863 cat conftest.err >&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } &&
20866 { ac_try='test -z "$ac_c_werror_flag"
20867 || test ! -s conftest.err'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } &&
20873 { ac_try='test -s conftest.$ac_objext'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20881 cat >conftest.$ac_ext <<_ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 $ac_includes_default
20891 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20898 rm -f conftest.$ac_objext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20900 (eval $ac_compile) 2>conftest.er1
20902 grep -v '^ *+' conftest.er1 >conftest.err
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } &&
20907 { ac_try='test -z "$ac_c_werror_flag"
20908 || test ! -s conftest.err'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; } &&
20914 { ac_try='test -s conftest.$ac_objext'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 ac_hi=$ac_mid; break
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ac_lo=`expr $ac_mid + 1`
20926 if test $ac_lo -le $ac_mid; then
20930 ac_mid=`expr 2 '*' $ac_mid + 1`
20932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 $ac_includes_default
20948 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
20955 rm -f conftest.$ac_objext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20957 (eval $ac_compile) 2>conftest.er1
20959 grep -v '^ *+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -z "$ac_c_werror_flag"
20965 || test ! -s conftest.err'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; } &&
20971 { ac_try='test -s conftest.$ac_objext'
20972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973 (eval $ac_try) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; }; then
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 $ac_includes_default
20989 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998 (eval $ac_compile) 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -z "$ac_c_werror_flag"
21006 || test ! -s conftest.err'
21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try='test -s conftest.$ac_objext'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 ac_lo=$ac_mid; break
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 ac_hi=`expr '(' $ac_mid ')' - 1`
21024 if test $ac_mid -le $ac_hi; then
21028 ac_mid=`expr 2 '*' $ac_mid`
21030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21041 # Binary search between lo and hi bounds.
21042 while test "x$ac_lo" != "x$ac_hi"; do
21043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21044 cat >conftest.$ac_ext <<_ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 $ac_includes_default
21054 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
21061 rm -f conftest.$ac_objext
21062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
21070 { ac_try='test -z "$ac_c_werror_flag"
21071 || test ! -s conftest.err'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21088 ac_lo=`expr '(' $ac_mid ')' + 1`
21090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21093 ?*) ac_cv_sizeof_short=$ac_lo;;
21094 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21095 See \`config.log' for more details." >&5
21096 echo "$as_me: error: cannot compute sizeof (short), 77
21097 See \`config.log' for more details." >&2;}
21098 { (exit 1); exit 1; }; } ;;
21101 if test "$cross_compiling" = yes; then
21102 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21103 See \`config.log' for more details." >&5
21104 echo "$as_me: error: cannot run test program while cross compiling
21105 See \`config.log' for more details." >&2;}
21106 { (exit 1); exit 1; }; }
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 $ac_includes_default
21115 long longval () { return (long) (sizeof (short)); }
21116 unsigned long ulongval () { return (long) (sizeof (short)); }
21118 #include <stdlib.h>
21123 FILE *f = fopen ("conftest.val", "w");
21126 if (((long) (sizeof (short))) < 0)
21128 long i = longval ();
21129 if (i != ((long) (sizeof (short))))
21131 fprintf (f, "%ld\n", i);
21135 unsigned long i = ulongval ();
21136 if (i != ((long) (sizeof (short))))
21138 fprintf (f, "%lu\n", i);
21140 exit (ferror (f) || fclose (f) != 0);
21146 rm -f conftest$ac_exeext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148 (eval $ac_link) 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_cv_sizeof_short=`cat conftest.val`
21159 echo "$as_me: program exited with status $ac_status" >&5
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ( exit $ac_status )
21164 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21165 See \`config.log' for more details." >&5
21166 echo "$as_me: error: cannot compute sizeof (short), 77
21167 See \`config.log' for more details." >&2;}
21168 { (exit 1); exit 1; }; }
21170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21175 ac_cv_sizeof_short=0
21178 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21179 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
21180 cat >>confdefs.h <<_ACEOF
21181 #define SIZEOF_SHORT $ac_cv_sizeof_short
21185 echo "$as_me:$LINENO: checking for uniquely sized short" >&5
21186 echo $ECHO_N "checking for uniquely sized short... $ECHO_C" >&6
21187 if test "${ccvs_cv_unique_int_type_short+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21190 if set |grep ^ccvs_cv_unique_int_type_ \
21191 |grep "($ac_cv_sizeof_short)" >/dev/null ; then
21192 ccvs_cv_unique_int_type_short=no
21194 ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\)
21197 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_short" >&5
21198 echo "${ECHO_T}$ccvs_cv_unique_int_type_short" >&6
21199 if test $ccvs_cv_unique_int_type_short != no ; then
21201 cat >>confdefs.h <<\_ACEOF
21202 #define UNIQUE_INT_TYPE_SHORT 1
21206 echo "$as_me:$LINENO: checking for int" >&5
21207 echo $ECHO_N "checking for int... $ECHO_C" >&6
21208 if test "${ac_cv_type_int+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 cat >conftest.$ac_ext <<_ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21229 rm -f conftest.$ac_objext
21230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21231 (eval $ac_compile) 2>conftest.er1
21233 grep -v '^ *+' conftest.er1 >conftest.err
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -z "$ac_c_werror_flag"
21239 || test ! -s conftest.err'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21260 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21261 echo "${ECHO_T}$ac_cv_type_int" >&6
21263 echo "$as_me:$LINENO: checking size of int" >&5
21264 echo $ECHO_N "checking size of int... $ECHO_C" >&6
21265 if test "${ac_cv_sizeof_int+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 if test "$ac_cv_type_int" = yes; then
21269 # The cast to unsigned long works around a bug in the HP C Compiler
21270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21272 # This bug is HP SR number 8606223364.
21273 if test "$cross_compiling" = yes; then
21274 # Depending upon the size, compute the lo and hi bounds.
21275 cat >conftest.$ac_ext <<_ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 $ac_includes_default
21285 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
21292 rm -f conftest.$ac_objext
21293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21294 (eval $ac_compile) 2>conftest.er1
21296 grep -v '^ *+' conftest.er1 >conftest.err
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
21301 { ac_try='test -z "$ac_c_werror_flag"
21302 || test ! -s conftest.err'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest.$ac_objext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 $ac_includes_default
21326 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
21333 rm -f conftest.$ac_objext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21335 (eval $ac_compile) 2>conftest.er1
21337 grep -v '^ *+' conftest.er1 >conftest.err
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -z "$ac_c_werror_flag"
21343 || test ! -s conftest.err'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; } &&
21349 { ac_try='test -s conftest.$ac_objext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ac_hi=$ac_mid; break
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21360 ac_lo=`expr $ac_mid + 1`
21361 if test $ac_lo -le $ac_mid; then
21365 ac_mid=`expr 2 '*' $ac_mid + 1`
21367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21383 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 $ac_includes_default
21424 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
21431 rm -f conftest.$ac_objext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21433 (eval $ac_compile) 2>conftest.er1
21435 grep -v '^ *+' conftest.er1 >conftest.err
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
21440 { ac_try='test -z "$ac_c_werror_flag"
21441 || test ! -s conftest.err'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; } &&
21447 { ac_try='test -s conftest.$ac_objext'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 ac_lo=$ac_mid; break
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_hi=`expr '(' $ac_mid ')' - 1`
21459 if test $ac_mid -le $ac_hi; then
21463 ac_mid=`expr 2 '*' $ac_mid`
21465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476 # Binary search between lo and hi bounds.
21477 while test "x$ac_lo" != "x$ac_hi"; do
21478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 $ac_includes_default
21489 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
21496 rm -f conftest.$ac_objext
21497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21498 (eval $ac_compile) 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
21505 { ac_try='test -z "$ac_c_werror_flag"
21506 || test ! -s conftest.err'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; } &&
21512 { ac_try='test -s conftest.$ac_objext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21523 ac_lo=`expr '(' $ac_mid ')' + 1`
21525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21528 ?*) ac_cv_sizeof_int=$ac_lo;;
21529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21530 See \`config.log' for more details." >&5
21531 echo "$as_me: error: cannot compute sizeof (int), 77
21532 See \`config.log' for more details." >&2;}
21533 { (exit 1); exit 1; }; } ;;
21536 if test "$cross_compiling" = yes; then
21537 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21538 See \`config.log' for more details." >&5
21539 echo "$as_me: error: cannot run test program while cross compiling
21540 See \`config.log' for more details." >&2;}
21541 { (exit 1); exit 1; }; }
21543 cat >conftest.$ac_ext <<_ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 $ac_includes_default
21550 long longval () { return (long) (sizeof (int)); }
21551 unsigned long ulongval () { return (long) (sizeof (int)); }
21553 #include <stdlib.h>
21558 FILE *f = fopen ("conftest.val", "w");
21561 if (((long) (sizeof (int))) < 0)
21563 long i = longval ();
21564 if (i != ((long) (sizeof (int))))
21566 fprintf (f, "%ld\n", i);
21570 unsigned long i = ulongval ();
21571 if (i != ((long) (sizeof (int))))
21573 fprintf (f, "%lu\n", i);
21575 exit (ferror (f) || fclose (f) != 0);
21581 rm -f conftest$ac_exeext
21582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21583 (eval $ac_link) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_cv_sizeof_int=`cat conftest.val`
21594 echo "$as_me: program exited with status $ac_status" >&5
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 ( exit $ac_status )
21599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21600 See \`config.log' for more details." >&5
21601 echo "$as_me: error: cannot compute sizeof (int), 77
21602 See \`config.log' for more details." >&2;}
21603 { (exit 1); exit 1; }; }
21605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21613 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21614 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
21615 cat >>confdefs.h <<_ACEOF
21616 #define SIZEOF_INT $ac_cv_sizeof_int
21620 echo "$as_me:$LINENO: checking for uniquely sized int" >&5
21621 echo $ECHO_N "checking for uniquely sized int... $ECHO_C" >&6
21622 if test "${ccvs_cv_unique_int_type_int+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 if set |grep ^ccvs_cv_unique_int_type_ \
21626 |grep "($ac_cv_sizeof_int)" >/dev/null ; then
21627 ccvs_cv_unique_int_type_int=no
21629 ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\)
21632 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_int" >&5
21633 echo "${ECHO_T}$ccvs_cv_unique_int_type_int" >&6
21634 if test $ccvs_cv_unique_int_type_int != no ; then
21636 cat >>confdefs.h <<\_ACEOF
21637 #define UNIQUE_INT_TYPE_INT 1
21641 echo "$as_me:$LINENO: checking for long" >&5
21642 echo $ECHO_N "checking for long... $ECHO_C" >&6
21643 if test "${ac_cv_type_long+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 cat >conftest.$ac_ext <<_ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h. */
21652 $ac_includes_default
21664 rm -f conftest.$ac_objext
21665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21666 (eval $ac_compile) 2>conftest.er1
21668 grep -v '^ *+' conftest.er1 >conftest.err
21670 cat conftest.err >&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } &&
21673 { ac_try='test -z "$ac_c_werror_flag"
21674 || test ! -s conftest.err'
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); }; } &&
21680 { ac_try='test -s conftest.$ac_objext'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ac_cv_type_long=yes
21688 echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21695 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21696 echo "${ECHO_T}$ac_cv_type_long" >&6
21698 echo "$as_me:$LINENO: checking size of long" >&5
21699 echo $ECHO_N "checking size of long... $ECHO_C" >&6
21700 if test "${ac_cv_sizeof_long+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21703 if test "$ac_cv_type_long" = yes; then
21704 # The cast to unsigned long works around a bug in the HP C Compiler
21705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21707 # This bug is HP SR number 8606223364.
21708 if test "$cross_compiling" = yes; then
21709 # Depending upon the size, compute the lo and hi bounds.
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 $ac_includes_default
21720 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
21727 rm -f conftest.$ac_objext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729 (eval $ac_compile) 2>conftest.er1
21731 grep -v '^ *+' conftest.er1 >conftest.err
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
21736 { ac_try='test -z "$ac_c_werror_flag"
21737 || test ! -s conftest.err'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; } &&
21743 { ac_try='test -s conftest.$ac_objext'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 $ac_includes_default
21761 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21768 rm -f conftest.$ac_objext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21770 (eval $ac_compile) 2>conftest.er1
21772 grep -v '^ *+' conftest.er1 >conftest.err
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } &&
21777 { ac_try='test -z "$ac_c_werror_flag"
21778 || test ! -s conftest.err'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; } &&
21784 { ac_try='test -s conftest.$ac_objext'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21790 ac_hi=$ac_mid; break
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21795 ac_lo=`expr $ac_mid + 1`
21796 if test $ac_lo -le $ac_mid; then
21800 ac_mid=`expr 2 '*' $ac_mid + 1`
21802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 cat >conftest.$ac_ext <<_ACEOF
21811 cat confdefs.h >>conftest.$ac_ext
21812 cat >>conftest.$ac_ext <<_ACEOF
21813 /* end confdefs.h. */
21814 $ac_includes_default
21818 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
21825 rm -f conftest.$ac_objext
21826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21827 (eval $ac_compile) 2>conftest.er1
21829 grep -v '^ *+' conftest.er1 >conftest.err
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } &&
21834 { ac_try='test -z "$ac_c_werror_flag"
21835 || test ! -s conftest.err'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; } &&
21841 { ac_try='test -s conftest.$ac_objext'
21842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843 (eval $ac_try) 2>&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; }; then
21849 cat >conftest.$ac_ext <<_ACEOF
21852 cat confdefs.h >>conftest.$ac_ext
21853 cat >>conftest.$ac_ext <<_ACEOF
21854 /* end confdefs.h. */
21855 $ac_includes_default
21859 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
21866 rm -f conftest.$ac_objext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868 (eval $ac_compile) 2>conftest.er1
21870 grep -v '^ *+' conftest.er1 >conftest.err
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } &&
21875 { ac_try='test -z "$ac_c_werror_flag"
21876 || test ! -s conftest.err'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; } &&
21882 { ac_try='test -s conftest.$ac_objext'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888 ac_lo=$ac_mid; break
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_hi=`expr '(' $ac_mid ')' - 1`
21894 if test $ac_mid -le $ac_hi; then
21898 ac_mid=`expr 2 '*' $ac_mid`
21900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21911 # Binary search between lo and hi bounds.
21912 while test "x$ac_lo" != "x$ac_hi"; do
21913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21914 cat >conftest.$ac_ext <<_ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 $ac_includes_default
21924 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21931 rm -f conftest.$ac_objext
21932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21933 (eval $ac_compile) 2>conftest.er1
21935 grep -v '^ *+' conftest.er1 >conftest.err
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } &&
21940 { ac_try='test -z "$ac_c_werror_flag"
21941 || test ! -s conftest.err'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; } &&
21947 { ac_try='test -s conftest.$ac_objext'
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_lo=`expr '(' $ac_mid ')' + 1`
21960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21963 ?*) ac_cv_sizeof_long=$ac_lo;;
21964 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21965 See \`config.log' for more details." >&5
21966 echo "$as_me: error: cannot compute sizeof (long), 77
21967 See \`config.log' for more details." >&2;}
21968 { (exit 1); exit 1; }; } ;;
21971 if test "$cross_compiling" = yes; then
21972 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21973 See \`config.log' for more details." >&5
21974 echo "$as_me: error: cannot run test program while cross compiling
21975 See \`config.log' for more details." >&2;}
21976 { (exit 1); exit 1; }; }
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21985 long longval () { return (long) (sizeof (long)); }
21986 unsigned long ulongval () { return (long) (sizeof (long)); }
21988 #include <stdlib.h>
21993 FILE *f = fopen ("conftest.val", "w");
21996 if (((long) (sizeof (long))) < 0)
21998 long i = longval ();
21999 if (i != ((long) (sizeof (long))))
22001 fprintf (f, "%ld\n", i);
22005 unsigned long i = ulongval ();
22006 if (i != ((long) (sizeof (long))))
22008 fprintf (f, "%lu\n", i);
22010 exit (ferror (f) || fclose (f) != 0);
22016 rm -f conftest$ac_exeext
22017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22018 (eval $ac_link) 2>&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
22027 ac_cv_sizeof_long=`cat conftest.val`
22029 echo "$as_me: program exited with status $ac_status" >&5
22030 echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22033 ( exit $ac_status )
22034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22035 See \`config.log' for more details." >&5
22036 echo "$as_me: error: cannot compute sizeof (long), 77
22037 See \`config.log' for more details." >&2;}
22038 { (exit 1); exit 1; }; }
22040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045 ac_cv_sizeof_long=0
22048 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22049 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
22050 cat >>confdefs.h <<_ACEOF
22051 #define SIZEOF_LONG $ac_cv_sizeof_long
22055 echo "$as_me:$LINENO: checking for uniquely sized long" >&5
22056 echo $ECHO_N "checking for uniquely sized long... $ECHO_C" >&6
22057 if test "${ccvs_cv_unique_int_type_long+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 if set |grep ^ccvs_cv_unique_int_type_ \
22061 |grep "($ac_cv_sizeof_long)" >/dev/null ; then
22062 ccvs_cv_unique_int_type_long=no
22064 ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\)
22067 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long" >&5
22068 echo "${ECHO_T}$ccvs_cv_unique_int_type_long" >&6
22069 if test $ccvs_cv_unique_int_type_long != no ; then
22071 cat >>confdefs.h <<\_ACEOF
22072 #define UNIQUE_INT_TYPE_LONG 1
22076 if test $ac_cv_type_long_long != no; then
22077 echo "$as_me:$LINENO: checking for long long" >&5
22078 echo $ECHO_N "checking for long long... $ECHO_C" >&6
22079 if test "${ac_cv_type_long_long+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 cat >conftest.$ac_ext <<_ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h. */
22088 $ac_includes_default
22092 if ((long long *) 0)
22094 if (sizeof (long long))
22100 rm -f conftest.$ac_objext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22102 (eval $ac_compile) 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
22109 { ac_try='test -z "$ac_c_werror_flag"
22110 || test ! -s conftest.err'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; } &&
22116 { ac_try='test -s conftest.$ac_objext'
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
22122 ac_cv_type_long_long=yes
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_cv_type_long_long=no
22129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22131 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22132 echo "${ECHO_T}$ac_cv_type_long_long" >&6
22134 echo "$as_me:$LINENO: checking size of long long" >&5
22135 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
22136 if test "${ac_cv_sizeof_long_long+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 if test "$ac_cv_type_long_long" = yes; then
22140 # The cast to unsigned long works around a bug in the HP C Compiler
22141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22143 # This bug is HP SR number 8606223364.
22144 if test "$cross_compiling" = yes; then
22145 # Depending upon the size, compute the lo and hi bounds.
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 $ac_includes_default
22156 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
22163 rm -f conftest.$ac_objext
22164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22165 (eval $ac_compile) 2>conftest.er1
22167 grep -v '^ *+' conftest.er1 >conftest.err
22169 cat conftest.err >&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } &&
22172 { ac_try='test -z "$ac_c_werror_flag"
22173 || test ! -s conftest.err'
22174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175 (eval $ac_try) 2>&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); }; } &&
22179 { ac_try='test -s conftest.$ac_objext'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22187 cat >conftest.$ac_ext <<_ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 $ac_includes_default
22197 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22204 rm -f conftest.$ac_objext
22205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22206 (eval $ac_compile) 2>conftest.er1
22208 grep -v '^ *+' conftest.er1 >conftest.err
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } &&
22213 { ac_try='test -z "$ac_c_werror_flag"
22214 || test ! -s conftest.err'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; } &&
22220 { ac_try='test -s conftest.$ac_objext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 ac_hi=$ac_mid; break
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22231 ac_lo=`expr $ac_mid + 1`
22232 if test $ac_lo -le $ac_mid; then
22236 ac_mid=`expr 2 '*' $ac_mid + 1`
22238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22241 echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22244 cat >conftest.$ac_ext <<_ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h. */
22250 $ac_includes_default
22254 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
22261 rm -f conftest.$ac_objext
22262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22263 (eval $ac_compile) 2>conftest.er1
22265 grep -v '^ *+' conftest.er1 >conftest.err
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } &&
22270 { ac_try='test -z "$ac_c_werror_flag"
22271 || test ! -s conftest.err'
22272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273 (eval $ac_try) 2>&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try='test -s conftest.$ac_objext'
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; }; then
22285 cat >conftest.$ac_ext <<_ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22291 $ac_includes_default
22295 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
22302 rm -f conftest.$ac_objext
22303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22304 (eval $ac_compile) 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } &&
22311 { ac_try='test -z "$ac_c_werror_flag"
22312 || test ! -s conftest.err'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest.$ac_objext'
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; }; then
22324 ac_lo=$ac_mid; break
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 ac_hi=`expr '(' $ac_mid ')' - 1`
22330 if test $ac_mid -le $ac_hi; then
22334 ac_mid=`expr 2 '*' $ac_mid`
22336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22339 echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22347 # Binary search between lo and hi bounds.
22348 while test "x$ac_lo" != "x$ac_hi"; do
22349 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 $ac_includes_default
22360 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22367 rm -f conftest.$ac_objext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22369 (eval $ac_compile) 2>conftest.er1
22371 grep -v '^ *+' conftest.er1 >conftest.err
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } &&
22376 { ac_try='test -z "$ac_c_werror_flag"
22377 || test ! -s conftest.err'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try='test -s conftest.$ac_objext'
22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 ac_lo=`expr '(' $ac_mid ')' + 1`
22396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22399 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22400 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22401 See \`config.log' for more details." >&5
22402 echo "$as_me: error: cannot compute sizeof (long long), 77
22403 See \`config.log' for more details." >&2;}
22404 { (exit 1); exit 1; }; } ;;
22407 if test "$cross_compiling" = yes; then
22408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22409 See \`config.log' for more details." >&5
22410 echo "$as_me: error: cannot run test program while cross compiling
22411 See \`config.log' for more details." >&2;}
22412 { (exit 1); exit 1; }; }
22414 cat >conftest.$ac_ext <<_ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 $ac_includes_default
22421 long longval () { return (long) (sizeof (long long)); }
22422 unsigned long ulongval () { return (long) (sizeof (long long)); }
22424 #include <stdlib.h>
22429 FILE *f = fopen ("conftest.val", "w");
22432 if (((long) (sizeof (long long))) < 0)
22434 long i = longval ();
22435 if (i != ((long) (sizeof (long long))))
22437 fprintf (f, "%ld\n", i);
22441 unsigned long i = ulongval ();
22442 if (i != ((long) (sizeof (long long))))
22444 fprintf (f, "%lu\n", i);
22446 exit (ferror (f) || fclose (f) != 0);
22452 rm -f conftest$ac_exeext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22454 (eval $ac_link) 2>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 ac_cv_sizeof_long_long=`cat conftest.val`
22465 echo "$as_me: program exited with status $ac_status" >&5
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 ( exit $ac_status )
22470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22471 See \`config.log' for more details." >&5
22472 echo "$as_me: error: cannot compute sizeof (long long), 77
22473 See \`config.log' for more details." >&2;}
22474 { (exit 1); exit 1; }; }
22476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22481 ac_cv_sizeof_long_long=0
22484 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22485 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
22486 cat >>confdefs.h <<_ACEOF
22487 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22491 echo "$as_me:$LINENO: checking for uniquely sized long long" >&5
22492 echo $ECHO_N "checking for uniquely sized long long... $ECHO_C" >&6
22493 if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 if set |grep ^ccvs_cv_unique_int_type_ \
22497 |grep "($ac_cv_sizeof_long_long)" >/dev/null ; then
22498 ccvs_cv_unique_int_type_long_long=no
22500 ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\)
22503 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long_long" >&5
22504 echo "${ECHO_T}$ccvs_cv_unique_int_type_long_long" >&6
22505 if test $ccvs_cv_unique_int_type_long_long != no ; then
22507 cat >>confdefs.h <<\_ACEOF
22508 #define UNIQUE_INT_TYPE_LONG_LONG 1
22513 echo "$as_me:$LINENO: checking for size_t" >&5
22514 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22515 if test "${ac_cv_type_size_t+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 cat >conftest.$ac_ext <<_ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 $ac_includes_default
22530 if (sizeof (size_t))
22536 rm -f conftest.$ac_objext
22537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22538 (eval $ac_compile) 2>conftest.er1
22540 grep -v '^ *+' conftest.er1 >conftest.err
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } &&
22545 { ac_try='test -z "$ac_c_werror_flag"
22546 || test ! -s conftest.err'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; } &&
22552 { ac_try='test -s conftest.$ac_objext'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; }; then
22558 ac_cv_type_size_t=yes
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22563 ac_cv_type_size_t=no
22565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22567 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22568 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22570 echo "$as_me:$LINENO: checking size of size_t" >&5
22571 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
22572 if test "${ac_cv_sizeof_size_t+set}" = set; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22575 if test "$ac_cv_type_size_t" = yes; then
22576 # The cast to unsigned long works around a bug in the HP C Compiler
22577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22579 # This bug is HP SR number 8606223364.
22580 if test "$cross_compiling" = yes; then
22581 # Depending upon the size, compute the lo and hi bounds.
22582 cat >conftest.$ac_ext <<_ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 $ac_includes_default
22592 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
22599 rm -f conftest.$ac_objext
22600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22601 (eval $ac_compile) 2>conftest.er1
22603 grep -v '^ *+' conftest.er1 >conftest.err
22605 cat conftest.err >&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); } &&
22608 { ac_try='test -z "$ac_c_werror_flag"
22609 || test ! -s conftest.err'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; } &&
22615 { ac_try='test -s conftest.$ac_objext'
22616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617 (eval $ac_try) 2>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; }; then
22623 cat >conftest.$ac_ext <<_ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22629 $ac_includes_default
22633 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
22640 rm -f conftest.$ac_objext
22641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22642 (eval $ac_compile) 2>conftest.er1
22644 grep -v '^ *+' conftest.er1 >conftest.err
22646 cat conftest.err >&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } &&
22649 { ac_try='test -z "$ac_c_werror_flag"
22650 || test ! -s conftest.err'
22651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652 (eval $ac_try) 2>&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); }; } &&
22656 { ac_try='test -s conftest.$ac_objext'
22657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658 (eval $ac_try) 2>&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); }; }; then
22662 ac_hi=$ac_mid; break
22664 echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22667 ac_lo=`expr $ac_mid + 1`
22668 if test $ac_lo -le $ac_mid; then
22672 ac_mid=`expr 2 '*' $ac_mid + 1`
22674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22677 echo "$as_me: failed program was:" >&5
22678 sed 's/^/| /' conftest.$ac_ext >&5
22680 cat >conftest.$ac_ext <<_ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 $ac_includes_default
22690 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
22697 rm -f conftest.$ac_objext
22698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22699 (eval $ac_compile) 2>conftest.er1
22701 grep -v '^ *+' conftest.er1 >conftest.err
22703 cat conftest.err >&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } &&
22706 { ac_try='test -z "$ac_c_werror_flag"
22707 || test ! -s conftest.err'
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; } &&
22713 { ac_try='test -s conftest.$ac_objext'
22714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715 (eval $ac_try) 2>&5
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); }; }; then
22721 cat >conftest.$ac_ext <<_ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 $ac_includes_default
22731 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
22738 rm -f conftest.$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740 (eval $ac_compile) 2>conftest.er1
22742 grep -v '^ *+' conftest.er1 >conftest.err
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try='test -z "$ac_c_werror_flag"
22748 || test ! -s conftest.err'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; } &&
22754 { ac_try='test -s conftest.$ac_objext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_lo=$ac_mid; break
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 ac_hi=`expr '(' $ac_mid ')' - 1`
22766 if test $ac_mid -le $ac_hi; then
22770 ac_mid=`expr 2 '*' $ac_mid`
22772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22775 echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22783 # Binary search between lo and hi bounds.
22784 while test "x$ac_lo" != "x$ac_hi"; do
22785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22786 cat >conftest.$ac_ext <<_ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 $ac_includes_default
22796 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
22803 rm -f conftest.$ac_objext
22804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22805 (eval $ac_compile) 2>conftest.er1
22807 grep -v '^ *+' conftest.er1 >conftest.err
22809 cat conftest.err >&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); } &&
22812 { ac_try='test -z "$ac_c_werror_flag"
22813 || test ! -s conftest.err'
22814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); }; } &&
22819 { ac_try='test -s conftest.$ac_objext'
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; }; then
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22830 ac_lo=`expr '(' $ac_mid ')' + 1`
22832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22835 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22836 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
22837 See \`config.log' for more details." >&5
22838 echo "$as_me: error: cannot compute sizeof (size_t), 77
22839 See \`config.log' for more details." >&2;}
22840 { (exit 1); exit 1; }; } ;;
22843 if test "$cross_compiling" = yes; then
22844 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22845 See \`config.log' for more details." >&5
22846 echo "$as_me: error: cannot run test program while cross compiling
22847 See \`config.log' for more details." >&2;}
22848 { (exit 1); exit 1; }; }
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22856 $ac_includes_default
22857 long longval () { return (long) (sizeof (size_t)); }
22858 unsigned long ulongval () { return (long) (sizeof (size_t)); }
22860 #include <stdlib.h>
22865 FILE *f = fopen ("conftest.val", "w");
22868 if (((long) (sizeof (size_t))) < 0)
22870 long i = longval ();
22871 if (i != ((long) (sizeof (size_t))))
22873 fprintf (f, "%ld\n", i);
22877 unsigned long i = ulongval ();
22878 if (i != ((long) (sizeof (size_t))))
22880 fprintf (f, "%lu\n", i);
22882 exit (ferror (f) || fclose (f) != 0);
22888 rm -f conftest$ac_exeext
22889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22890 (eval $ac_link) 2>&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895 (eval $ac_try) 2>&5
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); }; }; then
22899 ac_cv_sizeof_size_t=`cat conftest.val`
22901 echo "$as_me: program exited with status $ac_status" >&5
22902 echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22905 ( exit $ac_status )
22906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
22907 See \`config.log' for more details." >&5
22908 echo "$as_me: error: cannot compute sizeof (size_t), 77
22909 See \`config.log' for more details." >&2;}
22910 { (exit 1); exit 1; }; }
22912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22917 ac_cv_sizeof_size_t=0
22920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22921 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
22922 cat >>confdefs.h <<_ACEOF
22923 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22927 echo "$as_me:$LINENO: checking for uniquely sized size_t" >&5
22928 echo $ECHO_N "checking for uniquely sized size_t... $ECHO_C" >&6
22929 if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then
22930 echo $ECHO_N "(cached) $ECHO_C" >&6
22932 if set |grep ^ccvs_cv_unique_int_type_ \
22933 |grep "($ac_cv_sizeof_size_t)" >/dev/null ; then
22934 ccvs_cv_unique_int_type_size_t=no
22936 ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\)
22939 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_size_t" >&5
22940 echo "${ECHO_T}$ccvs_cv_unique_int_type_size_t" >&6
22941 if test $ccvs_cv_unique_int_type_size_t != no ; then
22943 cat >>confdefs.h <<\_ACEOF
22944 #define UNIQUE_INT_TYPE_SIZE_T 1
22948 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22949 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22950 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 cat >conftest.$ac_ext <<_ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 $ac_includes_default
22963 if ((ptrdiff_t *) 0)
22965 if (sizeof (ptrdiff_t))
22971 rm -f conftest.$ac_objext
22972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22973 (eval $ac_compile) 2>conftest.er1
22975 grep -v '^ *+' conftest.er1 >conftest.err
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
22980 { ac_try='test -z "$ac_c_werror_flag"
22981 || test ! -s conftest.err'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; } &&
22987 { ac_try='test -s conftest.$ac_objext'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; }; then
22993 ac_cv_type_ptrdiff_t=yes
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_cv_type_ptrdiff_t=no
23000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23002 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23003 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
23005 echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
23006 echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
23007 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
23008 echo $ECHO_N "(cached) $ECHO_C" >&6
23010 if test "$ac_cv_type_ptrdiff_t" = yes; then
23011 # The cast to unsigned long works around a bug in the HP C Compiler
23012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23014 # This bug is HP SR number 8606223364.
23015 if test "$cross_compiling" = yes; then
23016 # Depending upon the size, compute the lo and hi bounds.
23017 cat >conftest.$ac_ext <<_ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23023 $ac_includes_default
23027 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
23034 rm -f conftest.$ac_objext
23035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23036 (eval $ac_compile) 2>conftest.er1
23038 grep -v '^ *+' conftest.er1 >conftest.err
23040 cat conftest.err >&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } &&
23043 { ac_try='test -z "$ac_c_werror_flag"
23044 || test ! -s conftest.err'
23045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046 (eval $ac_try) 2>&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; } &&
23050 { ac_try='test -s conftest.$ac_objext'
23051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23052 (eval $ac_try) 2>&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); }; }; then
23058 cat >conftest.$ac_ext <<_ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 $ac_includes_default
23068 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
23075 rm -f conftest.$ac_objext
23076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23077 (eval $ac_compile) 2>conftest.er1
23079 grep -v '^ *+' conftest.er1 >conftest.err
23081 cat conftest.err >&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); } &&
23084 { ac_try='test -z "$ac_c_werror_flag"
23085 || test ! -s conftest.err'
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; } &&
23091 { ac_try='test -s conftest.$ac_objext'
23092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093 (eval $ac_try) 2>&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); }; }; then
23097 ac_hi=$ac_mid; break
23099 echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23102 ac_lo=`expr $ac_mid + 1`
23103 if test $ac_lo -le $ac_mid; then
23107 ac_mid=`expr 2 '*' $ac_mid + 1`
23109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 cat >conftest.$ac_ext <<_ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23121 $ac_includes_default
23125 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
23132 rm -f conftest.$ac_objext
23133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23134 (eval $ac_compile) 2>conftest.er1
23136 grep -v '^ *+' conftest.er1 >conftest.err
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
23141 { ac_try='test -z "$ac_c_werror_flag"
23142 || test ! -s conftest.err'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; } &&
23148 { ac_try='test -s conftest.$ac_objext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23156 cat >conftest.$ac_ext <<_ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23162 $ac_includes_default
23166 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
23173 rm -f conftest.$ac_objext
23174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23175 (eval $ac_compile) 2>conftest.er1
23177 grep -v '^ *+' conftest.er1 >conftest.err
23179 cat conftest.err >&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); } &&
23182 { ac_try='test -z "$ac_c_werror_flag"
23183 || test ! -s conftest.err'
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; } &&
23189 { ac_try='test -s conftest.$ac_objext'
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; }; then
23195 ac_lo=$ac_mid; break
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ac_hi=`expr '(' $ac_mid ')' - 1`
23201 if test $ac_mid -le $ac_hi; then
23205 ac_mid=`expr 2 '*' $ac_mid`
23207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23218 # Binary search between lo and hi bounds.
23219 while test "x$ac_lo" != "x$ac_hi"; do
23220 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23221 cat >conftest.$ac_ext <<_ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23227 $ac_includes_default
23231 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
23238 rm -f conftest.$ac_objext
23239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23240 (eval $ac_compile) 2>conftest.er1
23242 grep -v '^ *+' conftest.er1 >conftest.err
23244 cat conftest.err >&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } &&
23247 { ac_try='test -z "$ac_c_werror_flag"
23248 || test ! -s conftest.err'
23249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250 (eval $ac_try) 2>&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; } &&
23254 { ac_try='test -s conftest.$ac_objext'
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; }; then
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23265 ac_lo=`expr '(' $ac_mid ')' + 1`
23267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23270 ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
23271 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
23272 See \`config.log' for more details." >&5
23273 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
23274 See \`config.log' for more details." >&2;}
23275 { (exit 1); exit 1; }; } ;;
23278 if test "$cross_compiling" = yes; then
23279 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23280 See \`config.log' for more details." >&5
23281 echo "$as_me: error: cannot run test program while cross compiling
23282 See \`config.log' for more details." >&2;}
23283 { (exit 1); exit 1; }; }
23285 cat >conftest.$ac_ext <<_ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h. */
23291 $ac_includes_default
23292 long longval () { return (long) (sizeof (ptrdiff_t)); }
23293 unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
23295 #include <stdlib.h>
23300 FILE *f = fopen ("conftest.val", "w");
23303 if (((long) (sizeof (ptrdiff_t))) < 0)
23305 long i = longval ();
23306 if (i != ((long) (sizeof (ptrdiff_t))))
23308 fprintf (f, "%ld\n", i);
23312 unsigned long i = ulongval ();
23313 if (i != ((long) (sizeof (ptrdiff_t))))
23315 fprintf (f, "%lu\n", i);
23317 exit (ferror (f) || fclose (f) != 0);
23323 rm -f conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325 (eval $ac_link) 2>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
23334 ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
23336 echo "$as_me: program exited with status $ac_status" >&5
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ( exit $ac_status )
23341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
23342 See \`config.log' for more details." >&5
23343 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
23344 See \`config.log' for more details." >&2;}
23345 { (exit 1); exit 1; }; }
23347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23352 ac_cv_sizeof_ptrdiff_t=0
23355 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
23356 echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
23357 cat >>confdefs.h <<_ACEOF
23358 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
23362 echo "$as_me:$LINENO: checking for uniquely sized ptrdiff_t" >&5
23363 echo $ECHO_N "checking for uniquely sized ptrdiff_t... $ECHO_C" >&6
23364 if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 if set |grep ^ccvs_cv_unique_int_type_ \
23368 |grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then
23369 ccvs_cv_unique_int_type_ptrdiff_t=no
23371 ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\)
23374 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_ptrdiff_t" >&5
23375 echo "${ECHO_T}$ccvs_cv_unique_int_type_ptrdiff_t" >&6
23376 if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then
23378 cat >>confdefs.h <<\_ACEOF
23379 #define UNIQUE_INT_TYPE_PTRDIFF_T 1
23383 if test $gt_cv_c_wint_t != no; then
23384 echo "$as_me:$LINENO: checking for wint_t" >&5
23385 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
23386 if test "${ac_cv_type_wint_t+set}" = set; then
23387 echo $ECHO_N "(cached) $ECHO_C" >&6
23389 cat >conftest.$ac_ext <<_ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23404 if (sizeof (wint_t))
23410 rm -f conftest.$ac_objext
23411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23412 (eval $ac_compile) 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } &&
23419 { ac_try='test -z "$ac_c_werror_flag"
23420 || test ! -s conftest.err'
23421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422 (eval $ac_try) 2>&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; } &&
23426 { ac_try='test -s conftest.$ac_objext'
23427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428 (eval $ac_try) 2>&5
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); }; }; then
23432 ac_cv_type_wint_t=yes
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ac_cv_type_wint_t=no
23439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23441 echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
23442 echo "${ECHO_T}$ac_cv_type_wint_t" >&6
23444 echo "$as_me:$LINENO: checking size of wint_t" >&5
23445 echo $ECHO_N "checking size of wint_t... $ECHO_C" >&6
23446 if test "${ac_cv_sizeof_wint_t+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23449 if test "$ac_cv_type_wint_t" = yes; then
23450 # The cast to unsigned long works around a bug in the HP C Compiler
23451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23453 # This bug is HP SR number 8606223364.
23454 if test "$cross_compiling" = yes; then
23455 # Depending upon the size, compute the lo and hi bounds.
23456 cat >conftest.$ac_ext <<_ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23469 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= 0)];
23476 rm -f conftest.$ac_objext
23477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23478 (eval $ac_compile) 2>conftest.er1
23480 grep -v '^ *+' conftest.er1 >conftest.err
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } &&
23485 { ac_try='test -z "$ac_c_werror_flag"
23486 || test ! -s conftest.err'
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; } &&
23492 { ac_try='test -s conftest.$ac_objext'
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23500 cat >conftest.$ac_ext <<_ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23513 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
23520 rm -f conftest.$ac_objext
23521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23522 (eval $ac_compile) 2>conftest.er1
23524 grep -v '^ *+' conftest.er1 >conftest.err
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } &&
23529 { ac_try='test -z "$ac_c_werror_flag"
23530 || test ! -s conftest.err'
23531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532 (eval $ac_try) 2>&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); }; } &&
23536 { ac_try='test -s conftest.$ac_objext'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542 ac_hi=$ac_mid; break
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 ac_lo=`expr $ac_mid + 1`
23548 if test $ac_lo -le $ac_mid; then
23552 ac_mid=`expr 2 '*' $ac_mid + 1`
23554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23560 cat >conftest.$ac_ext <<_ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23573 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) < 0)];
23580 rm -f conftest.$ac_objext
23581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23582 (eval $ac_compile) 2>conftest.er1
23584 grep -v '^ *+' conftest.er1 >conftest.err
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } &&
23589 { ac_try='test -z "$ac_c_werror_flag"
23590 || test ! -s conftest.err'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; } &&
23596 { ac_try='test -s conftest.$ac_objext'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; }; then
23604 cat >conftest.$ac_ext <<_ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23617 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= $ac_mid)];
23624 rm -f conftest.$ac_objext
23625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23626 (eval $ac_compile) 2>conftest.er1
23628 grep -v '^ *+' conftest.er1 >conftest.err
23630 cat conftest.err >&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); } &&
23633 { ac_try='test -z "$ac_c_werror_flag"
23634 || test ! -s conftest.err'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; } &&
23640 { ac_try='test -s conftest.$ac_objext'
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646 ac_lo=$ac_mid; break
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 ac_hi=`expr '(' $ac_mid ')' - 1`
23652 if test $ac_mid -le $ac_hi; then
23656 ac_mid=`expr 2 '*' $ac_mid`
23658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23661 echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23669 # Binary search between lo and hi bounds.
23670 while test "x$ac_lo" != "x$ac_hi"; do
23671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23672 cat >conftest.$ac_ext <<_ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23685 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
23692 rm -f conftest.$ac_objext
23693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23694 (eval $ac_compile) 2>conftest.er1
23696 grep -v '^ *+' conftest.er1 >conftest.err
23698 cat conftest.err >&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } &&
23701 { ac_try='test -z "$ac_c_werror_flag"
23702 || test ! -s conftest.err'
23703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704 (eval $ac_try) 2>&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); }; } &&
23708 { ac_try='test -s conftest.$ac_objext'
23709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710 (eval $ac_try) 2>&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; }; then
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 ac_lo=`expr '(' $ac_mid ')' + 1`
23721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23724 ?*) ac_cv_sizeof_wint_t=$ac_lo;;
23725 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
23726 See \`config.log' for more details." >&5
23727 echo "$as_me: error: cannot compute sizeof (wint_t), 77
23728 See \`config.log' for more details." >&2;}
23729 { (exit 1); exit 1; }; } ;;
23732 if test "$cross_compiling" = yes; then
23733 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23734 See \`config.log' for more details." >&5
23735 echo "$as_me: error: cannot run test program while cross compiling
23736 See \`config.log' for more details." >&2;}
23737 { (exit 1); exit 1; }; }
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23749 long longval () { return (long) (sizeof (wint_t)); }
23750 unsigned long ulongval () { return (long) (sizeof (wint_t)); }
23752 #include <stdlib.h>
23757 FILE *f = fopen ("conftest.val", "w");
23760 if (((long) (sizeof (wint_t))) < 0)
23762 long i = longval ();
23763 if (i != ((long) (sizeof (wint_t))))
23765 fprintf (f, "%ld\n", i);
23769 unsigned long i = ulongval ();
23770 if (i != ((long) (sizeof (wint_t))))
23772 fprintf (f, "%lu\n", i);
23774 exit (ferror (f) || fclose (f) != 0);
23780 rm -f conftest$ac_exeext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23782 (eval $ac_link) 2>&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ac_cv_sizeof_wint_t=`cat conftest.val`
23793 echo "$as_me: program exited with status $ac_status" >&5
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23797 ( exit $ac_status )
23798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
23799 See \`config.log' for more details." >&5
23800 echo "$as_me: error: cannot compute sizeof (wint_t), 77
23801 See \`config.log' for more details." >&2;}
23802 { (exit 1); exit 1; }; }
23804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23809 ac_cv_sizeof_wint_t=0
23812 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wint_t" >&5
23813 echo "${ECHO_T}$ac_cv_sizeof_wint_t" >&6
23814 cat >>confdefs.h <<_ACEOF
23815 #define SIZEOF_WINT_T $ac_cv_sizeof_wint_t
23819 echo "$as_me:$LINENO: checking for uniquely sized wint_t" >&5
23820 echo $ECHO_N "checking for uniquely sized wint_t... $ECHO_C" >&6
23821 if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then
23822 echo $ECHO_N "(cached) $ECHO_C" >&6
23824 if set |grep ^ccvs_cv_unique_int_type_ \
23825 |grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then
23826 ccvs_cv_unique_int_type_wint_t=no
23828 ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\)
23831 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_wint_t" >&5
23832 echo "${ECHO_T}$ccvs_cv_unique_int_type_wint_t" >&6
23833 if test $ccvs_cv_unique_int_type_wint_t != no ; then
23835 cat >>confdefs.h <<\_ACEOF
23836 #define UNIQUE_INT_TYPE_WINT_T 1
23841 if test $gt_cv_c_intmax_t != no; then
23842 echo "$as_me:$LINENO: checking for intmax_t" >&5
23843 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23844 if test "${ac_cv_type_intmax_t+set}" = set; then
23845 echo $ECHO_N "(cached) $ECHO_C" >&6
23847 cat >conftest.$ac_ext <<_ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23854 #ifdef HAVE_INTTYPES_H
23855 #include <inttypes.h>
23857 #ifdef HAVE_STDINT_H
23858 #include <stdint.h>
23866 if ((intmax_t *) 0)
23868 if (sizeof (intmax_t))
23874 rm -f conftest.$ac_objext
23875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23876 (eval $ac_compile) 2>conftest.er1
23878 grep -v '^ *+' conftest.er1 >conftest.err
23880 cat conftest.err >&5
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); } &&
23883 { ac_try='test -z "$ac_c_werror_flag"
23884 || test ! -s conftest.err'
23885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886 (eval $ac_try) 2>&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); }; } &&
23890 { ac_try='test -s conftest.$ac_objext'
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; }; then
23896 ac_cv_type_intmax_t=yes
23898 echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 ac_cv_type_intmax_t=no
23903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23905 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23906 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23908 echo "$as_me:$LINENO: checking size of intmax_t" >&5
23909 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
23910 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
23911 echo $ECHO_N "(cached) $ECHO_C" >&6
23913 if test "$ac_cv_type_intmax_t" = yes; then
23914 # The cast to unsigned long works around a bug in the HP C Compiler
23915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23917 # This bug is HP SR number 8606223364.
23918 if test "$cross_compiling" = yes; then
23919 # Depending upon the size, compute the lo and hi bounds.
23920 cat >conftest.$ac_ext <<_ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23927 #ifdef HAVE_INTTYPES_H
23928 #include <inttypes.h>
23930 #ifdef HAVE_STDINT_H
23931 #include <stdint.h>
23939 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
23946 rm -f conftest.$ac_objext
23947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23948 (eval $ac_compile) 2>conftest.er1
23950 grep -v '^ *+' conftest.er1 >conftest.err
23952 cat conftest.err >&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } &&
23955 { ac_try='test -z "$ac_c_werror_flag"
23956 || test ! -s conftest.err'
23957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958 (eval $ac_try) 2>&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); }; } &&
23962 { ac_try='test -s conftest.$ac_objext'
23963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964 (eval $ac_try) 2>&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); }; }; then
23970 cat >conftest.$ac_ext <<_ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23977 #ifdef HAVE_INTTYPES_H
23978 #include <inttypes.h>
23980 #ifdef HAVE_STDINT_H
23981 #include <stdint.h>
23989 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
23996 rm -f conftest.$ac_objext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23998 (eval $ac_compile) 2>conftest.er1
24000 grep -v '^ *+' conftest.er1 >conftest.err
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
24005 { ac_try='test -z "$ac_c_werror_flag"
24006 || test ! -s conftest.err'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_hi=$ac_mid; break
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ac_lo=`expr $ac_mid + 1`
24024 if test $ac_lo -le $ac_mid; then
24028 ac_mid=`expr 2 '*' $ac_mid + 1`
24030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24033 echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24036 cat >conftest.$ac_ext <<_ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h. */
24043 #ifdef HAVE_INTTYPES_H
24044 #include <inttypes.h>
24046 #ifdef HAVE_STDINT_H
24047 #include <stdint.h>
24055 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
24062 rm -f conftest.$ac_objext
24063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24064 (eval $ac_compile) 2>conftest.er1
24066 grep -v '^ *+' conftest.er1 >conftest.err
24068 cat conftest.err >&5
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } &&
24071 { ac_try='test -z "$ac_c_werror_flag"
24072 || test ! -s conftest.err'
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; } &&
24078 { ac_try='test -s conftest.$ac_objext'
24079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; }; then
24086 cat >conftest.$ac_ext <<_ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h. */
24093 #ifdef HAVE_INTTYPES_H
24094 #include <inttypes.h>
24096 #ifdef HAVE_STDINT_H
24097 #include <stdint.h>
24105 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
24112 rm -f conftest.$ac_objext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24114 (eval $ac_compile) 2>conftest.er1
24116 grep -v '^ *+' conftest.er1 >conftest.err
24118 cat conftest.err >&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
24121 { ac_try='test -z "$ac_c_werror_flag"
24122 || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest.$ac_objext'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 ac_lo=$ac_mid; break
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24139 ac_hi=`expr '(' $ac_mid ')' - 1`
24140 if test $ac_mid -le $ac_hi; then
24144 ac_mid=`expr 2 '*' $ac_mid`
24146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24149 echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24157 # Binary search between lo and hi bounds.
24158 while test "x$ac_lo" != "x$ac_hi"; do
24159 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24160 cat >conftest.$ac_ext <<_ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h. */
24167 #ifdef HAVE_INTTYPES_H
24168 #include <inttypes.h>
24170 #ifdef HAVE_STDINT_H
24171 #include <stdint.h>
24179 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
24186 rm -f conftest.$ac_objext
24187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24188 (eval $ac_compile) 2>conftest.er1
24190 grep -v '^ *+' conftest.er1 >conftest.err
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } &&
24195 { ac_try='test -z "$ac_c_werror_flag"
24196 || test ! -s conftest.err'
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; } &&
24202 { ac_try='test -s conftest.$ac_objext'
24203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204 (eval $ac_try) 2>&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); }; }; then
24210 echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_lo=`expr '(' $ac_mid ')' + 1`
24215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24218 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
24219 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
24220 See \`config.log' for more details." >&5
24221 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
24222 See \`config.log' for more details." >&2;}
24223 { (exit 1); exit 1; }; } ;;
24226 if test "$cross_compiling" = yes; then
24227 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24228 See \`config.log' for more details." >&5
24229 echo "$as_me: error: cannot run test program while cross compiling
24230 See \`config.log' for more details." >&2;}
24231 { (exit 1); exit 1; }; }
24233 cat >conftest.$ac_ext <<_ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24240 #ifdef HAVE_INTTYPES_H
24241 #include <inttypes.h>
24243 #ifdef HAVE_STDINT_H
24244 #include <stdint.h>
24249 long longval () { return (long) (sizeof (intmax_t)); }
24250 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
24252 #include <stdlib.h>
24257 FILE *f = fopen ("conftest.val", "w");
24260 if (((long) (sizeof (intmax_t))) < 0)
24262 long i = longval ();
24263 if (i != ((long) (sizeof (intmax_t))))
24265 fprintf (f, "%ld\n", i);
24269 unsigned long i = ulongval ();
24270 if (i != ((long) (sizeof (intmax_t))))
24272 fprintf (f, "%lu\n", i);
24274 exit (ferror (f) || fclose (f) != 0);
24280 rm -f conftest$ac_exeext
24281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24282 (eval $ac_link) 2>&5
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24287 (eval $ac_try) 2>&5
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); }; }; then
24291 ac_cv_sizeof_intmax_t=`cat conftest.val`
24293 echo "$as_me: program exited with status $ac_status" >&5
24294 echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24297 ( exit $ac_status )
24298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
24299 See \`config.log' for more details." >&5
24300 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
24301 See \`config.log' for more details." >&2;}
24302 { (exit 1); exit 1; }; }
24304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24309 ac_cv_sizeof_intmax_t=0
24312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
24313 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
24314 cat >>confdefs.h <<_ACEOF
24315 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
24319 echo "$as_me:$LINENO: checking for uniquely sized intmax_t" >&5
24320 echo $ECHO_N "checking for uniquely sized intmax_t... $ECHO_C" >&6
24321 if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24324 if set |grep ^ccvs_cv_unique_int_type_ \
24325 |grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then
24326 ccvs_cv_unique_int_type_intmax_t=no
24328 ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\)
24331 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_intmax_t" >&5
24332 echo "${ECHO_T}$ccvs_cv_unique_int_type_intmax_t" >&6
24333 if test $ccvs_cv_unique_int_type_intmax_t != no ; then
24335 cat >>confdefs.h <<\_ACEOF
24336 #define UNIQUE_INT_TYPE_INTMAX_T 1
24342 echo "$as_me:$LINENO: checking for float" >&5
24343 echo $ECHO_N "checking for float... $ECHO_C" >&6
24344 if test "${ac_cv_type_float+set}" = set; then
24345 echo $ECHO_N "(cached) $ECHO_C" >&6
24347 cat >conftest.$ac_ext <<_ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 $ac_includes_default
24359 if (sizeof (float))
24365 rm -f conftest.$ac_objext
24366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24367 (eval $ac_compile) 2>conftest.er1
24369 grep -v '^ *+' conftest.er1 >conftest.err
24371 cat conftest.err >&5
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } &&
24374 { ac_try='test -z "$ac_c_werror_flag"
24375 || test ! -s conftest.err'
24376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377 (eval $ac_try) 2>&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; } &&
24381 { ac_try='test -s conftest.$ac_objext'
24382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383 (eval $ac_try) 2>&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24387 ac_cv_type_float=yes
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24392 ac_cv_type_float=no
24394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24396 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
24397 echo "${ECHO_T}$ac_cv_type_float" >&6
24399 echo "$as_me:$LINENO: checking size of float" >&5
24400 echo $ECHO_N "checking size of float... $ECHO_C" >&6
24401 if test "${ac_cv_sizeof_float+set}" = set; then
24402 echo $ECHO_N "(cached) $ECHO_C" >&6
24404 if test "$ac_cv_type_float" = yes; then
24405 # The cast to unsigned long works around a bug in the HP C Compiler
24406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24408 # This bug is HP SR number 8606223364.
24409 if test "$cross_compiling" = yes; then
24410 # Depending upon the size, compute the lo and hi bounds.
24411 cat >conftest.$ac_ext <<_ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 $ac_includes_default
24421 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
24428 rm -f conftest.$ac_objext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24430 (eval $ac_compile) 2>conftest.er1
24432 grep -v '^ *+' conftest.er1 >conftest.err
24434 cat conftest.err >&5
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); } &&
24437 { ac_try='test -z "$ac_c_werror_flag"
24438 || test ! -s conftest.err'
24439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440 (eval $ac_try) 2>&5
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; } &&
24444 { ac_try='test -s conftest.$ac_objext'
24445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; }; then
24452 cat >conftest.$ac_ext <<_ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h. */
24458 $ac_includes_default
24462 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
24469 rm -f conftest.$ac_objext
24470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24471 (eval $ac_compile) 2>conftest.er1
24473 grep -v '^ *+' conftest.er1 >conftest.err
24475 cat conftest.err >&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } &&
24478 { ac_try='test -z "$ac_c_werror_flag"
24479 || test ! -s conftest.err'
24480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481 (eval $ac_try) 2>&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); }; } &&
24485 { ac_try='test -s conftest.$ac_objext'
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; }; then
24491 ac_hi=$ac_mid; break
24493 echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24496 ac_lo=`expr $ac_mid + 1`
24497 if test $ac_lo -le $ac_mid; then
24501 ac_mid=`expr 2 '*' $ac_mid + 1`
24503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24506 echo "$as_me: failed program was:" >&5
24507 sed 's/^/| /' conftest.$ac_ext >&5
24509 cat >conftest.$ac_ext <<_ACEOF
24512 cat confdefs.h >>conftest.$ac_ext
24513 cat >>conftest.$ac_ext <<_ACEOF
24514 /* end confdefs.h. */
24515 $ac_includes_default
24519 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
24526 rm -f conftest.$ac_objext
24527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24528 (eval $ac_compile) 2>conftest.er1
24530 grep -v '^ *+' conftest.er1 >conftest.err
24532 cat conftest.err >&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } &&
24535 { ac_try='test -z "$ac_c_werror_flag"
24536 || test ! -s conftest.err'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; } &&
24542 { ac_try='test -s conftest.$ac_objext'
24543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544 (eval $ac_try) 2>&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); }; }; then
24550 cat >conftest.$ac_ext <<_ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 $ac_includes_default
24560 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
24567 rm -f conftest.$ac_objext
24568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24569 (eval $ac_compile) 2>conftest.er1
24571 grep -v '^ *+' conftest.er1 >conftest.err
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } &&
24576 { ac_try='test -z "$ac_c_werror_flag"
24577 || test ! -s conftest.err'
24578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24579 (eval $ac_try) 2>&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); }; } &&
24583 { ac_try='test -s conftest.$ac_objext'
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; }; then
24589 ac_lo=$ac_mid; break
24591 echo "$as_me: failed program was:" >&5
24592 sed 's/^/| /' conftest.$ac_ext >&5
24594 ac_hi=`expr '(' $ac_mid ')' - 1`
24595 if test $ac_mid -le $ac_hi; then
24599 ac_mid=`expr 2 '*' $ac_mid`
24601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24612 # Binary search between lo and hi bounds.
24613 while test "x$ac_lo" != "x$ac_hi"; do
24614 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621 $ac_includes_default
24625 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
24632 rm -f conftest.$ac_objext
24633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24634 (eval $ac_compile) 2>conftest.er1
24636 grep -v '^ *+' conftest.er1 >conftest.err
24638 cat conftest.err >&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); } &&
24641 { ac_try='test -z "$ac_c_werror_flag"
24642 || test ! -s conftest.err'
24643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644 (eval $ac_try) 2>&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); }; } &&
24648 { ac_try='test -s conftest.$ac_objext'
24649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650 (eval $ac_try) 2>&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); }; }; then
24656 echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24659 ac_lo=`expr '(' $ac_mid ')' + 1`
24661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24664 ?*) ac_cv_sizeof_float=$ac_lo;;
24665 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
24666 See \`config.log' for more details." >&5
24667 echo "$as_me: error: cannot compute sizeof (float), 77
24668 See \`config.log' for more details." >&2;}
24669 { (exit 1); exit 1; }; } ;;
24672 if test "$cross_compiling" = yes; then
24673 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24674 See \`config.log' for more details." >&5
24675 echo "$as_me: error: cannot run test program while cross compiling
24676 See \`config.log' for more details." >&2;}
24677 { (exit 1); exit 1; }; }
24679 cat >conftest.$ac_ext <<_ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 $ac_includes_default
24686 long longval () { return (long) (sizeof (float)); }
24687 unsigned long ulongval () { return (long) (sizeof (float)); }
24689 #include <stdlib.h>
24694 FILE *f = fopen ("conftest.val", "w");
24697 if (((long) (sizeof (float))) < 0)
24699 long i = longval ();
24700 if (i != ((long) (sizeof (float))))
24702 fprintf (f, "%ld\n", i);
24706 unsigned long i = ulongval ();
24707 if (i != ((long) (sizeof (float))))
24709 fprintf (f, "%lu\n", i);
24711 exit (ferror (f) || fclose (f) != 0);
24717 rm -f conftest$ac_exeext
24718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24719 (eval $ac_link) 2>&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 ac_cv_sizeof_float=`cat conftest.val`
24730 echo "$as_me: program exited with status $ac_status" >&5
24731 echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24734 ( exit $ac_status )
24735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
24736 See \`config.log' for more details." >&5
24737 echo "$as_me: error: cannot compute sizeof (float), 77
24738 See \`config.log' for more details." >&2;}
24739 { (exit 1); exit 1; }; }
24741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24746 ac_cv_sizeof_float=0
24749 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
24750 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
24751 cat >>confdefs.h <<_ACEOF
24752 #define SIZEOF_FLOAT $ac_cv_sizeof_float
24756 echo "$as_me:$LINENO: checking for uniquely sized float" >&5
24757 echo $ECHO_N "checking for uniquely sized float... $ECHO_C" >&6
24758 if test "${ccvs_cv_unique_float_type_float+set}" = set; then
24759 echo $ECHO_N "(cached) $ECHO_C" >&6
24761 if set |grep ^ccvs_cv_unique_float_type_ \
24762 |grep "($ac_cv_sizeof_float)" >/dev/null ; then
24763 ccvs_cv_unique_float_type_float=no
24765 ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\)
24768 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_float" >&5
24769 echo "${ECHO_T}$ccvs_cv_unique_float_type_float" >&6
24770 if test $ccvs_cv_unique_float_type_float != no ; then
24772 cat >>confdefs.h <<\_ACEOF
24773 #define UNIQUE_FLOAT_TYPE_FLOAT 1
24777 echo "$as_me:$LINENO: checking for double" >&5
24778 echo $ECHO_N "checking for double... $ECHO_C" >&6
24779 if test "${ac_cv_type_double+set}" = set; then
24780 echo $ECHO_N "(cached) $ECHO_C" >&6
24782 cat >conftest.$ac_ext <<_ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h. */
24788 $ac_includes_default
24794 if (sizeof (double))
24800 rm -f conftest.$ac_objext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24802 (eval $ac_compile) 2>conftest.er1
24804 grep -v '^ *+' conftest.er1 >conftest.err
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } &&
24809 { ac_try='test -z "$ac_c_werror_flag"
24810 || test ! -s conftest.err'
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; } &&
24816 { ac_try='test -s conftest.$ac_objext'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
24822 ac_cv_type_double=yes
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ac_cv_type_double=no
24829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24831 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24832 echo "${ECHO_T}$ac_cv_type_double" >&6
24834 echo "$as_me:$LINENO: checking size of double" >&5
24835 echo $ECHO_N "checking size of double... $ECHO_C" >&6
24836 if test "${ac_cv_sizeof_double+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 if test "$ac_cv_type_double" = yes; then
24840 # The cast to unsigned long works around a bug in the HP C Compiler
24841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24843 # This bug is HP SR number 8606223364.
24844 if test "$cross_compiling" = yes; then
24845 # Depending upon the size, compute the lo and hi bounds.
24846 cat >conftest.$ac_ext <<_ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h. */
24852 $ac_includes_default
24856 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
24863 rm -f conftest.$ac_objext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24865 (eval $ac_compile) 2>conftest.er1
24867 grep -v '^ *+' conftest.er1 >conftest.err
24869 cat conftest.err >&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } &&
24872 { ac_try='test -z "$ac_c_werror_flag"
24873 || test ! -s conftest.err'
24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875 (eval $ac_try) 2>&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; } &&
24879 { ac_try='test -s conftest.$ac_objext'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; }; then
24887 cat >conftest.$ac_ext <<_ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h. */
24893 $ac_includes_default
24897 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
24904 rm -f conftest.$ac_objext
24905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24906 (eval $ac_compile) 2>conftest.er1
24908 grep -v '^ *+' conftest.er1 >conftest.err
24910 cat conftest.err >&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } &&
24913 { ac_try='test -z "$ac_c_werror_flag"
24914 || test ! -s conftest.err'
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); }; } &&
24920 { ac_try='test -s conftest.$ac_objext'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926 ac_hi=$ac_mid; break
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 ac_lo=`expr $ac_mid + 1`
24932 if test $ac_lo -le $ac_mid; then
24936 ac_mid=`expr 2 '*' $ac_mid + 1`
24938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24944 cat >conftest.$ac_ext <<_ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h. */
24950 $ac_includes_default
24954 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
24961 rm -f conftest.$ac_objext
24962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24963 (eval $ac_compile) 2>conftest.er1
24965 grep -v '^ *+' conftest.er1 >conftest.err
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } &&
24970 { ac_try='test -z "$ac_c_werror_flag"
24971 || test ! -s conftest.err'
24972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24973 (eval $ac_try) 2>&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); }; } &&
24977 { ac_try='test -s conftest.$ac_objext'
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; }; then
24985 cat >conftest.$ac_ext <<_ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
24991 $ac_includes_default
24995 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
25002 rm -f conftest.$ac_objext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25004 (eval $ac_compile) 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag"
25012 || test ! -s conftest.err'
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest.$ac_objext'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 ac_lo=$ac_mid; break
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25029 ac_hi=`expr '(' $ac_mid ')' - 1`
25030 if test $ac_mid -le $ac_hi; then
25034 ac_mid=`expr 2 '*' $ac_mid`
25036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25047 # Binary search between lo and hi bounds.
25048 while test "x$ac_lo" != "x$ac_hi"; do
25049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25050 cat >conftest.$ac_ext <<_ACEOF
25053 cat confdefs.h >>conftest.$ac_ext
25054 cat >>conftest.$ac_ext <<_ACEOF
25055 /* end confdefs.h. */
25056 $ac_includes_default
25060 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
25067 rm -f conftest.$ac_objext
25068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25069 (eval $ac_compile) 2>conftest.er1
25071 grep -v '^ *+' conftest.er1 >conftest.err
25073 cat conftest.err >&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); } &&
25076 { ac_try='test -z "$ac_c_werror_flag"
25077 || test ! -s conftest.err'
25078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25079 (eval $ac_try) 2>&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); }; } &&
25083 { ac_try='test -s conftest.$ac_objext'
25084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25085 (eval $ac_try) 2>&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); }; }; then
25091 echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25094 ac_lo=`expr '(' $ac_mid ')' + 1`
25096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25099 ?*) ac_cv_sizeof_double=$ac_lo;;
25100 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
25101 See \`config.log' for more details." >&5
25102 echo "$as_me: error: cannot compute sizeof (double), 77
25103 See \`config.log' for more details." >&2;}
25104 { (exit 1); exit 1; }; } ;;
25107 if test "$cross_compiling" = yes; then
25108 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25109 See \`config.log' for more details." >&5
25110 echo "$as_me: error: cannot run test program while cross compiling
25111 See \`config.log' for more details." >&2;}
25112 { (exit 1); exit 1; }; }
25114 cat >conftest.$ac_ext <<_ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25120 $ac_includes_default
25121 long longval () { return (long) (sizeof (double)); }
25122 unsigned long ulongval () { return (long) (sizeof (double)); }
25124 #include <stdlib.h>
25129 FILE *f = fopen ("conftest.val", "w");
25132 if (((long) (sizeof (double))) < 0)
25134 long i = longval ();
25135 if (i != ((long) (sizeof (double))))
25137 fprintf (f, "%ld\n", i);
25141 unsigned long i = ulongval ();
25142 if (i != ((long) (sizeof (double))))
25144 fprintf (f, "%lu\n", i);
25146 exit (ferror (f) || fclose (f) != 0);
25152 rm -f conftest$ac_exeext
25153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25154 (eval $ac_link) 2>&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ac_cv_sizeof_double=`cat conftest.val`
25165 echo "$as_me: program exited with status $ac_status" >&5
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25169 ( exit $ac_status )
25170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
25171 See \`config.log' for more details." >&5
25172 echo "$as_me: error: cannot compute sizeof (double), 77
25173 See \`config.log' for more details." >&2;}
25174 { (exit 1); exit 1; }; }
25176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25181 ac_cv_sizeof_double=0
25184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
25185 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
25186 cat >>confdefs.h <<_ACEOF
25187 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
25191 echo "$as_me:$LINENO: checking for uniquely sized double" >&5
25192 echo $ECHO_N "checking for uniquely sized double... $ECHO_C" >&6
25193 if test "${ccvs_cv_unique_float_type_double+set}" = set; then
25194 echo $ECHO_N "(cached) $ECHO_C" >&6
25196 if set |grep ^ccvs_cv_unique_float_type_ \
25197 |grep "($ac_cv_sizeof_double)" >/dev/null ; then
25198 ccvs_cv_unique_float_type_double=no
25200 ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\)
25203 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_double" >&5
25204 echo "${ECHO_T}$ccvs_cv_unique_float_type_double" >&6
25205 if test $ccvs_cv_unique_float_type_double != no ; then
25207 cat >>confdefs.h <<\_ACEOF
25208 #define UNIQUE_FLOAT_TYPE_DOUBLE 1
25212 if test $gt_cv_c_long_double != no; then
25213 echo "$as_me:$LINENO: checking for long double" >&5
25214 echo $ECHO_N "checking for long double... $ECHO_C" >&6
25215 if test "${ac_cv_type_long_double+set}" = set; then
25216 echo $ECHO_N "(cached) $ECHO_C" >&6
25218 cat >conftest.$ac_ext <<_ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h. */
25224 $ac_includes_default
25228 if ((long double *) 0)
25230 if (sizeof (long double))
25236 rm -f conftest.$ac_objext
25237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25238 (eval $ac_compile) 2>conftest.er1
25240 grep -v '^ *+' conftest.er1 >conftest.err
25242 cat conftest.err >&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } &&
25245 { ac_try='test -z "$ac_c_werror_flag"
25246 || test ! -s conftest.err'
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; } &&
25252 { ac_try='test -s conftest.$ac_objext'
25253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254 (eval $ac_try) 2>&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }; }; then
25258 ac_cv_type_long_double=yes
25260 echo "$as_me: failed program was:" >&5
25261 sed 's/^/| /' conftest.$ac_ext >&5
25263 ac_cv_type_long_double=no
25265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25267 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
25268 echo "${ECHO_T}$ac_cv_type_long_double" >&6
25270 echo "$as_me:$LINENO: checking size of long double" >&5
25271 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
25272 if test "${ac_cv_sizeof_long_double+set}" = set; then
25273 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 if test "$ac_cv_type_long_double" = yes; then
25276 # The cast to unsigned long works around a bug in the HP C Compiler
25277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25279 # This bug is HP SR number 8606223364.
25280 if test "$cross_compiling" = yes; then
25281 # Depending upon the size, compute the lo and hi bounds.
25282 cat >conftest.$ac_ext <<_ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h. */
25288 $ac_includes_default
25292 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
25299 rm -f conftest.$ac_objext
25300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25301 (eval $ac_compile) 2>conftest.er1
25303 grep -v '^ *+' conftest.er1 >conftest.err
25305 cat conftest.err >&5
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } &&
25308 { ac_try='test -z "$ac_c_werror_flag"
25309 || test ! -s conftest.err'
25310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25311 (eval $ac_try) 2>&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); }; } &&
25315 { ac_try='test -s conftest.$ac_objext'
25316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25317 (eval $ac_try) 2>&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); }; }; then
25323 cat >conftest.$ac_ext <<_ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h. */
25329 $ac_includes_default
25333 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
25340 rm -f conftest.$ac_objext
25341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25342 (eval $ac_compile) 2>conftest.er1
25344 grep -v '^ *+' conftest.er1 >conftest.err
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
25349 { ac_try='test -z "$ac_c_werror_flag"
25350 || test ! -s conftest.err'
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest.$ac_objext'
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_hi=$ac_mid; break
25364 echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25367 ac_lo=`expr $ac_mid + 1`
25368 if test $ac_lo -le $ac_mid; then
25372 ac_mid=`expr 2 '*' $ac_mid + 1`
25374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25377 echo "$as_me: failed program was:" >&5
25378 sed 's/^/| /' conftest.$ac_ext >&5
25380 cat >conftest.$ac_ext <<_ACEOF
25383 cat confdefs.h >>conftest.$ac_ext
25384 cat >>conftest.$ac_ext <<_ACEOF
25385 /* end confdefs.h. */
25386 $ac_includes_default
25390 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
25397 rm -f conftest.$ac_objext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25399 (eval $ac_compile) 2>conftest.er1
25401 grep -v '^ *+' conftest.er1 >conftest.err
25403 cat conftest.err >&5
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); } &&
25406 { ac_try='test -z "$ac_c_werror_flag"
25407 || test ! -s conftest.err'
25408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409 (eval $ac_try) 2>&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; } &&
25413 { ac_try='test -s conftest.$ac_objext'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; }; then
25421 cat >conftest.$ac_ext <<_ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h. */
25427 $ac_includes_default
25431 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
25438 rm -f conftest.$ac_objext
25439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25440 (eval $ac_compile) 2>conftest.er1
25442 grep -v '^ *+' conftest.er1 >conftest.err
25444 cat conftest.err >&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } &&
25447 { ac_try='test -z "$ac_c_werror_flag"
25448 || test ! -s conftest.err'
25449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25450 (eval $ac_try) 2>&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); }; } &&
25454 { ac_try='test -s conftest.$ac_objext'
25455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456 (eval $ac_try) 2>&5
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); }; }; then
25460 ac_lo=$ac_mid; break
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ac_hi=`expr '(' $ac_mid ')' - 1`
25466 if test $ac_mid -le $ac_hi; then
25470 ac_mid=`expr 2 '*' $ac_mid`
25472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25483 # Binary search between lo and hi bounds.
25484 while test "x$ac_lo" != "x$ac_hi"; do
25485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25486 cat >conftest.$ac_ext <<_ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h. */
25492 $ac_includes_default
25496 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
25503 rm -f conftest.$ac_objext
25504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25505 (eval $ac_compile) 2>conftest.er1
25507 grep -v '^ *+' conftest.er1 >conftest.err
25509 cat conftest.err >&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } &&
25512 { ac_try='test -z "$ac_c_werror_flag"
25513 || test ! -s conftest.err'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; } &&
25519 { ac_try='test -s conftest.$ac_objext'
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; }; then
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 ac_lo=`expr '(' $ac_mid ')' + 1`
25532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25535 ?*) ac_cv_sizeof_long_double=$ac_lo;;
25536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
25537 See \`config.log' for more details." >&5
25538 echo "$as_me: error: cannot compute sizeof (long double), 77
25539 See \`config.log' for more details." >&2;}
25540 { (exit 1); exit 1; }; } ;;
25543 if test "$cross_compiling" = yes; then
25544 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25545 See \`config.log' for more details." >&5
25546 echo "$as_me: error: cannot run test program while cross compiling
25547 See \`config.log' for more details." >&2;}
25548 { (exit 1); exit 1; }; }
25550 cat >conftest.$ac_ext <<_ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25556 $ac_includes_default
25557 long longval () { return (long) (sizeof (long double)); }
25558 unsigned long ulongval () { return (long) (sizeof (long double)); }
25560 #include <stdlib.h>
25565 FILE *f = fopen ("conftest.val", "w");
25568 if (((long) (sizeof (long double))) < 0)
25570 long i = longval ();
25571 if (i != ((long) (sizeof (long double))))
25573 fprintf (f, "%ld\n", i);
25577 unsigned long i = ulongval ();
25578 if (i != ((long) (sizeof (long double))))
25580 fprintf (f, "%lu\n", i);
25582 exit (ferror (f) || fclose (f) != 0);
25588 rm -f conftest$ac_exeext
25589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25590 (eval $ac_link) 2>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; }; then
25599 ac_cv_sizeof_long_double=`cat conftest.val`
25601 echo "$as_me: program exited with status $ac_status" >&5
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25605 ( exit $ac_status )
25606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
25607 See \`config.log' for more details." >&5
25608 echo "$as_me: error: cannot compute sizeof (long double), 77
25609 See \`config.log' for more details." >&2;}
25610 { (exit 1); exit 1; }; }
25612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25617 ac_cv_sizeof_long_double=0
25620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
25621 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
25622 cat >>confdefs.h <<_ACEOF
25623 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
25627 echo "$as_me:$LINENO: checking for uniquely sized long double" >&5
25628 echo $ECHO_N "checking for uniquely sized long double... $ECHO_C" >&6
25629 if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25632 if set |grep ^ccvs_cv_unique_float_type_ \
25633 |grep "($ac_cv_sizeof_long_double)" >/dev/null ; then
25634 ccvs_cv_unique_float_type_long_double=no
25636 ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\)
25639 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_long_double" >&5
25640 echo "${ECHO_T}$ccvs_cv_unique_float_type_long_double" >&6
25641 if test $ccvs_cv_unique_float_type_long_double != no ; then
25643 cat >>confdefs.h <<\_ACEOF
25644 #define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1
25652 cat >>confdefs.h <<\_ACEOF
25653 #define HAVE_STRCHR 1
25657 cat >>confdefs.h <<\_ACEOF
25658 #define HAVE_MEMCHR 1
25663 cat >>confdefs.h <<\_ACEOF
25664 #define REGEX_MALLOC 1
25668 cat >>confdefs.h <<\_ACEOF
25669 #define _REGEX_RE_COMP 1
25674 for ac_header in unistd.h vfork.h
25676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25678 echo "$as_me:$LINENO: checking for $ac_header" >&5
25679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25681 echo $ECHO_N "(cached) $ECHO_C" >&6
25683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25686 # Is the header compilable?
25687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25689 cat >conftest.$ac_ext <<_ACEOF
25692 cat confdefs.h >>conftest.$ac_ext
25693 cat >>conftest.$ac_ext <<_ACEOF
25694 /* end confdefs.h. */
25695 $ac_includes_default
25696 #include <$ac_header>
25698 rm -f conftest.$ac_objext
25699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25700 (eval $ac_compile) 2>conftest.er1
25702 grep -v '^ *+' conftest.er1 >conftest.err
25704 cat conftest.err >&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } &&
25707 { ac_try='test -z "$ac_c_werror_flag"
25708 || test ! -s conftest.err'
25709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710 (eval $ac_try) 2>&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); }; } &&
25714 { ac_try='test -s conftest.$ac_objext'
25715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716 (eval $ac_try) 2>&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 ac_header_compiler=yes
25722 echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 ac_header_compiler=no
25727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729 echo "${ECHO_T}$ac_header_compiler" >&6
25731 # Is the header present?
25732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25734 cat >conftest.$ac_ext <<_ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 #include <$ac_header>
25742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25745 grep -v '^ *+' conftest.er1 >conftest.err
25747 cat conftest.err >&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } >/dev/null; then
25750 if test -s conftest.err; then
25751 ac_cpp_err=$ac_c_preproc_warn_flag
25752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25759 if test -z "$ac_cpp_err"; then
25760 ac_header_preproc=yes
25762 echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25765 ac_header_preproc=no
25767 rm -f conftest.err conftest.$ac_ext
25768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6
25771 # So? What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25778 ac_header_preproc=yes
25781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25795 ## ------------------------------ ##
25796 ## Report this to bug-cvs@gnu.org ##
25797 ## ------------------------------ ##
25800 sed "s/^/$as_me: WARNING: /" >&2
25803 echo "$as_me:$LINENO: checking for $ac_header" >&5
25804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25806 echo $ECHO_N "(cached) $ECHO_C" >&6
25808 eval "$as_ac_Header=\$ac_header_preproc"
25810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25815 cat >>confdefs.h <<_ACEOF
25816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25825 for ac_func in fork vfork
25827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25828 echo "$as_me:$LINENO: checking for $ac_func" >&5
25829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25830 if eval "test \"\${$as_ac_var+set}\" = set"; then
25831 echo $ECHO_N "(cached) $ECHO_C" >&6
25833 cat >conftest.$ac_ext <<_ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h. */
25839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25841 #define $ac_func innocuous_$ac_func
25843 /* System header to define __stub macros and hopefully few prototypes,
25844 which can conflict with char $ac_func (); below.
25845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25846 <limits.h> exists even on freestanding compilers. */
25849 # include <limits.h>
25851 # include <assert.h>
25856 /* Override any gcc2 internal prototype to avoid an error. */
25861 /* We use char because int might match the return type of a gcc2
25862 builtin and then its argument prototype would still apply. */
25864 /* The GNU C library defines this for functions which it implements
25865 to always fail with ENOSYS. Some functions are actually named
25866 something starting with __ and the normal name is an alias. */
25867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25870 char (*f) () = $ac_func;
25879 return f != $ac_func;
25884 rm -f conftest.$ac_objext conftest$ac_exeext
25885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25886 (eval $ac_link) 2>conftest.er1
25888 grep -v '^ *+' conftest.er1 >conftest.err
25890 cat conftest.err >&5
25891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 (exit $ac_status); } &&
25893 { ac_try='test -z "$ac_c_werror_flag"
25894 || test ! -s conftest.err'
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; } &&
25900 { ac_try='test -s conftest$ac_exeext'
25901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902 (eval $ac_try) 2>&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); }; }; then
25906 eval "$as_ac_var=yes"
25908 echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25911 eval "$as_ac_var=no"
25913 rm -f conftest.err conftest.$ac_objext \
25914 conftest$ac_exeext conftest.$ac_ext
25916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25918 if test `eval echo '${'$as_ac_var'}'` = yes; then
25919 cat >>confdefs.h <<_ACEOF
25920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25926 if test "x$ac_cv_func_fork" = xyes; then
25927 echo "$as_me:$LINENO: checking for working fork" >&5
25928 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
25929 if test "${ac_cv_func_fork_works+set}" = set; then
25930 echo $ECHO_N "(cached) $ECHO_C" >&6
25932 if test "$cross_compiling" = yes; then
25933 ac_cv_func_fork_works=cross
25935 cat >conftest.$ac_ext <<_ACEOF
25936 /* By Ruediger Kuhlmann. */
25937 #include <sys/types.h>
25939 # include <unistd.h>
25941 /* Some systems only have a dummy stub for fork() */
25949 rm -f conftest$ac_exeext
25950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25951 (eval $ac_link) 2>&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956 (eval $ac_try) 2>&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); }; }; then
25960 ac_cv_func_fork_works=yes
25962 echo "$as_me: program exited with status $ac_status" >&5
25963 echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25966 ( exit $ac_status )
25967 ac_cv_func_fork_works=no
25969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25972 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25973 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
25976 ac_cv_func_fork_works=$ac_cv_func_fork
25978 if test "x$ac_cv_func_fork_works" = xcross; then
25980 *-*-amigaos* | *-*-msdosdjgpp*)
25981 # Override, as these systems have only a dummy fork() stub
25982 ac_cv_func_fork_works=no
25985 ac_cv_func_fork_works=yes
25988 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25989 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25991 ac_cv_func_vfork_works=$ac_cv_func_vfork
25992 if test "x$ac_cv_func_vfork" = xyes; then
25993 echo "$as_me:$LINENO: checking for working vfork" >&5
25994 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
25995 if test "${ac_cv_func_vfork_works+set}" = set; then
25996 echo $ECHO_N "(cached) $ECHO_C" >&6
25998 if test "$cross_compiling" = yes; then
25999 ac_cv_func_vfork_works=cross
26001 cat >conftest.$ac_ext <<_ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h. */
26007 /* Thanks to Paul Eggert for this test. */
26009 #include <stdlib.h>
26010 #include <sys/types.h>
26011 #include <sys/stat.h>
26012 #include <sys/wait.h>
26014 # include <unistd.h>
26017 # include <vfork.h>
26019 /* On some sparc systems, changes by the child to local and incoming
26020 argument registers are propagated back to the parent. The compiler
26021 is told about this with #include <vfork.h>, but some compilers
26022 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
26023 static variable whose address is put into a register that is
26024 clobbered by the vfork. */
26027 sparc_address_test (int arg)
26029 sparc_address_test (arg) int arg;
26032 static pid_t child;
26050 pid_t parent = getpid ();
26053 sparc_address_test (0);
26058 /* Here is another test for sparc vfork register problems. This
26059 test uses lots of local variables, at least as many local
26060 variables as main has allocated so far including compiler
26061 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
26062 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
26063 reuse the register of parent for one of the local variables,
26064 since it will think that parent can't possibly be used any more
26065 in this routine. Assigning to the local variable will thus
26066 munge parent in the parent process. */
26068 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26069 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26070 /* Convince the compiler that p..p7 are live; otherwise, it might
26071 use the same hardware register for all 8 local variables. */
26072 if (p != p1 || p != p2 || p != p3 || p != p4
26073 || p != p5 || p != p6 || p != p7)
26076 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26077 from child file descriptors. If the child closes a descriptor
26078 before it execs or exits, this munges the parent's descriptor
26079 as well. Test for this by closing stdout in the child. */
26080 _exit(close(fileno(stdout)) != 0);
26085 while (wait(&status) != child)
26088 /* Was there some problem with vforking? */
26091 /* Did the child fail? (This shouldn't happen.) */
26094 /* Did the vfork/compiler bug occur? */
26095 || parent != getpid()
26097 /* Did the file descriptor bug occur? */
26098 || fstat(fileno(stdout), &st) != 0
26103 rm -f conftest$ac_exeext
26104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26105 (eval $ac_link) 2>&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; }; then
26114 ac_cv_func_vfork_works=yes
26116 echo "$as_me: program exited with status $ac_status" >&5
26117 echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26120 ( exit $ac_status )
26121 ac_cv_func_vfork_works=no
26123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26126 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26127 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
26130 if test "x$ac_cv_func_fork_works" = xcross; then
26131 ac_cv_func_vfork_works=$ac_cv_func_vfork
26132 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26133 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26136 if test "x$ac_cv_func_vfork_works" = xyes; then
26138 cat >>confdefs.h <<\_ACEOF
26139 #define HAVE_WORKING_VFORK 1
26144 cat >>confdefs.h <<\_ACEOF
26149 if test "x$ac_cv_func_fork_works" = xyes; then
26151 cat >>confdefs.h <<\_ACEOF
26152 #define HAVE_WORKING_FORK 1
26157 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
26158 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
26159 if test "${ac_cv_func_closedir_void+set}" = set; then
26160 echo $ECHO_N "(cached) $ECHO_C" >&6
26162 if test "$cross_compiling" = yes; then
26163 ac_cv_func_closedir_void=yes
26165 cat >conftest.$ac_ext <<_ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h. */
26171 $ac_includes_default
26172 #include <$ac_header_dirent>
26173 #ifndef __cplusplus
26180 exit (closedir (opendir (".")) != 0);
26185 rm -f conftest$ac_exeext
26186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26187 (eval $ac_link) 2>&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; }; then
26196 ac_cv_func_closedir_void=no
26198 echo "$as_me: program exited with status $ac_status" >&5
26199 echo "$as_me: failed program was:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26202 ( exit $ac_status )
26203 ac_cv_func_closedir_void=yes
26205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26208 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
26209 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
26210 if test $ac_cv_func_closedir_void = yes; then
26212 cat >>confdefs.h <<\_ACEOF
26213 #define CLOSEDIR_VOID 1
26219 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
26220 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
26221 if test "${ac_cv_search_getspnam+set}" = set; then
26222 echo $ECHO_N "(cached) $ECHO_C" >&6
26224 ac_func_search_save_LIBS=$LIBS
26225 ac_cv_search_getspnam=no
26226 cat >conftest.$ac_ext <<_ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26233 /* Override any gcc2 internal prototype to avoid an error. */
26237 /* We use char because int might match the return type of a gcc2
26238 builtin and then its argument prototype would still apply. */
26248 rm -f conftest.$ac_objext conftest$ac_exeext
26249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26250 (eval $ac_link) 2>conftest.er1
26252 grep -v '^ *+' conftest.er1 >conftest.err
26254 cat conftest.err >&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); } &&
26257 { ac_try='test -z "$ac_c_werror_flag"
26258 || test ! -s conftest.err'
26259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260 (eval $ac_try) 2>&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); }; } &&
26264 { ac_try='test -s conftest$ac_exeext'
26265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; }; then
26270 ac_cv_search_getspnam="none required"
26272 echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26276 rm -f conftest.err conftest.$ac_objext \
26277 conftest$ac_exeext conftest.$ac_ext
26278 if test "$ac_cv_search_getspnam" = no; then
26279 for ac_lib in sec gen; do
26280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26281 cat >conftest.$ac_ext <<_ACEOF
26284 cat confdefs.h >>conftest.$ac_ext
26285 cat >>conftest.$ac_ext <<_ACEOF
26286 /* end confdefs.h. */
26288 /* Override any gcc2 internal prototype to avoid an error. */
26292 /* We use char because int might match the return type of a gcc2
26293 builtin and then its argument prototype would still apply. */
26303 rm -f conftest.$ac_objext conftest$ac_exeext
26304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26305 (eval $ac_link) 2>conftest.er1
26307 grep -v '^ *+' conftest.er1 >conftest.err
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } &&
26312 { ac_try='test -z "$ac_c_werror_flag"
26313 || test ! -s conftest.err'
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; } &&
26319 { ac_try='test -s conftest$ac_exeext'
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; }; then
26325 ac_cv_search_getspnam="-l$ac_lib"
26328 echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26332 rm -f conftest.err conftest.$ac_objext \
26333 conftest$ac_exeext conftest.$ac_ext
26336 LIBS=$ac_func_search_save_LIBS
26338 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
26339 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
26340 if test "$ac_cv_search_getspnam" != no; then
26341 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
26343 cat >>confdefs.h <<\_ACEOF
26344 #define HAVE_GETSPNAM 1
26350 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
26351 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
26352 if test "${ac_cv_func_utime_null+set}" = set; then
26353 echo $ECHO_N "(cached) $ECHO_C" >&6
26355 rm -f conftest.data; >conftest.data
26356 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
26357 if test "$cross_compiling" = yes; then
26358 ac_cv_func_utime_null=no
26360 cat >conftest.$ac_ext <<_ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h. */
26366 $ac_includes_default
26371 exit (!(stat ("conftest.data", &s) == 0
26372 && utime ("conftest.data", (long *)0) == 0
26373 && stat ("conftest.data", &t) == 0
26374 && t.st_mtime >= s.st_mtime
26375 && t.st_mtime - s.st_mtime < 120));
26380 rm -f conftest$ac_exeext
26381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26382 (eval $ac_link) 2>&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391 ac_cv_func_utime_null=yes
26393 echo "$as_me: program exited with status $ac_status" >&5
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26397 ( exit $ac_status )
26398 ac_cv_func_utime_null=no
26400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26404 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
26405 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
26406 if test $ac_cv_func_utime_null = yes; then
26408 cat >>confdefs.h <<\_ACEOF
26409 #define HAVE_UTIME_NULL 1
26413 rm -f conftest.data
26415 echo "$as_me:$LINENO: checking for long file names" >&5
26416 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
26417 if test "${ac_cv_sys_long_file_names+set}" = set; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26420 ac_cv_sys_long_file_names=yes
26421 # Test for long file names in all the places we know might matter:
26422 # . the current directory, where building will happen
26423 # $prefix/lib where we will be installing things
26424 # $exec_prefix/lib likewise
26425 # eval it to expand exec_prefix.
26426 # $TMPDIR if set, where it might want to write temporary files
26427 # if $TMPDIR is not set:
26428 # /tmp where it might want to write temporary files
26429 # /var/tmp likewise
26430 # /usr/tmp likewise
26431 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
26434 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
26436 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
26437 test -d $ac_dir || continue
26438 test -w $ac_dir || continue # It is less confusing to not echo anything here.
26439 ac_xdir=$ac_dir/cf$$
26440 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
26441 ac_tf1=$ac_xdir/conftest9012345
26442 ac_tf2=$ac_xdir/conftest9012346
26443 (echo 1 >$ac_tf1) 2>/dev/null
26444 (echo 2 >$ac_tf2) 2>/dev/null
26445 ac_val=`cat $ac_tf1 2>/dev/null`
26446 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
26447 ac_cv_sys_long_file_names=no
26448 rm -rf $ac_xdir 2>/dev/null
26451 rm -rf $ac_xdir 2>/dev/null
26454 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
26455 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
26456 if test $ac_cv_sys_long_file_names = yes; then
26458 cat >>confdefs.h <<\_ACEOF
26459 #define HAVE_LONG_FILE_NAMES 1
26467 for ac_header in stdlib.h unistd.h
26469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26471 echo "$as_me:$LINENO: checking for $ac_header" >&5
26472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26479 # Is the header compilable?
26480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26482 cat >conftest.$ac_ext <<_ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26488 $ac_includes_default
26489 #include <$ac_header>
26491 rm -f conftest.$ac_objext
26492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26493 (eval $ac_compile) 2>conftest.er1
26495 grep -v '^ *+' conftest.er1 >conftest.err
26497 cat conftest.err >&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } &&
26500 { ac_try='test -z "$ac_c_werror_flag"
26501 || test ! -s conftest.err'
26502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); }; } &&
26507 { ac_try='test -s conftest.$ac_objext'
26508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509 (eval $ac_try) 2>&5
26511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); }; }; then
26513 ac_header_compiler=yes
26515 echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26518 ac_header_compiler=no
26520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26522 echo "${ECHO_T}$ac_header_compiler" >&6
26524 # Is the header present?
26525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26527 cat >conftest.$ac_ext <<_ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h. */
26533 #include <$ac_header>
26535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26538 grep -v '^ *+' conftest.er1 >conftest.err
26540 cat conftest.err >&5
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); } >/dev/null; then
26543 if test -s conftest.err; then
26544 ac_cpp_err=$ac_c_preproc_warn_flag
26545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26552 if test -z "$ac_cpp_err"; then
26553 ac_header_preproc=yes
26555 echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26558 ac_header_preproc=no
26560 rm -f conftest.err conftest.$ac_ext
26561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26562 echo "${ECHO_T}$ac_header_preproc" >&6
26564 # So? What about this header?
26565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26571 ac_header_preproc=yes
26574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26588 ## ------------------------------ ##
26589 ## Report this to bug-cvs@gnu.org ##
26590 ## ------------------------------ ##
26593 sed "s/^/$as_me: WARNING: /" >&2
26596 echo "$as_me:$LINENO: checking for $ac_header" >&5
26597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26599 echo $ECHO_N "(cached) $ECHO_C" >&6
26601 eval "$as_ac_Header=\$ac_header_preproc"
26603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26608 cat >>confdefs.h <<_ACEOF
26609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26617 for ac_func in getpagesize
26619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26620 echo "$as_me:$LINENO: checking for $ac_func" >&5
26621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26622 if eval "test \"\${$as_ac_var+set}\" = set"; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 cat >conftest.$ac_ext <<_ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26633 #define $ac_func innocuous_$ac_func
26635 /* System header to define __stub macros and hopefully few prototypes,
26636 which can conflict with char $ac_func (); below.
26637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26638 <limits.h> exists even on freestanding compilers. */
26641 # include <limits.h>
26643 # include <assert.h>
26648 /* Override any gcc2 internal prototype to avoid an error. */
26653 /* We use char because int might match the return type of a gcc2
26654 builtin and then its argument prototype would still apply. */
26656 /* The GNU C library defines this for functions which it implements
26657 to always fail with ENOSYS. Some functions are actually named
26658 something starting with __ and the normal name is an alias. */
26659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26662 char (*f) () = $ac_func;
26671 return f != $ac_func;
26676 rm -f conftest.$ac_objext conftest$ac_exeext
26677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26678 (eval $ac_link) 2>conftest.er1
26680 grep -v '^ *+' conftest.er1 >conftest.err
26682 cat conftest.err >&5
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } &&
26685 { ac_try='test -z "$ac_c_werror_flag"
26686 || test ! -s conftest.err'
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; } &&
26692 { ac_try='test -s conftest$ac_exeext'
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26698 eval "$as_ac_var=yes"
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 eval "$as_ac_var=no"
26705 rm -f conftest.err conftest.$ac_objext \
26706 conftest$ac_exeext conftest.$ac_ext
26708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26710 if test `eval echo '${'$as_ac_var'}'` = yes; then
26711 cat >>confdefs.h <<_ACEOF
26712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26718 echo "$as_me:$LINENO: checking for working mmap" >&5
26719 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
26720 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26723 if test "$cross_compiling" = yes; then
26724 ac_cv_func_mmap_fixed_mapped=no
26726 cat >conftest.$ac_ext <<_ACEOF
26729 cat confdefs.h >>conftest.$ac_ext
26730 cat >>conftest.$ac_ext <<_ACEOF
26731 /* end confdefs.h. */
26732 $ac_includes_default
26733 /* malloc might have been renamed as rpl_malloc. */
26736 /* Thanks to Mike Haertel and Jim Avera for this test.
26737 Here is a matrix of mmap possibilities:
26738 mmap private not fixed
26739 mmap private fixed at somewhere currently unmapped
26740 mmap private fixed at somewhere already mapped
26741 mmap shared not fixed
26742 mmap shared fixed at somewhere currently unmapped
26743 mmap shared fixed at somewhere already mapped
26744 For private mappings, we should verify that changes cannot be read()
26745 back from the file, nor mmap's back from the file at a different
26746 address. (There have been systems where private was not correctly
26747 implemented like the infamous i386 svr4.0, and systems where the
26748 VM page cache was not coherent with the file system buffer cache
26749 like early versions of FreeBSD and possibly contemporary NetBSD.)
26750 For shared mappings, we should conversely verify that changes get
26751 propagated back to all the places they're supposed to be.
26753 Grep wants private fixed already mapped.
26754 The main things grep needs to know about mmap are:
26755 * does it exist and is it safe to write into the mmap'd area
26756 * how to use it (BSD variants) */
26759 #include <sys/mman.h>
26761 #if !STDC_HEADERS && !HAVE_STDLIB_H
26765 /* This mess was copied from the GNU getpagesize.h. */
26766 #if !HAVE_GETPAGESIZE
26767 /* Assume that all systems that can run configure have sys/param.h. */
26768 # if !HAVE_SYS_PARAM_H
26769 # define HAVE_SYS_PARAM_H 1
26772 # ifdef _SC_PAGESIZE
26773 # define getpagesize() sysconf(_SC_PAGESIZE)
26774 # else /* no _SC_PAGESIZE */
26775 # if HAVE_SYS_PARAM_H
26776 # include <sys/param.h>
26777 # ifdef EXEC_PAGESIZE
26778 # define getpagesize() EXEC_PAGESIZE
26779 # else /* no EXEC_PAGESIZE */
26781 # define getpagesize() NBPG * CLSIZE
26784 # endif /* no CLSIZE */
26785 # else /* no NBPG */
26787 # define getpagesize() NBPC
26788 # else /* no NBPC */
26790 # define getpagesize() PAGESIZE
26791 # endif /* PAGESIZE */
26792 # endif /* no NBPC */
26793 # endif /* no NBPG */
26794 # endif /* no EXEC_PAGESIZE */
26795 # else /* no HAVE_SYS_PARAM_H */
26796 # define getpagesize() 8192 /* punt totally */
26797 # endif /* no HAVE_SYS_PARAM_H */
26798 # endif /* no _SC_PAGESIZE */
26800 #endif /* no HAVE_GETPAGESIZE */
26805 char *data, *data2, *data3;
26809 pagesize = getpagesize ();
26811 /* First, make a file with some known garbage in it. */
26812 data = (char *) malloc (pagesize);
26815 for (i = 0; i < pagesize; ++i)
26816 *(data + i) = rand ();
26818 fd = creat ("conftest.mmap", 0600);
26821 if (write (fd, data, pagesize) != pagesize)
26825 /* Next, try to mmap the file at a fixed address which already has
26826 something else allocated at it. If we can, also make sure that
26827 we see the same garbage. */
26828 fd = open ("conftest.mmap", O_RDWR);
26831 data2 = (char *) malloc (2 * pagesize);
26834 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
26835 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26836 MAP_PRIVATE | MAP_FIXED, fd, 0L))
26838 for (i = 0; i < pagesize; ++i)
26839 if (*(data + i) != *(data2 + i))
26842 /* Finally, make sure that changes to the mapped area do not
26843 percolate back to the file as seen by read(). (This is a bug on
26844 some variants of i386 svr4.0.) */
26845 for (i = 0; i < pagesize; ++i)
26846 *(data2 + i) = *(data2 + i) + 1;
26847 data3 = (char *) malloc (pagesize);
26850 if (read (fd, data3, pagesize) != pagesize)
26852 for (i = 0; i < pagesize; ++i)
26853 if (*(data + i) != *(data3 + i))
26859 rm -f conftest$ac_exeext
26860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26861 (eval $ac_link) 2>&5
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26866 (eval $ac_try) 2>&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); }; }; then
26870 ac_cv_func_mmap_fixed_mapped=yes
26872 echo "$as_me: program exited with status $ac_status" >&5
26873 echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.$ac_ext >&5
26876 ( exit $ac_status )
26877 ac_cv_func_mmap_fixed_mapped=no
26879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26882 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
26883 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
26884 if test $ac_cv_func_mmap_fixed_mapped = yes; then
26886 cat >>confdefs.h <<\_ACEOF
26887 #define HAVE_MMAP 1
26891 rm -f conftest.mmap
26894 echo "$as_me:$LINENO: checking whether printf supports %p" >&5
26895 echo $ECHO_N "checking whether printf supports %p... $ECHO_C" >&6
26896 if test "${cvs_cv_func_printf_ptr+set}" = set; then
26897 echo $ECHO_N "(cached) $ECHO_C" >&6
26899 if test "$cross_compiling" = yes; then
26900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26901 See \`config.log' for more details." >&5
26902 echo "$as_me: error: cannot run test program while cross compiling
26903 See \`config.log' for more details." >&2;}
26904 { (exit 1); exit 1; }; }
26906 cat >conftest.$ac_ext <<_ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h. */
26913 /* If printf supports %p, exit 0. */
26919 p1 = &p1; p2 = &p2;
26920 sprintf(buf, "%p", p1);
26921 exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
26924 rm -f conftest$ac_exeext
26925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26926 (eval $ac_link) 2>&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931 (eval $ac_try) 2>&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; }; then
26935 cvs_cv_func_printf_ptr=yes
26937 echo "$as_me: program exited with status $ac_status" >&5
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 ( exit $ac_status )
26942 cvs_cv_func_printf_ptr=no
26944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26946 rm -f core core.* *.core
26948 echo "$as_me:$LINENO: result: $cvs_cv_func_printf_ptr" >&5
26949 echo "${ECHO_T}$cvs_cv_func_printf_ptr" >&6
26950 if test $cvs_cv_func_printf_ptr = yes; then
26952 cat >>confdefs.h <<\_ACEOF
26953 #define HAVE_PRINTF_PTR 1
26959 # Try to find connect and gethostbyname.
26961 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
26962 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
26963 if test "${ac_cv_lib_nsl_main+set}" = set; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26966 ac_check_lib_save_LIBS=$LIBS
26968 cat >conftest.$ac_ext <<_ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h. */
26984 rm -f conftest.$ac_objext conftest$ac_exeext
26985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26986 (eval $ac_link) 2>conftest.er1
26988 grep -v '^ *+' conftest.er1 >conftest.err
26990 cat conftest.err >&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); } &&
26993 { ac_try='test -z "$ac_c_werror_flag"
26994 || test ! -s conftest.err'
26995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26996 (eval $ac_try) 2>&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; } &&
27000 { ac_try='test -s conftest$ac_exeext'
27001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27002 (eval $ac_try) 2>&5
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); }; }; then
27006 ac_cv_lib_nsl_main=yes
27008 echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27011 ac_cv_lib_nsl_main=no
27013 rm -f conftest.err conftest.$ac_objext \
27014 conftest$ac_exeext conftest.$ac_ext
27015 LIBS=$ac_check_lib_save_LIBS
27017 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
27018 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
27019 if test $ac_cv_lib_nsl_main = yes; then
27020 cat >>confdefs.h <<_ACEOF
27021 #define HAVE_LIBNSL 1
27028 echo "$as_me:$LINENO: checking for library containing connect" >&5
27029 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
27030 if test "${ac_cv_search_connect+set}" = set; then
27031 echo $ECHO_N "(cached) $ECHO_C" >&6
27033 ac_func_search_save_LIBS=$LIBS
27034 ac_cv_search_connect=no
27035 cat >conftest.$ac_ext <<_ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h. */
27042 /* Override any gcc2 internal prototype to avoid an error. */
27046 /* We use char because int might match the return type of a gcc2
27047 builtin and then its argument prototype would still apply. */
27057 rm -f conftest.$ac_objext conftest$ac_exeext
27058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27059 (eval $ac_link) 2>conftest.er1
27061 grep -v '^ *+' conftest.er1 >conftest.err
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } &&
27066 { ac_try='test -z "$ac_c_werror_flag"
27067 || test ! -s conftest.err'
27068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27069 (eval $ac_try) 2>&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; } &&
27073 { ac_try='test -s conftest$ac_exeext'
27074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075 (eval $ac_try) 2>&5
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; }; then
27079 ac_cv_search_connect="none required"
27081 echo "$as_me: failed program was:" >&5
27082 sed 's/^/| /' conftest.$ac_ext >&5
27085 rm -f conftest.err conftest.$ac_objext \
27086 conftest$ac_exeext conftest.$ac_ext
27087 if test "$ac_cv_search_connect" = no; then
27088 for ac_lib in xnet socket inet; do
27089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27090 cat >conftest.$ac_ext <<_ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h. */
27097 /* Override any gcc2 internal prototype to avoid an error. */
27101 /* We use char because int might match the return type of a gcc2
27102 builtin and then its argument prototype would still apply. */
27112 rm -f conftest.$ac_objext conftest$ac_exeext
27113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27114 (eval $ac_link) 2>conftest.er1
27116 grep -v '^ *+' conftest.er1 >conftest.err
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } &&
27121 { ac_try='test -z "$ac_c_werror_flag"
27122 || test ! -s conftest.err'
27123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124 (eval $ac_try) 2>&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; } &&
27128 { ac_try='test -s conftest$ac_exeext'
27129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130 (eval $ac_try) 2>&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
27134 ac_cv_search_connect="-l$ac_lib"
27137 echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27141 rm -f conftest.err conftest.$ac_objext \
27142 conftest$ac_exeext conftest.$ac_ext
27145 LIBS=$ac_func_search_save_LIBS
27147 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
27148 echo "${ECHO_T}$ac_cv_search_connect" >&6
27149 if test "$ac_cv_search_connect" != no; then
27150 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
27152 cat >>confdefs.h <<\_ACEOF
27153 #define HAVE_CONNECT 1
27158 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
27159 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
27160 if test "${ac_cv_search_gethostbyname+set}" = set; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27163 ac_func_search_save_LIBS=$LIBS
27164 ac_cv_search_gethostbyname=no
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27172 /* Override any gcc2 internal prototype to avoid an error. */
27176 /* We use char because int might match the return type of a gcc2
27177 builtin and then its argument prototype would still apply. */
27178 char gethostbyname ();
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27189 (eval $ac_link) 2>conftest.er1
27191 grep -v '^ *+' conftest.er1 >conftest.err
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag"
27197 || test ! -s conftest.err'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; } &&
27203 { ac_try='test -s conftest$ac_exeext'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 ac_cv_search_gethostbyname="none required"
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27215 rm -f conftest.err conftest.$ac_objext \
27216 conftest$ac_exeext conftest.$ac_ext
27217 if test "$ac_cv_search_gethostbyname" = no; then
27218 for ac_lib in netinet; do
27219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27220 cat >conftest.$ac_ext <<_ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h. */
27227 /* Override any gcc2 internal prototype to avoid an error. */
27231 /* We use char because int might match the return type of a gcc2
27232 builtin and then its argument prototype would still apply. */
27233 char gethostbyname ();
27242 rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27244 (eval $ac_link) 2>conftest.er1
27246 grep -v '^ *+' conftest.er1 >conftest.err
27248 cat conftest.err >&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } &&
27251 { ac_try='test -z "$ac_c_werror_flag"
27252 || test ! -s conftest.err'
27253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254 (eval $ac_try) 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; } &&
27258 { ac_try='test -s conftest$ac_exeext'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 ac_cv_search_gethostbyname="-l$ac_lib"
27267 echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27271 rm -f conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
27275 LIBS=$ac_func_search_save_LIBS
27277 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
27278 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
27279 if test "$ac_cv_search_gethostbyname" != no; then
27280 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
27293 # Check whether --with-krb4 or --without-krb4 was given.
27294 if test "${with_krb4+set}" = set; then
27295 withval="$with_krb4"
27297 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
27298 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
27299 echo "$as_me:$LINENO: result: " >&5
27300 echo "${ECHO_T}" >&6
27304 echo "$as_me:$LINENO: checking for krb.h" >&5
27305 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
27306 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
27307 hold_cflags=$CFLAGS
27308 CFLAGS="$CFLAGS -I$KRB4/include"
27309 cat >conftest.$ac_ext <<_ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h. */
27324 rm -f conftest.$ac_objext conftest$ac_exeext
27325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27326 (eval $ac_link) 2>conftest.er1
27328 grep -v '^ *+' conftest.er1 >conftest.err
27330 cat conftest.err >&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } &&
27333 { ac_try='test -z "$ac_c_werror_flag"
27334 || test ! -s conftest.err'
27335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27336 (eval $ac_try) 2>&5
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); }; } &&
27340 { ac_try='test -s conftest$ac_exeext'
27341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27342 (eval $ac_try) 2>&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); }; }; then
27346 krb_h=yes krb_incdir=$KRB4/include
27348 echo "$as_me: failed program was:" >&5
27349 sed 's/^/| /' conftest.$ac_ext >&5
27351 CFLAGS=$hold_cflags
27352 cat >conftest.$ac_ext <<_ACEOF
27355 cat confdefs.h >>conftest.$ac_ext
27356 cat >>conftest.$ac_ext <<_ACEOF
27357 /* end confdefs.h. */
27367 rm -f conftest.$ac_objext conftest$ac_exeext
27368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27369 (eval $ac_link) 2>conftest.er1
27371 grep -v '^ *+' conftest.er1 >conftest.err
27373 cat conftest.err >&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } &&
27376 { ac_try='test -z "$ac_c_werror_flag"
27377 || test ! -s conftest.err'
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; } &&
27383 { ac_try='test -s conftest$ac_exeext'
27384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385 (eval $ac_try) 2>&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); }; }; then
27389 krb_h=yes krb_incdir=
27391 echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27395 rm -f conftest.err conftest.$ac_objext \
27396 conftest$ac_exeext conftest.$ac_ext
27398 rm -f conftest.err conftest.$ac_objext \
27399 conftest$ac_exeext conftest.$ac_ext
27400 CFLAGS=$hold_cflags
27402 cat >conftest.$ac_ext <<_ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h. */
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419 (eval $ac_link) 2>conftest.er1
27421 grep -v '^ *+' conftest.er1 >conftest.err
27423 cat conftest.err >&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } &&
27426 { ac_try='test -z "$ac_c_werror_flag"
27427 || test ! -s conftest.err'
27428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429 (eval $ac_try) 2>&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; } &&
27433 { ac_try='test -s conftest$ac_exeext'
27434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435 (eval $ac_try) 2>&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }; then
27439 krb_h=yes krb_incdir=
27441 echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27445 rm -f conftest.err conftest.$ac_objext \
27446 conftest$ac_exeext conftest.$ac_ext
27448 if test -z "$krb_h"; then
27449 cat >conftest.$ac_ext <<_ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h. */
27464 rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27466 (eval $ac_link) 2>conftest.er1
27468 grep -v '^ *+' conftest.er1 >conftest.err
27470 cat conftest.err >&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } &&
27473 { ac_try='test -z "$ac_c_werror_flag"
27474 || test ! -s conftest.err'
27475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476 (eval $ac_try) 2>&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } &&
27480 { ac_try='test -s conftest$ac_exeext'
27481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27482 (eval $ac_try) 2>&5
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); }; }; then
27486 krb_h=yes krb_incdir=
27488 echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27491 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
27492 hold_cflags=$CFLAGS
27493 CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
27494 cat >conftest.$ac_ext <<_ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h. */
27509 rm -f conftest.$ac_objext conftest$ac_exeext
27510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27511 (eval $ac_link) 2>conftest.er1
27513 grep -v '^ *+' conftest.er1 >conftest.err
27515 cat conftest.err >&5
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); } &&
27518 { ac_try='test -z "$ac_c_werror_flag"
27519 || test ! -s conftest.err'
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; } &&
27525 { ac_try='test -s conftest$ac_exeext'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
27531 krb_h=yes krb_incdir=$KRB4/include/kerberosIV
27533 echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27537 rm -f conftest.err conftest.$ac_objext \
27538 conftest$ac_exeext conftest.$ac_ext
27539 CFLAGS=$hold_cflags
27542 rm -f conftest.err conftest.$ac_objext \
27543 conftest$ac_exeext conftest.$ac_ext
27545 echo "$as_me:$LINENO: result: $krb_h" >&5
27546 echo "${ECHO_T}$krb_h" >&6
27548 if test -n "$krb_h"; then
27550 if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
27551 hold_ldflags=$LDFLAGS
27552 LDFLAGS="-L${KRB4}/lib $LDFLAGS"
27553 echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
27554 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
27555 if test "${ac_cv_lib_krb_printf+set}" = set; then
27556 echo $ECHO_N "(cached) $ECHO_C" >&6
27558 ac_check_lib_save_LIBS=$LIBS
27560 cat >conftest.$ac_ext <<_ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h. */
27567 /* Override any gcc2 internal prototype to avoid an error. */
27571 /* We use char because int might match the return type of a gcc2
27572 builtin and then its argument prototype would still apply. */
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27584 (eval $ac_link) 2>conftest.er1
27586 grep -v '^ *+' conftest.er1 >conftest.err
27588 cat conftest.err >&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); } &&
27591 { ac_try='test -z "$ac_c_werror_flag"
27592 || test ! -s conftest.err'
27593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594 (eval $ac_try) 2>&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); }; } &&
27598 { ac_try='test -s conftest$ac_exeext'
27599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600 (eval $ac_try) 2>&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); }; }; then
27604 ac_cv_lib_krb_printf=yes
27606 echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27609 ac_cv_lib_krb_printf=no
27611 rm -f conftest.err conftest.$ac_objext \
27612 conftest$ac_exeext conftest.$ac_ext
27613 LIBS=$ac_check_lib_save_LIBS
27615 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
27616 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
27617 if test $ac_cv_lib_krb_printf = yes; then
27618 krb_lib=yes krb_libdir=${KRB4}/lib
27620 LDFLAGS=$hold_ldflags
27621 # Using open here instead of printf so we don't
27622 # get confused by the cached value for printf from above.
27623 echo "$as_me:$LINENO: checking for open in -lkrb" >&5
27624 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
27625 if test "${ac_cv_lib_krb_open+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 ac_check_lib_save_LIBS=$LIBS
27630 cat >conftest.$ac_ext <<_ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h. */
27637 /* Override any gcc2 internal prototype to avoid an error. */
27641 /* We use char because int might match the return type of a gcc2
27642 builtin and then its argument prototype would still apply. */
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27654 (eval $ac_link) 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } &&
27661 { ac_try='test -z "$ac_c_werror_flag"
27662 || test ! -s conftest.err'
27663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; } &&
27668 { ac_try='test -s conftest$ac_exeext'
27669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670 (eval $ac_try) 2>&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; }; then
27674 ac_cv_lib_krb_open=yes
27676 echo "$as_me: failed program was:" >&5
27677 sed 's/^/| /' conftest.$ac_ext >&5
27679 ac_cv_lib_krb_open=no
27681 rm -f conftest.err conftest.$ac_objext \
27682 conftest$ac_exeext conftest.$ac_ext
27683 LIBS=$ac_check_lib_save_LIBS
27685 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
27686 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
27687 if test $ac_cv_lib_krb_open = yes; then
27688 krb_lib=yes krb_libdir=
27693 LDFLAGS=$hold_ldflags
27695 echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
27696 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
27697 if test "${ac_cv_lib_krb_printf+set}" = set; then
27698 echo $ECHO_N "(cached) $ECHO_C" >&6
27700 ac_check_lib_save_LIBS=$LIBS
27702 cat >conftest.$ac_ext <<_ACEOF
27705 cat confdefs.h >>conftest.$ac_ext
27706 cat >>conftest.$ac_ext <<_ACEOF
27707 /* end confdefs.h. */
27709 /* Override any gcc2 internal prototype to avoid an error. */
27713 /* We use char because int might match the return type of a gcc2
27714 builtin and then its argument prototype would still apply. */
27724 rm -f conftest.$ac_objext conftest$ac_exeext
27725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27726 (eval $ac_link) 2>conftest.er1
27728 grep -v '^ *+' conftest.er1 >conftest.err
27730 cat conftest.err >&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); } &&
27733 { ac_try='test -z "$ac_c_werror_flag"
27734 || test ! -s conftest.err'
27735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736 (eval $ac_try) 2>&5
27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); }; } &&
27740 { ac_try='test -s conftest$ac_exeext'
27741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742 (eval $ac_try) 2>&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); }; }; then
27746 ac_cv_lib_krb_printf=yes
27748 echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 ac_cv_lib_krb_printf=no
27753 rm -f conftest.err conftest.$ac_objext \
27754 conftest$ac_exeext conftest.$ac_ext
27755 LIBS=$ac_check_lib_save_LIBS
27757 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
27758 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
27759 if test $ac_cv_lib_krb_printf = yes; then
27760 krb_lib=yes krb_libdir=
27763 echo "$as_me:$LINENO: checking for krb_recvauth" >&5
27764 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6
27765 if test "${ac_cv_func_krb_recvauth+set}" = set; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27768 cat >conftest.$ac_ext <<_ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h. */
27774 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
27775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27776 #define krb_recvauth innocuous_krb_recvauth
27778 /* System header to define __stub macros and hopefully few prototypes,
27779 which can conflict with char krb_recvauth (); below.
27780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27781 <limits.h> exists even on freestanding compilers. */
27784 # include <limits.h>
27786 # include <assert.h>
27789 #undef krb_recvauth
27791 /* Override any gcc2 internal prototype to avoid an error. */
27796 /* We use char because int might match the return type of a gcc2
27797 builtin and then its argument prototype would still apply. */
27798 char krb_recvauth ();
27799 /* The GNU C library defines this for functions which it implements
27800 to always fail with ENOSYS. Some functions are actually named
27801 something starting with __ and the normal name is an alias. */
27802 #if defined (__stub_krb_recvauth) || defined (__stub___krb_recvauth)
27805 char (*f) () = krb_recvauth;
27814 return f != krb_recvauth;
27819 rm -f conftest.$ac_objext conftest$ac_exeext
27820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27821 (eval $ac_link) 2>conftest.er1
27823 grep -v '^ *+' conftest.er1 >conftest.err
27825 cat conftest.err >&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } &&
27828 { ac_try='test -z "$ac_c_werror_flag"
27829 || test ! -s conftest.err'
27830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831 (eval $ac_try) 2>&5
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); }; } &&
27835 { ac_try='test -s conftest$ac_exeext'
27836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837 (eval $ac_try) 2>&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
27841 ac_cv_func_krb_recvauth=yes
27843 echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27846 ac_cv_func_krb_recvauth=no
27848 rm -f conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
27851 echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
27852 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6
27853 if test $ac_cv_func_krb_recvauth = yes; then
27854 krb_lib=yes krb_libdir=
27858 if test -n "$krb_lib"; then
27860 cat >>confdefs.h <<\_ACEOF
27861 #define HAVE_KERBEROS 1
27864 cvs_client_objects="$cvs_client_objects kerberos4-client.o"
27865 test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
27866 # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
27867 # -ldes in the command line. Don't do it permanently so that we honor
27868 # the user's setting for LDFLAGS
27869 hold_ldflags=$LDFLAGS
27870 test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
27871 echo "$as_me:$LINENO: checking for printf in -ldes" >&5
27872 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
27873 if test "${ac_cv_lib_des_printf+set}" = set; then
27874 echo $ECHO_N "(cached) $ECHO_C" >&6
27876 ac_check_lib_save_LIBS=$LIBS
27878 cat >conftest.$ac_ext <<_ACEOF
27881 cat confdefs.h >>conftest.$ac_ext
27882 cat >>conftest.$ac_ext <<_ACEOF
27883 /* end confdefs.h. */
27885 /* Override any gcc2 internal prototype to avoid an error. */
27889 /* We use char because int might match the return type of a gcc2
27890 builtin and then its argument prototype would still apply. */
27900 rm -f conftest.$ac_objext conftest$ac_exeext
27901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27902 (eval $ac_link) 2>conftest.er1
27904 grep -v '^ *+' conftest.er1 >conftest.err
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } &&
27909 { ac_try='test -z "$ac_c_werror_flag"
27910 || test ! -s conftest.err'
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; } &&
27916 { ac_try='test -s conftest$ac_exeext'
27917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918 (eval $ac_try) 2>&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; }; then
27922 ac_cv_lib_des_printf=yes
27924 echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27927 ac_cv_lib_des_printf=no
27929 rm -f conftest.err conftest.$ac_objext \
27930 conftest$ac_exeext conftest.$ac_ext
27931 LIBS=$ac_check_lib_save_LIBS
27933 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
27934 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
27935 if test $ac_cv_lib_des_printf = yes; then
27936 LIBS="${LIBS} -ldes"
27940 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
27941 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6
27942 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
27943 echo $ECHO_N "(cached) $ECHO_C" >&6
27945 ac_check_lib_save_LIBS=$LIBS
27947 cat >conftest.$ac_ext <<_ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h. */
27954 /* Override any gcc2 internal prototype to avoid an error. */
27958 /* We use char because int might match the return type of a gcc2
27959 builtin and then its argument prototype would still apply. */
27960 char krb_recvauth ();
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27971 (eval $ac_link) 2>conftest.er1
27973 grep -v '^ *+' conftest.er1 >conftest.err
27975 cat conftest.err >&5
27976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977 (exit $ac_status); } &&
27978 { ac_try='test -z "$ac_c_werror_flag"
27979 || test ! -s conftest.err'
27980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981 (eval $ac_try) 2>&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; } &&
27985 { ac_try='test -s conftest$ac_exeext'
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; }; then
27991 ac_cv_lib_krb_krb_recvauth=yes
27993 echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27996 ac_cv_lib_krb_krb_recvauth=no
27998 rm -f conftest.err conftest.$ac_objext \
27999 conftest$ac_exeext conftest.$ac_ext
28000 LIBS=$ac_check_lib_save_LIBS
28002 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
28003 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6
28004 if test $ac_cv_lib_krb_krb_recvauth = yes; then
28005 cat >>confdefs.h <<_ACEOF
28006 #define HAVE_LIBKRB 1
28014 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
28015 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6
28016 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
28017 echo $ECHO_N "(cached) $ECHO_C" >&6
28019 ac_check_lib_save_LIBS=$LIBS
28020 LIBS="-lkrb4 $LIBS"
28021 cat >conftest.$ac_ext <<_ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h. */
28028 /* Override any gcc2 internal prototype to avoid an error. */
28032 /* We use char because int might match the return type of a gcc2
28033 builtin and then its argument prototype would still apply. */
28034 char krb_recvauth ();
28043 rm -f conftest.$ac_objext conftest$ac_exeext
28044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28045 (eval $ac_link) 2>conftest.er1
28047 grep -v '^ *+' conftest.er1 >conftest.err
28049 cat conftest.err >&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } &&
28052 { ac_try='test -z "$ac_c_werror_flag"
28053 || test ! -s conftest.err'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } &&
28059 { ac_try='test -s conftest$ac_exeext'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; }; then
28065 ac_cv_lib_krb4_krb_recvauth=yes
28067 echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28070 ac_cv_lib_krb4_krb_recvauth=no
28072 rm -f conftest.err conftest.$ac_objext \
28073 conftest$ac_exeext conftest.$ac_ext
28074 LIBS=$ac_check_lib_save_LIBS
28076 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
28077 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6
28078 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
28079 cat >>confdefs.h <<_ACEOF
28080 #define HAVE_LIBKRB4 1
28083 LIBS="-lkrb4 $LIBS"
28087 LDFLAGS=$hold_ldflags
28088 if test -n "$krb_incdir"; then
28089 CPPFLAGS="$CPPFLAGS -I$krb_incdir"
28094 for ac_func in krb_get_err_text
28096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28097 echo "$as_me:$LINENO: checking for $ac_func" >&5
28098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28099 if eval "test \"\${$as_ac_var+set}\" = set"; then
28100 echo $ECHO_N "(cached) $ECHO_C" >&6
28102 cat >conftest.$ac_ext <<_ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h. */
28108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28110 #define $ac_func innocuous_$ac_func
28112 /* System header to define __stub macros and hopefully few prototypes,
28113 which can conflict with char $ac_func (); below.
28114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28115 <limits.h> exists even on freestanding compilers. */
28118 # include <limits.h>
28120 # include <assert.h>
28125 /* Override any gcc2 internal prototype to avoid an error. */
28130 /* We use char because int might match the return type of a gcc2
28131 builtin and then its argument prototype would still apply. */
28133 /* The GNU C library defines this for functions which it implements
28134 to always fail with ENOSYS. Some functions are actually named
28135 something starting with __ and the normal name is an alias. */
28136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28139 char (*f) () = $ac_func;
28148 return f != $ac_func;
28153 rm -f conftest.$ac_objext conftest$ac_exeext
28154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28155 (eval $ac_link) 2>conftest.er1
28157 grep -v '^ *+' conftest.er1 >conftest.err
28159 cat conftest.err >&5
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); } &&
28162 { ac_try='test -z "$ac_c_werror_flag"
28163 || test ! -s conftest.err'
28164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; } &&
28169 { ac_try='test -s conftest$ac_exeext'
28170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28171 (eval $ac_try) 2>&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; }; then
28175 eval "$as_ac_var=yes"
28177 echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28180 eval "$as_ac_var=no"
28182 rm -f conftest.err conftest.$ac_objext \
28183 conftest$ac_exeext conftest.$ac_ext
28185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28187 if test `eval echo '${'$as_ac_var'}'` = yes; then
28188 cat >>confdefs.h <<_ACEOF
28189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28199 # Use --with-gssapi[=DIR] to enable GSSAPI support.
28201 # defaults to enabled with DIR in default list below
28203 # Search for /SUNHEA/ and read the comments about this default below.
28206 # Check whether --with-gssapi or --without-gssapi was given.
28207 if test "${with_gssapi+set}" = set; then
28208 withval="$with_gssapi"
28214 # Try to locate a GSSAPI installation if no location was specified, assuming
28215 # GSSAPI was enabled (the default).
28217 if test -n "$acx_gssapi_cv_gssapi"; then
28218 # Granted, this is a slightly ugly way to print this info, but the
28219 # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
28220 # AC_CACHE_CHECK worse
28221 echo "$as_me:$LINENO: checking for GSSAPI" >&5
28222 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
28224 if test "${acx_gssapi_cv_gssapi+set}" = set; then
28225 echo $ECHO_N "(cached) $ECHO_C" >&6
28228 if test x$with_gssapi = xyes; then
28229 # --with but no location specified
28230 # assume a gssapi.h or gssapi/gssapi.h locates our install.
28232 # This isn't always strictly true. For instance Solaris 7's SUNHEA (header)
28233 # package installs gssapi.h whether or not the necessary libraries are
28234 # installed. I'm still not sure whether to consider this a bug. The long
28235 # way around is to not consider GSSPAI installed unless gss_import_name is
28236 # found, but that brings up a lot of other hassles, like continuing to let
28237 # gcc & ld generate the error messages when the user uses --with-gssapi=dir
28238 # as a debugging aid. The short way around is to disable GSSAPI by default,
28239 # but I think Sun users have been faced with this for awhile and I haven't
28240 # heard many complaints.
28241 acx_gssapi_save_CPPFLAGS=$CPPFLAGS
28242 for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
28243 if test x$acx_gssapi_cv_gssapi = xno; then
28246 if test x$acx_gssapi_cv_gssapi = xyes; then
28247 echo "$as_me:$LINENO: checking for GSSAPI" >&5
28248 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
28249 echo "$as_me:$LINENO: result: " >&5
28250 echo "${ECHO_T}" >&6
28252 CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
28253 echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
28254 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
28255 echo "$as_me:$LINENO: result: " >&5
28256 echo "${ECHO_T}" >&6
28258 unset ac_cv_header_gssapi_h
28259 unset ac_cv_header_gssapi_gssapi_h
28260 unset ac_cv_header_krb5_h
28264 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
28266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28268 echo "$as_me:$LINENO: checking for $ac_header" >&5
28269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28271 echo $ECHO_N "(cached) $ECHO_C" >&6
28273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28276 # Is the header compilable?
28277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28279 cat >conftest.$ac_ext <<_ACEOF
28282 cat confdefs.h >>conftest.$ac_ext
28283 cat >>conftest.$ac_ext <<_ACEOF
28284 /* end confdefs.h. */
28285 $ac_includes_default
28286 #include <$ac_header>
28288 rm -f conftest.$ac_objext
28289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28290 (eval $ac_compile) 2>conftest.er1
28292 grep -v '^ *+' conftest.er1 >conftest.err
28294 cat conftest.err >&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } &&
28297 { ac_try='test -z "$ac_c_werror_flag"
28298 || test ! -s conftest.err'
28299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28300 (eval $ac_try) 2>&5
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); }; } &&
28304 { ac_try='test -s conftest.$ac_objext'
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; }; then
28310 ac_header_compiler=yes
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28315 ac_header_compiler=no
28317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28319 echo "${ECHO_T}$ac_header_compiler" >&6
28321 # Is the header present?
28322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28324 cat >conftest.$ac_ext <<_ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h. */
28330 #include <$ac_header>
28332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28335 grep -v '^ *+' conftest.er1 >conftest.err
28337 cat conftest.err >&5
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); } >/dev/null; then
28340 if test -s conftest.err; then
28341 ac_cpp_err=$ac_c_preproc_warn_flag
28342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28349 if test -z "$ac_cpp_err"; then
28350 ac_header_preproc=yes
28352 echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28355 ac_header_preproc=no
28357 rm -f conftest.err conftest.$ac_ext
28358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28359 echo "${ECHO_T}$ac_header_preproc" >&6
28361 # So? What about this header?
28362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28368 ac_header_preproc=yes
28371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28385 ## ------------------------------ ##
28386 ## Report this to bug-cvs@gnu.org ##
28387 ## ------------------------------ ##
28390 sed "s/^/$as_me: WARNING: /" >&2
28393 echo "$as_me:$LINENO: checking for $ac_header" >&5
28394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28396 echo $ECHO_N "(cached) $ECHO_C" >&6
28398 eval "$as_ac_Header=\$ac_header_preproc"
28400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28405 cat >>confdefs.h <<_ACEOF
28406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28413 if (test "$ac_cv_header_gssapi_h" = yes ||
28414 test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
28415 test "$ac_cv_header_krb5_h" = yes; then
28419 CPPFLAGS=$acx_gssapi_save_CPPFLAGS
28421 acx_gssapi_cv_gssapi=$with_gssapi
28423 echo "$as_me:$LINENO: checking for GSSAPI" >&5
28424 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
28427 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
28428 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
28431 # Set up GSSAPI includes for later use. We don't bother to check for
28432 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
28434 if test x$acx_gssapi_cv_gssapi = xyes; then
28435 # no special includes necessary
28438 # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
28439 GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
28443 # Get the rest of the information CVS needs to compile with GSSAPI support
28445 if test x$acx_gssapi_cv_gssapi != xno; then
28446 # define HAVE_GSSAPI and set up the includes
28448 cat >>confdefs.h <<\_ACEOF
28449 #define HAVE_GSSAPI
28452 CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
28454 cvs_client_objects="$cvs_client_objects gssapi-client.o"
28456 # locate any other headers
28461 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
28463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28465 echo "$as_me:$LINENO: checking for $ac_header" >&5
28466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28468 echo $ECHO_N "(cached) $ECHO_C" >&6
28470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28473 # Is the header compilable?
28474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28476 cat >conftest.$ac_ext <<_ACEOF
28479 cat confdefs.h >>conftest.$ac_ext
28480 cat >>conftest.$ac_ext <<_ACEOF
28481 /* end confdefs.h. */
28482 $ac_includes_default
28483 #include <$ac_header>
28485 rm -f conftest.$ac_objext
28486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28487 (eval $ac_compile) 2>conftest.er1
28489 grep -v '^ *+' conftest.er1 >conftest.err
28491 cat conftest.err >&5
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); } &&
28494 { ac_try='test -z "$ac_c_werror_flag"
28495 || test ! -s conftest.err'
28496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28497 (eval $ac_try) 2>&5
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); }; } &&
28501 { ac_try='test -s conftest.$ac_objext'
28502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28503 (eval $ac_try) 2>&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; }; then
28507 ac_header_compiler=yes
28509 echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28512 ac_header_compiler=no
28514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28516 echo "${ECHO_T}$ac_header_compiler" >&6
28518 # Is the header present?
28519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 #include <$ac_header>
28529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28532 grep -v '^ *+' conftest.er1 >conftest.err
28534 cat conftest.err >&5
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); } >/dev/null; then
28537 if test -s conftest.err; then
28538 ac_cpp_err=$ac_c_preproc_warn_flag
28539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28546 if test -z "$ac_cpp_err"; then
28547 ac_header_preproc=yes
28549 echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28552 ac_header_preproc=no
28554 rm -f conftest.err conftest.$ac_ext
28555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28556 echo "${ECHO_T}$ac_header_preproc" >&6
28558 # So? What about this header?
28559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28565 ac_header_preproc=yes
28568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28582 ## ------------------------------ ##
28583 ## Report this to bug-cvs@gnu.org ##
28584 ## ------------------------------ ##
28587 sed "s/^/$as_me: WARNING: /" >&2
28590 echo "$as_me:$LINENO: checking for $ac_header" >&5
28591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28593 echo $ECHO_N "(cached) $ECHO_C" >&6
28595 eval "$as_ac_Header=\$ac_header_preproc"
28597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28602 cat >>confdefs.h <<_ACEOF
28603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28610 # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
28611 echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
28612 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
28613 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
28614 echo $ECHO_N "(cached) $ECHO_C" >&6
28617 acx_gssapi_cv_gss_c_nt_hostbased_service=no
28618 if test "$ac_cv_header_gssapi_h" = "yes"; then
28619 cat >conftest.$ac_ext <<_ACEOF
28622 cat confdefs.h >>conftest.$ac_ext
28623 cat >>conftest.$ac_ext <<_ACEOF
28624 /* end confdefs.h. */
28625 #include <gssapi.h>
28628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28629 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
28630 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
28633 cat >conftest.$ac_ext <<_ACEOF
28636 cat confdefs.h >>conftest.$ac_ext
28637 cat >>conftest.$ac_ext <<_ACEOF
28638 /* end confdefs.h. */
28639 #include <gssapi.h>
28642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28643 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
28644 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
28653 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
28654 test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
28655 cat >conftest.$ac_ext <<_ACEOF
28658 cat confdefs.h >>conftest.$ac_ext
28659 cat >>conftest.$ac_ext <<_ACEOF
28660 /* end confdefs.h. */
28661 #include <gssapi/gssapi.h>
28664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28665 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
28666 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
28669 cat >conftest.$ac_ext <<_ACEOF
28672 cat confdefs.h >>conftest.$ac_ext
28673 cat >>conftest.$ac_ext <<_ACEOF
28674 /* end confdefs.h. */
28675 #include <gssapi/gssapi.h>
28678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28679 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
28680 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
28689 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
28690 test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
28691 cat >conftest.$ac_ext <<_ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h. */
28697 #include <gssapi/gssapi_generic.h>
28700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28701 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
28702 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
28705 cat >conftest.$ac_ext <<_ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28711 #include <gssapi/gssapi_generic.h>
28714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28715 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
28716 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
28727 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
28728 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
28729 if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
28730 test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
28731 # don't define for yes since that means it already means something and
28732 # don't define for no since we'd rather the compiler catch the error
28733 # It's debatable whether we'd prefer that the compiler catch the error
28734 # - it seems our estranged developer is more likely to be familiar with
28735 # the intricacies of the compiler than with those of autoconf, but by
28736 # the same token, maybe we'd rather alert them to the fact that most
28737 # of the support they need to fix the problem is installed if they can
28738 # simply locate the appropriate symbol.
28740 cat >>confdefs.h <<_ACEOF
28741 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
28746 # Expect the libs to be installed parallel to the headers
28748 # We could try once with and once without, but I'm not sure it's worth the
28750 if test x$acx_gssapi_cv_gssapi != xyes; then
28751 if test -z "$LIBS"; then
28752 LIBS="-L$acx_gssapi_cv_gssapi/lib"
28754 LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
28759 # Some of the order below is particular due to library dependencies
28763 # des Heimdal K 0.3d, but Heimdal seems to be set up such
28764 # that it could have been installed from elsewhere.
28766 echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
28767 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
28768 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
28769 echo $ECHO_N "(cached) $ECHO_C" >&6
28771 ac_func_search_save_LIBS=$LIBS
28772 ac_cv_search_des_set_odd_parity=no
28773 cat >conftest.$ac_ext <<_ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h. */
28780 /* Override any gcc2 internal prototype to avoid an error. */
28784 /* We use char because int might match the return type of a gcc2
28785 builtin and then its argument prototype would still apply. */
28786 char des_set_odd_parity ();
28790 des_set_odd_parity ();
28795 rm -f conftest.$ac_objext conftest$ac_exeext
28796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28797 (eval $ac_link) 2>conftest.er1
28799 grep -v '^ *+' conftest.er1 >conftest.err
28801 cat conftest.err >&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); } &&
28804 { ac_try='test -z "$ac_c_werror_flag"
28805 || test ! -s conftest.err'
28806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807 (eval $ac_try) 2>&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; } &&
28811 { ac_try='test -s conftest$ac_exeext'
28812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813 (eval $ac_try) 2>&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); }; }; then
28817 ac_cv_search_des_set_odd_parity="none required"
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28823 rm -f conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
28825 if test "$ac_cv_search_des_set_odd_parity" = no; then
28826 for ac_lib in des; do
28827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28828 cat >conftest.$ac_ext <<_ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h. */
28835 /* Override any gcc2 internal prototype to avoid an error. */
28839 /* We use char because int might match the return type of a gcc2
28840 builtin and then its argument prototype would still apply. */
28841 char des_set_odd_parity ();
28845 des_set_odd_parity ();
28850 rm -f conftest.$ac_objext conftest$ac_exeext
28851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28852 (eval $ac_link) 2>conftest.er1
28854 grep -v '^ *+' conftest.er1 >conftest.err
28856 cat conftest.err >&5
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); } &&
28859 { ac_try='test -z "$ac_c_werror_flag"
28860 || test ! -s conftest.err'
28861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28862 (eval $ac_try) 2>&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; } &&
28866 { ac_try='test -s conftest$ac_exeext'
28867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28868 (eval $ac_try) 2>&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; }; then
28872 ac_cv_search_des_set_odd_parity="-l$ac_lib"
28875 echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28879 rm -f conftest.err conftest.$ac_objext \
28880 conftest$ac_exeext conftest.$ac_ext
28883 LIBS=$ac_func_search_save_LIBS
28885 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
28886 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
28887 if test "$ac_cv_search_des_set_odd_parity" != no; then
28888 test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
28894 # com_err Heimdal K 0.3d
28896 # com_err MIT K5 v1.2.2-beta1
28898 echo "$as_me:$LINENO: checking for library containing com_err" >&5
28899 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
28900 if test "${ac_cv_search_com_err+set}" = set; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28903 ac_func_search_save_LIBS=$LIBS
28904 ac_cv_search_com_err=no
28905 cat >conftest.$ac_ext <<_ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28912 /* Override any gcc2 internal prototype to avoid an error. */
28916 /* We use char because int might match the return type of a gcc2
28917 builtin and then its argument prototype would still apply. */
28927 rm -f conftest.$ac_objext conftest$ac_exeext
28928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28929 (eval $ac_link) 2>conftest.er1
28931 grep -v '^ *+' conftest.er1 >conftest.err
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } &&
28936 { ac_try='test -z "$ac_c_werror_flag"
28937 || test ! -s conftest.err'
28938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939 (eval $ac_try) 2>&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; } &&
28943 { ac_try='test -s conftest$ac_exeext'
28944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945 (eval $ac_try) 2>&5
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; }; then
28949 ac_cv_search_com_err="none required"
28951 echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28955 rm -f conftest.err conftest.$ac_objext \
28956 conftest$ac_exeext conftest.$ac_ext
28957 if test "$ac_cv_search_com_err" = no; then
28958 for ac_lib in com_err; do
28959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28960 cat >conftest.$ac_ext <<_ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28967 /* Override any gcc2 internal prototype to avoid an error. */
28971 /* We use char because int might match the return type of a gcc2
28972 builtin and then its argument prototype would still apply. */
28982 rm -f conftest.$ac_objext conftest$ac_exeext
28983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28984 (eval $ac_link) 2>conftest.er1
28986 grep -v '^ *+' conftest.er1 >conftest.err
28988 cat conftest.err >&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } &&
28991 { ac_try='test -z "$ac_c_werror_flag"
28992 || test ! -s conftest.err'
28993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994 (eval $ac_try) 2>&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; } &&
28998 { ac_try='test -s conftest$ac_exeext'
28999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000 (eval $ac_try) 2>&5
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); }; }; then
29004 ac_cv_search_com_err="-l$ac_lib"
29007 echo "$as_me: failed program was:" >&5
29008 sed 's/^/| /' conftest.$ac_ext >&5
29011 rm -f conftest.err conftest.$ac_objext \
29012 conftest$ac_exeext conftest.$ac_ext
29015 LIBS=$ac_func_search_save_LIBS
29017 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
29018 echo "${ECHO_T}$ac_cv_search_com_err" >&6
29019 if test "$ac_cv_search_com_err" != no; then
29020 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
29026 # asn1 Heimdal K 0.3d -lcom_err
29028 echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
29029 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
29030 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
29031 echo $ECHO_N "(cached) $ECHO_C" >&6
29033 ac_func_search_save_LIBS=$LIBS
29034 ac_cv_search_initialize_asn1_error_table_r=no
29035 cat >conftest.$ac_ext <<_ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h. */
29042 /* Override any gcc2 internal prototype to avoid an error. */
29046 /* We use char because int might match the return type of a gcc2
29047 builtin and then its argument prototype would still apply. */
29048 char initialize_asn1_error_table_r ();
29052 initialize_asn1_error_table_r ();
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29059 (eval $ac_link) 2>conftest.er1
29061 grep -v '^ *+' conftest.er1 >conftest.err
29063 cat conftest.err >&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); } &&
29066 { ac_try='test -z "$ac_c_werror_flag"
29067 || test ! -s conftest.err'
29068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069 (eval $ac_try) 2>&5
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); }; } &&
29073 { ac_try='test -s conftest$ac_exeext'
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29079 ac_cv_search_initialize_asn1_error_table_r="none required"
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29085 rm -f conftest.err conftest.$ac_objext \
29086 conftest$ac_exeext conftest.$ac_ext
29087 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
29088 for ac_lib in asn1; do
29089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29090 cat >conftest.$ac_ext <<_ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h. */
29097 /* Override any gcc2 internal prototype to avoid an error. */
29101 /* We use char because int might match the return type of a gcc2
29102 builtin and then its argument prototype would still apply. */
29103 char initialize_asn1_error_table_r ();
29107 initialize_asn1_error_table_r ();
29112 rm -f conftest.$ac_objext conftest$ac_exeext
29113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29114 (eval $ac_link) 2>conftest.er1
29116 grep -v '^ *+' conftest.er1 >conftest.err
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
29121 { ac_try='test -z "$ac_c_werror_flag"
29122 || test ! -s conftest.err'
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest$ac_exeext'
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; }; then
29134 ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
29137 echo "$as_me: failed program was:" >&5
29138 sed 's/^/| /' conftest.$ac_ext >&5
29141 rm -f conftest.err conftest.$ac_objext \
29142 conftest$ac_exeext conftest.$ac_ext
29145 LIBS=$ac_func_search_save_LIBS
29147 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
29148 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
29149 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
29150 test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
29156 # resolv required, but not installed by Heimdal K 0.3d
29158 # resolv MIT K5 1.2.2-beta1
29161 echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
29162 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
29163 if test "${ac_cv_search___dn_expand+set}" = set; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29166 ac_func_search_save_LIBS=$LIBS
29167 ac_cv_search___dn_expand=no
29168 cat >conftest.$ac_ext <<_ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h. */
29175 /* Override any gcc2 internal prototype to avoid an error. */
29179 /* We use char because int might match the return type of a gcc2
29180 builtin and then its argument prototype would still apply. */
29181 char __dn_expand ();
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192 (eval $ac_link) 2>conftest.er1
29194 grep -v '^ *+' conftest.er1 >conftest.err
29196 cat conftest.err >&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } &&
29199 { ac_try='test -z "$ac_c_werror_flag"
29200 || test ! -s conftest.err'
29201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202 (eval $ac_try) 2>&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; } &&
29206 { ac_try='test -s conftest$ac_exeext'
29207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208 (eval $ac_try) 2>&5
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); }; }; then
29212 ac_cv_search___dn_expand="none required"
29214 echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29218 rm -f conftest.err conftest.$ac_objext \
29219 conftest$ac_exeext conftest.$ac_ext
29220 if test "$ac_cv_search___dn_expand" = no; then
29221 for ac_lib in resolv; do
29222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29223 cat >conftest.$ac_ext <<_ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h. */
29230 /* Override any gcc2 internal prototype to avoid an error. */
29234 /* We use char because int might match the return type of a gcc2
29235 builtin and then its argument prototype would still apply. */
29236 char __dn_expand ();
29245 rm -f conftest.$ac_objext conftest$ac_exeext
29246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29247 (eval $ac_link) 2>conftest.er1
29249 grep -v '^ *+' conftest.er1 >conftest.err
29251 cat conftest.err >&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); } &&
29254 { ac_try='test -z "$ac_c_werror_flag"
29255 || test ! -s conftest.err'
29256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29257 (eval $ac_try) 2>&5
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); }; } &&
29261 { ac_try='test -s conftest$ac_exeext'
29262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263 (eval $ac_try) 2>&5
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
29267 ac_cv_search___dn_expand="-l$ac_lib"
29270 echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29274 rm -f conftest.err conftest.$ac_objext \
29275 conftest$ac_exeext conftest.$ac_ext
29278 LIBS=$ac_func_search_save_LIBS
29280 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
29281 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
29282 if test "$ac_cv_search___dn_expand" != no; then
29283 test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
29289 # crypt Needed by roken under FreeBSD 4.6.
29291 echo "$as_me:$LINENO: checking for library containing crypt" >&5
29292 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
29293 if test "${ac_cv_search_crypt+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29296 ac_func_search_save_LIBS=$LIBS
29297 ac_cv_search_crypt=no
29298 cat >conftest.$ac_ext <<_ACEOF
29301 cat confdefs.h >>conftest.$ac_ext
29302 cat >>conftest.$ac_ext <<_ACEOF
29303 /* end confdefs.h. */
29305 /* Override any gcc2 internal prototype to avoid an error. */
29309 /* We use char because int might match the return type of a gcc2
29310 builtin and then its argument prototype would still apply. */
29320 rm -f conftest.$ac_objext conftest$ac_exeext
29321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29322 (eval $ac_link) 2>conftest.er1
29324 grep -v '^ *+' conftest.er1 >conftest.err
29326 cat conftest.err >&5
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); } &&
29329 { ac_try='test -z "$ac_c_werror_flag"
29330 || test ! -s conftest.err'
29331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332 (eval $ac_try) 2>&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; } &&
29336 { ac_try='test -s conftest$ac_exeext'
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; }; then
29342 ac_cv_search_crypt="none required"
29344 echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29348 rm -f conftest.err conftest.$ac_objext \
29349 conftest$ac_exeext conftest.$ac_ext
29350 if test "$ac_cv_search_crypt" = no; then
29351 for ac_lib in crypt; do
29352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29353 cat >conftest.$ac_ext <<_ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h. */
29360 /* Override any gcc2 internal prototype to avoid an error. */
29364 /* We use char because int might match the return type of a gcc2
29365 builtin and then its argument prototype would still apply. */
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29377 (eval $ac_link) 2>conftest.er1
29379 grep -v '^ *+' conftest.er1 >conftest.err
29381 cat conftest.err >&5
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); } &&
29384 { ac_try='test -z "$ac_c_werror_flag"
29385 || test ! -s conftest.err'
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; } &&
29391 { ac_try='test -s conftest$ac_exeext'
29392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393 (eval $ac_try) 2>&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; }; then
29397 ac_cv_search_crypt="-l$ac_lib"
29400 echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29404 rm -f conftest.err conftest.$ac_objext \
29405 conftest$ac_exeext conftest.$ac_ext
29408 LIBS=$ac_func_search_save_LIBS
29410 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
29411 echo "${ECHO_T}$ac_cv_search_crypt" >&6
29412 if test "$ac_cv_search_crypt" != no; then
29413 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
29419 # roken Heimdal K 0.3d -lresolv
29420 # roken FreeBSD 4.6 -lcrypt
29422 echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
29423 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
29424 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
29425 echo $ECHO_N "(cached) $ECHO_C" >&6
29427 ac_func_search_save_LIBS=$LIBS
29428 ac_cv_search_roken_gethostbyaddr=no
29429 cat >conftest.$ac_ext <<_ACEOF
29432 cat confdefs.h >>conftest.$ac_ext
29433 cat >>conftest.$ac_ext <<_ACEOF
29434 /* end confdefs.h. */
29436 /* Override any gcc2 internal prototype to avoid an error. */
29440 /* We use char because int might match the return type of a gcc2
29441 builtin and then its argument prototype would still apply. */
29442 char roken_gethostbyaddr ();
29446 roken_gethostbyaddr ();
29451 rm -f conftest.$ac_objext conftest$ac_exeext
29452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29453 (eval $ac_link) 2>conftest.er1
29455 grep -v '^ *+' conftest.er1 >conftest.err
29457 cat conftest.err >&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); } &&
29460 { ac_try='test -z "$ac_c_werror_flag"
29461 || test ! -s conftest.err'
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; } &&
29467 { ac_try='test -s conftest$ac_exeext'
29468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469 (eval $ac_try) 2>&5
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; }; then
29473 ac_cv_search_roken_gethostbyaddr="none required"
29475 echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29479 rm -f conftest.err conftest.$ac_objext \
29480 conftest$ac_exeext conftest.$ac_ext
29481 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
29482 for ac_lib in roken; do
29483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29484 cat >conftest.$ac_ext <<_ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h. */
29491 /* Override any gcc2 internal prototype to avoid an error. */
29495 /* We use char because int might match the return type of a gcc2
29496 builtin and then its argument prototype would still apply. */
29497 char roken_gethostbyaddr ();
29501 roken_gethostbyaddr ();
29506 rm -f conftest.$ac_objext conftest$ac_exeext
29507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29508 (eval $ac_link) 2>conftest.er1
29510 grep -v '^ *+' conftest.er1 >conftest.err
29512 cat conftest.err >&5
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); } &&
29515 { ac_try='test -z "$ac_c_werror_flag"
29516 || test ! -s conftest.err'
29517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518 (eval $ac_try) 2>&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; } &&
29522 { ac_try='test -s conftest$ac_exeext'
29523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524 (eval $ac_try) 2>&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; }; then
29528 ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
29531 echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29535 rm -f conftest.err conftest.$ac_objext \
29536 conftest$ac_exeext conftest.$ac_ext
29539 LIBS=$ac_func_search_save_LIBS
29541 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
29542 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
29543 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
29544 test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
29550 # k5crypto MIT K5 v1.2.2-beta1
29552 echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
29553 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
29554 if test "${ac_cv_search_valid_enctype+set}" = set; then
29555 echo $ECHO_N "(cached) $ECHO_C" >&6
29557 ac_func_search_save_LIBS=$LIBS
29558 ac_cv_search_valid_enctype=no
29559 cat >conftest.$ac_ext <<_ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h. */
29566 /* Override any gcc2 internal prototype to avoid an error. */
29570 /* We use char because int might match the return type of a gcc2
29571 builtin and then its argument prototype would still apply. */
29572 char valid_enctype ();
29581 rm -f conftest.$ac_objext conftest$ac_exeext
29582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29583 (eval $ac_link) 2>conftest.er1
29585 grep -v '^ *+' conftest.er1 >conftest.err
29587 cat conftest.err >&5
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); } &&
29590 { ac_try='test -z "$ac_c_werror_flag"
29591 || test ! -s conftest.err'
29592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593 (eval $ac_try) 2>&5
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; } &&
29597 { ac_try='test -s conftest$ac_exeext'
29598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599 (eval $ac_try) 2>&5
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; }; then
29603 ac_cv_search_valid_enctype="none required"
29605 echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29609 rm -f conftest.err conftest.$ac_objext \
29610 conftest$ac_exeext conftest.$ac_ext
29611 if test "$ac_cv_search_valid_enctype" = no; then
29612 for ac_lib in k5crypto; do
29613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29614 cat >conftest.$ac_ext <<_ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29621 /* Override any gcc2 internal prototype to avoid an error. */
29625 /* We use char because int might match the return type of a gcc2
29626 builtin and then its argument prototype would still apply. */
29627 char valid_enctype ();
29636 rm -f conftest.$ac_objext conftest$ac_exeext
29637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29638 (eval $ac_link) 2>conftest.er1
29640 grep -v '^ *+' conftest.er1 >conftest.err
29642 cat conftest.err >&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } &&
29645 { ac_try='test -z "$ac_c_werror_flag"
29646 || test ! -s conftest.err'
29647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648 (eval $ac_try) 2>&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; } &&
29652 { ac_try='test -s conftest$ac_exeext'
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; }; then
29658 ac_cv_search_valid_enctype="-l$ac_lib"
29661 echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29665 rm -f conftest.err conftest.$ac_objext \
29666 conftest$ac_exeext conftest.$ac_ext
29669 LIBS=$ac_func_search_save_LIBS
29671 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
29672 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
29673 if test "$ac_cv_search_valid_enctype" != no; then
29674 test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
29680 # gen ? ? ? Needed on Irix 5.3 with some
29681 # Irix 5.3 version of Kerberos. I'm not
29682 # sure which since Irix didn't
29683 # get any testing this time
29684 # around. Original comment:
29686 # This is necessary on Irix 5.3, in order to link against libkrb5 --
29687 # there, an_to_ln.o refers to things defined only in -lgen.
29689 echo "$as_me:$LINENO: checking for library containing compile" >&5
29690 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
29691 if test "${ac_cv_search_compile+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29694 ac_func_search_save_LIBS=$LIBS
29695 ac_cv_search_compile=no
29696 cat >conftest.$ac_ext <<_ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29703 /* Override any gcc2 internal prototype to avoid an error. */
29707 /* We use char because int might match the return type of a gcc2
29708 builtin and then its argument prototype would still apply. */
29718 rm -f conftest.$ac_objext conftest$ac_exeext
29719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29720 (eval $ac_link) 2>conftest.er1
29722 grep -v '^ *+' conftest.er1 >conftest.err
29724 cat conftest.err >&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } &&
29727 { ac_try='test -z "$ac_c_werror_flag"
29728 || test ! -s conftest.err'
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; } &&
29734 { ac_try='test -s conftest$ac_exeext'
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; }; then
29740 ac_cv_search_compile="none required"
29742 echo "$as_me: failed program was:" >&5
29743 sed 's/^/| /' conftest.$ac_ext >&5
29746 rm -f conftest.err conftest.$ac_objext \
29747 conftest$ac_exeext conftest.$ac_ext
29748 if test "$ac_cv_search_compile" = no; then
29749 for ac_lib in gen; do
29750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29751 cat >conftest.$ac_ext <<_ACEOF
29754 cat confdefs.h >>conftest.$ac_ext
29755 cat >>conftest.$ac_ext <<_ACEOF
29756 /* end confdefs.h. */
29758 /* Override any gcc2 internal prototype to avoid an error. */
29762 /* We use char because int might match the return type of a gcc2
29763 builtin and then its argument prototype would still apply. */
29773 rm -f conftest.$ac_objext conftest$ac_exeext
29774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29775 (eval $ac_link) 2>conftest.er1
29777 grep -v '^ *+' conftest.er1 >conftest.err
29779 cat conftest.err >&5
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); } &&
29782 { ac_try='test -z "$ac_c_werror_flag"
29783 || test ! -s conftest.err'
29784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785 (eval $ac_try) 2>&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; } &&
29789 { ac_try='test -s conftest$ac_exeext'
29790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; }; then
29795 ac_cv_search_compile="-l$ac_lib"
29798 echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29802 rm -f conftest.err conftest.$ac_objext \
29803 conftest$ac_exeext conftest.$ac_ext
29806 LIBS=$ac_func_search_save_LIBS
29808 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
29809 echo "${ECHO_T}$ac_cv_search_compile" >&6
29810 if test "$ac_cv_search_compile" != no; then
29811 test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
29817 # krb5 ? ? ? -lgen -l???
29820 # krb5 MIT K5 v1.1.1
29822 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err
29825 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err -lresolv
29827 # krb5 Heimdal K 0.3d -lasn1 -lroken -ldes
29829 echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
29830 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
29831 if test "${ac_cv_search_krb5_free_context+set}" = set; then
29832 echo $ECHO_N "(cached) $ECHO_C" >&6
29834 ac_func_search_save_LIBS=$LIBS
29835 ac_cv_search_krb5_free_context=no
29836 cat >conftest.$ac_ext <<_ACEOF
29839 cat confdefs.h >>conftest.$ac_ext
29840 cat >>conftest.$ac_ext <<_ACEOF
29841 /* end confdefs.h. */
29843 /* Override any gcc2 internal prototype to avoid an error. */
29847 /* We use char because int might match the return type of a gcc2
29848 builtin and then its argument prototype would still apply. */
29849 char krb5_free_context ();
29853 krb5_free_context ();
29858 rm -f conftest.$ac_objext conftest$ac_exeext
29859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29860 (eval $ac_link) 2>conftest.er1
29862 grep -v '^ *+' conftest.er1 >conftest.err
29864 cat conftest.err >&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
29867 { ac_try='test -z "$ac_c_werror_flag"
29868 || test ! -s conftest.err'
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest$ac_exeext'
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29880 ac_cv_search_krb5_free_context="none required"
29882 echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29886 rm -f conftest.err conftest.$ac_objext \
29887 conftest$ac_exeext conftest.$ac_ext
29888 if test "$ac_cv_search_krb5_free_context" = no; then
29889 for ac_lib in krb5; do
29890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29891 cat >conftest.$ac_ext <<_ACEOF
29894 cat confdefs.h >>conftest.$ac_ext
29895 cat >>conftest.$ac_ext <<_ACEOF
29896 /* end confdefs.h. */
29898 /* Override any gcc2 internal prototype to avoid an error. */
29902 /* We use char because int might match the return type of a gcc2
29903 builtin and then its argument prototype would still apply. */
29904 char krb5_free_context ();
29908 krb5_free_context ();
29913 rm -f conftest.$ac_objext conftest$ac_exeext
29914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29915 (eval $ac_link) 2>conftest.er1
29917 grep -v '^ *+' conftest.er1 >conftest.err
29919 cat conftest.err >&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); } &&
29922 { ac_try='test -z "$ac_c_werror_flag"
29923 || test ! -s conftest.err'
29924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925 (eval $ac_try) 2>&5
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; } &&
29929 { ac_try='test -s conftest$ac_exeext'
29930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931 (eval $ac_try) 2>&5
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); }; }; then
29935 ac_cv_search_krb5_free_context="-l$ac_lib"
29938 echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29942 rm -f conftest.err conftest.$ac_objext \
29943 conftest$ac_exeext conftest.$ac_ext
29946 LIBS=$ac_func_search_save_LIBS
29948 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
29949 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
29950 if test "$ac_cv_search_krb5_free_context" != no; then
29951 test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
29957 # gssapi_krb5 Only lib needed with MIT K5 v1.2.1, so find it first in
29958 # order to prefer MIT Kerberos. If both MIT & Heimdal
29959 # Kerberos are installed and in the path, this will leave
29960 # some of the libraries above in LIBS unnecessarily, but
29961 # noone would ever do that, right?
29963 # gssapi_krb5 MIT K5 v1.2.2-beta1 -lkrb5
29965 # gssapi Heimdal K 0.3d -lkrb5
29967 echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
29968 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
29969 if test "${ac_cv_search_gss_import_name+set}" = set; then
29970 echo $ECHO_N "(cached) $ECHO_C" >&6
29972 ac_func_search_save_LIBS=$LIBS
29973 ac_cv_search_gss_import_name=no
29974 cat >conftest.$ac_ext <<_ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h. */
29981 /* Override any gcc2 internal prototype to avoid an error. */
29985 /* We use char because int might match the return type of a gcc2
29986 builtin and then its argument prototype would still apply. */
29987 char gss_import_name ();
29991 gss_import_name ();
29996 rm -f conftest.$ac_objext conftest$ac_exeext
29997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29998 (eval $ac_link) 2>conftest.er1
30000 grep -v '^ *+' conftest.er1 >conftest.err
30002 cat conftest.err >&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } &&
30005 { ac_try='test -z "$ac_c_werror_flag"
30006 || test ! -s conftest.err'
30007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008 (eval $ac_try) 2>&5
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; } &&
30012 { ac_try='test -s conftest$ac_exeext'
30013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30014 (eval $ac_try) 2>&5
30016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017 (exit $ac_status); }; }; then
30018 ac_cv_search_gss_import_name="none required"
30020 echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30024 rm -f conftest.err conftest.$ac_objext \
30025 conftest$ac_exeext conftest.$ac_ext
30026 if test "$ac_cv_search_gss_import_name" = no; then
30027 for ac_lib in gssapi_krb5 gssapi; do
30028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30029 cat >conftest.$ac_ext <<_ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h. */
30036 /* Override any gcc2 internal prototype to avoid an error. */
30040 /* We use char because int might match the return type of a gcc2
30041 builtin and then its argument prototype would still apply. */
30042 char gss_import_name ();
30046 gss_import_name ();
30051 rm -f conftest.$ac_objext conftest$ac_exeext
30052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30053 (eval $ac_link) 2>conftest.er1
30055 grep -v '^ *+' conftest.er1 >conftest.err
30057 cat conftest.err >&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); } &&
30060 { ac_try='test -z "$ac_c_werror_flag"
30061 || test ! -s conftest.err'
30062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063 (eval $ac_try) 2>&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); }; } &&
30067 { ac_try='test -s conftest$ac_exeext'
30068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069 (eval $ac_try) 2>&5
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; }; then
30073 ac_cv_search_gss_import_name="-l$ac_lib"
30076 echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30080 rm -f conftest.err conftest.$ac_objext \
30081 conftest$ac_exeext conftest.$ac_ext
30084 LIBS=$ac_func_search_save_LIBS
30086 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
30087 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
30088 if test "$ac_cv_search_gss_import_name" != no; then
30089 test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
30098 # Use --with-zlib to build with a zlib other than the version distributed
30101 # defaults to the included snapshot of zlib
30104 # Check whether --with-external-zlib or --without-external-zlib was given.
30105 if test "${with_external_zlib+set}" = set; then
30106 withval="$with_external_zlib"
30107 with_external_zlib=$withval
30109 with_external_zlib=no
30113 # Try to locate a ZLIB installation if no location was specified, assuming
30114 # external ZLIB was enabled.
30116 if test -n "$acx_zlib_cv_external_zlib"; then
30117 # Granted, this is a slightly ugly way to print this info, but the
30118 # AC_CHECK_HEADER used in the search for a ZLIB installation makes using
30119 # AC_CACHE_CHECK worse
30120 echo "$as_me:$LINENO: checking for external ZLIB" >&5
30121 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
30123 if test "${acx_zlib_cv_external_zlib+set}" = set; then
30124 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 # --with but no location specified
30129 # assume zlib.h locates our install.
30131 acx_zlib_save_CPPFLAGS=$CPPFLAGS
30132 for acx_zlib_cv_external_zlib in yes /usr/local no; do
30133 if test x$acx_zlib_cv_external_zlib = xno; then
30136 if test x$acx_zlib_cv_external_zlib = xyes; then
30137 echo "$as_me:$LINENO: checking for external ZLIB" >&5
30138 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
30139 echo "$as_me:$LINENO: result: " >&5
30140 echo "${ECHO_T}" >&6
30142 CPPFLAGS="$acx_zlib_save_CPPFLAGS -I$acx_zlib_cv_external_zlib/include"
30143 echo "$as_me:$LINENO: checking for external ZLIB in $acx_zlib_cv_external_zlib" >&5
30144 echo $ECHO_N "checking for external ZLIB in $acx_zlib_cv_external_zlib... $ECHO_C" >&6
30145 echo "$as_me:$LINENO: result: " >&5
30146 echo "${ECHO_T}" >&6
30148 unset ac_cv_header_zlib_h
30150 for ac_header in zlib.h
30152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30154 echo "$as_me:$LINENO: checking for $ac_header" >&5
30155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30162 # Is the header compilable?
30163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30165 cat >conftest.$ac_ext <<_ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h. */
30171 $ac_includes_default
30172 #include <$ac_header>
30174 rm -f conftest.$ac_objext
30175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30176 (eval $ac_compile) 2>conftest.er1
30178 grep -v '^ *+' conftest.er1 >conftest.err
30180 cat conftest.err >&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } &&
30183 { ac_try='test -z "$ac_c_werror_flag"
30184 || test ! -s conftest.err'
30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186 (eval $ac_try) 2>&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest.$ac_objext'
30191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30192 (eval $ac_try) 2>&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; }; then
30196 ac_header_compiler=yes
30198 echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30201 ac_header_compiler=no
30203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30205 echo "${ECHO_T}$ac_header_compiler" >&6
30207 # Is the header present?
30208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30210 cat >conftest.$ac_ext <<_ACEOF
30213 cat confdefs.h >>conftest.$ac_ext
30214 cat >>conftest.$ac_ext <<_ACEOF
30215 /* end confdefs.h. */
30216 #include <$ac_header>
30218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30221 grep -v '^ *+' conftest.er1 >conftest.err
30223 cat conftest.err >&5
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } >/dev/null; then
30226 if test -s conftest.err; then
30227 ac_cpp_err=$ac_c_preproc_warn_flag
30228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30235 if test -z "$ac_cpp_err"; then
30236 ac_header_preproc=yes
30238 echo "$as_me: failed program was:" >&5
30239 sed 's/^/| /' conftest.$ac_ext >&5
30241 ac_header_preproc=no
30243 rm -f conftest.err conftest.$ac_ext
30244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30245 echo "${ECHO_T}$ac_header_preproc" >&6
30247 # So? What about this header?
30248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30254 ac_header_preproc=yes
30257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30271 ## ------------------------------ ##
30272 ## Report this to bug-cvs@gnu.org ##
30273 ## ------------------------------ ##
30276 sed "s/^/$as_me: WARNING: /" >&2
30279 echo "$as_me:$LINENO: checking for $ac_header" >&5
30280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30282 echo $ECHO_N "(cached) $ECHO_C" >&6
30284 eval "$as_ac_Header=\$ac_header_preproc"
30286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30291 cat >>confdefs.h <<_ACEOF
30292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30299 if test "$ac_cv_header_zlib_h" = yes; then
30303 CPPFLAGS=$acx_zlib_save_CPPFLAGS
30304 echo "$as_me:$LINENO: checking for external ZLIB" >&5
30305 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
30308 echo "$as_me:$LINENO: result: $acx_zlib_cv_external_zlib" >&5
30309 echo "${ECHO_T}$acx_zlib_cv_external_zlib" >&6
30313 # Output a pretty message naming our selected ZLIB "external" or "package"
30314 # so that any warnings printed by the version check make more sense.
30316 echo "$as_me:$LINENO: checking selected ZLIB" >&5
30317 echo $ECHO_N "checking selected ZLIB... $ECHO_C" >&6
30318 if test "x$with_external_zlib" = xno; then
30319 echo "$as_me:$LINENO: result: package" >&5
30320 echo "${ECHO_T}package" >&6
30322 echo "$as_me:$LINENO: result: external" >&5
30323 echo "${ECHO_T}external" >&6
30328 # Verify that the ZLIB we aren't using isn't newer than the one we are.
30330 if test "x$acx_zlib_cv_external_zlib" != xno; then
30331 LOCAL_ZLIB_VERSION=`sed -n '/^#define ZLIB_VERSION ".*"$/{
30332 s/^#define ZLIB_VERSION "\(.*\)"$/\1/;
30333 p;}' <$srcdir/zlib/zlib.h 2>&5`
30334 cat >conftest.$ac_ext <<_ACEOF
30337 cat confdefs.h >>conftest.$ac_ext
30338 cat >>conftest.$ac_ext <<_ACEOF
30339 /* end confdefs.h. */
30343 ac_extract_cpp_result=`(eval "$ac_cpp -dM conftest.$ac_ext") 2>&5 |
30344 sed -n "/^#define ZLIB_VERSION /{
30345 s/^#define ZLIB_VERSION //;
30349 if test -n "$ac_extract_cpp_result"; then
30350 ZLIB_VERSION=$ac_extract_cpp_result
30354 ZLIB_VERSION=`echo "$ZLIB_VERSION" |sed 's/"//g'`
30355 if test "x$LOCAL_ZLIB_VERSION" = "x$ZLIB_VERSION"; then
30356 # the strings are equal. run ACTION-IF-EQUAL and bail
30359 # first unletter the versions
30360 # this only works for a single trailing letter
30361 asx_version_1=`echo "$LOCAL_ZLIB_VERSION" |
30362 sed 's/\(abcedfghi\)/.\1/;
30363 s/\(jklmnopqrs\)/.1\1/;
30364 s/\(tuvwxyz\)/.2\1/;
30365 y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
30366 asx_version_2=`echo "$ZLIB_VERSION" |
30367 sed 's/\(abcedfghi\)/.\1/;
30368 s/\(jklmnopqrs\)/.1\1/;
30369 s/\(tuvwxyz\)/.2\1/;
30370 y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
30375 for vsub1 in $asx_version_1; do
30376 vsub2=`echo "$asx_version_2" |awk -F. "{print \\\$$asx_count}"`
30377 if test -z "$vsub2" || test $vsub1 -gt $vsub2; then
30380 elif test $vsub1 -lt $vsub2; then
30383 asx_count=`expr $asx_count + 1`
30386 if test $asx_retval -eq -1; then
30387 if test "x$with_external_zlib" = xno; then
30388 { echo "$as_me:$LINENO: WARNING: Found external ZLIB with a more recent version than the
30389 package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION). configure with the
30390 --with-external-zlib option to select the more recent version." >&5
30391 echo "$as_me: WARNING: Found external ZLIB with a more recent version than the
30392 package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION). configure with the
30393 --with-external-zlib option to select the more recent version." >&2;}
30396 if test "x$with_external_zlib" != xno; then
30397 { echo "$as_me:$LINENO: WARNING: Package ZLIB is more recent than requested external version
30398 ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION). configure with the --without-external-zlib
30399 option to select the more recent version." >&5
30400 echo "$as_me: WARNING: Package ZLIB is more recent than requested external version
30401 ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION). configure with the --without-external-zlib
30402 option to select the more recent version." >&2;}
30411 # Now set with_external_zlib to our discovered value or the user specified
30412 # value, as appropriate.
30413 if test x$with_external_zlib = xyes; then
30414 with_external_zlib=$acx_zlib_cv_external_zlib
30416 # $with_external_zlib could still be "no"
30420 # Set up ZLIB includes for later use.
30422 if test x$with_external_zlib != xyes \
30423 && test x$with_external_zlib != no; then
30424 if test -z "$CPPFLAGS"; then
30425 CPPFLAGS="-I$with_external_zlib/include"
30427 CPPFLAGS="$CPPFLAGS -I$with_external_zlib/include"
30429 if test -z "$LDFLAGS"; then
30430 LDFLAGS="-L$with_external_zlib/lib"
30432 LDFLAGS="$LDFLAGS -L$with_external_zlib/lib"
30439 if test x$with_external_zlib = xno; then
30440 # We need ZLIB_CPPFLAGS so that later executions of cpp from configure
30441 # don't try to interpret $(top_srcdir)
30442 ZLIB_CPPFLAGS='-I$(top_srcdir)/zlib'
30443 ZLIB_LIBS='$(top_builddir)/zlib/libz.a'
30444 # ZLIB_SUBDIRS is only used in the top level Makefiles.
30447 # We know what to do now, so set up the CPPFLAGS, LDFLAGS, and LIBS for later
30449 if test -z "$LIBS"; then
30456 # Verify external installed zlib works
30458 # Ideally, we would also check that the version is newer
30460 echo "$as_me:$LINENO: checking that ZLIB library works" >&5
30461 echo $ECHO_N "checking that ZLIB library works... $ECHO_C" >&6
30462 cat >conftest.$ac_ext <<_ACEOF
30465 cat confdefs.h >>conftest.$ac_ext
30466 cat >>conftest.$ac_ext <<_ACEOF
30467 /* end confdefs.h. */
30472 int i = Z_OK; const char *version = zlibVersion();
30477 rm -f conftest.$ac_objext conftest$ac_exeext
30478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30479 (eval $ac_link) 2>conftest.er1
30481 grep -v '^ *+' conftest.er1 >conftest.err
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } &&
30486 { ac_try='test -z "$ac_c_werror_flag"
30487 || test ! -s conftest.err'
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; } &&
30493 { ac_try='test -s conftest$ac_exeext'
30494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495 (eval $ac_try) 2>&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); }; }; then
30499 echo "$as_me:$LINENO: result: yes" >&5
30500 echo "${ECHO_T}yes" >&6
30502 echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30505 echo "$as_me:$LINENO: result: no" >&5
30506 echo "${ECHO_T}no" >&6
30507 { { echo "$as_me:$LINENO: error: ZLIB failed to link" >&5
30508 echo "$as_me: error: ZLIB failed to link" >&2;}
30509 { (exit 1); exit 1; }; }
30511 rm -f conftest.err conftest.$ac_objext \
30512 conftest$ac_exeext conftest.$ac_ext
30518 # What remote shell transport should our client cvs default to using?
30520 # Check whether --with-rsh or --without-rsh was given.
30521 if test "${with_rsh+set}" = set; then
30522 withval="$with_rsh"
30528 if test no = "$with_rsh"; then
30529 { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
30530 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
30532 elif test yes = "$with_rsh"; then
30533 # Make --with-rsh mean the same thing as --with-rsh=rsh
30537 if echo $with_rsh |grep ^/ >/dev/null; then
30538 # If $with_rsh is an absolute path, issue a warning if the executable
30539 # doesn't exist or isn't usable, but then trust the user and use it
30541 with_default_rsh=$with_rsh
30542 echo "$as_me:$LINENO: checking for a remote shell" >&5
30543 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6
30544 if ! test -f $with_rsh \
30545 || ! test -x $with_rsh; then
30546 # warn the user that they may encounter problems
30547 { echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
30548 echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
30551 # Search for a remote shell
30552 for ac_prog in $with_rsh
30554 # Extract the first word of "$ac_prog", so it can be a program name with args.
30555 set dummy $ac_prog; ac_word=$2
30556 echo "$as_me:$LINENO: checking for $ac_word" >&5
30557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30558 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
30559 echo $ECHO_N "(cached) $ECHO_C" >&6
30561 if test -n "$with_default_rsh"; then
30562 ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
30564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30565 for as_dir in $PATH
30568 test -z "$as_dir" && as_dir=.
30569 for ac_exec_ext in '' $ac_executable_extensions; do
30570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30571 ac_cv_prog_with_default_rsh="$ac_prog"
30572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30580 with_default_rsh=$ac_cv_prog_with_default_rsh
30581 if test -n "$with_default_rsh"; then
30582 echo "$as_me:$LINENO: result: $with_default_rsh" >&5
30583 echo "${ECHO_T}$with_default_rsh" >&6
30585 echo "$as_me:$LINENO: result: no" >&5
30586 echo "${ECHO_T}no" >&6
30589 test -n "$with_default_rsh" && break
30591 test -n "$with_default_rsh" || with_default_rsh=""rsh""
30596 cat >>confdefs.h <<_ACEOF
30597 #define RSH_DFLT "$with_default_rsh"
30600 RSH_DFLT=$with_default_rsh
30606 # Let the confiscator request a specific editor
30608 # Check whether --with-editor or --without-editor was given.
30609 if test "${with_editor+set}" = set; then
30610 withval="$with_editor"
30616 # If --with-editor was supplied with an argument, let it override $EDITOR from
30617 # the user's environment. We need to unset EDITOR here because AC_CHECK_PROGS
30618 # will let the value of EDITOR ride when it is set rather than searching. We
30619 # ignore the --without-editor case since it will be caught below.
30620 if test -n "$EDITOR" && test yes != $with_editor; then
30621 $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
30624 # Set the default when --with-editor wasn't supplied or when it was supplied
30625 # without an argument.
30626 if test yes = $with_editor; then
30627 with_editor="vim vi emacs nano pico edit"
30630 if echo $with_editor |grep ^/ >/dev/null; then
30631 # If $with_editor is an absolute path, issue a warning if the executable
30632 # doesn't exist or isn't usable, but then trust the user and use it
30634 EDITOR=$with_editor
30635 echo "$as_me:$LINENO: checking for an editor" >&5
30636 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
30637 echo "$as_me:$LINENO: result: $EDITOR" >&5
30638 echo "${ECHO_T}$EDITOR" >&6
30639 if ! test -f $with_editor \
30640 || ! test -x $with_editor; then
30641 # warn the user that they may encounter problems
30642 { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
30643 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
30645 elif test no != "${with_editor}"; then
30646 # Search for an editor
30647 for ac_prog in $with_editor
30649 # Extract the first word of "$ac_prog", so it can be a program name with args.
30650 set dummy $ac_prog; ac_word=$2
30651 echo "$as_me:$LINENO: checking for $ac_word" >&5
30652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30653 if test "${ac_cv_prog_EDITOR+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30656 if test -n "$EDITOR"; then
30657 ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
30659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30660 for as_dir in $PATH
30663 test -z "$as_dir" && as_dir=.
30664 for ac_exec_ext in '' $ac_executable_extensions; do
30665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30666 ac_cv_prog_EDITOR="$ac_prog"
30667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30675 EDITOR=$ac_cv_prog_EDITOR
30676 if test -n "$EDITOR"; then
30677 echo "$as_me:$LINENO: result: $EDITOR" >&5
30678 echo "${ECHO_T}$EDITOR" >&6
30680 echo "$as_me:$LINENO: result: no" >&5
30681 echo "${ECHO_T}no" >&6
30684 test -n "$EDITOR" && break
30686 test -n "$EDITOR" || EDITOR="no"
30688 if test no = "${EDITOR}"; then
30689 { { echo "$as_me:$LINENO: error:
30690 Failed to find a text file editor. CVS cannot be compiled
30691 without a default log message editor. Searched for
30692 \`$with_editor'. Try \`configure --with-editor'." >&5
30693 echo "$as_me: error:
30694 Failed to find a text file editor. CVS cannot be compiled
30695 without a default log message editor. Searched for
30696 \`$with_editor'. Try \`configure --with-editor'." >&2;}
30697 { (exit 1); exit 1; }; }
30700 { { echo "$as_me:$LINENO: error:
30701 CVS cannot be compiled without a default log message editor.
30702 Try \`configure --with-editor'." >&5
30703 echo "$as_me: error:
30704 CVS cannot be compiled without a default log message editor.
30705 Try \`configure --with-editor'." >&2;}
30706 { (exit 1); exit 1; }; }
30710 cat >>confdefs.h <<_ACEOF
30711 #define EDITOR_DFLT "$EDITOR"
30719 # Check whether --with-hardcoded-pam-service-name or --without-hardcoded-pam-service-name was given.
30720 if test "${with_hardcoded_pam_service_name+set}" = set; then
30721 withval="$with_hardcoded_pam_service_name"
30724 with_hardcoded_pam_service_name=cvs
30727 if test "x$with_hardcoded_pam_service_name" = xno ||
30728 test "x$with_hardcoded_pam_service_name" = xprogram_name; then
30730 cat >>confdefs.h <<\_ACEOF
30731 #define PAM_SERVICE_NAME program_name
30735 if test x"$with_hardcoded_pam_service_name" = xyes; then
30736 with_hardcoded_pam_service_name=cvs
30738 cat >>confdefs.h <<_ACEOF
30739 #define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name"
30747 # Check whether --with-tmpdir or --without-tmpdir was given.
30748 if test "${with_tmpdir+set}" = set; then
30749 withval="$with_tmpdir"
30753 echo "$as_me:$LINENO: checking for temporary directory" >&5
30754 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
30755 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
30756 for with_tmpdir in /tmp /var/tmp no; do
30757 if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
30758 && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
30762 if test no = "$with_tmpdir"; then
30763 { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&5
30764 echo "$as_me: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&2;}
30767 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
30768 echo "${ECHO_T}$with_tmpdir" >&6
30769 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
30770 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
30771 echo "${ECHO_T}$with_tmpdir" >&6
30772 { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
30773 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
30774 { (exit 1); exit 1; }; }
30775 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
30776 || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
30777 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
30778 echo "${ECHO_T}$with_tmpdir" >&6
30779 { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
30780 exist or lacks sufficient permissions for read/write." >&5
30781 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
30782 exist or lacks sufficient permissions for read/write." >&2;}
30786 cat >>confdefs.h <<_ACEOF
30787 #define TMPDIR_DFLT "$with_tmpdir"
30795 # Check whether --with-umask or --without-umask was given.
30796 if test "${with_umask+set}" = set; then
30797 withval="$with_umask"
30801 if test -z "$with_umask" || test yes = "$with_umask"; then
30803 elif test no = "$with_umask"; then
30808 cat >>confdefs.h <<_ACEOF
30809 #define UMASK_DFLT $with_umask
30815 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
30816 if test "${with_cvs_admin_group+set}" = set; then
30817 withval="$with_cvs_admin_group"
30820 with_cvs_admin_group=cvsadmin
30823 if test yes = "$with_cvs_admin_group"; then
30824 with_cvs_admin_group=cvsadmin
30826 if test no != "$with_cvs_admin_group"; then
30828 cat >>confdefs.h <<_ACEOF
30829 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
30835 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
30836 if test "${enable_cvs_ndbm+set}" = set; then
30837 enableval="$enable_cvs_ndbm"
30840 enable_cvs_ndbm=yes
30842 if test no != "$enable_cvs_ndbm"; then
30844 cat >>confdefs.h <<\_ACEOF
30858 # Check for options requesting client and server feature. If none are
30859 # given and we have connect(), we want the full client & server arrangement.
30860 # Check whether --enable-client or --disable-client was given.
30861 if test "${enable_client+set}" = set; then
30862 enableval="$enable_client"
30865 if test "$ac_cv_search_connect" != no; then
30869 if test no != "$enable_client"; then
30871 cat >>confdefs.h <<\_ACEOF
30872 #define CLIENT_SUPPORT 1
30879 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
30880 if test "${enable_password_authenticated_client+set}" = set; then
30881 enableval="$enable_password_authenticated_client"
30885 if test no != "$enable_password_authenticated_client"; then
30886 if test no != "$enable_client"; then
30888 cat >>confdefs.h <<\_ACEOF
30889 #define AUTH_CLIENT_SUPPORT 1
30893 { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
30894 the CVS client disabled (--disable-client)" >&5
30895 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
30896 the CVS client disabled (--disable-client)" >&2;}
30903 # Check whether --enable-server or --disable-server was given.
30904 if test "${enable_server+set}" = set; then
30905 enableval="$enable_server"
30908 if test "$ac_cv_search_connect" != no; then
30913 if test no != "$enable_server"; then
30915 cat >>confdefs.h <<\_ACEOF
30916 #define SERVER_SUPPORT 1
30920 echo "$as_me:$LINENO: checking for library containing crypt" >&5
30921 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
30922 if test "${ac_cv_search_crypt+set}" = set; then
30923 echo $ECHO_N "(cached) $ECHO_C" >&6
30925 ac_func_search_save_LIBS=$LIBS
30926 ac_cv_search_crypt=no
30927 cat >conftest.$ac_ext <<_ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30934 /* Override any gcc2 internal prototype to avoid an error. */
30938 /* We use char because int might match the return type of a gcc2
30939 builtin and then its argument prototype would still apply. */
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30951 (eval $ac_link) 2>conftest.er1
30953 grep -v '^ *+' conftest.er1 >conftest.err
30955 cat conftest.err >&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); } &&
30958 { ac_try='test -z "$ac_c_werror_flag"
30959 || test ! -s conftest.err'
30960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30961 (eval $ac_try) 2>&5
30963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); }; } &&
30965 { ac_try='test -s conftest$ac_exeext'
30966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30967 (eval $ac_try) 2>&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; }; then
30971 ac_cv_search_crypt="none required"
30973 echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30977 rm -f conftest.err conftest.$ac_objext \
30978 conftest$ac_exeext conftest.$ac_ext
30979 if test "$ac_cv_search_crypt" = no; then
30980 for ac_lib in crypt; do
30981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30982 cat >conftest.$ac_ext <<_ACEOF
30985 cat confdefs.h >>conftest.$ac_ext
30986 cat >>conftest.$ac_ext <<_ACEOF
30987 /* end confdefs.h. */
30989 /* Override any gcc2 internal prototype to avoid an error. */
30993 /* We use char because int might match the return type of a gcc2
30994 builtin and then its argument prototype would still apply. */
31004 rm -f conftest.$ac_objext conftest$ac_exeext
31005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31006 (eval $ac_link) 2>conftest.er1
31008 grep -v '^ *+' conftest.er1 >conftest.err
31010 cat conftest.err >&5
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); } &&
31013 { ac_try='test -z "$ac_c_werror_flag"
31014 || test ! -s conftest.err'
31015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016 (eval $ac_try) 2>&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; } &&
31020 { ac_try='test -s conftest$ac_exeext'
31021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022 (eval $ac_try) 2>&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; }; then
31026 ac_cv_search_crypt="-l$ac_lib"
31029 echo "$as_me: failed program was:" >&5
31030 sed 's/^/| /' conftest.$ac_ext >&5
31033 rm -f conftest.err conftest.$ac_objext \
31034 conftest$ac_exeext conftest.$ac_ext
31037 LIBS=$ac_func_search_save_LIBS
31039 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
31040 echo "${ECHO_T}$ac_cv_search_crypt" >&6
31041 if test "$ac_cv_search_crypt" != no; then
31042 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
31044 cat >>confdefs.h <<\_ACEOF
31045 #define HAVE_CRYPT 1
31049 cat >>confdefs.h <<\_ACEOF
31050 #define AUTH_SERVER_SUPPORT 1
31055 # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
31056 if test "${enable_server_flow_control+set}" = set; then
31057 enableval="$enable_server_flow_control"
31058 if test yes = $enable_server_flow_control; then
31059 enable_server_flow_control=1M,2M
31062 enable_server_flow_control=1M,2M
31064 if test no != $enable_server_flow_control; then
31065 ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
31066 ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
31067 ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
31068 ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
31069 test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
31070 case $ccvs_lwm_E in
31071 G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
31072 M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
31073 k) ccvs_lwm="$ccvs_lwm * 1024";;
31075 *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
31076 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
31077 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
31078 ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
31079 { (exit 1); exit 1; }; }
31081 ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
31082 ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
31083 test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
31084 case $ccvs_hwm_E in
31085 G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
31086 M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
31087 k) ccvs_hwm="$ccvs_hwm * 1024";;
31088 b | '') ccvs_hwm="$ccvs_hwm";;
31089 *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
31090 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
31091 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
31092 ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
31093 { (exit 1); exit 1; }; }
31097 cat >>confdefs.h <<\_ACEOF
31098 #define SERVER_FLOWCONTROL 1
31102 cat >>confdefs.h <<_ACEOF
31103 #define SERVER_LO_WATER ($ccvs_lwm)
31107 cat >>confdefs.h <<_ACEOF
31108 #define SERVER_HI_WATER ($ccvs_hwm)
31111 fi # enable_server_flow_control
31117 # Check whether --enable-pam or --disable-pam was given.
31118 if test "${enable_pam+set}" = set; then
31119 enableval="$enable_pam"
31126 if test yes = $enable_pam; then
31127 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
31128 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
31129 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
31130 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
31131 echo $ECHO_N "(cached) $ECHO_C" >&6
31133 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
31134 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
31136 # Is the header compilable?
31137 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
31138 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
31139 cat >conftest.$ac_ext <<_ACEOF
31142 cat confdefs.h >>conftest.$ac_ext
31143 cat >>conftest.$ac_ext <<_ACEOF
31144 /* end confdefs.h. */
31145 $ac_includes_default
31146 #include <security/pam_appl.h>
31148 rm -f conftest.$ac_objext
31149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31150 (eval $ac_compile) 2>conftest.er1
31152 grep -v '^ *+' conftest.er1 >conftest.err
31154 cat conftest.err >&5
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); } &&
31157 { ac_try='test -z "$ac_c_werror_flag"
31158 || test ! -s conftest.err'
31159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31160 (eval $ac_try) 2>&5
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); }; } &&
31164 { ac_try='test -s conftest.$ac_objext'
31165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31166 (eval $ac_try) 2>&5
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); }; }; then
31170 ac_header_compiler=yes
31172 echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31175 ac_header_compiler=no
31177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31179 echo "${ECHO_T}$ac_header_compiler" >&6
31181 # Is the header present?
31182 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
31183 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
31184 cat >conftest.$ac_ext <<_ACEOF
31187 cat confdefs.h >>conftest.$ac_ext
31188 cat >>conftest.$ac_ext <<_ACEOF
31189 /* end confdefs.h. */
31190 #include <security/pam_appl.h>
31192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31195 grep -v '^ *+' conftest.er1 >conftest.err
31197 cat conftest.err >&5
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } >/dev/null; then
31200 if test -s conftest.err; then
31201 ac_cpp_err=$ac_c_preproc_warn_flag
31202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31209 if test -z "$ac_cpp_err"; then
31210 ac_header_preproc=yes
31212 echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31215 ac_header_preproc=no
31217 rm -f conftest.err conftest.$ac_ext
31218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31219 echo "${ECHO_T}$ac_header_preproc" >&6
31221 # So? What about this header?
31222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31224 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31225 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31226 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
31227 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
31228 ac_header_preproc=yes
31231 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
31232 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
31233 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
31234 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
31235 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
31236 echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
31237 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5
31238 echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
31240 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
31241 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
31242 echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
31245 ## ------------------------------ ##
31246 ## Report this to bug-cvs@gnu.org ##
31247 ## ------------------------------ ##
31250 sed "s/^/$as_me: WARNING: /" >&2
31253 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
31254 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
31255 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
31256 echo $ECHO_N "(cached) $ECHO_C" >&6
31258 ac_cv_header_security_pam_appl_h=$ac_header_preproc
31260 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
31261 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
31264 if test $ac_cv_header_security_pam_appl_h = yes; then
31266 cat >>confdefs.h <<\_ACEOF
31270 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
31271 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
31272 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
31273 echo $ECHO_N "(cached) $ECHO_C" >&6
31275 ac_check_lib_save_LIBS=$LIBS
31277 cat >conftest.$ac_ext <<_ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h. */
31284 /* Override any gcc2 internal prototype to avoid an error. */
31288 /* We use char because int might match the return type of a gcc2
31289 builtin and then its argument prototype would still apply. */
31299 rm -f conftest.$ac_objext conftest$ac_exeext
31300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31301 (eval $ac_link) 2>conftest.er1
31303 grep -v '^ *+' conftest.er1 >conftest.err
31305 cat conftest.err >&5
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } &&
31308 { ac_try='test -z "$ac_c_werror_flag"
31309 || test ! -s conftest.err'
31310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31311 (eval $ac_try) 2>&5
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); }; } &&
31315 { ac_try='test -s conftest$ac_exeext'
31316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31317 (eval $ac_try) 2>&5
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; }; then
31321 ac_cv_lib_pam_pam_start=yes
31323 echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31326 ac_cv_lib_pam_pam_start=no
31328 rm -f conftest.err conftest.$ac_objext \
31329 conftest$ac_exeext conftest.$ac_ext
31330 LIBS=$ac_check_lib_save_LIBS
31332 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
31333 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
31334 if test $ac_cv_lib_pam_pam_start = yes; then
31335 LIBS="${LIBS} -lpam"
31337 { { echo "$as_me:$LINENO: error: Could not find PAM libraries but the headers exist.
31338 Give the --disable-pam option to compile without PAM support (or fix
31339 your broken configuration)" >&5
31340 echo "$as_me: error: Could not find PAM libraries but the headers exist.
31341 Give the --disable-pam option to compile without PAM support (or fix
31342 your broken configuration)" >&2;}
31343 { (exit 1); exit 1; }; }
31348 { { echo "$as_me:$LINENO: error: Could not find PAM headers" >&5
31349 echo "$as_me: error: Could not find PAM headers" >&2;}
31350 { (exit 1); exit 1; }; }
31360 # Check whether --enable-case-sensitivity or --disable-case-sensitivity was given.
31361 if test "${enable_case_sensitivity+set}" = set; then
31362 enableval="$enable_case_sensitivity"
31363 case "$enable_case_sensitivity" in
31364 yes | no | auto) ;;
31366 { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'. Acceptable values are \`yes', \`no', and \`auto'." >&5
31367 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'. Acceptable values are \`yes', \`no', and \`auto'." >&2;}
31368 { (exit 1); exit 1; }; }
31372 enable_case_sensitivity=auto
31375 acx_forced=' (forced)'
31376 echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
31377 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6
31378 if test $enable_case_sensitivity = auto; then
31379 if test "${acx_cv_case_sensitive+set}" = set; then
31380 echo $ECHO_N "(cached) $ECHO_C" >&6
31382 rm -f ac_TEST_filenames_CASE_sensitive
31383 echo foo >ac_test_filenames_case_sensitive
31384 if test -f ac_TEST_filenames_CASE_sensitive; then
31385 acx_cv_case_sensitive=no
31387 acx_cv_case_sensitive=yes
31389 rm ac_test_filenames_case_sensitive
31393 enable_case_sensitivity=$acx_cv_case_sensitive
31396 echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
31397 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6
31398 if test $enable_case_sensitivity = no; then
31400 cat >>confdefs.h <<\_ACEOF
31401 #define FILENAMES_CASE_INSENSITIVE 1
31405 "fncase.$ac_objext" | \
31406 *" fncase.$ac_objext" | \
31407 "fncase.$ac_objext "* | \
31408 *" fncase.$ac_objext "* ) ;;
31409 *) LIBOBJS="$LIBOBJS fncase.$ac_objext" ;;
31417 # Check whether --enable-encryption or --disable-encryption was given.
31418 if test "${enable_encryption+set}" = set; then
31419 enableval="$enable_encryption"
31422 enable_encryption=no
31424 if test "$enable_encryption" = yes; then
31425 if test no != "$with_client" || test no != "$with_server"; then
31427 cat >>confdefs.h <<\_ACEOF
31428 #define ENCRYPTION 1
31432 { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
31433 nor the CVS server is enabled (--disable-client and --disable-server)." >&5
31434 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
31435 nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
31442 # Check whether --enable-force-editor or --disable-force-editor was given.
31443 if test "${enable_force_editor+set}" = set; then
31444 enableval="$enable_force_editor"
31447 enable_force_editor=no
31450 if test yes = "$enable_force_editor"; then
31452 cat >>confdefs.h <<\_ACEOF
31453 #define FORCE_USE_EDITOR 1
31461 # Check for options requesting client and server feature. If none are
31462 # given and we have connect(), we want the full client & server arrangement.
31463 # Check whether --enable-lock-compatibility or --disable-lock-compatibility was given.
31464 if test "${enable_lock_compatibility+set}" = set; then
31465 enableval="$enable_lock_compatibility"
31468 enable_lock_compatibility=yes
31471 if test x$enable_lock_compatibility = xyes; then
31473 cat >>confdefs.h <<\_ACEOF
31474 #define LOCK_COMPATIBILITY 1
31482 # Check whether --enable-rootcommit or --disable-rootcommit was given.
31483 if test "${enable_rootcommit+set}" = set; then
31484 enableval="$enable_rootcommit"
31487 enable_rootcommit=no
31489 if test "$enable_rootcommit" = no; then
31491 cat >>confdefs.h <<\_ACEOF
31492 #define CVS_BADROOT 1
31498 # Check whether --enable-old-info-support or --disable-old-info-support was given.
31499 if test "${enable_old_info_support+set}" = set; then
31500 enableval="$enable_old_info_support"
31503 enable_old_info_format_support=yes
31505 if test "$enable_old_info_format_support" = yes; then
31507 cat >>confdefs.h <<\_ACEOF
31508 #define SUPPORT_OLD_INFO_FMT_STRINGS 1
31520 echo "$as_me:$LINENO: checking for cygwin32" >&5
31521 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
31522 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
31523 echo $ECHO_N "(cached) $ECHO_C" >&6
31525 cat >conftest.$ac_ext <<_ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h. */
31535 return __CYGWIN32__;
31540 rm -f conftest.$ac_objext
31541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31542 (eval $ac_compile) 2>conftest.er1
31544 grep -v '^ *+' conftest.er1 >conftest.err
31546 cat conftest.err >&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
31549 { ac_try='test -z "$ac_c_werror_flag"
31550 || test ! -s conftest.err'
31551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552 (eval $ac_try) 2>&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); }; } &&
31556 { ac_try='test -s conftest.$ac_objext'
31557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558 (eval $ac_try) 2>&5
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); }; }; then
31562 ccvs_cv_sys_cygwin32=yes
31564 echo "$as_me: failed program was:" >&5
31565 sed 's/^/| /' conftest.$ac_ext >&5
31567 ccvs_cv_sys_cygwin32=no
31569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31571 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
31572 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
31573 if test $ccvs_cv_sys_cygwin32 = yes; then
31574 LIBS="$LIBS -ladvapi32"
31577 cat >>confdefs.h <<\_ACEOF
31578 #define UTIME_EXPECTS_WRITABLE 1
31583 cat >>confdefs.h <<\_ACEOF
31584 #define USE_SETMODE_STDOUT 1
31588 cat >>confdefs.h <<\_ACEOF
31589 #define HAVE_SETMODE 1
31594 ac_config_files="$ac_config_files contrib/validate_repo"
31596 ac_config_files="$ac_config_files contrib/clmerge"
31598 ac_config_files="$ac_config_files contrib/cln_hist"
31600 ac_config_files="$ac_config_files contrib/commit_prep"
31602 ac_config_files="$ac_config_files contrib/cvs_acls"
31604 ac_config_files="$ac_config_files contrib/log"
31606 ac_config_files="$ac_config_files contrib/log_accum"
31608 ac_config_files="$ac_config_files contrib/mfpipe"
31610 ac_config_files="$ac_config_files contrib/pvcs2rcs"
31612 ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
31614 ac_config_files="$ac_config_files contrib/rcslock"
31616 ac_config_files="$ac_config_files contrib/sccs2rcs"
31618 ac_config_files="$ac_config_files doc/mkman"
31620 ac_config_files="$ac_config_files src/cvsbug"
31622 ac_config_files="$ac_config_files windows-NT/fix-msvc-mak:windows-NT/plhead.pl:windows-NT/fix-msvc-mak.pl"
31624 ac_config_files="$ac_config_files windows-NT/mkconfig:windows-NT/plhead.pl:windows-NT/mkconfig.pl"
31627 ac_config_files="$ac_config_files Makefile contrib/Makefile cvs.spec diff/Makefile doc/Makefile emx/Makefile lib/Makefile m4/Makefile man/Makefile os2/Makefile src/Makefile src/sanity.config.sh tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
31630 cat >confcache <<\_ACEOF
31631 # This file is a shell script that caches the results of configure
31632 # tests run on this system so they can be shared between configure
31633 # scripts and configure runs, see configure's option --config-cache.
31634 # It is not useful on other systems. If it contains results you don't
31635 # want to keep, you may remove or edit it.
31637 # config.status only pays attention to the cache file if you give it
31638 # the --recheck option to rerun configure.
31640 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31641 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31642 # following values.
31646 # The following way of writing the cache mishandles newlines in values,
31647 # but we know of no workaround that is simple, portable, and efficient.
31648 # So, don't put newlines in cache variables' values.
31649 # Ultrix sh set writes to stderr and can't be redirected directly,
31650 # and sets the high bit in the cache file unless we assign to the vars.
31653 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31655 # `set' does not quote correctly, so add quotes (double-quote
31656 # substitution turns \\\\ into \\, and sed turns \\ into \).
31659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31662 # `set' quotes correctly as required by POSIX, so do not add quotes.
31664 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31671 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31673 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31675 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31676 if test -w $cache_file; then
31677 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31678 cat confcache >$cache_file
31680 echo "not updating unwritable cache $cache_file"
31685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31686 # Let make expand exec_prefix.
31687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31689 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31690 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31691 # trailing colons and then remove the whole line if VPATH becomes empty
31692 # (actually we leave an empty line to preserve line numbers).
31693 if test "x$srcdir" = x.; then
31694 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31695 s/:*\$(srcdir):*/:/;
31696 s/:*\${srcdir}:*/:/;
31698 s/^\([^=]*=[ ]*\):*/\1/;
31704 DEFS=-DHAVE_CONFIG_H
31708 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31709 # 1. Remove the extension, and $U if already installed.
31710 ac_i=`echo "$ac_i" |
31711 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31713 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31714 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31716 LIBOBJS=$ac_libobjs
31718 LTLIBOBJS=$ac_ltlibobjs
31721 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31722 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
31723 Usually this means the macro was only invoked conditionally." >&5
31724 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
31725 Usually this means the macro was only invoked conditionally." >&2;}
31726 { (exit 1); exit 1; }; }
31728 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31729 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31730 Usually this means the macro was only invoked conditionally." >&5
31731 echo "$as_me: error: conditional \"AMDEP\" was never defined.
31732 Usually this means the macro was only invoked conditionally." >&2;}
31733 { (exit 1); exit 1; }; }
31735 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31736 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31737 Usually this means the macro was only invoked conditionally." >&5
31738 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31739 Usually this means the macro was only invoked conditionally." >&2;}
31740 { (exit 1); exit 1; }; }
31742 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31743 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31744 Usually this means the macro was only invoked conditionally." >&5
31745 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31746 Usually this means the macro was only invoked conditionally." >&2;}
31747 { (exit 1); exit 1; }; }
31749 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
31750 { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
31751 Usually this means the macro was only invoked conditionally." >&5
31752 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
31753 Usually this means the macro was only invoked conditionally." >&2;}
31754 { (exit 1); exit 1; }; }
31757 : ${CONFIG_STATUS=./config.status}
31758 ac_clean_files_save=$ac_clean_files
31759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31760 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31761 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31762 cat >$CONFIG_STATUS <<_ACEOF
31764 # Generated by $as_me.
31765 # Run this file to recreate the current configuration.
31766 # Compiler output produced by configure, useful for debugging
31767 # configure, is in config.log if it exists.
31770 ac_cs_recheck=false
31772 SHELL=\${CONFIG_SHELL-$SHELL}
31775 cat >>$CONFIG_STATUS <<\_ACEOF
31776 ## --------------------- ##
31777 ## M4sh Initialization. ##
31778 ## --------------------- ##
31780 # Be Bourne compatible
31781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31784 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31785 # is contrary to our usage. Disable this feature.
31786 alias -g '${1+"$@"}'='"$@"'
31787 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31790 DUALCASE=1; export DUALCASE # for MKS sh
31792 # Support unset when possible.
31793 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31800 # Work around bugs in pre-3.0 UWIN ksh.
31801 $as_unset ENV MAIL MAILPATH
31808 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31809 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31810 LC_TELEPHONE LC_TIME
31812 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31813 eval $as_var=C; export $as_var
31819 # Required to use basename.
31820 if expr a : '\(a\)' >/dev/null 2>&1; then
31826 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31827 as_basename=basename
31833 # Name of the executable.
31834 as_me=`$as_basename "$0" ||
31835 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31836 X"$0" : 'X\(//\)$' \| \
31837 X"$0" : 'X\(/\)$' \| \
31838 . : '\(.\)' 2>/dev/null ||
31840 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31841 /^X\/\(\/\/\)$/{ s//\1/; q; }
31842 /^X\/\(\/\).*/{ s//\1/; q; }
31846 # PATH needs CR, and LINENO needs CR and PATH.
31847 # Avoid depending upon Character Ranges.
31848 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31849 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31850 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31851 as_cr_digits='0123456789'
31852 as_cr_alnum=$as_cr_Letters$as_cr_digits
31854 # The user is always right.
31855 if test "${PATH_SEPARATOR+set}" != set; then
31856 echo "#! /bin/sh" >conf$$.sh
31857 echo "exit 0" >>conf$$.sh
31859 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31868 as_lineno_1=$LINENO
31869 as_lineno_2=$LINENO
31870 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31871 test "x$as_lineno_1" != "x$as_lineno_2" &&
31872 test "x$as_lineno_3" = "x$as_lineno_2" || {
31873 # Find who we are. Look in the path if we contain no path at all
31876 *[\\/]* ) as_myself=$0 ;;
31877 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31878 for as_dir in $PATH
31881 test -z "$as_dir" && as_dir=.
31882 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31887 # We did not find ourselves, most probably we were run as `sh COMMAND'
31888 # in which case we are not to be found in the path.
31889 if test "x$as_myself" = x; then
31892 if test ! -f "$as_myself"; then
31893 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31894 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31895 { (exit 1); exit 1; }; }
31897 case $CONFIG_SHELL in
31899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31900 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31903 test -z "$as_dir" && as_dir=.
31904 for as_base in sh bash ksh sh5; do
31907 if ("$as_dir/$as_base" -c '
31908 as_lineno_1=$LINENO
31909 as_lineno_2=$LINENO
31910 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31911 test "x$as_lineno_1" != "x$as_lineno_2" &&
31912 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31913 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31914 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31915 CONFIG_SHELL=$as_dir/$as_base
31916 export CONFIG_SHELL
31917 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31925 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31926 # uniformly replaced by the line number. The first 'sed' inserts a
31927 # line-number line before each line; the second 'sed' does the real
31928 # work. The second script uses 'N' to pair each line-number line
31929 # with the numbered line, and appends trailing '-' during
31930 # substitution so that $LINENO is not a special case at line end.
31931 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31932 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31933 sed '=' <$as_myself |
31938 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31941 s,^['$as_cr_digits']*\n,,
31942 ' >$as_me.lineno &&
31943 chmod +x $as_me.lineno ||
31944 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31945 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31946 { (exit 1); exit 1; }; }
31948 # Don't try to exec as it changes $[0], causing all sort of problems
31949 # (the dirname of $[0] is not the place where we might find the
31950 # original and so on. Autoconf is especially sensible to this).
31952 # Exit status is that of the last command.
31957 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31958 *c*,-n*) ECHO_N= ECHO_C='
31960 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31961 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31964 if expr a : '\(a\)' >/dev/null 2>&1; then
31970 rm -f conf$$ conf$$.exe conf$$.file
31972 if ln -s conf$$.file conf$$ 2>/dev/null; then
31973 # We could just check for DJGPP; but this test a) works b) is more generic
31974 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31975 if test -f conf$$.exe; then
31976 # Don't use ln at all; we don't have any links
31981 elif ln conf$$.file conf$$ 2>/dev/null; then
31986 rm -f conf$$ conf$$.exe conf$$.file
31988 if mkdir -p . 2>/dev/null; then
31991 test -d ./-p && rmdir ./-p
31995 as_executable_p="test -f"
31997 # Sed expression to map a string onto a valid CPP name.
31998 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32000 # Sed expression to map a string onto a valid variable name.
32001 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32005 # We need space, tab and new line, in precisely that order.
32015 # Open the log real soon, to keep \$[0] and so on meaningful, and to
32016 # report actual input values of CONFIG_FILES etc. instead of their
32017 # values after options handling. Logging --version etc. is OK.
32021 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32022 ## Running $as_me. ##
32027 This file was extended by Concurrent Versions System (CVS) $as_me 1.12.9, which was
32028 generated by GNU Autoconf 2.58. Invocation command line was
32030 CONFIG_FILES = $CONFIG_FILES
32031 CONFIG_HEADERS = $CONFIG_HEADERS
32032 CONFIG_LINKS = $CONFIG_LINKS
32033 CONFIG_COMMANDS = $CONFIG_COMMANDS
32037 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32041 # Files that config.status was made for.
32042 if test -n "$ac_config_files"; then
32043 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32046 if test -n "$ac_config_headers"; then
32047 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32050 if test -n "$ac_config_links"; then
32051 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32054 if test -n "$ac_config_commands"; then
32055 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32058 cat >>$CONFIG_STATUS <<\_ACEOF
32061 \`$as_me' instantiates files from templates according to the
32062 current configuration.
32064 Usage: $0 [OPTIONS] [FILE]...
32066 -h, --help print this help, then exit
32067 -V, --version print version number, then exit
32068 -q, --quiet do not print progress messages
32069 -d, --debug don't remove temporary files
32070 --recheck update $as_me by reconfiguring in the same conditions
32071 --file=FILE[:TEMPLATE]
32072 instantiate the configuration file FILE
32073 --header=FILE[:TEMPLATE]
32074 instantiate the configuration header FILE
32076 Configuration files:
32079 Configuration headers:
32082 Configuration commands:
32085 Report bugs to <bug-autoconf@gnu.org>."
32088 cat >>$CONFIG_STATUS <<_ACEOF
32090 Concurrent Versions System (CVS) config.status 1.12.9
32091 configured by $0, generated by GNU Autoconf 2.58,
32092 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32094 Copyright (C) 2003 Free Software Foundation, Inc.
32095 This config.status script is free software; the Free Software Foundation
32096 gives unlimited permission to copy, distribute and modify it."
32101 cat >>$CONFIG_STATUS <<\_ACEOF
32102 # If no file are specified by the user, then we need to provide default
32103 # value. By we need to know if files were specified by the user.
32109 ac_option=`expr "x$1" : 'x\([^=]*\)='`
32110 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32118 *) # This is not an option, so the user has probably given explicit
32121 ac_need_defaults=false;;
32125 # Handling of the options.
32127 cat >>$CONFIG_STATUS <<\_ACEOF
32128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32130 --version | --vers* | -V )
32131 echo "$ac_cs_version"; exit 0 ;;
32133 # Conflict between --help and --header
32134 { { echo "$as_me:$LINENO: error: ambiguous option: $1
32135 Try \`$0 --help' for more information." >&5
32136 echo "$as_me: error: ambiguous option: $1
32137 Try \`$0 --help' for more information." >&2;}
32138 { (exit 1); exit 1; }; };;
32139 --help | --hel | -h )
32140 echo "$ac_cs_usage"; exit 0 ;;
32141 --debug | --d* | -d )
32143 --file | --fil | --fi | --f )
32145 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32146 ac_need_defaults=false;;
32147 --header | --heade | --head | --hea )
32149 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32150 ac_need_defaults=false;;
32151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32155 # This is an error.
32156 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
32157 Try \`$0 --help' for more information." >&5
32158 echo "$as_me: error: unrecognized option: $1
32159 Try \`$0 --help' for more information." >&2;}
32160 { (exit 1); exit 1; }; } ;;
32162 *) ac_config_targets="$ac_config_targets $1" ;;
32168 ac_configure_extra_args=
32170 if $ac_cs_silent; then
32172 ac_configure_extra_args="$ac_configure_extra_args --silent"
32176 cat >>$CONFIG_STATUS <<_ACEOF
32177 if \$ac_cs_recheck; then
32178 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32179 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32184 cat >>$CONFIG_STATUS <<_ACEOF
32186 # INIT-COMMANDS section.
32189 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32190 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32191 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32193 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32194 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32195 LINGUAS="${LINGUAS-%UNSET%}"
32202 cat >>$CONFIG_STATUS <<\_ACEOF
32203 for ac_config_target in $ac_config_targets
32205 case "$ac_config_target" in
32206 # Handling of arguments.
32207 "contrib/validate_repo" ) CONFIG_FILES="$CONFIG_FILES contrib/validate_repo" ;;
32208 "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
32209 "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
32210 "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
32211 "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
32212 "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
32213 "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
32214 "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
32215 "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
32216 "contrib/rcs2log" ) CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
32217 "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
32218 "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
32219 "doc/mkman" ) CONFIG_FILES="$CONFIG_FILES doc/mkman" ;;
32220 "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
32221 "windows-NT/fix-msvc-mak" ) CONFIG_FILES="$CONFIG_FILES windows-NT/fix-msvc-mak:windows-NT/plhead.pl:windows-NT/fix-msvc-mak.pl" ;;
32222 "windows-NT/mkconfig" ) CONFIG_FILES="$CONFIG_FILES windows-NT/mkconfig:windows-NT/plhead.pl:windows-NT/mkconfig.pl" ;;
32223 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32224 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
32225 "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
32226 "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
32227 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32228 "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
32229 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
32230 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
32231 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
32232 "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
32233 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32234 "src/sanity.config.sh" ) CONFIG_FILES="$CONFIG_FILES src/sanity.config.sh" ;;
32235 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
32236 "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
32237 "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
32238 "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
32239 "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
32240 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32241 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32242 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32243 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32244 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32245 { (exit 1); exit 1; }; };;
32249 # If the user did not use the arguments to specify the items to instantiate,
32250 # then the envvar interface is used. Set only those that are not.
32251 # We use the long form for the default assignment because of an extremely
32252 # bizarre bug on SunOS 4.1.3.
32253 if $ac_need_defaults; then
32254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32259 # Have a temporary directory for convenience. Make it in the build tree
32260 # simply because there is no reason to put it here, and in addition,
32261 # creating and moving files from /tmp can sometimes cause problems.
32262 # Create a temporary directory, and hook for its removal unless debugging.
32265 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32266 trap '{ (exit 1); exit 1; }' 1 2 13 15
32269 # Create a (secure) tmp directory for tmp files.
32272 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32273 test -n "$tmp" && test -d "$tmp"
32276 tmp=./confstat$$-$RANDOM
32277 (umask 077 && mkdir $tmp)
32280 echo "$me: cannot create a temporary directory in ." >&2
32281 { (exit 1); exit 1; }
32286 cat >>$CONFIG_STATUS <<_ACEOF
32289 # CONFIG_FILES section.
32292 # No need to generate the scripts if there are no CONFIG_FILES.
32293 # This happens for instance when ./config.status config.h
32294 if test -n "\$CONFIG_FILES"; then
32295 # Protect against being on the right side of a sed subst in config.status.
32296 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32297 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32298 s,@SHELL@,$SHELL,;t t
32299 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32300 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32301 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32302 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32303 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32304 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32305 s,@exec_prefix@,$exec_prefix,;t t
32306 s,@prefix@,$prefix,;t t
32307 s,@program_transform_name@,$program_transform_name,;t t
32308 s,@bindir@,$bindir,;t t
32309 s,@sbindir@,$sbindir,;t t
32310 s,@libexecdir@,$libexecdir,;t t
32311 s,@datadir@,$datadir,;t t
32312 s,@sysconfdir@,$sysconfdir,;t t
32313 s,@sharedstatedir@,$sharedstatedir,;t t
32314 s,@localstatedir@,$localstatedir,;t t
32315 s,@libdir@,$libdir,;t t
32316 s,@includedir@,$includedir,;t t
32317 s,@oldincludedir@,$oldincludedir,;t t
32318 s,@infodir@,$infodir,;t t
32319 s,@mandir@,$mandir,;t t
32320 s,@build_alias@,$build_alias,;t t
32321 s,@host_alias@,$host_alias,;t t
32322 s,@target_alias@,$target_alias,;t t
32323 s,@DEFS@,$DEFS,;t t
32324 s,@ECHO_C@,$ECHO_C,;t t
32325 s,@ECHO_N@,$ECHO_N,;t t
32326 s,@ECHO_T@,$ECHO_T,;t t
32327 s,@LIBS@,$LIBS,;t t
32328 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32329 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32330 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32331 s,@CYGPATH_W@,$CYGPATH_W,;t t
32332 s,@PACKAGE@,$PACKAGE,;t t
32333 s,@VERSION@,$VERSION,;t t
32334 s,@ACLOCAL@,$ACLOCAL,;t t
32335 s,@AUTOCONF@,$AUTOCONF,;t t
32336 s,@AUTOMAKE@,$AUTOMAKE,;t t
32337 s,@AUTOHEADER@,$AUTOHEADER,;t t
32338 s,@MAKEINFO@,$MAKEINFO,;t t
32339 s,@AMTAR@,$AMTAR,;t t
32340 s,@install_sh@,$install_sh,;t t
32341 s,@STRIP@,$STRIP,;t t
32342 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32343 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
32345 s,@SET_MAKE@,$SET_MAKE,;t t
32346 s,@am__leading_dot@,$am__leading_dot,;t t
32347 s,@ac_prefix_program@,$ac_prefix_program,;t t
32348 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
32349 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
32350 s,@MAINT@,$MAINT,;t t
32352 s,@CFLAGS@,$CFLAGS,;t t
32353 s,@LDFLAGS@,$LDFLAGS,;t t
32354 s,@CPPFLAGS@,$CPPFLAGS,;t t
32355 s,@ac_ct_CC@,$ac_ct_CC,;t t
32356 s,@EXEEXT@,$EXEEXT,;t t
32357 s,@OBJEXT@,$OBJEXT,;t t
32358 s,@DEPDIR@,$DEPDIR,;t t
32359 s,@am__include@,$am__include,;t t
32360 s,@am__quote@,$am__quote,;t t
32361 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
32362 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
32363 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
32364 s,@CCDEPMODE@,$CCDEPMODE,;t t
32365 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
32366 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
32368 s,@EGREP@,$EGREP,;t t
32369 s,@RANLIB@,$RANLIB,;t t
32370 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32371 s,@LN_S@,$LN_S,;t t
32372 s,@PERL@,$PERL,;t t
32374 s,@MKTEMP@,$MKTEMP,;t t
32375 s,@SENDMAIL@,$SENDMAIL,;t t
32377 s,@ROFF@,$ROFF,;t t
32378 s,@PS2PDF@,$PS2PDF,;t t
32379 s,@TEXI2DVI@,$TEXI2DVI,;t t
32380 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
32381 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
32382 s,@LIBOBJS@,$LIBOBJS,;t t
32383 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
32384 s,@USE_NLS@,$USE_NLS,;t t
32385 s,@MSGFMT@,$MSGFMT,;t t
32386 s,@GMSGFMT@,$GMSGFMT,;t t
32387 s,@XGETTEXT@,$XGETTEXT,;t t
32388 s,@MSGMERGE@,$MSGMERGE,;t t
32389 s,@build@,$build,;t t
32390 s,@build_cpu@,$build_cpu,;t t
32391 s,@build_vendor@,$build_vendor,;t t
32392 s,@build_os@,$build_os,;t t
32393 s,@host@,$host,;t t
32394 s,@host_cpu@,$host_cpu,;t t
32395 s,@host_vendor@,$host_vendor,;t t
32396 s,@host_os@,$host_os,;t t
32397 s,@LIBICONV@,$LIBICONV,;t t
32398 s,@LTLIBICONV@,$LTLIBICONV,;t t
32399 s,@INTLLIBS@,$INTLLIBS,;t t
32400 s,@LIBINTL@,$LIBINTL,;t t
32401 s,@LTLIBINTL@,$LTLIBINTL,;t t
32402 s,@POSUB@,$POSUB,;t t
32403 s,@STDBOOL_H@,$STDBOOL_H,;t t
32404 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
32405 s,@ALLOCA@,$ALLOCA,;t t
32406 s,@ALLOCA_H@,$ALLOCA_H,;t t
32407 s,@FNMATCH_H@,$FNMATCH_H,;t t
32408 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
32409 s,@YACC@,$YACC,;t t
32410 s,@YFLAGS@,$YFLAGS,;t t
32411 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
32412 s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
32413 s,@cvs_client_objects@,$cvs_client_objects,;t t
32414 s,@KRB4@,$KRB4,;t t
32415 s,@ZLIB_SUBDIRS@,$ZLIB_SUBDIRS,;t t
32416 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
32417 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
32418 s,@with_default_rsh@,$with_default_rsh,;t t
32419 s,@RSH_DFLT@,$RSH_DFLT,;t t
32420 s,@EDITOR@,$EDITOR,;t t
32421 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32422 /@MKTEMP_SH_FUNCTION@/r $MKTEMP_SH_FUNCTION
32423 s,@MKTEMP_SH_FUNCTION@,,;t t
32428 cat >>$CONFIG_STATUS <<\_ACEOF
32429 # Split the substitutions into bite-sized pieces for seds with
32430 # small command number limits, like on Digital OSF/1 and HP-UX.
32431 ac_max_sed_lines=48
32432 ac_sed_frag=1 # Number of current file.
32433 ac_beg=1 # First line for current file.
32434 ac_end=$ac_max_sed_lines # Line after last line for current file.
32437 while $ac_more_lines; do
32438 if test $ac_beg -gt 1; then
32439 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32441 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32443 if test ! -s $tmp/subs.frag; then
32444 ac_more_lines=false
32446 # The purpose of the label and of the branching condition is to
32447 # speed up the sed processing (if there are no `@' at all, there
32448 # is no need to browse any of the substitutions).
32449 # These are the two extra sed commands mentioned above.
32451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32452 if test -z "$ac_sed_cmds"; then
32453 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32455 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32457 ac_sed_frag=`expr $ac_sed_frag + 1`
32459 ac_end=`expr $ac_end + $ac_max_sed_lines`
32462 if test -z "$ac_sed_cmds"; then
32465 fi # test -n "$CONFIG_FILES"
32468 cat >>$CONFIG_STATUS <<\_ACEOF
32469 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32472 - | *:- | *:-:* ) # input from stdin
32474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32478 * ) ac_file_in=$ac_file.in ;;
32481 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32482 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32484 X"$ac_file" : 'X\(//\)[^/]' \| \
32485 X"$ac_file" : 'X\(//\)$' \| \
32486 X"$ac_file" : 'X\(/\)' \| \
32487 . : '\(.\)' 2>/dev/null ||
32489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32491 /^X\(\/\/\)$/{ s//\1/; q; }
32492 /^X\(\/\).*/{ s//\1/; q; }
32494 { if $as_mkdir_p; then
32499 while test ! -d "$as_dir"; do
32500 as_dirs="$as_dir $as_dirs"
32501 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32503 X"$as_dir" : 'X\(//\)[^/]' \| \
32504 X"$as_dir" : 'X\(//\)$' \| \
32505 X"$as_dir" : 'X\(/\)' \| \
32506 . : '\(.\)' 2>/dev/null ||
32508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32510 /^X\(\/\/\)$/{ s//\1/; q; }
32511 /^X\(\/\).*/{ s//\1/; q; }
32514 test ! -n "$as_dirs" || mkdir $as_dirs
32515 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32516 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32517 { (exit 1); exit 1; }; }; }
32521 if test "$ac_dir" != .; then
32522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32523 # A "../" for each directory in $ac_dir_suffix.
32524 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32526 ac_dir_suffix= ac_top_builddir=
32530 .) # No --srcdir option. We are building in place.
32532 if test -z "$ac_top_builddir"; then
32535 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32537 [\\/]* | ?:[\\/]* ) # Absolute path.
32538 ac_srcdir=$srcdir$ac_dir_suffix;
32539 ac_top_srcdir=$srcdir ;;
32540 *) # Relative path.
32541 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32542 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32545 .) ac_abs_builddir=$ac_builddir;;
32547 case $ac_builddir in
32548 .) ac_abs_builddir="$ac_dir";;
32549 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
32550 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
32554 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32556 case ${ac_top_builddir}. in
32557 .) ac_abs_top_builddir="$ac_dir";;
32558 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32559 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
32563 .) ac_abs_srcdir=$ac_srcdir;;
32566 .) ac_abs_srcdir="$ac_dir";;
32567 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32568 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
32572 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32574 case $ac_top_srcdir in
32575 .) ac_abs_top_srcdir="$ac_dir";;
32576 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32577 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
32583 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32584 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32587 if test x"$ac_file" != x-; then
32588 { echo "$as_me:$LINENO: creating $ac_file" >&5
32589 echo "$as_me: creating $ac_file" >&6;}
32592 # Let's still pretend it is `configure' which instantiates (i.e., don't
32593 # use $as_me), people would be surprised to read:
32594 # /* config.h. Generated by config.status. */
32595 if test x"$ac_file" = x-; then
32598 configure_input="$ac_file. "
32600 configure_input=$configure_input"Generated from `echo $ac_file_in |
32601 sed 's,.*/,,'` by configure."
32603 # First look for the input files in the build tree, otherwise in the
32605 ac_file_inputs=`IFS=:
32606 for f in $ac_file_in; do
32608 -) echo $tmp/stdin ;;
32610 # Absolute (can't be DOS-style, as IFS=:)
32611 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32612 echo "$as_me: error: cannot find input file: $f" >&2;}
32613 { (exit 1); exit 1; }; }
32616 if test -f "$f"; then
32619 elif test -f "$srcdir/$f"; then
32624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32625 echo "$as_me: error: cannot find input file: $f" >&2;}
32626 { (exit 1); exit 1; }; }
32629 done` || { (exit 1); exit 1; }
32631 cat >>$CONFIG_STATUS <<_ACEOF
32635 cat >>$CONFIG_STATUS <<\_ACEOF
32637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32638 s,@configure_input@,$configure_input,;t t
32639 s,@srcdir@,$ac_srcdir,;t t
32640 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32641 s,@top_srcdir@,$ac_top_srcdir,;t t
32642 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32643 s,@builddir@,$ac_builddir,;t t
32644 s,@abs_builddir@,$ac_abs_builddir,;t t
32645 s,@top_builddir@,$ac_top_builddir,;t t
32646 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32647 s,@INSTALL@,$ac_INSTALL,;t t
32648 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32650 if test x"$ac_file" != x-; then
32651 mv $tmp/out $ac_file
32657 # Run the commands associated with the file.
32659 contrib/validate_repo ) chmod +x contrib/validate_repo ;;
32660 contrib/clmerge ) chmod +x contrib/clmerge ;;
32661 contrib/cln_hist ) chmod +x contrib/cln_hist ;;
32662 contrib/commit_prep ) chmod +x contrib/commit_prep ;;
32663 contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
32664 contrib/log ) chmod +x contrib/log ;;
32665 contrib/log_accum ) chmod +x contrib/log_accum ;;
32666 contrib/mfpipe ) chmod +x contrib/mfpipe ;;
32667 contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
32668 contrib/rcs2log ) chmod +x contrib/rcs2log ;;
32669 contrib/rcslock ) chmod +x contrib/rcslock ;;
32670 contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
32671 doc/mkman ) chmod +x doc/mkman ;;
32672 src/cvsbug ) chmod +x src/cvsbug ;;
32673 windows-NT/fix-msvc-mak ) chmod +x windows-NT/fix-msvc-mak ;;
32674 windows-NT/mkconfig ) chmod +x windows-NT/mkconfig ;;
32678 cat >>$CONFIG_STATUS <<\_ACEOF
32681 # CONFIG_HEADER section.
32684 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32685 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32687 # ac_d sets the value in "#define NAME VALUE" lines.
32688 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32689 ac_dB='[ ].*$,\1#\2'
32692 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32693 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32694 ac_uB='$,\1#\2define\3'
32698 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32699 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32701 - | *:- | *:-:* ) # input from stdin
32703 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32704 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32705 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32706 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32707 * ) ac_file_in=$ac_file.in ;;
32710 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32711 echo "$as_me: creating $ac_file" >&6;}
32713 # First look for the input files in the build tree, otherwise in the
32715 ac_file_inputs=`IFS=:
32716 for f in $ac_file_in; do
32718 -) echo $tmp/stdin ;;
32720 # Absolute (can't be DOS-style, as IFS=:)
32721 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32722 echo "$as_me: error: cannot find input file: $f" >&2;}
32723 { (exit 1); exit 1; }; }
32724 # Do quote $f, to prevent DOS paths from being IFS'd.
32727 if test -f "$f"; then
32730 elif test -f "$srcdir/$f"; then
32735 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32736 echo "$as_me: error: cannot find input file: $f" >&2;}
32737 { (exit 1); exit 1; }; }
32740 done` || { (exit 1); exit 1; }
32741 # Remove the trailing spaces.
32742 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32746 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32747 # `conftest.undefs', that substitutes the proper values into
32748 # config.h.in to produce config.h. The first handles `#define'
32749 # templates, and the second `#undef' templates.
32750 # And first: Protect against being on the right side of a sed subst in
32751 # config.status. Protect against being in an unquoted here document
32752 # in config.status.
32753 rm -f conftest.defines conftest.undefs
32754 # Using a here document instead of a string reduces the quoting nightmare.
32755 # Putting comments in sed scripts is not portable.
32757 # `end' is used to avoid that the second main sed command (meant for
32758 # 0-ary CPP macros) applies to n-ary macro definitions.
32759 # See the Autoconf documentation for `clear'.
32760 cat >confdef2sed.sed <<\_ACEOF
32765 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32767 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32770 # If some macros were called several times there might be several times
32771 # the same #defines, which is useless. Nevertheless, we may not want to
32772 # sort them, since we want the *last* AC-DEFINE to be honored.
32773 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32774 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32775 rm -f confdef2sed.sed
32777 # This sed command replaces #undef with comments. This is necessary, for
32778 # example, in the case of _POSIX_SOURCE, which is predefined and required
32779 # on some systems where configure will not decide to define it.
32780 cat >>conftest.undefs <<\_ACEOF
32781 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32784 # Break up conftest.defines because some shells have a limit on the size
32785 # of here documents, and old seds have small limits too (100 cmds).
32786 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32787 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32788 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32789 echo ' :' >>$CONFIG_STATUS
32790 rm -f conftest.tail
32791 while grep . conftest.defines >/dev/null
32793 # Write a limited-size here document to $tmp/defines.sed.
32794 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32795 # Speed up: don't consider the non `#define' lines.
32796 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32797 # Work around the forget-to-reset-the-flag bug.
32798 echo 't clr' >>$CONFIG_STATUS
32799 echo ': clr' >>$CONFIG_STATUS
32800 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32802 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32804 mv $tmp/out $tmp/in
32806 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32807 rm -f conftest.defines
32808 mv conftest.tail conftest.defines
32810 rm -f conftest.defines
32811 echo ' fi # grep' >>$CONFIG_STATUS
32812 echo >>$CONFIG_STATUS
32814 # Break up conftest.undefs because some shells have a limit on the size
32815 # of here documents, and old seds have small limits too (100 cmds).
32816 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32817 rm -f conftest.tail
32818 while grep . conftest.undefs >/dev/null
32820 # Write a limited-size here document to $tmp/undefs.sed.
32821 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32822 # Speed up: don't consider the non `#undef'
32823 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32824 # Work around the forget-to-reset-the-flag bug.
32825 echo 't clr' >>$CONFIG_STATUS
32826 echo ': clr' >>$CONFIG_STATUS
32827 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32829 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32831 mv $tmp/out $tmp/in
32833 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32834 rm -f conftest.undefs
32835 mv conftest.tail conftest.undefs
32837 rm -f conftest.undefs
32839 cat >>$CONFIG_STATUS <<\_ACEOF
32840 # Let's still pretend it is `configure' which instantiates (i.e., don't
32841 # use $as_me), people would be surprised to read:
32842 # /* config.h. Generated by config.status. */
32843 if test x"$ac_file" = x-; then
32844 echo "/* Generated by configure. */" >$tmp/config.h
32846 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32848 cat $tmp/in >>$tmp/config.h
32850 if test x"$ac_file" != x-; then
32851 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32852 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32853 echo "$as_me: $ac_file is unchanged" >&6;}
32855 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32857 X"$ac_file" : 'X\(//\)[^/]' \| \
32858 X"$ac_file" : 'X\(//\)$' \| \
32859 X"$ac_file" : 'X\(/\)' \| \
32860 . : '\(.\)' 2>/dev/null ||
32862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32864 /^X\(\/\/\)$/{ s//\1/; q; }
32865 /^X\(\/\).*/{ s//\1/; q; }
32867 { if $as_mkdir_p; then
32872 while test ! -d "$as_dir"; do
32873 as_dirs="$as_dir $as_dirs"
32874 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32876 X"$as_dir" : 'X\(//\)[^/]' \| \
32877 X"$as_dir" : 'X\(//\)$' \| \
32878 X"$as_dir" : 'X\(/\)' \| \
32879 . : '\(.\)' 2>/dev/null ||
32881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32883 /^X\(\/\/\)$/{ s//\1/; q; }
32884 /^X\(\/\).*/{ s//\1/; q; }
32887 test ! -n "$as_dirs" || mkdir $as_dirs
32888 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32889 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32890 { (exit 1); exit 1; }; }; }
32893 mv $tmp/config.h $ac_file
32897 rm -f $tmp/config.h
32899 # Compute $ac_file's index in $config_headers.
32901 for _am_header in $config_headers :; do
32902 case $_am_header in
32903 $ac_file | $ac_file:* )
32906 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32909 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32910 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32911 X$ac_file : 'X\(//\)[^/]' \| \
32912 X$ac_file : 'X\(//\)$' \| \
32913 X$ac_file : 'X\(/\)' \| \
32914 . : '\(.\)' 2>/dev/null ||
32916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32918 /^X\(\/\/\)$/{ s//\1/; q; }
32919 /^X\(\/\).*/{ s//\1/; q; }
32920 s/.*/./; q'`/stamp-h$_am_stamp_count
32923 cat >>$CONFIG_STATUS <<\_ACEOF
32926 # CONFIG_COMMANDS section.
32928 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32929 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32930 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32931 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32932 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32933 X"$ac_dest" : 'X\(//\)[^/]' \| \
32934 X"$ac_dest" : 'X\(//\)$' \| \
32935 X"$ac_dest" : 'X\(/\)' \| \
32936 . : '\(.\)' 2>/dev/null ||
32938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32940 /^X\(\/\/\)$/{ s//\1/; q; }
32941 /^X\(\/\).*/{ s//\1/; q; }
32943 { if $as_mkdir_p; then
32948 while test ! -d "$as_dir"; do
32949 as_dirs="$as_dir $as_dirs"
32950 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32952 X"$as_dir" : 'X\(//\)[^/]' \| \
32953 X"$as_dir" : 'X\(//\)$' \| \
32954 X"$as_dir" : 'X\(/\)' \| \
32955 . : '\(.\)' 2>/dev/null ||
32957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32959 /^X\(\/\/\)$/{ s//\1/; q; }
32960 /^X\(\/\).*/{ s//\1/; q; }
32963 test ! -n "$as_dirs" || mkdir $as_dirs
32964 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32966 { (exit 1); exit 1; }; }; }
32970 if test "$ac_dir" != .; then
32971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32972 # A "../" for each directory in $ac_dir_suffix.
32973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32975 ac_dir_suffix= ac_top_builddir=
32979 .) # No --srcdir option. We are building in place.
32981 if test -z "$ac_top_builddir"; then
32984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32986 [\\/]* | ?:[\\/]* ) # Absolute path.
32987 ac_srcdir=$srcdir$ac_dir_suffix;
32988 ac_top_srcdir=$srcdir ;;
32989 *) # Relative path.
32990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32994 .) ac_abs_builddir=$ac_builddir;;
32996 case $ac_builddir in
32997 .) ac_abs_builddir="$ac_dir";;
32998 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
32999 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
33003 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33005 case ${ac_top_builddir}. in
33006 .) ac_abs_top_builddir="$ac_dir";;
33007 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33008 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
33012 .) ac_abs_srcdir=$ac_srcdir;;
33015 .) ac_abs_srcdir="$ac_dir";;
33016 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33017 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
33021 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33023 case $ac_top_srcdir in
33024 .) ac_abs_top_srcdir="$ac_dir";;
33025 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33026 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
33031 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
33032 echo "$as_me: executing $ac_dest commands" >&6;}
33034 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33035 # Strip MF so we end up with the name of the file.
33036 mf=`echo "$mf" | sed -e 's/:.*$//'`
33037 # Check whether this is an Automake generated Makefile or not.
33038 # We used to match only the files named `Makefile.in', but
33039 # some people rename them; so instead we look at the file content.
33040 # Grep'ing the first line is not enough: some people post-process
33041 # each Makefile.in and add a new line on top of each file to say so.
33042 # So let's grep whole file.
33043 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33044 dirpart=`(dirname "$mf") 2>/dev/null ||
33045 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33046 X"$mf" : 'X\(//\)[^/]' \| \
33047 X"$mf" : 'X\(//\)$' \| \
33048 X"$mf" : 'X\(/\)' \| \
33049 . : '\(.\)' 2>/dev/null ||
33051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33053 /^X\(\/\/\)$/{ s//\1/; q; }
33054 /^X\(\/\).*/{ s//\1/; q; }
33059 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
33060 # Extract the definition of DEP_FILES from the Makefile without
33062 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
33063 test -z "$DEPDIR" && continue
33064 # When using ansi2knr, U may be empty or an underscore; expand it
33065 U=`sed -n -e '/^U = / s///p' < "$mf"`
33066 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
33067 # We invoke sed twice because it is the simplest approach to
33068 # changing $(DEPDIR) to its actual value in the expansion.
33069 for file in `sed -n -e '
33070 /^DEP_FILES = .*\\\\$/ {
33079 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
33080 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33081 # Make sure the directory exists.
33082 test -f "$dirpart/$file" && continue
33083 fdir=`(dirname "$file") 2>/dev/null ||
33084 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33085 X"$file" : 'X\(//\)[^/]' \| \
33086 X"$file" : 'X\(//\)$' \| \
33087 X"$file" : 'X\(/\)' \| \
33088 . : '\(.\)' 2>/dev/null ||
33090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33092 /^X\(\/\/\)$/{ s//\1/; q; }
33093 /^X\(\/\).*/{ s//\1/; q; }
33095 { if $as_mkdir_p; then
33096 mkdir -p $dirpart/$fdir
33098 as_dir=$dirpart/$fdir
33100 while test ! -d "$as_dir"; do
33101 as_dirs="$as_dir $as_dirs"
33102 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33104 X"$as_dir" : 'X\(//\)[^/]' \| \
33105 X"$as_dir" : 'X\(//\)$' \| \
33106 X"$as_dir" : 'X\(/\)' \| \
33107 . : '\(.\)' 2>/dev/null ||
33109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33111 /^X\(\/\/\)$/{ s//\1/; q; }
33112 /^X\(\/\).*/{ s//\1/; q; }
33115 test ! -n "$as_dirs" || mkdir $as_dirs
33116 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
33117 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
33118 { (exit 1); exit 1; }; }; }
33120 # echo "creating $dirpart/$file"
33121 echo '# dummy' > "$dirpart/$file"
33126 for ac_file in $CONFIG_FILES; do
33127 # Support "outfile[:infile[:infile...]]"
33129 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33131 # PO directories have a Makefile.in generated from Makefile.in.in.
33132 case "$ac_file" in */Makefile.in)
33133 # Adjust a relative srcdir.
33134 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33135 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33136 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33137 # In autoconf-2.13 it is called $ac_given_srcdir.
33138 # In autoconf-2.50 it is called $srcdir.
33139 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33140 case "$ac_given_srcdir" in
33141 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33142 /*) top_srcdir="$ac_given_srcdir" ;;
33143 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33145 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33146 rm -f "$ac_dir/POTFILES"
33147 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33148 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33149 POMAKEFILEDEPS="POTFILES.in"
33150 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
33151 # on $ac_dir but don't depend on user-specified configuration
33153 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33154 # The LINGUAS file contains the set of available languages.
33155 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33156 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33158 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33159 # Hide the ALL_LINGUAS assigment from automake.
33160 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33161 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33163 # The set of available languages was given in configure.in.
33164 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33166 case "$ac_given_srcdir" in
33168 *) srcdirpre='$(srcdir)/' ;;
33174 for lang in $ALL_LINGUAS; do
33175 POFILES="$POFILES $srcdirpre$lang.po"
33176 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33177 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33178 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33180 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33181 # environment variable.
33183 if test -n "$ALL_LINGUAS"; then
33184 for presentlang in $ALL_LINGUAS; do
33186 if test "%UNSET%" != "$LINGUAS"; then
33187 desiredlanguages="$LINGUAS"
33189 desiredlanguages="$ALL_LINGUAS"
33191 for desiredlang in $desiredlanguages; do
33192 # Use the presentlang catalog if desiredlang is
33193 # a. equal to presentlang, or
33194 # b. a variant of presentlang (because in this case,
33195 # presentlang can be used as a fallback for messages
33196 # which are not translated in the desiredlang catalog).
33197 case "$desiredlang" in
33198 "$presentlang"*) useit=yes;;
33201 if test $useit = yes; then
33202 INST_LINGUAS="$INST_LINGUAS $presentlang"
33207 if test -n "$INST_LINGUAS"; then
33208 for lang in $INST_LINGUAS; do
33209 CATALOGS="$CATALOGS $lang.gmo"
33212 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33213 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33214 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33215 if test -f "$f"; then
33217 *.orig | *.bak | *~) ;;
33218 *) cat "$f" >> "$ac_dir/Makefile" ;;
33230 cat >>$CONFIG_STATUS <<\_ACEOF
33232 { (exit 0); exit 0; }
33234 chmod +x $CONFIG_STATUS
33235 ac_clean_files=$ac_clean_files_save
33238 # configure is writing to config.log, and then calls config.status.
33239 # config.status does its own redirection, appending to config.log.
33240 # Unfortunately, on DOS this fails, as config.log is still kept open
33241 # by configure, so config.status won't be able to write to it; its
33242 # output is simply discarded. So we exec the FD to /dev/null,
33243 # effectively closing config.log, so it can be properly (re)opened and
33244 # appended to by config.status. When coming back to configure, we
33245 # need to make the FD available again.
33246 if test "$no_create" != yes; then
33248 ac_config_status_args=
33249 test "$silent" = yes &&
33250 ac_config_status_args="$ac_config_status_args --quiet"
33252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33255 # would make configure fail if this is the last instruction.
33256 $ac_cs_success || { (exit 1); exit 1; }
33262 # Report the state of this version of CVS if this is from dev.