2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Concurrent Versions System (CVS) 1.12.12.
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, 2004
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.12'
287 PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.12'
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 ALLOCA ALLOCA_H STDBOOL_H HAVE__BOOL FNMATCH_H YACC YFLAGS LIB_CLOCK_GETTIME GETOPT_H LIB_NANOSLEEP HAVE_LONG_64BIT HAVE_LONG_LONG_64BIT STDINT_H EOVERFLOW MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB 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.12 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.12:";;
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 build
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-proxy Include code for running as a transparent proxy
908 server. Disabling this may produce a slight
909 performance gain on some systems, at the expense of
910 write proxy support. (default)
911 --enable-pam Use to enable system authentication with PAM instead
912 of using the simple getpwnam interface. This allows
913 authentication (in theory) with any PAM module, e.g.
914 on systems with shadow passwords or via LDAP
915 --enable-case-sensitivity
916 Force CVS to expect a case sensitive file system.
917 Enabling this on a case insensitive system should
918 have little effect on the server or client
919 operation, though client users may ocassionally be
920 suprised that the CVS server appears to be case
921 sensitive. Disabling this for a case sensitive
922 server disables server support for case insensitive
923 clients, which can confuse all users of case
924 insensitive clients contacting the server. Disabling
925 this for a case sensitive client will cause the
926 client to ask servers to behave case insensitively,
927 which could cause confusion for users, but also
928 probably no real harm. (default autoselects based on
929 the case sensitivity of the file system containing
930 the current working directory)
931 --enable-encryption Enable encryption support (disabled by default)
932 --enable-force-editor When committing or importing files, you must enter a
933 log message. Normally, you can do this either via
934 the -m flag on the command line, the -F flag on the
935 command line, or an editor will be started for you.
936 If you like to use logging templates (the rcsinfo
937 file within the $CVSROOT/CVSROOT directory), you
938 might want to force people to use the editor even if
939 they specify a message with -m or -F.
940 --enable-force-editor will cause the -m or -F
941 message to be appended to the temp file when the
942 editor is started. (disabled by default)
943 --enable-lock-compatibility
944 Include locking code which prevents versions of CVS
945 earlier than 1.12.4 directly accessing the same
946 repositiory as this executable from ignoring this
947 executable's promotable read locks. If only CVS
948 versions 1.12.4 and later will be accessing your
949 repository directly (as a server or locally), you
950 can safely disable this option in return for fewer
951 disk accesses and a small speed increase. Disabling
952 this option when versions of CVS earlier than 1,12,4
953 _will_ be accessing your repository, however, is
954 *VERY* *VERY* *VERY* dangerous and could result in
955 data loss. (enabled by default)
956 --enable-rootcommit Allow the root user to commit files (disabled by
958 --enable-old-info-format-support
959 Enable support for the pre 1.12.1 *info scripting
960 hook format strings. Disable this option for a
961 smaller executable once your scripting hooks have
962 been updated to use the new *info format strings
966 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
967 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
968 --without-included-regex don't compile regex; this is the default on
969 systems with version 2 of the GNU C library
970 (use with caution on other system)
971 --with-gnu-ld assume the C compiler uses GNU ld default=no
972 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
973 --without-libiconv-prefix don't search for libiconv in includedir and libdir
974 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
975 --without-libintl-prefix don't search for libintl in includedir and libdir
976 --with-krb4 Kerberos 4 directory (default /usr/kerberos)
977 --with-gssapi GSSAPI directory (default autoselects)
978 --with-external-zlib Use the specified ZLIB library (defaults to the
979 version distributed with the CVS source)
980 --with-rsh The default remote shell CVS will use for :ext:
981 transport (default ssh)
982 --with-editor The default text editor CVS should use for log
983 messages (default autoselects)
984 --with-hardcoded-pam-service-name
985 Use this to hard code a service name for PAM CVS
986 authentication. The special name, `program_name',
987 will cause CVS to use whatever name it was invoked
988 as as the service name. (defaults to `cvs')
989 --with-tmpdir The temporary directory CVS should use as a default
990 (default autoselects)
991 --with-umask Set the umask CVS will use by default in the
992 repository (default 002)
993 --with-cvs-admin-group=GROUP
994 The CVS admin command is restricted to the members
995 of this group. If this group does not exist, all
996 users are allowed to run CVS admin. To disable the
997 CVS admin command for all users, create an empty
998 group by specifying the --with-cvs-admin-group=
999 option. To disable access control for CVS admin, run
1000 configure with the --without-cvs-admin-group option.
1001 (default 'cvsadmin')
1003 Some influential environment variables:
1004 CC C compiler command
1005 CFLAGS C compiler flags
1006 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1007 nonstandard directory <lib dir>
1008 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1009 headers in a nonstandard directory <include dir>
1011 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1012 `bison -y'. Values other than `bison -y' will most likely break
1014 YFLAGS YFLAGS contains the list arguments that will be passed by
1015 default to Bison. This script will default YFLAGS to the empty
1016 string to avoid a default value of `-d' given by some make
1018 EDITOR The text editor CVS will use by default for log messages.
1020 Use these variables to override the choices made by `configure' or to help
1021 it to find libraries and programs with nonstandard names/locations.
1023 Report bugs to <bug-cvs@gnu.org>.
1027 if test "$ac_init_help" = "recursive"; then
1028 # If there are subdirs, report their specific --help.
1030 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1031 test -d $ac_dir || continue
1034 if test "$ac_dir" != .; then
1035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1036 # A "../" for each directory in $ac_dir_suffix.
1037 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1039 ac_dir_suffix= ac_top_builddir=
1043 .) # No --srcdir option. We are building in place.
1045 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1050 [\\/]* | ?:[\\/]* ) # Absolute path.
1051 ac_srcdir=$srcdir$ac_dir_suffix;
1052 ac_top_srcdir=$srcdir ;;
1054 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1055 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 # Do not use `cd foo && pwd` to compute absolute paths, because
1059 # the directories may not exist.
1061 .) ac_abs_builddir="$ac_dir";;
1064 .) ac_abs_builddir=`pwd`;;
1065 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1066 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 case $ac_abs_builddir in
1070 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 case ${ac_top_builddir}. in
1073 .) ac_abs_top_builddir=$ac_abs_builddir;;
1074 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1075 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 case $ac_abs_builddir in
1079 .) ac_abs_srcdir=$ac_srcdir;;
1082 .) ac_abs_srcdir=$ac_abs_builddir;;
1083 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1084 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 case $ac_abs_builddir in
1088 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 case $ac_top_srcdir in
1091 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1093 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1098 # Check for guested configure; otherwise get Cygnus style configure.
1099 if test -f $ac_srcdir/configure.gnu; then
1101 $SHELL $ac_srcdir/configure.gnu --help=recursive
1102 elif test -f $ac_srcdir/configure; then
1104 $SHELL $ac_srcdir/configure --help=recursive
1105 elif test -f $ac_srcdir/configure.ac ||
1106 test -f $ac_srcdir/configure.in; then
1108 $ac_configure --help
1110 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1116 test -n "$ac_init_help" && exit 0
1117 if $ac_init_version; then
1119 Concurrent Versions System (CVS) configure 1.12.12
1120 generated by GNU Autoconf 2.59
1122 Copyright (C) 2003 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1126 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
1127 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
1128 Free Software Foundation, Inc.
1130 This program is free software; you can redistribute it and/or modify
1131 it under the terms of the GNU General Public License as published by
1132 the Free Software Foundation; either version 2, or (at your option)
1135 This program is distributed in the hope that it will be useful,
1136 but WITHOUT ANY WARRANTY; without even the implied warranty of
1137 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1138 GNU General Public License for more details.
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by Concurrent Versions System (CVS) $as_me 1.12.12, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_must_keep_next=false
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 -* ) ac_must_keep_next=true ;;
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1265 # The following way of writing the cache mishandles newlines in values,
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1295 if test -n "$ac_subst_files"; then
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1310 if test -s confdefs.h; then
1317 sed "/^$/d" confdefs.h | sort
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1400 # Check that the precious variables saved in the cache have kept the same
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424 echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426 echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458 gl_func_list="$gl_func_list fchdir"
1459 gl_header_list="$gl_header_list fcntl.h"
1460 gl_header_list="$gl_header_list unistd.h"
1461 gl_header_list="$gl_header_list sys/time.h"
1462 gl_func_list="$gl_func_list isascii"
1463 gl_header_list="$gl_header_list sys/param.h"
1464 gl_header_list="$gl_header_list stdio_ext.h"
1465 gl_func_list="$gl_func_list gettimeofday"
1466 gl_func_list="$gl_func_list nanotime"
1467 gl_func_list="$gl_func_list posix_memalign"
1468 gl_header_list="$gl_header_list wchar.h"
1469 gl_header_list="$gl_header_list wctype.h"
1470 gl_func_list="$gl_func_list iswprint"
1471 gl_func_list="$gl_func_list mbsinit"
1472 gl_func_list="$gl_func_list mempcpy"
1473 gl_func_list="$gl_func_list mblen"
1474 gl_func_list="$gl_func_list mbrlen"
1475 gl_func_list="$gl_func_list tzset"
1503 for ac_dir in build-aux $srcdir/build-aux; do
1504 if test -f $ac_dir/install-sh; then
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 elif test -f $ac_dir/install.sh; then
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 elif test -f $ac_dir/shtool; then
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1518 if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&2;}
1521 { (exit 1); exit 1; }; }
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527 am__api_version="1.9"
1528 # Find a good install program. We prefer a C program (faster),
1529 # so one script is as good as another. But avoid the broken or
1530 # incompatible versions:
1531 # SysV /etc/install, /usr/sbin/install
1532 # SunOS /usr/etc/install
1533 # IRIX /sbin/install
1535 # AmigaOS /C/install, which installs bootblocks on floppy discs
1536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1539 # OS/2's system install, which has a completely different semantic
1540 # ./install, which can be erroneously created by make from ./install.sh.
1541 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1543 if test -z "$INSTALL"; then
1544 if test "${ac_cv_path_install+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir=.
1552 # Account for people who put trailing slashes in PATH elements.
1554 ./ | .// | /cC/* | \
1555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1556 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1559 # OSF1 and SCO ODT 3.0 have their own names for install.
1560 # Don't use installbsd from OSF since it installs stuff as root
1562 for ac_prog in ginstall scoinst install; do
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1565 if test $ac_prog = install &&
1566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567 # AIX install. It has an incompatible calling convention.
1569 elif test $ac_prog = install &&
1570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571 # program-specific install script used by HP pwplus--don't use.
1574 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1586 if test "${ac_cv_path_install+set}" = set; then
1587 INSTALL=$ac_cv_path_install
1589 # As a last resort, use the slow shell script. We don't cache a
1590 # path for INSTALL within a source directory, because that will
1591 # break other packages using the cache if that directory is
1592 # removed, or if the path is relative.
1593 INSTALL=$ac_install_sh
1596 echo "$as_me:$LINENO: result: $INSTALL" >&5
1597 echo "${ECHO_T}$INSTALL" >&6
1599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1600 # It thinks the first close brace ends the variable substitution.
1601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1608 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1611 echo timestamp > conftest.file
1612 # Do `set' in a subshell so we don't clobber the current shell's
1613 # arguments. Must try -L first in case configure is actually a
1614 # symlink; some systems play weird games with the mod time of symlinks
1615 # (eg FreeBSD returns the mod time of the symlink's containing
1618 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1619 if test "$*" = "X"; then
1621 set X `ls -t $srcdir/configure conftest.file`
1624 if test "$*" != "X $srcdir/configure conftest.file" \
1625 && test "$*" != "X conftest.file $srcdir/configure"; then
1627 # If neither matched, then we have a broken ls. This can happen
1628 # if, for instance, CONFIG_SHELL is bash and it inherits a
1629 # broken ls alias from the environment. This has actually
1630 # happened. Such a system could not be considered "sane".
1631 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&5
1633 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1634 alias in your environment" >&2;}
1635 { (exit 1); exit 1; }; }
1638 test "$2" = conftest.file
1644 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1645 Check your system clock" >&5
1646 echo "$as_me: error: newly created file is older than distributed files!
1647 Check your system clock" >&2;}
1648 { (exit 1); exit 1; }; }
1650 echo "$as_me:$LINENO: result: yes" >&5
1651 echo "${ECHO_T}yes" >&6
1652 test "$program_prefix" != NONE &&
1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1654 # Use a double $ so make ignores it.
1655 test "$program_suffix" != NONE &&
1656 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657 # Double any \ or $. echo might interpret backslashes.
1658 # By default was `s,x,x', remove it if useless.
1659 cat <<\_ACEOF >conftest.sed
1660 s/[\\$]/&&/g;s/;s,x,x,$//
1662 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1665 # expand $ac_aux_dir to an absolute path
1666 am_aux_dir=`cd $ac_aux_dir && pwd`
1668 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1669 # Use eval to expand $SHELL
1670 if eval "$MISSING --run true"; then
1671 am_missing_run="$MISSING --run "
1674 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1675 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1678 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1679 # We used to keeping the `.' as first argument, in order to
1680 # allow $(mkdir_p) to be used without argument. As in
1681 # $(mkdir_p) $(somedir)
1682 # where $(somedir) is conditionally defined. However this is wrong
1684 # 1. if the package is installed by a user who cannot write `.'
1685 # make install will fail,
1686 # 2. the above comment should most certainly read
1687 # $(mkdir_p) $(DESTDIR)$(somedir)
1688 # so it does not work when $(somedir) is undefined and
1689 # $(DESTDIR) is not.
1690 # To support the latter case, we have to write
1691 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1692 # so the `.' trick is pointless.
1693 mkdir_p='mkdir -p --'
1695 # On NextStep and OpenStep, the `mkdir' command does not
1696 # recognize any option. It will interpret all options as
1697 # directories to create, and then abort because `.' already
1699 for d in ./-p ./--version;
1701 test -d $d && rmdir $d
1703 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1704 if test -f "$ac_aux_dir/mkinstalldirs"; then
1705 mkdir_p='$(mkinstalldirs)'
1707 mkdir_p='$(install_sh) -d'
1711 for ac_prog in gawk mawk nawk awk
1713 # Extract the first word of "$ac_prog", so it can be a program name with args.
1714 set dummy $ac_prog; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_AWK+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 if test -n "$AWK"; then
1721 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_AWK="$ac_prog"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 if test -n "$AWK"; then
1741 echo "$as_me:$LINENO: result: $AWK" >&5
1742 echo "${ECHO_T}$AWK" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 test -n "$AWK" && break
1751 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1752 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1754 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 cat >conftest.make <<\_ACEOF
1759 @echo 'ac_maketemp="$(MAKE)"'
1761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1762 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1763 if test -n "$ac_maketemp"; then
1764 eval ac_cv_prog_make_${ac_make}_set=yes
1766 eval ac_cv_prog_make_${ac_make}_set=no
1770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 SET_MAKE="MAKE=${MAKE-make}"
1780 rm -rf .tst 2>/dev/null
1781 mkdir .tst 2>/dev/null
1782 if test -d .tst; then
1787 rmdir .tst 2>/dev/null
1789 # test to see if srcdir already configured
1790 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1791 test -f $srcdir/config.status; then
1792 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1793 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1794 { (exit 1); exit 1; }; }
1797 # test whether we have cygpath
1798 if test -z "$CYGPATH_W"; then
1799 if (cygpath --version) >/dev/null 2>/dev/null; then
1800 CYGPATH_W='cygpath -w'
1807 # Define the identity of the package.
1812 # Some tools Automake needs.
1814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1828 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1830 # Installed binaries are usually stripped using `strip' when the user
1831 # run `make install-strip'. However `strip' might not be the right
1832 # tool to use in cross-compilation environments, therefore Automake
1833 # will honor the `STRIP' environment variable to overrule this program.
1834 if test "$cross_compiling" != no; then
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}strip; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_STRIP+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$STRIP"; then
1844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 STRIP=$ac_cv_prog_STRIP
1863 if test -n "$STRIP"; then
1864 echo "$as_me:$LINENO: result: $STRIP" >&5
1865 echo "${ECHO_T}$STRIP" >&6
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1872 if test -z "$ac_cv_prog_STRIP"; then
1874 # Extract the first word of "strip", so it can be a program name with args.
1875 set dummy strip; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$ac_ct_STRIP"; then
1882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_STRIP="strip"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1902 if test -n "$ac_ct_STRIP"; then
1903 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1904 echo "${ECHO_T}$ac_ct_STRIP" >&6
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1912 STRIP="$ac_cv_prog_STRIP"
1916 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1918 # We need awk for the "check" target. The system "awk" is bad on
1920 # Always define AMTAR for backward compatibility.
1922 AMTAR=${AMTAR-"${am_missing_run}tar"}
1924 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1932 if test "x$prefix" = xNONE; then
1933 echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1934 # Extract the first word of "cvs", so it can be a program name with args.
1935 set dummy cvs; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 case $ac_prefix_program in
1943 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 ac_prefix_program=$ac_cv_path_ac_prefix_program
1965 if test -n "$ac_prefix_program"; then
1966 echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1967 echo "${ECHO_T}$ac_prefix_program" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1973 if test -n "$ac_prefix_program"; then
1974 prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1975 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1976 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1977 X"$ac_prefix_program" : 'X\(//\)$' \| \
1978 X"$ac_prefix_program" : 'X\(/\)' \| \
1979 . : '\(.\)' 2>/dev/null ||
1980 echo X"$ac_prefix_program" |
1981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1983 /^X\(\/\/\)$/{ s//\1/; q; }
1984 /^X\(\/\).*/{ s//\1/; q; }
1986 prefix=`(dirname "$prefix") 2>/dev/null ||
1987 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1988 X"$prefix" : 'X\(//\)[^/]' \| \
1989 X"$prefix" : 'X\(//\)$' \| \
1990 X"$prefix" : 'X\(/\)' \| \
1991 . : '\(.\)' 2>/dev/null ||
1993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1995 /^X\(\/\/\)$/{ s//\1/; q; }
1996 /^X\(\/\).*/{ s//\1/; q; }
2001 ac_config_headers="$ac_config_headers config.h"
2003 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2004 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2005 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2006 if test "${enable_maintainer_mode+set}" = set; then
2007 enableval="$enable_maintainer_mode"
2008 USE_MAINTAINER_MODE=$enableval
2010 USE_MAINTAINER_MODE=no
2012 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2013 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2016 if test $USE_MAINTAINER_MODE = yes; then
2017 MAINTAINER_MODE_TRUE=
2018 MAINTAINER_MODE_FALSE='#'
2020 MAINTAINER_MODE_TRUE='#'
2021 MAINTAINER_MODE_FALSE=
2024 MAINT=$MAINTAINER_MODE_TRUE
2028 DEPDIR="${am__leading_dot}deps"
2030 ac_config_commands="$ac_config_commands depfiles"
2033 am_make=${MAKE-make}
2034 cat > confinc << 'END'
2039 # If we don't find an include directive, just comment out the code.
2040 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2041 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2045 # First try GNU make style include.
2046 echo "include confinc" > confmf
2047 # We grep out `Entering directory' and `Leaving directory'
2048 # messages which can occur if `w' ends up in MAKEFLAGS.
2049 # In particular we don't look at `^make:' because GNU make might
2050 # be invoked under some other name (usually "gmake"), in which
2051 # case it prints its new name instead of `make'.
2052 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2057 # Now try BSD make style include.
2058 if test "$am__include" = "#"; then
2059 echo '.include "confinc"' > confmf
2060 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2061 am__include=.include
2068 echo "$as_me:$LINENO: result: $_am_result" >&5
2069 echo "${ECHO_T}$_am_result" >&6
2070 rm -f confinc confmf
2072 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2073 if test "${enable_dependency_tracking+set}" = set; then
2074 enableval="$enable_dependency_tracking"
2077 if test "x$enable_dependency_tracking" != xno; then
2078 am_depcomp="$ac_aux_dir/depcomp"
2083 if test "x$enable_dependency_tracking" != xno; then
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 if test -n "$ac_tool_prefix"; then
2099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 if test -n "$CC"; then
2107 ac_cv_prog_CC="$CC" # Let the user override the test.
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 if test -n "$CC"; then
2127 echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2135 if test -z "$ac_cv_prog_CC"; then
2137 # Extract the first word of "gcc", so it can be a program name with args.
2138 set dummy gcc; ac_word=$2
2139 echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 if test -n "$ac_ct_CC"; then
2145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154 ac_cv_prog_ac_ct_CC="gcc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 echo "${ECHO_T}$ac_ct_CC" >&6
2168 echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2177 if test -z "$CC"; then
2178 if test -n "$ac_tool_prefix"; then
2179 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2180 set dummy ${ac_tool_prefix}cc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 ac_cv_prog_CC="${ac_tool_prefix}cc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 if test -n "$CC"; then
2207 echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2215 if test -z "$ac_cv_prog_CC"; then
2217 # Extract the first word of "cc", so it can be a program name with args.
2218 set dummy cc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 if test -n "$ac_ct_CC"; then
2225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_ac_ct_CC="cc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6
2248 echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2258 if test -z "$CC"; then
2259 # Extract the first word of "cc", so it can be a program name with args.
2260 set dummy cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2278 ac_prog_rejected=yes
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 if test $ac_prog_rejected = yes; then
2289 # We found a bogon in the path, so make sure we never use it.
2290 set dummy $ac_cv_prog_CC
2292 if test $# != 0; then
2293 # We chose a different compiler from the bogus one.
2294 # However, it has the same basename, so the bogon will be chosen
2295 # first if we set CC to just the basename; use the full file name.
2297 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2303 if test -n "$CC"; then
2304 echo "$as_me:$LINENO: result: $CC" >&5
2305 echo "${ECHO_T}$CC" >&6
2307 echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6
2312 if test -z "$CC"; then
2313 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 if test -n "$CC"; then
2344 echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6
2347 echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2351 test -n "$CC" && break
2354 if test -z "$CC"; then
2358 # Extract the first word of "$ac_prog", so it can be a program name with args.
2359 set dummy $ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$ac_ct_CC"; then
2366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 ac_cv_prog_ac_ct_CC="$ac_prog"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385 if test -n "$ac_ct_CC"; then
2386 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2387 echo "${ECHO_T}$ac_ct_CC" >&6
2389 echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2393 test -n "$ac_ct_CC" && break
2402 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: no acceptable C compiler found in \$PATH
2405 See \`config.log' for more details." >&2;}
2406 { (exit 1); exit 1; }; }
2408 # Provide some information about the compiler.
2409 echo "$as_me:$LINENO:" \
2410 "checking for C compiler version" >&5
2411 ac_compiler=`set X $ac_compile; echo $2`
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2413 (eval $ac_compiler --version </dev/null >&5) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2418 (eval $ac_compiler -v </dev/null >&5) 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2422 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2423 (eval $ac_compiler -V </dev/null >&5) 2>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }
2428 cat >conftest.$ac_ext <<_ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2443 ac_clean_files_save=$ac_clean_files
2444 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2445 # Try to create an executable without -o first, disregard a.out.
2446 # It will help us diagnose broken compilers, and finding out an intuition
2448 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2449 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2450 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2452 (eval $ac_link_default) 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 # Find the output, starting from the most likely. This scheme is
2457 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2460 # Be careful to initialize this variable, since it used to be cached.
2461 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2463 # b.out is created by i960 compilers.
2464 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2466 test -f "$ac_file" || continue
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2471 # This is the source file.
2474 # We found the default executable, but exeext='' is most
2478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 # FIXME: I believe we export ac_cv_exeext for Libtool,
2480 # but it would be cool to find out if it's true. Does anybody
2481 # maintain Libtool? --akim.
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: C compiler cannot create executables
2495 See \`config.log' for more details." >&2;}
2496 { (exit 77); exit 77; }; }
2499 ac_exeext=$ac_cv_exeext
2500 echo "$as_me:$LINENO: result: $ac_file" >&5
2501 echo "${ECHO_T}$ac_file" >&6
2503 # Check the compiler produces executables we can run. If not, either
2504 # the compiler is broken, or we cross compile.
2505 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2508 # If not cross compiling, check that we can run a simple program.
2509 if test "$cross_compiling" != yes; then
2510 if { ac_try='./$ac_file'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2518 if test "$cross_compiling" = maybe; then
2521 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run. If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; then
2550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2554 for ac_file in conftest.exe conftest conftest.*; do
2555 test -f "$ac_file" || continue
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2565 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }
2572 rm -f conftest$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2574 echo "${ECHO_T}$ac_cv_exeext" >&6
2576 rm -f conftest.$ac_ext
2577 EXEEXT=$ac_cv_exeext
2579 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2580 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2581 if test "${ac_cv_objext+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2599 rm -f conftest.o conftest.obj
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; then
2605 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2608 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2616 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2623 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2625 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2626 echo "${ECHO_T}$ac_cv_objext" >&6
2627 OBJEXT=$ac_cv_objext
2629 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2630 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2631 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2656 grep -v '^ *+' conftest.er1 >conftest.err
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2685 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2686 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2687 GCC=`test $ac_compiler_gnu = yes && echo yes`
2688 ac_test_CFLAGS=${CFLAGS+set}
2689 ac_save_CFLAGS=$CFLAGS
2691 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2692 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2693 if test "${ac_cv_prog_cc_g+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2743 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2744 if test "$ac_test_CFLAGS" = set; then
2745 CFLAGS=$ac_save_CFLAGS
2746 elif test $ac_cv_prog_cc_g = yes; then
2747 if test "$GCC" = yes; then
2753 if test "$GCC" = yes; then
2759 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2760 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 ac_cv_prog_cc_stdc=no
2766 cat >conftest.$ac_ext <<_ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2774 #include <sys/types.h>
2775 #include <sys/stat.h>
2776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2777 struct buf { int x; };
2778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2779 static char *e (p, i)
2785 static char *f (char * (*g) (char **, int), char **p, ...)
2790 s = g (p, va_arg (v,int));
2795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2796 function prototypes and stuff, but not '\xHH' hex character constants.
2797 These don't provoke an error unfortunately, instead are silently treated
2798 as 'x'. The following induces an error, until -std1 is added to get
2799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2800 array size at least. It's necessary to write '\x00'==0 to get something
2801 that's true only with -std1. */
2802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2804 int test (int i, double x);
2805 struct s1 {int (*f) (int a);};
2806 struct s2 {int (*f) (double a);};
2807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2813 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2818 # Don't try gcc -ansi; that turns off useful extensions and
2819 # breaks some systems' header files.
2820 # AIX -qlanglvl=ansi
2821 # Ultrix and OSF/1 -std1
2822 # HP-UX 10.20 and later -Ae
2823 # HP-UX older versions -Aa -D_HPUX_SOURCE
2824 # SVR4 -Xc -D__EXTENSIONS__
2825 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2827 CC="$ac_save_CC $ac_arg"
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2832 grep -v '^ *+' conftest.er1 >conftest.err
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 ac_cv_prog_cc_stdc=$ac_arg
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2857 rm -f conftest.err conftest.$ac_objext
2859 rm -f conftest.$ac_ext conftest.$ac_objext
2864 case "x$ac_cv_prog_cc_stdc" in
2866 echo "$as_me:$LINENO: result: none needed" >&5
2867 echo "${ECHO_T}none needed" >&6 ;;
2869 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2870 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2871 CC="$CC $ac_cv_prog_cc_stdc" ;;
2874 # Some people use a C++ compiler to compile C. Since we use `exit',
2875 # in C++ we need to declare it. In case someone uses the same compiler
2876 # for both compiling C and C++ we need to have the C++ compiler decide
2877 # the declaration of exit, since it's the most demanding environment.
2878 cat >conftest.$ac_ext <<_ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>conftest.er1
2887 grep -v '^ *+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -z "$ac_c_werror_flag"
2893 || test ! -s conftest.err'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; } &&
2899 { ac_try='test -s conftest.$ac_objext'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2905 for ac_declaration in \
2907 'extern "C" void std::exit (int) throw (); using std::exit;' \
2908 'extern "C" void std::exit (int); using std::exit;' \
2909 'extern "C" void exit (int) throw ();' \
2910 'extern "C" void exit (int);' \
2913 cat >conftest.$ac_ext <<_ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* 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
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2974 rm -f conftest.$ac_objext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976 (eval $ac_compile) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag"
2984 || test ! -s conftest.err'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3005 if test -n "$ac_declaration"; then
3006 echo '#ifdef __cplusplus' >>confdefs.h
3007 echo $ac_declaration >>confdefs.h
3008 echo '#endif' >>confdefs.h
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 depcc="$CC" am_compiler_list=
3025 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3026 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3027 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3031 # We make a subdir and do the tests there. Otherwise we can end up
3032 # making bogus files that we don't know about and never remove. For
3033 # instance it was reported that on HP-UX the gcc test will end up
3034 # making a dummy file named `D' -- because `-MD' means `put the output
3037 # Copy depcomp to subdir because otherwise we won't find it if we're
3038 # using a relative directory.
3039 cp "$am_depcomp" conftest.dir
3041 # We will build objects and dependencies in a subdirectory because
3042 # it helps to detect inapplicable dependency modes. For instance
3043 # both Tru64's cc and ICC support -MD to output dependencies as a
3044 # side effect of compilation, but ICC will put the dependencies in
3045 # the current directory while Tru64 will put them in the object
3049 am_cv_CC_dependencies_compiler_type=none
3050 if test "$am_compiler_list" = ""; then
3051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3053 for depmode in $am_compiler_list; do
3054 # Setup a source with many dependencies, because some compilers
3055 # like to wrap large dependency lists on column 80 (with \), and
3056 # we should not choose a depcomp mode which is confused by this.
3058 # We need to recreate these files for each test, as the compiler may
3059 # overwrite some of them when testing with obscure command lines.
3060 # This happens at least with the AIX C compiler.
3062 for i in 1 2 3 4 5 6; do
3063 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3064 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3065 # Solaris 8's {/usr,}/bin/sh.
3066 touch sub/conftst$i.h
3068 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3072 # after this tag, mechanisms are not by side-effect, so they'll
3073 # only be used when explicitly requested
3074 if test "x$enable_dependency_tracking" = xyes; then
3082 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3083 # mode. It turns out that the SunPro C++ compiler does not properly
3084 # handle `-M -o', and we need to detect this.
3085 if depmode=$depmode \
3086 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3088 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3089 >/dev/null 2>conftest.err &&
3090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3091 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3093 # icc doesn't choke on unknown options, it will just issue warnings
3094 # or remarks (even with -Werror). So we grep stderr for any message
3095 # that says an option was ignored or not supported.
3096 # When given -MP, icc 7.0 and 7.1 complain thusly:
3097 # icc: Command line warning: ignoring option '-M'; no argument required
3098 # The diagnosis changed in icc 8.0:
3099 # icc: Command line remark: option '-MP' not supported
3100 if (grep 'ignoring option' conftest.err ||
3101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3102 am_cv_CC_dependencies_compiler_type=$depmode
3111 am_cv_CC_dependencies_compiler_type=none
3115 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3116 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3117 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3122 test "x$enable_dependency_tracking" != xno \
3123 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3125 am__fastdepCC_FALSE='#'
3127 am__fastdepCC_TRUE='#'
3128 am__fastdepCC_FALSE=
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3140 # On Suns, sometimes $CPP names a directory.
3141 if test -n "$CPP" && test -d "$CPP"; then
3144 if test -z "$CPP"; then
3145 if test "${ac_cv_prog_CPP+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 # Double quotes because CPP needs to be expanded
3149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3152 for ac_c_preproc_warn_flag in '' yes
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3167 # include <limits.h>
3169 # include <assert.h>
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3190 if test -z "$ac_cpp_err"; then
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 # Broken: fails on valid input.
3199 rm -f conftest.err conftest.$ac_ext
3201 # OK, works on sane cases. Now check whether non-existent headers
3202 # can be detected and how.
3203 cat >conftest.$ac_ext <<_ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 #include <ac_nonexistent.h>
3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3214 grep -v '^ *+' conftest.er1 >conftest.err
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } >/dev/null; then
3219 if test -s conftest.err; then
3220 ac_cpp_err=$ac_c_preproc_warn_flag
3221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3228 if test -z "$ac_cpp_err"; then
3229 # Broken: success on invalid input.
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3235 # Passes both tests.
3239 rm -f conftest.err conftest.$ac_ext
3242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243 rm -f conftest.err conftest.$ac_ext
3244 if $ac_preproc_ok; then
3256 echo "$as_me:$LINENO: result: $CPP" >&5
3257 echo "${ECHO_T}$CPP" >&6
3259 for ac_c_preproc_warn_flag in '' yes
3261 # Use a header file that comes with gcc, so configuring glibc
3262 # with a fresh cross-compiler works.
3263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264 # <limits.h> exists even on freestanding compilers.
3265 # On the NeXT, cc -E runs the code through the compiler's parser,
3266 # not just through cpp. "Syntax error" is here to catch this case.
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3274 # include <limits.h>
3276 # include <assert.h>
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } >/dev/null; then
3288 if test -s conftest.err; then
3289 ac_cpp_err=$ac_c_preproc_warn_flag
3290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297 if test -z "$ac_cpp_err"; then
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Broken: fails on valid input.
3306 rm -f conftest.err conftest.$ac_ext
3308 # OK, works on sane cases. Now check whether non-existent headers
3309 # can be detected and how.
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <ac_nonexistent.h>
3318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335 if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Passes both tests.
3346 rm -f conftest.err conftest.$ac_ext
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then
3354 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3355 See \`config.log' for more details." >&5
3356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3357 See \`config.log' for more details." >&2;}
3358 { (exit 1); exit 1; }; }
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 echo "$as_me:$LINENO: checking for egrep" >&5
3369 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3370 if test "${ac_cv_prog_egrep+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3374 then ac_cv_prog_egrep='grep -E'
3375 else ac_cv_prog_egrep='egrep'
3378 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3379 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3380 EGREP=$ac_cv_prog_egrep
3384 echo "$as_me:$LINENO: checking for AIX" >&5
3385 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "yes" >/dev/null 2>&1; then
3399 echo "$as_me:$LINENO: result: yes" >&5
3400 echo "${ECHO_T}yes" >&6
3401 cat >>confdefs.h <<\_ACEOF
3402 #define _ALL_SOURCE 1
3406 echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3412 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3413 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3414 if test "${ac_cv_header_stdc+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -z "$ac_c_werror_flag"
3446 || test ! -s conftest.err'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 ac_cv_header_stdc=yes
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 ac_cv_header_stdc=no
3465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467 if test $ac_cv_header_stdc = yes; then
3468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 $EGREP "memchr" >/dev/null 2>&1; then
3482 ac_cv_header_stdc=no
3488 if test $ac_cv_header_stdc = yes; then
3489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3500 $EGREP "free" >/dev/null 2>&1; then
3503 ac_cv_header_stdc=no
3509 if test $ac_cv_header_stdc = yes; then
3510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3511 if test "$cross_compiling" = yes; then
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3521 #if ((' ' & 0x0FF) == 0x020)
3522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3525 # define ISLOWER(c) \
3526 (('a' <= (c) && (c) <= 'i') \
3527 || ('j' <= (c) && (c) <= 'r') \
3528 || ('s' <= (c) && (c) <= 'z'))
3529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3537 for (i = 0; i < 256; i++)
3538 if (XOR (islower (i), ISLOWER (i))
3539 || toupper (i) != TOUPPER (i))
3544 rm -f conftest$ac_exeext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3546 (eval $ac_link) 2>&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3557 echo "$as_me: program exited with status $ac_status" >&5
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_cv_header_stdc=no
3564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3568 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3569 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3570 if test $ac_cv_header_stdc = yes; then
3572 cat >>confdefs.h <<\_ACEOF
3573 #define STDC_HEADERS 1
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589 inttypes.h stdint.h unistd.h
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_includes_default
3605 #include <$ac_header>
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 eval "$as_ac_Header=yes"
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 eval "$as_ac_Header=no"
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3641 cat >>confdefs.h <<_ACEOF
3642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3650 if test "${ac_cv_header_minix_config_h+set}" = set; then
3651 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3652 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3653 if test "${ac_cv_header_minix_config_h+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3657 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3659 # Is the header compilable?
3660 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3661 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 $ac_includes_default
3669 #include <minix/config.h>
3671 rm -f conftest.$ac_objext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_c_werror_flag"
3681 || test ! -s conftest.err'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; } &&
3687 { ac_try='test -s conftest.$ac_objext'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_header_compiler=yes
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 ac_header_compiler=no
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3702 echo "${ECHO_T}$ac_header_compiler" >&6
3704 # Is the header present?
3705 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3706 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3707 cat >conftest.$ac_ext <<_ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3713 #include <minix/config.h>
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null; then
3723 if test -s conftest.err; then
3724 ac_cpp_err=$ac_c_preproc_warn_flag
3725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732 if test -z "$ac_cpp_err"; then
3733 ac_header_preproc=yes
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 ac_header_preproc=no
3740 rm -f conftest.err conftest.$ac_ext
3741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3742 echo "${ECHO_T}$ac_header_preproc" >&6
3744 # So? What about this header?
3745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3747 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3748 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3749 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3750 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3751 ac_header_preproc=yes
3754 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3755 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3756 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3757 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3759 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3760 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3761 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3762 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3763 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3764 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3765 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3768 ## ------------------------------ ##
3769 ## Report this to bug-cvs@gnu.org ##
3770 ## ------------------------------ ##
3773 sed "s/^/$as_me: WARNING: /" >&2
3776 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3777 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3778 if test "${ac_cv_header_minix_config_h+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 ac_cv_header_minix_config_h=$ac_header_preproc
3783 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3784 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3787 if test $ac_cv_header_minix_config_h = yes; then
3794 if test "$MINIX" = yes; then
3796 cat >>confdefs.h <<\_ACEOF
3797 #define _POSIX_SOURCE 1
3801 cat >>confdefs.h <<\_ACEOF
3802 #define _POSIX_1_SOURCE 2
3806 cat >>confdefs.h <<\_ACEOF
3814 cat >>confdefs.h <<\_ACEOF
3815 #define _GNU_SOURCE 1
3829 cat >>confdefs.h <<\_ACEOF
3830 #define __EXTENSIONS__ 1
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_CC+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -n "$CC"; then
3850 ac_cv_prog_CC="$CC" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 if test -n "$CC"; then
3870 echo "$as_me:$LINENO: result: $CC" >&5
3871 echo "${ECHO_T}$CC" >&6
3873 echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3878 if test -z "$ac_cv_prog_CC"; then
3880 # Extract the first word of "gcc", so it can be a program name with args.
3881 set dummy gcc; ac_word=$2
3882 echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 if test -n "$ac_ct_CC"; then
3888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_CC="gcc"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3907 if test -n "$ac_ct_CC"; then
3908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3909 echo "${ECHO_T}$ac_ct_CC" >&6
3911 echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3920 if test -z "$CC"; then
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}cc; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_CC+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_CC="${ac_tool_prefix}cc"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 if test -n "$CC"; then
3950 echo "$as_me:$LINENO: result: $CC" >&5
3951 echo "${ECHO_T}$CC" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_CC"; then
3960 # Extract the first word of "cc", so it can be a program name with args.
3961 set dummy cc; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if test -n "$ac_ct_CC"; then
3968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CC="cc"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3987 if test -n "$ac_ct_CC"; then
3988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3989 echo "${ECHO_T}$ac_ct_CC" >&6
3991 echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6
4001 if test -z "$CC"; then
4002 # Extract the first word of "cc", so it can be a program name with args.
4003 set dummy cc; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_CC+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4021 ac_prog_rejected=yes
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 if test $ac_prog_rejected = yes; then
4032 # We found a bogon in the path, so make sure we never use it.
4033 set dummy $ac_cv_prog_CC
4035 if test $# != 0; then
4036 # We chose a different compiler from the bogus one.
4037 # However, it has the same basename, so the bogon will be chosen
4038 # first if we set CC to just the basename; use the full file name.
4040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4046 if test -n "$CC"; then
4047 echo "$as_me:$LINENO: result: $CC" >&5
4048 echo "${ECHO_T}$CC" >&6
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4055 if test -z "$CC"; then
4056 if test -n "$ac_tool_prefix"; then
4059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_prog_CC+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 if test -n "$CC"; then
4087 echo "$as_me:$LINENO: result: $CC" >&5
4088 echo "${ECHO_T}$CC" >&6
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4094 test -n "$CC" && break
4097 if test -z "$CC"; then
4101 # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 if test -n "$ac_ct_CC"; then
4109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_ac_ct_CC="$ac_prog"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4128 if test -n "$ac_ct_CC"; then
4129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4130 echo "${ECHO_T}$ac_ct_CC" >&6
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4136 test -n "$ac_ct_CC" && break
4145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4146 See \`config.log' for more details." >&5
4147 echo "$as_me: error: no acceptable C compiler found in \$PATH
4148 See \`config.log' for more details." >&2;}
4149 { (exit 1); exit 1; }; }
4151 # Provide some information about the compiler.
4152 echo "$as_me:$LINENO:" \
4153 "checking for C compiler version" >&5
4154 ac_compiler=`set X $ac_compile; echo $2`
4155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4156 (eval $ac_compiler --version </dev/null >&5) 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }
4160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4161 (eval $ac_compiler -v </dev/null >&5) 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }
4165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4166 (eval $ac_compiler -V </dev/null >&5) 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }
4171 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4172 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4173 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4194 rm -f conftest.$ac_objext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>conftest.er1
4198 grep -v '^ *+' conftest.er1 >conftest.err
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag"
4204 || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4227 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4228 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4229 GCC=`test $ac_compiler_gnu = yes && echo yes`
4230 ac_test_CFLAGS=${CFLAGS+set}
4231 ac_save_CFLAGS=$CFLAGS
4233 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4234 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4235 if test "${ac_cv_prog_cc_g+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 cat >conftest.$ac_ext <<_ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4253 rm -f conftest.$ac_objext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4286 if test "$ac_test_CFLAGS" = set; then
4287 CFLAGS=$ac_save_CFLAGS
4288 elif test $ac_cv_prog_cc_g = yes; then
4289 if test "$GCC" = yes; then
4295 if test "$GCC" = yes; then
4301 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4302 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4303 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 ac_cv_prog_cc_stdc=no
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4316 #include <sys/types.h>
4317 #include <sys/stat.h>
4318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4319 struct buf { int x; };
4320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4321 static char *e (p, i)
4327 static char *f (char * (*g) (char **, int), char **p, ...)
4332 s = g (p, va_arg (v,int));
4337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4338 function prototypes and stuff, but not '\xHH' hex character constants.
4339 These don't provoke an error unfortunately, instead are silently treated
4340 as 'x'. The following induces an error, until -std1 is added to get
4341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4342 array size at least. It's necessary to write '\x00'==0 to get something
4343 that's true only with -std1. */
4344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4346 int test (int i, double x);
4347 struct s1 {int (*f) (int a);};
4348 struct s2 {int (*f) (double a);};
4349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4360 # Don't try gcc -ansi; that turns off useful extensions and
4361 # breaks some systems' header files.
4362 # AIX -qlanglvl=ansi
4363 # Ultrix and OSF/1 -std1
4364 # HP-UX 10.20 and later -Ae
4365 # HP-UX older versions -Aa -D_HPUX_SOURCE
4366 # SVR4 -Xc -D__EXTENSIONS__
4367 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4369 CC="$ac_save_CC $ac_arg"
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_prog_cc_stdc=$ac_arg
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4399 rm -f conftest.err conftest.$ac_objext
4401 rm -f conftest.$ac_ext conftest.$ac_objext
4406 case "x$ac_cv_prog_cc_stdc" in
4408 echo "$as_me:$LINENO: result: none needed" >&5
4409 echo "${ECHO_T}none needed" >&6 ;;
4411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4413 CC="$CC $ac_cv_prog_cc_stdc" ;;
4416 # Some people use a C++ compiler to compile C. Since we use `exit',
4417 # in C++ we need to declare it. In case someone uses the same compiler
4418 # for both compiling C and C++ we need to have the C++ compiler decide
4419 # the declaration of exit, since it's the most demanding environment.
4420 cat >conftest.$ac_ext <<_ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4429 grep -v '^ *+' conftest.er1 >conftest.err
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 for ac_declaration in \
4449 'extern "C" void std::exit (int) throw (); using std::exit;' \
4450 'extern "C" void std::exit (int); using std::exit;' \
4451 'extern "C" void exit (int) throw ();' \
4452 'extern "C" void exit (int);' \
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4471 rm -f conftest.$ac_objext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4473 (eval $ac_compile) 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -z "$ac_c_werror_flag"
4481 || test ! -s conftest.err'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4520 grep -v '^ *+' conftest.er1 >conftest.err
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547 if test -n "$ac_declaration"; then
4548 echo '#ifdef __cplusplus' >>confdefs.h
4549 echo $ac_declaration >>confdefs.h
4550 echo '#endif' >>confdefs.h
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565 depcc="$CC" am_compiler_list=
4567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4569 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4573 # We make a subdir and do the tests there. Otherwise we can end up
4574 # making bogus files that we don't know about and never remove. For
4575 # instance it was reported that on HP-UX the gcc test will end up
4576 # making a dummy file named `D' -- because `-MD' means `put the output
4579 # Copy depcomp to subdir because otherwise we won't find it if we're
4580 # using a relative directory.
4581 cp "$am_depcomp" conftest.dir
4583 # We will build objects and dependencies in a subdirectory because
4584 # it helps to detect inapplicable dependency modes. For instance
4585 # both Tru64's cc and ICC support -MD to output dependencies as a
4586 # side effect of compilation, but ICC will put the dependencies in
4587 # the current directory while Tru64 will put them in the object
4591 am_cv_CC_dependencies_compiler_type=none
4592 if test "$am_compiler_list" = ""; then
4593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4595 for depmode in $am_compiler_list; do
4596 # Setup a source with many dependencies, because some compilers
4597 # like to wrap large dependency lists on column 80 (with \), and
4598 # we should not choose a depcomp mode which is confused by this.
4600 # We need to recreate these files for each test, as the compiler may
4601 # overwrite some of them when testing with obscure command lines.
4602 # This happens at least with the AIX C compiler.
4604 for i in 1 2 3 4 5 6; do
4605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4607 # Solaris 8's {/usr,}/bin/sh.
4608 touch sub/conftst$i.h
4610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4614 # after this tag, mechanisms are not by side-effect, so they'll
4615 # only be used when explicitly requested
4616 if test "x$enable_dependency_tracking" = xyes; then
4624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4625 # mode. It turns out that the SunPro C++ compiler does not properly
4626 # handle `-M -o', and we need to detect this.
4627 if depmode=$depmode \
4628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4631 >/dev/null 2>conftest.err &&
4632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4635 # icc doesn't choke on unknown options, it will just issue warnings
4636 # or remarks (even with -Werror). So we grep stderr for any message
4637 # that says an option was ignored or not supported.
4638 # When given -MP, icc 7.0 and 7.1 complain thusly:
4639 # icc: Command line warning: ignoring option '-M'; no argument required
4640 # The diagnosis changed in icc 8.0:
4641 # icc: Command line remark: option '-MP' not supported
4642 if (grep 'ignoring option' conftest.err ||
4643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4644 am_cv_CC_dependencies_compiler_type=$depmode
4653 am_cv_CC_dependencies_compiler_type=none
4657 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4658 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4659 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4664 test "x$enable_dependency_tracking" != xno \
4665 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4667 am__fastdepCC_FALSE='#'
4669 am__fastdepCC_TRUE='#'
4670 am__fastdepCC_FALSE=
4674 if test "x$CC" != xcc; then
4675 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4676 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4678 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4679 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4681 set dummy $CC; ac_cc=`echo $2 |
4682 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4683 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4701 # Make sure it works both with $CC and with simple cc.
4702 # We do the test twice because some compilers refuse to overwrite an
4703 # existing .o file with -o, though they will create one.
4704 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4705 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); };
4716 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4717 if test "x$CC" != xcc; then
4718 # Test first that cc exists at all.
4719 if { ac_try='cc -c conftest.$ac_ext >&5'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4726 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); };
4740 # cc exists but doesn't like -o.
4741 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4746 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4751 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4752 echo "$as_me:$LINENO: result: yes" >&5
4753 echo "${ECHO_T}yes" >&6
4755 echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6
4758 cat >>confdefs.h <<\_ACEOF
4759 #define NO_MINUS_C_MINUS_O 1
4764 # FIXME: we rely on the cache variable name because
4765 # there is no other way.
4767 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4768 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4769 # Losing compiler, so override with the script.
4770 # FIXME: It is wrong to rewrite CC.
4771 # But if we don't then we get into trouble of one sort or another.
4772 # A longer-term fix would be to have automake use am__CC in this case,
4773 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4774 CC="$am_aux_dir/compile $CC"
4778 # Find the posix library needed on INTERACTIVE UNIX (ISC)
4779 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4780 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4781 if test "${ac_cv_search_strerror+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_func_search_save_LIBS=$LIBS
4785 ac_cv_search_strerror=no
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4793 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4808 rm -f conftest.$ac_objext conftest$ac_exeext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4810 (eval $ac_link) 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest$ac_exeext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 ac_cv_search_strerror="none required"
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4836 rm -f conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838 if test "$ac_cv_search_strerror" = no; then
4839 for ac_lib in cposix; do
4840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4848 /* Override any gcc2 internal prototype to avoid an error. */
4852 /* We use char because int might match the return type of a gcc2
4853 builtin and then its argument prototype would still apply. */
4863 rm -f conftest.$ac_objext conftest$ac_exeext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4865 (eval $ac_link) 2>conftest.er1
4867 grep -v '^ *+' conftest.er1 >conftest.err
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } &&
4872 { ac_try='test -z "$ac_c_werror_flag"
4873 || test ! -s conftest.err'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; } &&
4879 { ac_try='test -s conftest$ac_exeext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_search_strerror="-l$ac_lib"
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f conftest.err conftest.$ac_objext \
4893 conftest$ac_exeext conftest.$ac_ext
4896 LIBS=$ac_func_search_save_LIBS
4898 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4899 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4900 if test "$ac_cv_search_strerror" != no; then
4901 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4910 echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4912 if test "${ac_cv_prog_RANLIB+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 if test -n "$RANLIB"; then
4916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 RANLIB=$ac_cv_prog_RANLIB
4935 if test -n "$RANLIB"; then
4936 echo "$as_me:$LINENO: result: $RANLIB" >&5
4937 echo "${ECHO_T}$RANLIB" >&6
4939 echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6
4944 if test -z "$ac_cv_prog_RANLIB"; then
4945 ac_ct_RANLIB=$RANLIB
4946 # Extract the first word of "ranlib", so it can be a program name with args.
4947 set dummy ranlib; ac_word=$2
4948 echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 if test -n "$ac_ct_RANLIB"; then
4954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_ac_ct_RANLIB="ranlib"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4974 if test -n "$ac_ct_RANLIB"; then
4975 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4976 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4978 echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4982 RANLIB=$ac_ct_RANLIB
4984 RANLIB="$ac_cv_prog_RANLIB"
4987 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4988 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4990 if test "$LN_S" = "ln -s"; then
4991 echo "$as_me:$LINENO: result: yes" >&5
4992 echo "${ECHO_T}yes" >&6
4994 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4995 echo "${ECHO_T}no, using $LN_S" >&6
4998 # Check whether --enable-largefile or --disable-largefile was given.
4999 if test "${enable_largefile+set}" = set; then
5000 enableval="$enable_largefile"
5003 if test "$enable_largefile" != no; then
5005 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5006 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5007 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_cv_sys_largefile_CC=no
5011 if test "$GCC" != yes; then
5014 # IRIX 6.2 and later do not support large files by default,
5015 # so use the C compiler's -n32 option if that helps.
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 #include <sys/types.h>
5023 /* Check that off_t can represent 2**63 - 1 correctly.
5024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5025 since some C++ compilers masquerading as C compilers
5026 incorrectly reject 9223372036854775807. */
5027 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5029 && LARGE_OFF_T % 2147483647 == 1)
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>conftest.er1
5043 grep -v '^ *+' conftest.er1 >conftest.err
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5067 rm -f conftest.err conftest.$ac_objext
5069 rm -f conftest.$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>conftest.er1
5073 grep -v '^ *+' conftest.er1 >conftest.err
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -z "$ac_c_werror_flag"
5079 || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_cv_sys_largefile_CC=' -n32'; break
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5097 rm -f conftest.err conftest.$ac_objext
5101 rm -f conftest.$ac_ext
5104 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5105 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5106 if test "$ac_cv_sys_largefile_CC" != no; then
5107 CC=$CC$ac_cv_sys_largefile_CC
5110 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5111 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5112 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 ac_cv_sys_file_offset_bits=no
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <sys/types.h>
5124 /* Check that off_t can represent 2**63 - 1 correctly.
5125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126 since some C++ compilers masquerading as C compilers
5127 incorrectly reject 9223372036854775807. */
5128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130 && LARGE_OFF_T % 2147483647 == 1)
5140 rm -f conftest.$ac_objext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142 (eval $ac_compile) 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try='test -z "$ac_c_werror_flag"
5150 || test ! -s conftest.err'
5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; } &&
5156 { ac_try='test -s conftest.$ac_objext'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 #define _FILE_OFFSET_BITS 64
5176 #include <sys/types.h>
5177 /* Check that off_t can represent 2**63 - 1 correctly.
5178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5179 since some C++ compilers masquerading as C compilers
5180 incorrectly reject 9223372036854775807. */
5181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5183 && LARGE_OFF_T % 2147483647 == 1)
5193 rm -f conftest.$ac_objext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5195 (eval $ac_compile) 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_sys_file_offset_bits=64; break
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5225 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5226 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5227 if test "$ac_cv_sys_file_offset_bits" != no; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5235 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5236 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5237 if test "${ac_cv_sys_large_files+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 ac_cv_sys_large_files=no
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <sys/types.h>
5249 /* Check that off_t can represent 2**63 - 1 correctly.
5250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5251 since some C++ compilers masquerading as C compilers
5252 incorrectly reject 9223372036854775807. */
5253 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5255 && LARGE_OFF_T % 2147483647 == 1)
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5269 grep -v '^ *+' conftest.er1 >conftest.err
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -z "$ac_c_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294 cat >conftest.$ac_ext <<_ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #define _LARGE_FILES 1
5301 #include <sys/types.h>
5302 /* Check that off_t can represent 2**63 - 1 correctly.
5303 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5304 since some C++ compilers masquerading as C compilers
5305 incorrectly reject 9223372036854775807. */
5306 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5307 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5308 && LARGE_OFF_T % 2147483647 == 1)
5318 rm -f conftest.$ac_objext
5319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5320 (eval $ac_compile) 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_c_werror_flag"
5328 || test ! -s conftest.err'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 ac_cv_sys_large_files=1; break
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5350 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5351 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5352 if test "$ac_cv_sys_large_files" != no; then
5354 cat >>confdefs.h <<_ACEOF
5355 #define _LARGE_FILES $ac_cv_sys_large_files
5364 # Extract the first word of "perl", so it can be a program name with args.
5365 set dummy perl; ac_word=$2
5366 echo "$as_me:$LINENO: checking for $ac_word" >&5
5367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368 if test "${ac_cv_path_PERL+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5394 PERL=$ac_cv_path_PERL
5396 if test -n "$PERL"; then
5397 echo "$as_me:$LINENO: result: $PERL" >&5
5398 echo "${ECHO_T}$PERL" >&6
5400 echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6
5404 # Extract the first word of "csh", so it can be a program name with args.
5405 set dummy csh; ac_word=$2
5406 echo "$as_me:$LINENO: checking for $ac_word" >&5
5407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5408 if test "${ac_cv_path_CSH+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423 ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
5424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
5436 if test -n "$CSH"; then
5437 echo "$as_me:$LINENO: result: $CSH" >&5
5438 echo "${ECHO_T}$CSH" >&6
5440 echo "$as_me:$LINENO: result: no" >&5
5441 echo "${ECHO_T}no" >&6
5444 # for contrib/rcs2log.sh & src/cvsbug.in.
5445 # Extract the first word of "mktemp", so it can be a program name with args.
5446 set dummy mktemp; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_path_MKTEMP+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
5475 MKTEMP=$ac_cv_path_MKTEMP
5477 if test -n "$MKTEMP"; then
5478 echo "$as_me:$LINENO: result: $MKTEMP" >&5
5479 echo "${ECHO_T}$MKTEMP" >&6
5481 echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5485 if test x"$MKTEMP" = xmktemp; then
5486 MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
5488 MKTEMP_SH_FUNCTION=/dev/null
5492 # Extract the first word of "sendmail", so it can be a program name with args.
5493 set dummy sendmail; ac_word=$2
5494 echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5496 if test "${ac_cv_path_SENDMAIL+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 as_dummy="$PATH:/usr/sbin:/usr/lib"
5506 for as_dir in $as_dummy
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
5523 SENDMAIL=$ac_cv_path_SENDMAIL
5525 if test -n "$SENDMAIL"; then
5526 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
5527 echo "${ECHO_T}$SENDMAIL" >&6
5529 echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6
5534 # Extract the first word of "pr", so it can be a program name with args.
5535 set dummy pr; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_path_PR+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 ac_cv_path_PR="$PR" # Let the user override the test with a path.
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
5566 if test -n "$PR"; then
5567 echo "$as_me:$LINENO: result: $PR" >&5
5568 echo "${ECHO_T}$PR" >&6
5570 echo "$as_me:$LINENO: result: no" >&5
5571 echo "${ECHO_T}no" >&6
5574 if test x"$PR" != xno; then
5576 cat >>confdefs.h <<_ACEOF
5577 #define PR_PROGRAM "$PR"
5582 missing_dir=`cd $ac_aux_dir && pwd`
5583 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
5584 for ac_prog in groff roff
5586 # Extract the first word of "$ac_prog", so it can be a program name with args.
5587 set dummy $ac_prog; ac_word=$2
5588 echo "$as_me:$LINENO: checking for $ac_word" >&5
5589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5590 if test "${ac_cv_path_ROFF+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $glocs
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
5606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 ROFF=$ac_cv_path_ROFF
5617 if test -n "$ROFF"; then
5618 echo "$as_me:$LINENO: result: $ROFF" >&5
5619 echo "${ECHO_T}$ROFF" >&6
5621 echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5625 test -n "$ROFF" && break
5627 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
5629 # Extract the first word of "ps2pdf", so it can be a program name with args.
5630 set dummy ps2pdf; ac_word=$2
5631 echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633 if test "${ac_cv_path_PS2PDF+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
5649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
5659 PS2PDF=$ac_cv_path_PS2PDF
5661 if test -n "$PS2PDF"; then
5662 echo "$as_me:$LINENO: result: $PS2PDF" >&5
5663 echo "${ECHO_T}$PS2PDF" >&6
5665 echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5669 # Extract the first word of "texi2dvi", so it can be a program name with args.
5670 set dummy texi2dvi; ac_word=$2
5671 echo "$as_me:$LINENO: checking for $ac_word" >&5
5672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5673 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
5699 TEXI2DVI=$ac_cv_path_TEXI2DVI
5701 if test -n "$TEXI2DVI"; then
5702 echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
5703 echo "${ECHO_T}$TEXI2DVI" >&6
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5710 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
5711 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
5712 if test "${ac_cv_sys_interpreter+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
5720 if test $? -ne 69; then
5721 ac_cv_sys_interpreter=yes
5723 ac_cv_sys_interpreter=no
5727 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
5728 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
5729 interpval=$ac_cv_sys_interpreter
5731 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
5732 # silly trick to avoid problems in AC macros...
5733 ac_msg='perl scripts using #! may not be invoked properly'
5734 { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
5735 echo "$as_me: WARNING: $ac_msg" >&2;}
5738 # BSD's logo is a devil for a reason, hey?
5739 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
5740 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
5741 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 if test ! -d ac_test_dir ; then
5745 { ac_try='mkdir ac_test_dir'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }
5752 cat >conftestmake <<EOF
5754 ac_test_target: ac_test_dep
5755 echo BSD VPATH bug present >&2
5756 ac_test_dep: ac_test_dep_dep
5758 touch ac_test_dir/ac_test_dep_dep
5759 touch ac_test_dir/ac_test_dep
5760 touch ac_test_target
5761 # Don't know why, but the following test doesn't work under FreeBSD 4.2
5762 # without this sleep command
5764 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } ; then
5770 ccvs_cv_bsd_make_vpath_bug=yes
5772 ccvs_cv_bsd_make_vpath_bug=no
5774 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }
5781 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
5782 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
5783 # We also don't need to worry about the bug when $srcdir = $builddir
5787 test $ccvs_cv_bsd_make_vpath_bug = no \
5788 || test $srcdir = .; then
5789 MAKE_TARGETS_IN_VPATH_TRUE=
5790 MAKE_TARGETS_IN_VPATH_FALSE='#'
5792 MAKE_TARGETS_IN_VPATH_TRUE='#'
5793 MAKE_TARGETS_IN_VPATH_FALSE=
5803 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5804 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5805 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5806 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 eval "$as_ac_Header=yes"
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 eval "$as_ac_Header=no"
5857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5862 cat >>confdefs.h <<_ACEOF
5863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5866 ac_header_dirent=$ac_hdr; break
5870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5871 if test $ac_header_dirent = dirent.h; then
5872 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5874 if test "${ac_cv_search_opendir+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 ac_func_search_save_LIBS=$LIBS
5878 ac_cv_search_opendir=no
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5886 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5901 rm -f conftest.$ac_objext conftest$ac_exeext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5903 (eval $ac_link) 2>conftest.er1
5905 grep -v '^ *+' conftest.er1 >conftest.err
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } &&
5910 { ac_try='test -z "$ac_c_werror_flag"
5911 || test ! -s conftest.err'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest$ac_exeext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 ac_cv_search_opendir="none required"
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5929 rm -f conftest.err conftest.$ac_objext \
5930 conftest$ac_exeext conftest.$ac_ext
5931 if test "$ac_cv_search_opendir" = no; then
5932 for ac_lib in dir; do
5933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5941 /* Override any gcc2 internal prototype to avoid an error. */
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958 (eval $ac_link) 2>conftest.er1
5960 grep -v '^ *+' conftest.er1 >conftest.err
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -z "$ac_c_werror_flag"
5966 || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_cv_search_opendir="-l$ac_lib"
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5985 rm -f conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5989 LIBS=$ac_func_search_save_LIBS
5991 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5992 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5993 if test "$ac_cv_search_opendir" != no; then
5994 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5999 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6001 if test "${ac_cv_search_opendir+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 ac_func_search_save_LIBS=$LIBS
6005 ac_cv_search_opendir=no
6006 cat >conftest.$ac_ext <<_ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6013 /* Override any gcc2 internal prototype to avoid an error. */
6017 /* We use char because int might match the return type of a gcc2
6018 builtin and then its argument prototype would still apply. */
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>conftest.er1
6032 grep -v '^ *+' conftest.er1 >conftest.err
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="none required"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.err conftest.$ac_objext \
6057 conftest$ac_exeext conftest.$ac_ext
6058 if test "$ac_cv_search_opendir" = no; then
6060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6061 cat >conftest.$ac_ext <<_ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6072 /* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest$ac_exeext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_search_opendir="-l$ac_lib"
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6112 rm -f conftest.err conftest.$ac_objext \
6113 conftest$ac_exeext conftest.$ac_ext
6116 LIBS=$ac_func_search_save_LIBS
6118 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6119 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6120 if test "$ac_cv_search_opendir" != no; then
6121 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6127 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6128 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6129 if test "${ac_cv_header_stdc+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6151 rm -f conftest.$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag"
6161 || test ! -s conftest.err'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; } &&
6167 { ac_try='test -s conftest.$ac_objext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_header_stdc=yes
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_cv_header_stdc=no
6180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182 if test $ac_cv_header_stdc = yes; then
6183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194 $EGREP "memchr" >/dev/null 2>&1; then
6197 ac_cv_header_stdc=no
6203 if test $ac_cv_header_stdc = yes; then
6204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6215 $EGREP "free" >/dev/null 2>&1; then
6218 ac_cv_header_stdc=no
6224 if test $ac_cv_header_stdc = yes; then
6225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6226 if test "$cross_compiling" = yes; then
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 #if ((' ' & 0x0FF) == 0x020)
6237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6240 # define ISLOWER(c) \
6241 (('a' <= (c) && (c) <= 'i') \
6242 || ('j' <= (c) && (c) <= 'r') \
6243 || ('s' <= (c) && (c) <= 'z'))
6244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6252 for (i = 0; i < 256; i++)
6253 if (XOR (islower (i), ISLOWER (i))
6254 || toupper (i) != TOUPPER (i))
6259 rm -f conftest$ac_exeext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261 (eval $ac_link) 2>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6272 echo "$as_me: program exited with status $ac_status" >&5
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6277 ac_cv_header_stdc=no
6279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6283 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6284 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6285 if test $ac_cv_header_stdc = yes; then
6287 cat >>confdefs.h <<\_ACEOF
6288 #define STDC_HEADERS 1
6293 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6294 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6295 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 cat >conftest.$ac_ext <<_ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <sys/types.h>
6305 #include <sys/wait.h>
6307 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6310 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6318 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6323 rm -f conftest.$ac_objext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6325 (eval $ac_compile) 2>conftest.er1
6327 grep -v '^ *+' conftest.er1 >conftest.err
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -z "$ac_c_werror_flag"
6333 || test ! -s conftest.err'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest.$ac_objext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 ac_cv_header_sys_wait_h=yes
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6350 ac_cv_header_sys_wait_h=no
6352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6354 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6355 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6356 if test $ac_cv_header_sys_wait_h = yes; then
6358 cat >>confdefs.h <<\_ACEOF
6359 #define HAVE_SYS_WAIT_H 1
6395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397 echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6405 # Is the header compilable?
6406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 $ac_includes_default
6415 #include <$ac_header>
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6421 grep -v '^ *+' conftest.er1 >conftest.err
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_header_compiler=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_header_compiler=no
6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6448 echo "${ECHO_T}$ac_header_compiler" >&6
6450 # Is the header present?
6451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6453 cat >conftest.$ac_ext <<_ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 #include <$ac_header>
6461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } >/dev/null; then
6469 if test -s conftest.err; then
6470 ac_cpp_err=$ac_c_preproc_warn_flag
6471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6478 if test -z "$ac_cpp_err"; then
6479 ac_header_preproc=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_header_preproc=no
6486 rm -f conftest.err conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6
6490 # So? What about this header?
6491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6497 ac_header_preproc=yes
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6514 ## ------------------------------ ##
6515 ## Report this to bug-cvs@gnu.org ##
6516 ## ------------------------------ ##
6519 sed "s/^/$as_me: WARNING: /" >&2
6522 echo "$as_me:$LINENO: checking for $ac_header" >&5
6523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 eval "$as_ac_Header=\$ac_header_preproc"
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6534 cat >>confdefs.h <<_ACEOF
6535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6542 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6543 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6544 if test "${ac_cv_header_stat_broken+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 cat >conftest.$ac_ext <<_ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 #include <sys/types.h>
6554 #include <sys/stat.h>
6556 #if defined(S_ISBLK) && defined(S_IFDIR)
6557 # if S_ISBLK (S_IFDIR)
6562 #if defined(S_ISBLK) && defined(S_IFCHR)
6563 # if S_ISBLK (S_IFCHR)
6568 #if defined(S_ISLNK) && defined(S_IFREG)
6569 # if S_ISLNK (S_IFREG)
6574 #if defined(S_ISSOCK) && defined(S_IFREG)
6575 # if S_ISSOCK (S_IFREG)
6581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6582 $EGREP "You lose" >/dev/null 2>&1; then
6583 ac_cv_header_stat_broken=yes
6585 ac_cv_header_stat_broken=no
6590 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6591 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6592 if test $ac_cv_header_stat_broken = yes; then
6594 cat >>confdefs.h <<\_ACEOF
6595 #define STAT_MACROS_BROKEN 1
6601 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6602 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6603 if test "${ac_cv_c_const+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 cat >conftest.$ac_ext <<_ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6616 /* FIXME: Include the comments suggested by Paul. */
6618 /* Ultrix mips cc rejects this. */
6619 typedef int charset[2];
6621 /* SunOS 4.1.1 cc rejects this. */
6622 char const *const *ccp;
6624 /* NEC SVR4.0.2 mips cc rejects this. */
6625 struct point {int x, y;};
6626 static struct point const zero = {0,0};
6627 /* AIX XL C 1.02.0.0 rejects this.
6628 It does not let you subtract one const X* pointer from another in
6629 an arm of an if-expression whose if-part is not a constant
6631 const char *g = "string";
6632 ccp = &g + (g ? g-g : 0);
6633 /* HPUX 7.0 cc rejects these. */
6636 ccp = (char const *const *) p;
6637 { /* SCO 3.2v4 cc rejects this. */
6639 char const *s = 0 ? (char *) 0 : (char const *) 0;
6643 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6645 const int *foo = &x[0];
6648 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6649 typedef const int *iptr;
6653 { /* AIX XL C 1.02.0.0 rejects this saying
6654 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6655 struct s { int j; const int *ap[3]; };
6656 struct s *b; b->j = 5;
6658 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6698 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6699 echo "${ECHO_T}$ac_cv_c_const" >&6
6700 if test $ac_cv_c_const = no; then
6702 cat >>confdefs.h <<\_ACEOF
6708 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6709 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6710 if test "${ac_cv_type_uid_t+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 cat >conftest.$ac_ext <<_ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 #include <sys/types.h>
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 $EGREP "uid_t" >/dev/null 2>&1; then
6724 ac_cv_type_uid_t=yes
6731 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6732 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6733 if test $ac_cv_type_uid_t = no; then
6735 cat >>confdefs.h <<\_ACEOF
6740 cat >>confdefs.h <<\_ACEOF
6746 echo "$as_me:$LINENO: checking for mode_t" >&5
6747 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6748 if test "${ac_cv_type_mode_t+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 $ac_includes_default
6763 if (sizeof (mode_t))
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -z "$ac_c_werror_flag"
6779 || test ! -s conftest.err'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; } &&
6785 { ac_try='test -s conftest.$ac_objext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 ac_cv_type_mode_t=yes
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 ac_cv_type_mode_t=no
6798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6801 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6802 if test $ac_cv_type_mode_t = yes; then
6806 cat >>confdefs.h <<_ACEOF
6812 echo "$as_me:$LINENO: checking for pid_t" >&5
6813 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6814 if test "${ac_cv_type_pid_t+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 cat >conftest.$ac_ext <<_ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 $ac_includes_default
6835 rm -f conftest.$ac_objext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6837 (eval $ac_compile) 2>conftest.er1
6839 grep -v '^ *+' conftest.er1 >conftest.err
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try='test -z "$ac_c_werror_flag"
6845 || test ! -s conftest.err'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; } &&
6851 { ac_try='test -s conftest.$ac_objext'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 ac_cv_type_pid_t=yes
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6867 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6868 if test $ac_cv_type_pid_t = yes; then
6872 cat >>confdefs.h <<_ACEOF
6878 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6880 if test "${ac_cv_type_signal+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <sys/types.h>
6895 extern "C" void (*signal (int, void (*)(int)))(int);
6897 void (*signal ()) ();
6908 rm -f conftest.$ac_objext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910 (eval $ac_compile) 2>conftest.er1
6912 grep -v '^ *+' conftest.er1 >conftest.err
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -z "$ac_c_werror_flag"
6918 || test ! -s conftest.err'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; } &&
6924 { ac_try='test -s conftest.$ac_objext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6930 ac_cv_type_signal=void
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 ac_cv_type_signal=int
6937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6939 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6940 echo "${ECHO_T}$ac_cv_type_signal" >&6
6942 cat >>confdefs.h <<_ACEOF
6943 #define RETSIGTYPE $ac_cv_type_signal
6948 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6949 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6950 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 $ac_includes_default
6963 static struct stat ac_aggr;
6964 if (ac_aggr.st_blksize)
6970 rm -f conftest.$ac_objext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>conftest.er1
6974 grep -v '^ *+' conftest.er1 >conftest.err
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_c_werror_flag"
6980 || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest.$ac_objext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_member_struct_stat_st_blksize=yes
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 $ac_includes_default
7007 static struct stat ac_aggr;
7008 if (sizeof ac_aggr.st_blksize)
7014 rm -f conftest.$ac_objext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016 (eval $ac_compile) 2>conftest.er1
7018 grep -v '^ *+' conftest.er1 >conftest.err
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try='test -z "$ac_c_werror_flag"
7024 || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest.$ac_objext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 ac_cv_member_struct_stat_st_blksize=yes
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7041 ac_cv_member_struct_stat_st_blksize=no
7043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7047 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
7048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
7049 if test $ac_cv_member_struct_stat_st_blksize = yes; then
7051 cat >>confdefs.h <<_ACEOF
7052 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7058 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7059 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7060 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 cat >conftest.$ac_ext <<_ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 $ac_includes_default
7073 static struct stat ac_aggr;
7074 if (ac_aggr.st_rdev)
7080 rm -f conftest.$ac_objext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082 (eval $ac_compile) 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try='test -z "$ac_c_werror_flag"
7090 || test ! -s conftest.err'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; } &&
7096 { ac_try='test -s conftest.$ac_objext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_member_struct_stat_st_rdev=yes
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 $ac_includes_default
7117 static struct stat ac_aggr;
7118 if (sizeof ac_aggr.st_rdev)
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
7146 ac_cv_member_struct_stat_st_rdev=yes
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_cv_member_struct_stat_st_rdev=no
7153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7157 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7158 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7159 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7161 cat >>confdefs.h <<_ACEOF
7162 #define HAVE_STRUCT_STAT_ST_RDEV 1
7169 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7170 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7171 if test "${ac_cv_sys_largefile_source+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 ac_cv_sys_largefile_source=no
7176 cat >conftest.$ac_ext <<_ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 #define _LARGEFILE_SOURCE 1
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
7240 grep -v '^ *+' conftest.er1 >conftest.err
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag"
7246 || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest.$ac_objext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 ac_cv_sys_largefile_source=1; break
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7269 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7270 if test "$ac_cv_sys_largefile_source" != no; then
7272 cat >>confdefs.h <<_ACEOF
7273 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7279 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7280 # in glibc 2.1.3, but that breaks too many other things.
7281 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7282 echo "$as_me:$LINENO: checking for fseeko" >&5
7283 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
7284 if test "${ac_cv_func_fseeko+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 cat >conftest.$ac_ext <<_ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7297 return fseeko && fseeko (stdin, 0, 0);
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304 (eval $ac_link) 2>conftest.er1
7306 grep -v '^ *+' conftest.er1 >conftest.err
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest$ac_exeext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_cv_func_fseeko=yes
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 ac_cv_func_fseeko=no
7331 rm -f conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
7335 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
7336 if test $ac_cv_func_fseeko = yes; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_FSEEKO 1
7344 if test $ac_cv_func_fseeko = no; then
7346 "fseeko.$ac_objext" | \
7347 *" fseeko.$ac_objext" | \
7348 "fseeko.$ac_objext "* | \
7349 *" fseeko.$ac_objext "* ) ;;
7350 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext" ;;
7354 "ftello.$ac_objext" | \
7355 *" ftello.$ac_objext" | \
7356 "ftello.$ac_objext "* | \
7357 *" ftello.$ac_objext "* ) ;;
7358 *) LIBOBJS="$LIBOBJS ftello.$ac_objext" ;;
7363 # Replace functions with versions in lib/ when they can't be found.
7369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7370 echo "$as_me:$LINENO: checking for $ac_func" >&5
7371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_var+set}\" = set"; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 cat >conftest.$ac_ext <<_ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7383 #define $ac_func innocuous_$ac_func
7385 /* System header to define __stub macros and hopefully few prototypes,
7386 which can conflict with char $ac_func (); below.
7387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7388 <limits.h> exists even on freestanding compilers. */
7391 # include <limits.h>
7393 # include <assert.h>
7398 /* Override any gcc2 internal prototype to avoid an error. */
7403 /* We use char because int might match the return type of a gcc2
7404 builtin and then its argument prototype would still apply. */
7406 /* The GNU C library defines this for functions which it implements
7407 to always fail with ENOSYS. Some functions are actually named
7408 something starting with __ and the normal name is an alias. */
7409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7412 char (*f) () = $ac_func;
7421 return f != $ac_func;
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>conftest.er1
7430 grep -v '^ *+' conftest.er1 >conftest.err
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest$ac_exeext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 eval "$as_ac_var=yes"
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 eval "$as_ac_var=no"
7455 rm -f conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7460 if test `eval echo '${'$as_ac_var'}'` = yes; then
7461 cat >>confdefs.h <<_ACEOF
7462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7467 "$ac_func.$ac_objext" | \
7468 *" $ac_func.$ac_objext" | \
7469 "$ac_func.$ac_objext "* | \
7470 *" $ac_func.$ac_objext "* ) ;;
7471 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7480 # Special hack for a SunOS 5.7 (aka Solaris 7) select() problem.
7484 for ac_header in fcntl.h
7486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7488 echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7496 # Is the header compilable?
7497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 $ac_includes_default
7506 #include <$ac_header>
7508 rm -f conftest.$ac_objext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>conftest.er1
7512 grep -v '^ *+' conftest.er1 >conftest.err
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest.$ac_objext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_header_compiler=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_header_compiler=no
7537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7539 echo "${ECHO_T}$ac_header_compiler" >&6
7541 # Is the header present?
7542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7544 cat >conftest.$ac_ext <<_ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #include <$ac_header>
7552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7555 grep -v '^ *+' conftest.er1 >conftest.err
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } >/dev/null; then
7560 if test -s conftest.err; then
7561 ac_cpp_err=$ac_c_preproc_warn_flag
7562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7569 if test -z "$ac_cpp_err"; then
7570 ac_header_preproc=yes
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_header_preproc=no
7577 rm -f conftest.err conftest.$ac_ext
7578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7579 echo "${ECHO_T}$ac_header_preproc" >&6
7581 # So? What about this header?
7582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7588 ac_header_preproc=yes
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7605 ## ------------------------------ ##
7606 ## Report this to bug-cvs@gnu.org ##
7607 ## ------------------------------ ##
7610 sed "s/^/$as_me: WARNING: /" >&2
7613 echo "$as_me:$LINENO: checking for $ac_header" >&5
7614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 eval "$as_ac_Header=\$ac_header_preproc"
7620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7625 cat >>confdefs.h <<_ACEOF
7626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7633 echo "$as_me:$LINENO: checking whether select hangs on /dev/null fd when timeout is NULL" >&5
7634 echo $ECHO_N "checking whether select hangs on /dev/null fd when timeout is NULL... $ECHO_C" >&6
7635 if test "${ccvs_cv_func_select_hang+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 if test "$cross_compiling" = yes; then
7639 ccvs_cv_func_select_hang=yes
7641 cat >conftest.$ac_ext <<_ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7649 #include <sys/select.h>
7660 struct timeval timeout;
7661 int fd = open ("/dev/null", O_RDONLY);
7664 FD_SET (fd, &readfds);
7666 timeout.tv_usec = 1;
7668 while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0
7670 return (numfds <= 0);
7676 rm -f conftest$ac_exeext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7678 (eval $ac_link) 2>&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ccvs_cv_func_select_hang=no
7689 echo "$as_me: program exited with status $ac_status" >&5
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7694 ccvs_cv_func_select_hang=yes
7696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7700 echo "$as_me:$LINENO: result: $ccvs_cv_func_select_hang" >&5
7701 echo "${ECHO_T}$ccvs_cv_func_select_hang" >&6
7702 if test $ccvs_cv_func_select_hang = yes; then
7706 for ac_header in fcntl.h unistd.h
7708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7710 echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7718 # Is the header compilable?
7719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 #include <$ac_header>
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>conftest.er1
7734 grep -v '^ *+' conftest.er1 >conftest.err
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -z "$ac_c_werror_flag"
7740 || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest.$ac_objext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_header_compiler=yes
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_header_compiler=no
7759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7761 echo "${ECHO_T}$ac_header_compiler" >&6
7763 # Is the header present?
7764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 #include <$ac_header>
7774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7777 grep -v '^ *+' conftest.er1 >conftest.err
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } >/dev/null; then
7782 if test -s conftest.err; then
7783 ac_cpp_err=$ac_c_preproc_warn_flag
7784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7791 if test -z "$ac_cpp_err"; then
7792 ac_header_preproc=yes
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_header_preproc=no
7799 rm -f conftest.err conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7801 echo "${ECHO_T}$ac_header_preproc" >&6
7803 # So? What about this header?
7804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7810 ac_header_preproc=yes
7813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7827 ## ------------------------------ ##
7828 ## Report this to bug-cvs@gnu.org ##
7829 ## ------------------------------ ##
7832 sed "s/^/$as_me: WARNING: /" >&2
7835 echo "$as_me:$LINENO: checking for $ac_header" >&5
7836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 eval "$as_ac_Header=\$ac_header_preproc"
7842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7847 cat >>confdefs.h <<_ACEOF
7848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7857 "sunos57-select.$ac_objext" | \
7858 *" sunos57-select.$ac_objext" | \
7859 "sunos57-select.$ac_objext "* | \
7860 *" sunos57-select.$ac_objext "* ) ;;
7861 *) LIBOBJS="$LIBOBJS sunos57-select.$ac_objext" ;;
7865 cat >>confdefs.h <<\_ACEOF
7866 #define select rpl_select
7873 # Begin GNULIB stuff.
7876 # Look for functions from GNULIB and replace with versions in lib/ when
7878 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7879 # for constant arguments. Useless!
7880 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7881 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7882 if test "${ac_cv_working_alloca_h+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 cat >conftest.$ac_ext <<_ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7895 char *p = (char *) alloca (2 * sizeof (int));
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902 (eval $ac_link) 2>conftest.er1
7904 grep -v '^ *+' conftest.er1 >conftest.err
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest$ac_exeext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_working_alloca_h=yes
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7927 ac_cv_working_alloca_h=no
7929 rm -f conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7932 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7933 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7934 if test $ac_cv_working_alloca_h = yes; then
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_ALLOCA_H 1
7942 echo "$as_me:$LINENO: checking for alloca" >&5
7943 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7944 if test "${ac_cv_func_alloca_works+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7954 # define alloca __builtin_alloca
7957 # include <malloc.h>
7958 # define alloca _alloca
7961 # include <alloca.h>
7966 # ifndef alloca /* predefined by HP cc +Olibcalls */
7977 char *p = (char *) alloca (1);
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>conftest.er1
7986 grep -v '^ *+' conftest.er1 >conftest.err
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag"
7992 || test ! -s conftest.err'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest$ac_exeext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_func_alloca_works=yes
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_cv_func_alloca_works=no
8011 rm -f conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8014 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8015 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8017 if test $ac_cv_func_alloca_works = yes; then
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_ALLOCA 1
8024 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8025 # that cause trouble. Some versions do not even contain alloca or
8026 # contain a buggy version. If you still want to use their alloca,
8027 # use ar to extract alloca.o from them instead of compiling alloca.c.
8029 ALLOCA=alloca.$ac_objext
8031 cat >>confdefs.h <<\_ACEOF
8036 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8037 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8038 if test "${ac_cv_os_cray+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8047 #if defined(CRAY) && ! defined(CRAY2)
8054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8055 $EGREP "webecray" >/dev/null 2>&1; then
8063 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8064 echo "${ECHO_T}$ac_cv_os_cray" >&6
8065 if test $ac_cv_os_cray = yes; then
8066 for ac_func in _getb67 GETB67 getb67; do
8067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8068 echo "$as_me:$LINENO: checking for $ac_func" >&5
8069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8070 if eval "test \"\${$as_ac_var+set}\" = set"; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 cat >conftest.$ac_ext <<_ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8081 #define $ac_func innocuous_$ac_func
8083 /* System header to define __stub macros and hopefully few prototypes,
8084 which can conflict with char $ac_func (); below.
8085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8086 <limits.h> exists even on freestanding compilers. */
8089 # include <limits.h>
8091 # include <assert.h>
8096 /* Override any gcc2 internal prototype to avoid an error. */
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8104 /* The GNU C library defines this for functions which it implements
8105 to always fail with ENOSYS. Some functions are actually named
8106 something starting with __ and the normal name is an alias. */
8107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8110 char (*f) () = $ac_func;
8119 return f != $ac_func;
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126 (eval $ac_link) 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest$ac_exeext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 eval "$as_ac_var=yes"
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 eval "$as_ac_var=no"
8153 rm -f conftest.err conftest.$ac_objext \
8154 conftest$ac_exeext conftest.$ac_ext
8156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8158 if test `eval echo '${'$as_ac_var'}'` = yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define CRAY_STACKSEG_END $ac_func
8170 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8171 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8172 if test "${ac_cv_c_stack_direction+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 if test "$cross_compiling" = yes; then
8176 ac_cv_c_stack_direction=0
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8185 find_stack_direction ()
8187 static char *addr = 0;
8192 return find_stack_direction ();
8195 return (&dummy > addr) ? 1 : -1;
8201 exit (find_stack_direction () < 0);
8204 rm -f conftest$ac_exeext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8206 (eval $ac_link) 2>&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_c_stack_direction=1
8217 echo "$as_me: program exited with status $ac_status" >&5
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8222 ac_cv_c_stack_direction=-1
8224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8227 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8228 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8230 cat >>confdefs.h <<_ACEOF
8231 #define STACK_DIRECTION $ac_cv_c_stack_direction
8239 for ac_header in stdlib.h
8241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8243 echo "$as_me:$LINENO: checking for $ac_header" >&5
8244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8251 # Is the header compilable?
8252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8261 #include <$ac_header>
8263 rm -f conftest.$ac_objext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265 (eval $ac_compile) 2>conftest.er1
8267 grep -v '^ *+' conftest.er1 >conftest.err
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -z "$ac_c_werror_flag"
8273 || test ! -s conftest.err'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest.$ac_objext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_header_compiler=yes
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 ac_header_compiler=no
8292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8294 echo "${ECHO_T}$ac_header_compiler" >&6
8296 # Is the header present?
8297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8299 cat >conftest.$ac_ext <<_ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 #include <$ac_header>
8307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } >/dev/null; then
8315 if test -s conftest.err; then
8316 ac_cpp_err=$ac_c_preproc_warn_flag
8317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8324 if test -z "$ac_cpp_err"; then
8325 ac_header_preproc=yes
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 ac_header_preproc=no
8332 rm -f conftest.err conftest.$ac_ext
8333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8334 echo "${ECHO_T}$ac_header_preproc" >&6
8336 # So? What about this header?
8337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8343 ac_header_preproc=yes
8346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8360 ## ------------------------------ ##
8361 ## Report this to bug-cvs@gnu.org ##
8362 ## ------------------------------ ##
8365 sed "s/^/$as_me: WARNING: /" >&2
8368 echo "$as_me:$LINENO: checking for $ac_header" >&5
8369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 eval "$as_ac_Header=\$ac_header_preproc"
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8380 cat >>confdefs.h <<_ACEOF
8381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8388 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8389 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8390 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 if test "$cross_compiling" = yes; then
8394 ac_cv_func_malloc_0_nonnull=no
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 #if STDC_HEADERS || HAVE_STDLIB_H
8403 # include <stdlib.h>
8411 exit (malloc (0) ? 0 : 1);
8416 rm -f conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_func_malloc_0_nonnull=yes
8429 echo "$as_me: program exited with status $ac_status" >&5
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8434 ac_cv_func_malloc_0_nonnull=no
8436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8439 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8440 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8441 if test $ac_cv_func_malloc_0_nonnull = yes; then
8442 gl_cv_func_malloc_0_nonnull=1
8444 gl_cv_func_malloc_0_nonnull=0
8449 cat >>confdefs.h <<_ACEOF
8450 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
8455 echo "$as_me:$LINENO: checking for long long" >&5
8456 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8457 if test "${ac_cv_type_long_long+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 long long ll = 1LL; int i = 63;
8470 long long llmax = (long long) -1;
8471 return ll << i | ll >> i | llmax / ll | llmax % ll;
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_type_long_long=yes
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_type_long_long=no
8505 rm -f conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8508 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8509 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8510 if test $ac_cv_type_long_long = yes; then
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_LONG_LONG 1
8519 echo "$as_me:$LINENO: checking for long double" >&5
8520 echo $ECHO_N "checking for long double... $ECHO_C" >&6
8521 if test "${gt_cv_c_long_double+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 if test "$GCC" = yes; then
8525 gt_cv_c_long_double=yes
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8534 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8535 long double foo = 0.0;
8536 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8537 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8547 rm -f conftest.$ac_objext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8549 (eval $ac_compile) 2>conftest.er1
8551 grep -v '^ *+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest.$ac_objext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 gt_cv_c_long_double=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 gt_cv_c_long_double=no
8576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8580 echo "${ECHO_T}$gt_cv_c_long_double" >&6
8581 if test $gt_cv_c_long_double = yes; then
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_LONG_DOUBLE 1
8589 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8590 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8591 if test "${ac_cv_header_stdbool_h+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8601 #include <stdbool.h>
8603 "error: bool is not defined"
8606 "error: false is not defined"
8609 "error: false is not 0"
8612 "error: true is not defined"
8615 "error: true is not 1"
8617 #ifndef __bool_true_false_are_defined
8618 "error: __bool_true_false_are_defined is not defined"
8621 struct s { _Bool s: 1; _Bool t; } s;
8623 char a[true == 1 ? 1 : -1];
8624 char b[false == 0 ? 1 : -1];
8625 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8626 char d[(bool) -0.5 == true ? 1 : -1];
8628 char f[(_Bool) -0.0 == false ? 1 : -1];
8630 char h[sizeof (_Bool)];
8632 enum { j = false, k = true, l = false * true, m = true * 256 };
8634 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8640 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
8647 rm -f conftest.$ac_objext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8649 (eval $ac_compile) 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest.$ac_objext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_header_stdbool_h=yes
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_header_stdbool_h=no
8676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8678 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8679 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8680 echo "$as_me:$LINENO: checking for _Bool" >&5
8681 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8682 if test "${ac_cv_type__Bool+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 $ac_includes_default
8703 rm -f conftest.$ac_objext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705 (eval $ac_compile) 2>conftest.er1
8707 grep -v '^ *+' conftest.er1 >conftest.err
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -z "$ac_c_werror_flag"
8713 || test ! -s conftest.err'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; } &&
8719 { ac_try='test -s conftest.$ac_objext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 ac_cv_type__Bool=yes
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8734 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8735 echo "${ECHO_T}$ac_cv_type__Bool" >&6
8736 if test $ac_cv_type__Bool = yes; then
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE__BOOL 1
8745 if test $ac_cv_header_stdbool_h = yes; then
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_STDBOOL_H 1
8757 for ac_func in $gl_func_list
8759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8760 echo "$as_me:$LINENO: checking for $ac_func" >&5
8761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8762 if eval "test \"\${$as_ac_var+set}\" = set"; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8773 #define $ac_func innocuous_$ac_func
8775 /* System header to define __stub macros and hopefully few prototypes,
8776 which can conflict with char $ac_func (); below.
8777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8778 <limits.h> exists even on freestanding compilers. */
8781 # include <limits.h>
8783 # include <assert.h>
8788 /* Override any gcc2 internal prototype to avoid an error. */
8793 /* We use char because int might match the return type of a gcc2
8794 builtin and then its argument prototype would still apply. */
8796 /* The GNU C library defines this for functions which it implements
8797 to always fail with ENOSYS. Some functions are actually named
8798 something starting with __ and the normal name is an alias. */
8799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8802 char (*f) () = $ac_func;
8811 return f != $ac_func;
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 eval "$as_ac_var=yes"
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 eval "$as_ac_var=no"
8845 rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8850 if test `eval echo '${'$as_ac_var'}'` = yes; then
8851 cat >>confdefs.h <<_ACEOF
8852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8868 for ac_header in $gl_header_list
8870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8872 echo "$as_me:$LINENO: checking for $ac_header" >&5
8873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8880 # Is the header compilable?
8881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 $ac_includes_default
8890 #include <$ac_header>
8892 rm -f conftest.$ac_objext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8894 (eval $ac_compile) 2>conftest.er1
8896 grep -v '^ *+' conftest.er1 >conftest.err
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -z "$ac_c_werror_flag"
8902 || test ! -s conftest.err'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest.$ac_objext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_header_compiler=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_header_compiler=no
8921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8923 echo "${ECHO_T}$ac_header_compiler" >&6
8925 # Is the header present?
8926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 #include <$ac_header>
8936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8939 grep -v '^ *+' conftest.er1 >conftest.err
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } >/dev/null; then
8944 if test -s conftest.err; then
8945 ac_cpp_err=$ac_c_preproc_warn_flag
8946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8953 if test -z "$ac_cpp_err"; then
8954 ac_header_preproc=yes
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_header_preproc=no
8961 rm -f conftest.err conftest.$ac_ext
8962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8963 echo "${ECHO_T}$ac_header_preproc" >&6
8965 # So? What about this header?
8966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8972 ac_header_preproc=yes
8975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8989 ## ------------------------------ ##
8990 ## Report this to bug-cvs@gnu.org ##
8991 ## ------------------------------ ##
8994 sed "s/^/$as_me: WARNING: /" >&2
8997 echo "$as_me:$LINENO: checking for $ac_header" >&5
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 eval "$as_ac_Header=\$ac_header_preproc"
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9009 cat >>confdefs.h <<_ACEOF
9010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 "save-cwd.$ac_objext" | \
9032 *" save-cwd.$ac_objext" | \
9033 "save-cwd.$ac_objext "* | \
9034 *" save-cwd.$ac_objext "* ) ;;
9035 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" ;;
9057 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9058 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9059 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 cat >conftest.$ac_ext <<_ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 $ac_includes_default
9073 char *p = (char *) memrchr;
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082 (eval $ac_compile) 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest.$ac_objext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_have_decl_memrchr=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_have_decl_memrchr=no
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9111 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9112 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9113 if test $ac_cv_have_decl_memrchr = yes; then
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_DECL_MEMRCHR 1
9121 cat >>confdefs.h <<_ACEOF
9122 #define HAVE_DECL_MEMRCHR 0
9131 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
9132 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
9133 if test "${ac_cv_win_or_dos+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 cat >conftest.$ac_ext <<_ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9147 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
9148 neither MSDOS nor Windows
9154 rm -f conftest.$ac_objext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>conftest.er1
9158 grep -v '^ *+' conftest.er1 >conftest.err
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_cv_win_or_dos=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9186 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
9187 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
9189 if test x"$ac_cv_win_or_dos" = xyes; then
9190 ac_fs_accepts_drive_letter_prefix=1
9191 ac_fs_backslash_is_file_name_separator=1
9193 ac_fs_accepts_drive_letter_prefix=0
9194 ac_fs_backslash_is_file_name_separator=0
9201 cat >>confdefs.h <<_ACEOF
9202 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
9210 cat >>confdefs.h <<_ACEOF
9211 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
9215 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
9216 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
9217 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226 $ac_includes_default
9231 char *p = (char *) strerror_r;
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest.$ac_objext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_have_decl_strerror_r=yes
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_cv_have_decl_strerror_r=no
9267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9269 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
9270 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
9271 if test $ac_cv_have_decl_strerror_r = yes; then
9273 cat >>confdefs.h <<_ACEOF
9274 #define HAVE_DECL_STRERROR_R 1
9279 cat >>confdefs.h <<_ACEOF
9280 #define HAVE_DECL_STRERROR_R 0
9288 for ac_func in strerror_r
9290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9291 echo "$as_me:$LINENO: checking for $ac_func" >&5
9292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_var+set}\" = set"; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9304 #define $ac_func innocuous_$ac_func
9306 /* System header to define __stub macros and hopefully few prototypes,
9307 which can conflict with char $ac_func (); below.
9308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309 <limits.h> exists even on freestanding compilers. */
9312 # include <limits.h>
9314 # include <assert.h>
9319 /* Override any gcc2 internal prototype to avoid an error. */
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9333 char (*f) () = $ac_func;
9342 return f != $ac_func;
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9351 grep -v '^ *+' conftest.er1 >conftest.err
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag"
9357 || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369 eval "$as_ac_var=yes"
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9374 eval "$as_ac_var=no"
9376 rm -f conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9381 if test `eval echo '${'$as_ac_var'}'` = yes; then
9382 cat >>confdefs.h <<_ACEOF
9383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
9390 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
9391 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 ac_cv_func_strerror_r_char_p=no
9396 if test $ac_cv_have_decl_strerror_r = yes; then
9397 cat >conftest.$ac_ext <<_ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 $ac_includes_default
9409 char x = *strerror_r (0, buf, sizeof buf);
9410 char *p = strerror_r (0, buf, sizeof buf);
9416 rm -f conftest.$ac_objext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9418 (eval $ac_compile) 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest.$ac_objext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_func_strerror_r_char_p=yes
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9446 # strerror_r is not declared. Choose between
9447 # systems that have relatively inaccessible declarations for the
9448 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
9449 # former has a strerror_r that returns char*, while the latter
9450 # has a strerror_r that returns `int'.
9451 # This test should segfault on the DEC system.
9452 if test "$cross_compiling" = yes; then
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 extern char *strerror_r ();
9467 char x = *strerror_r (0, buf, sizeof buf);
9468 exit (!isalpha (x));
9473 rm -f conftest$ac_exeext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475 (eval $ac_link) 2>&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_func_strerror_r_char_p=yes
9486 echo "$as_me: program exited with status $ac_status" >&5
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9496 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
9497 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
9498 if test $ac_cv_func_strerror_r_char_p = yes; then
9500 cat >>confdefs.h <<\_ACEOF
9501 #define STRERROR_R_CHAR_P 1
9506 echo "$as_me:$LINENO: checking for mbstate_t" >&5
9507 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
9508 if test "${ac_cv_type_mbstate_t+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 cat >conftest.$ac_ext <<_ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 $ac_includes_default
9522 mbstate_t x; return sizeof x;
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_type_mbstate_t=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_cv_type_mbstate_t=no
9556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
9559 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
9560 if test $ac_cv_type_mbstate_t = yes; then
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_MBSTATE_T 1
9568 cat >>confdefs.h <<\_ACEOF
9569 #define mbstate_t int
9583 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9584 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
9585 if test "${gl_cv_func_getcwd_null+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 if test "$cross_compiling" = yes; then
9589 gl_cv_func_getcwd_null=no
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9598 # include <stdlib.h>
9599 # ifdef HAVE_UNISTD_H
9600 # include <unistd.h>
9608 if (chdir ("/") != 0)
9612 char *f = getcwd (NULL, 0);
9613 exit (! (f && f[0] == '/' && !f[1]));
9617 rm -f conftest$ac_exeext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9619 (eval $ac_link) 2>&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 gl_cv_func_getcwd_null=yes
9630 echo "$as_me: program exited with status $ac_status" >&5
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9635 gl_cv_func_getcwd_null=no
9637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
9641 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6
9644 echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
9645 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
9646 if test "${ac_cv_have_decl_getcwd+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 $ac_includes_default
9660 char *p = (char *) getcwd;
9667 rm -f conftest.$ac_objext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag"
9677 || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest.$ac_objext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 ac_cv_have_decl_getcwd=yes
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9694 ac_cv_have_decl_getcwd=no
9696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9698 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
9699 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
9700 if test $ac_cv_have_decl_getcwd = yes; then
9702 cat >>confdefs.h <<_ACEOF
9703 #define HAVE_DECL_GETCWD 1
9708 cat >>confdefs.h <<_ACEOF
9709 #define HAVE_DECL_GETCWD 0
9717 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
9718 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
9719 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9729 #include <sys/types.h>
9730 #ifdef HAVE_DIRENT_H
9731 # include <dirent.h>
9732 #else /* not HAVE_DIRENT_H */
9733 # define dirent direct
9734 # ifdef HAVE_SYS_NDIR_H
9735 # include <sys/ndir.h>
9736 # endif /* HAVE_SYS_NDIR_H */
9737 # ifdef HAVE_SYS_DIR_H
9738 # include <sys/dir.h>
9739 # endif /* HAVE_SYS_DIR_H */
9742 # endif /* HAVE_NDIR_H */
9743 #endif /* HAVE_DIRENT_H */
9748 struct dirent dp; dp.d_ino = 0;
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>conftest.er1
9757 grep -v '^ *+' conftest.er1 >conftest.err
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -z "$ac_c_werror_flag"
9763 || test ! -s conftest.err'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try='test -s conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 jm_cv_struct_dirent_d_ino=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 jm_cv_struct_dirent_d_ino=no
9782 rm -f conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9787 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9788 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
9789 if test $jm_cv_struct_dirent_d_ino = yes; then
9791 cat >>confdefs.h <<\_ACEOF
9792 #define D_INO_IN_DIRENT 1
9798 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9799 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9800 if test "${ac_cv_header_time+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 #include <sys/types.h>
9810 #include <sys/time.h>
9816 if ((struct tm *) 0)
9822 rm -f conftest.$ac_objext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824 (eval $ac_compile) 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag"
9832 || test ! -s conftest.err'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try='test -s conftest.$ac_objext'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9844 ac_cv_header_time=yes
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 ac_cv_header_time=no
9851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9853 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9854 echo "${ECHO_T}$ac_cv_header_time" >&6
9855 if test $ac_cv_header_time = yes; then
9857 cat >>confdefs.h <<\_ACEOF
9858 #define TIME_WITH_SYS_TIME 1
9891 echo "$as_me:$LINENO: checking for struct timespec" >&5
9892 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
9893 if test "${fu_cv_sys_struct_timespec+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9903 # if TIME_WITH_SYS_TIME
9904 # include <sys/time.h>
9907 # if HAVE_SYS_TIME_H
9908 # include <sys/time.h>
9917 static struct timespec x; x.tv_sec = x.tv_nsec;
9922 rm -f conftest.$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924 (eval $ac_compile) 2>conftest.er1
9926 grep -v '^ *+' conftest.er1 >conftest.err
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_c_werror_flag"
9932 || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest.$ac_objext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 fu_cv_sys_struct_timespec=yes
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 fu_cv_sys_struct_timespec=no
9951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
9955 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
9957 if test $fu_cv_sys_struct_timespec = yes; then
9959 cat >>confdefs.h <<\_ACEOF
9960 #define HAVE_STRUCT_TIMESPEC 1
9965 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
9966 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
9967 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 ac_save_CPPFLAGS="$CPPFLAGS"
9971 ac_cv_struct_st_mtim_nsec=no
9972 # tv_nsec -- the usual case
9973 # _tv_nsec -- Solaris 2.6, if
9974 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
9975 # && !defined __EXTENSIONS__)
9976 # st__tim.tv_nsec -- UnixWare 2.1.2
9977 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
9978 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
9979 cat >conftest.$ac_ext <<_ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 #include <sys/types.h>
9986 #include <sys/stat.h>
9990 struct stat s; s.st_mtim.ST_MTIM_NSEC;
9995 rm -f conftest.$ac_objext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9997 (eval $ac_compile) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_struct_st_mtim_nsec=$ac_val; break
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10025 CPPFLAGS="$ac_save_CPPFLAGS"
10027 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
10028 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
10030 if test $ac_cv_struct_st_mtim_nsec != no; then
10032 cat >>confdefs.h <<_ACEOF
10033 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
10042 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10043 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
10044 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 cat >conftest.$ac_ext <<_ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10059 char *p = (char *) nanosleep;
10066 rm -f conftest.$ac_objext
10067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10068 (eval $ac_compile) 2>conftest.er1
10070 grep -v '^ *+' conftest.er1 >conftest.err
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -z "$ac_c_werror_flag"
10076 || test ! -s conftest.err'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; } &&
10082 { ac_try='test -s conftest.$ac_objext'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_have_decl_nanosleep=yes
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10093 ac_cv_have_decl_nanosleep=no
10095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10097 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10098 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
10099 if test $ac_cv_have_decl_nanosleep = yes; then
10101 cat >>confdefs.h <<_ACEOF
10102 #define HAVE_DECL_NANOSLEEP 1
10107 cat >>confdefs.h <<_ACEOF
10108 #define HAVE_DECL_NANOSLEEP 0
10117 # getdate.y works with bison only.
10119 YACC=${YACC-"${am_missing_run}bison -y"}
10130 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10131 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10132 if test "${ac_cv_struct_tm+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 cat >conftest.$ac_ext <<_ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 #include <sys/types.h>
10147 struct tm *tp; tp->tm_sec;
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>conftest.er1
10156 grep -v '^ *+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_c_werror_flag"
10162 || test ! -s conftest.err'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; } &&
10168 { ac_try='test -s conftest.$ac_objext'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; }; then
10174 ac_cv_struct_tm=time.h
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10179 ac_cv_struct_tm=sys/time.h
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10184 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10185 if test $ac_cv_struct_tm = sys/time.h; then
10187 cat >>confdefs.h <<\_ACEOF
10188 #define TM_IN_SYS_TIME 1
10194 # dnl Persuade glibc <time.h> to declare these functions.
10197 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
10198 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
10200 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
10201 # programs in the package would end up linked with that potentially-shared
10202 # library, inducing unnecessary run-time overhead.
10203 fetish_saved_libs=$LIBS
10204 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
10205 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
10206 if test "${ac_cv_search_clock_gettime+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 ac_func_search_save_LIBS=$LIBS
10210 ac_cv_search_clock_gettime=no
10211 cat >conftest.$ac_ext <<_ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10218 /* Override any gcc2 internal prototype to avoid an error. */
10222 /* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */
10224 char clock_gettime ();
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235 (eval $ac_link) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_search_clock_gettime="none required"
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10261 rm -f conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10263 if test "$ac_cv_search_clock_gettime" = no; then
10264 for ac_lib in rt posix4; do
10265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10273 /* Override any gcc2 internal prototype to avoid an error. */
10277 /* We use char because int might match the return type of a gcc2
10278 builtin and then its argument prototype would still apply. */
10279 char clock_gettime ();
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290 (eval $ac_link) 2>conftest.er1
10292 grep -v '^ *+' conftest.er1 >conftest.err
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -z "$ac_c_werror_flag"
10298 || test ! -s conftest.err'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_search_clock_gettime="-l$ac_lib"
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10317 rm -f conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10321 LIBS=$ac_func_search_save_LIBS
10323 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
10324 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
10325 if test "$ac_cv_search_clock_gettime" != no; then
10326 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
10327 test "$ac_cv_search_clock_gettime" = "none required" ||
10328 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
10334 for ac_func in clock_gettime clock_settime
10336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10337 echo "$as_me:$LINENO: checking for $ac_func" >&5
10338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10339 if eval "test \"\${$as_ac_var+set}\" = set"; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 cat >conftest.$ac_ext <<_ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10350 #define $ac_func innocuous_$ac_func
10352 /* System header to define __stub macros and hopefully few prototypes,
10353 which can conflict with char $ac_func (); below.
10354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355 <limits.h> exists even on freestanding compilers. */
10358 # include <limits.h>
10360 # include <assert.h>
10365 /* Override any gcc2 internal prototype to avoid an error. */
10370 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */
10373 /* The GNU C library defines this for functions which it implements
10374 to always fail with ENOSYS. Some functions are actually named
10375 something starting with __ and the normal name is an alias. */
10376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10379 char (*f) () = $ac_func;
10388 return f != $ac_func;
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395 (eval $ac_link) 2>conftest.er1
10397 grep -v '^ *+' conftest.er1 >conftest.err
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -z "$ac_c_werror_flag"
10403 || test ! -s conftest.err'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 eval "$as_ac_var=yes"
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 eval "$as_ac_var=no"
10422 rm -f conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10427 if test `eval echo '${'$as_ac_var'}'` = yes; then
10428 cat >>confdefs.h <<_ACEOF
10429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10435 LIBS=$fetish_saved_libs
10438 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
10439 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
10440 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10454 static struct tm ac_aggr;
10455 if (ac_aggr.tm_gmtoff)
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 ac_cv_member_struct_tm_tm_gmtoff=yes
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10499 static struct tm ac_aggr;
10500 if (sizeof ac_aggr.tm_gmtoff)
10506 rm -f conftest.$ac_objext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10508 (eval $ac_compile) 2>conftest.er1
10510 grep -v '^ *+' conftest.er1 >conftest.err
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -z "$ac_c_werror_flag"
10516 || test ! -s conftest.err'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; } &&
10522 { ac_try='test -s conftest.$ac_objext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 ac_cv_member_struct_tm_tm_gmtoff=yes
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_cv_member_struct_tm_tm_gmtoff=no
10535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
10540 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
10541 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
10543 cat >>confdefs.h <<\_ACEOF
10544 #define HAVE_TM_GMTOFF 1
10551 echo "$as_me:$LINENO: checking for ssize_t" >&5
10552 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10553 if test "${gt_cv_ssize_t+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <sys/types.h>
10566 int x = sizeof (ssize_t *) + sizeof (ssize_t);
10571 rm -f conftest.$ac_objext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest.$ac_objext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10602 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
10603 echo "${ECHO_T}$gt_cv_ssize_t" >&6
10604 if test $gt_cv_ssize_t = no; then
10606 cat >>confdefs.h <<\_ACEOF
10607 #define ssize_t int
10619 echo "$as_me:$LINENO: checking whether getpass is declared" >&5
10620 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6
10621 if test "${ac_cv_have_decl_getpass+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 cat >conftest.$ac_ext <<_ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 $ac_includes_default
10635 char *p = (char *) getpass;
10642 rm -f conftest.$ac_objext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10644 (eval $ac_compile) 2>conftest.er1
10646 grep -v '^ *+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try='test -z "$ac_c_werror_flag"
10652 || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest.$ac_objext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_have_decl_getpass=yes
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_cv_have_decl_getpass=no
10671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10673 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
10674 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6
10675 if test $ac_cv_have_decl_getpass = yes; then
10677 cat >>confdefs.h <<_ACEOF
10678 #define HAVE_DECL_GETPASS 1
10683 cat >>confdefs.h <<_ACEOF
10684 #define HAVE_DECL_GETPASS 0
10699 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
10700 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
10701 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 cat >conftest.$ac_ext <<_ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h. */
10710 $ac_includes_default
10714 #ifndef fflush_unlocked
10715 char *p = (char *) fflush_unlocked;
10722 rm -f conftest.$ac_objext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10724 (eval $ac_compile) 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_objext'
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 ac_cv_have_decl_fflush_unlocked=yes
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_cv_have_decl_fflush_unlocked=no
10751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10753 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
10754 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
10755 if test $ac_cv_have_decl_fflush_unlocked = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_DECL_FFLUSH_UNLOCKED 1
10763 cat >>confdefs.h <<_ACEOF
10764 #define HAVE_DECL_FFLUSH_UNLOCKED 0
10773 echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
10774 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6
10775 if test "${ac_cv_have_decl_flockfile+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 $ac_includes_default
10789 char *p = (char *) flockfile;
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798 (eval $ac_compile) 2>conftest.er1
10800 grep -v '^ *+' conftest.er1 >conftest.err
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_c_werror_flag"
10806 || test ! -s conftest.err'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest.$ac_objext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_cv_have_decl_flockfile=yes
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_have_decl_flockfile=no
10825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10827 echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
10828 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6
10829 if test $ac_cv_have_decl_flockfile = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define HAVE_DECL_FLOCKFILE 1
10837 cat >>confdefs.h <<_ACEOF
10838 #define HAVE_DECL_FLOCKFILE 0
10847 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10848 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
10849 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 $ac_includes_default
10862 #ifndef fputs_unlocked
10863 char *p = (char *) fputs_unlocked;
10870 rm -f conftest.$ac_objext
10871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10872 (eval $ac_compile) 2>conftest.er1
10874 grep -v '^ *+' conftest.er1 >conftest.err
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
10879 { ac_try='test -z "$ac_c_werror_flag"
10880 || test ! -s conftest.err'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; } &&
10886 { ac_try='test -s conftest.$ac_objext'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; }; then
10892 ac_cv_have_decl_fputs_unlocked=yes
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_cv_have_decl_fputs_unlocked=no
10899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10902 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
10903 if test $ac_cv_have_decl_fputs_unlocked = yes; then
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_DECL_FPUTS_UNLOCKED 1
10911 cat >>confdefs.h <<_ACEOF
10912 #define HAVE_DECL_FPUTS_UNLOCKED 0
10921 echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
10922 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6
10923 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932 $ac_includes_default
10936 #ifndef funlockfile
10937 char *p = (char *) funlockfile;
10944 rm -f conftest.$ac_objext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946 (eval $ac_compile) 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -z "$ac_c_werror_flag"
10954 || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_cv_have_decl_funlockfile=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_cv_have_decl_funlockfile=no
10973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10975 echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
10976 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6
10977 if test $ac_cv_have_decl_funlockfile = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980 #define HAVE_DECL_FUNLOCKFILE 1
10985 cat >>confdefs.h <<_ACEOF
10986 #define HAVE_DECL_FUNLOCKFILE 0
10995 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10996 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
10997 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 $ac_includes_default
11010 #ifndef putc_unlocked
11011 char *p = (char *) putc_unlocked;
11018 rm -f conftest.$ac_objext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>conftest.er1
11022 grep -v '^ *+' conftest.er1 >conftest.err
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -z "$ac_c_werror_flag"
11028 || test ! -s conftest.err'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest.$ac_objext'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 ac_cv_have_decl_putc_unlocked=yes
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 ac_cv_have_decl_putc_unlocked=no
11047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
11050 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
11051 if test $ac_cv_have_decl_putc_unlocked = yes; then
11053 cat >>confdefs.h <<_ACEOF
11054 #define HAVE_DECL_PUTC_UNLOCKED 1
11059 cat >>confdefs.h <<_ACEOF
11060 #define HAVE_DECL_PUTC_UNLOCKED 0
11080 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11081 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11082 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 rm -f conftest.sym conftest.file
11086 echo >conftest.file
11087 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11088 if test "$cross_compiling" = yes; then
11089 ac_cv_func_lstat_dereferences_slashed_symlink=no
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 $ac_includes_default
11102 /* Linux will dereference the symlink and fail.
11103 That is better in the sense that it means we will not
11104 have to compile and use the lstat wrapper. */
11105 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11110 rm -f conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112 (eval $ac_link) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11123 echo "$as_me: program exited with status $ac_status" >&5
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ( exit $ac_status )
11128 ac_cv_func_lstat_dereferences_slashed_symlink=no
11130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11133 # If the `ln -s' command failed, then we probably don't even
11134 # have an lstat function.
11135 ac_cv_func_lstat_dereferences_slashed_symlink=no
11137 rm -f conftest.sym conftest.file
11140 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11141 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11143 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11145 cat >>confdefs.h <<_ACEOF
11146 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11150 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
11152 "lstat.$ac_objext" | \
11153 *" lstat.$ac_objext" | \
11154 "lstat.$ac_objext "* | \
11155 *" lstat.$ac_objext "* ) ;;
11156 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11162 echo "$as_me:$LINENO: checking for uint32_t" >&5
11163 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11164 if test "${gl_cv_c_uint32_t+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 gl_cv_c_uint32_t=no
11168 for ac_type in "uint32_t" "unsigned int" \
11169 "unsigned long int" "unsigned short int"; do
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 $ac_includes_default
11180 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
11187 rm -f conftest.$ac_objext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189 (eval $ac_compile) 2>conftest.er1
11191 grep -v '^ *+' conftest.er1 >conftest.err
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest.$ac_objext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 gl_cv_c_uint32_t=$ac_type
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216 test "$gl_cv_c_uint32_t" != no && break
11219 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
11220 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6
11221 case "$gl_cv_c_uint32_t" in
11225 cat >>confdefs.h <<\_ACEOF
11226 #define _UINT32_T 1
11230 cat >>confdefs.h <<_ACEOF
11231 #define uint32_t $gl_cv_c_uint32_t
11237 echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
11238 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6
11239 if test "${gl_cv_c_uint32_max+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11252 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11263 grep -v '^ *+' conftest.er1 >conftest.err
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag"
11269 || test ! -s conftest.err'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 gl_cv_c_uint32_max=yes
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11286 gl_cv_c_uint32_max=no
11288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11290 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
11291 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6
11292 case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
11297 cat >>confdefs.h <<\_ACEOF
11298 #define UINT32_MAX 4294967295U
11304 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11305 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11306 if test "${ac_cv_c_bigendian+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 # See if sys/param.h defines the BYTE_ORDER macro.
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 #include <sys/types.h>
11317 #include <sys/param.h>
11322 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11323 bogus endian macros
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 # It does; now see whether it defined to BIG_ENDIAN or not.
11353 cat >conftest.$ac_ext <<_ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <sys/types.h>
11360 #include <sys/param.h>
11365 #if BYTE_ORDER != BIG_ENDIAN
11373 rm -f conftest.$ac_objext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375 (eval $ac_compile) 2>conftest.er1
11377 grep -v '^ *+' conftest.er1 >conftest.err
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_c_bigendian=yes
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_cv_c_bigendian=no
11402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 # It does not; compile a test program.
11408 if test "$cross_compiling" = yes; then
11409 # try to guess the endianness by grepping values into an object file
11410 ac_cv_c_bigendian=unknown
11411 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11418 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11419 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11420 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11421 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11422 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11426 _ascii (); _ebcdic ();
11431 rm -f conftest.$ac_objext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11433 (eval $ac_compile) 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag"
11441 || test ! -s conftest.err'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest.$ac_objext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11454 ac_cv_c_bigendian=yes
11456 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11457 if test "$ac_cv_c_bigendian" = unknown; then
11458 ac_cv_c_bigendian=no
11460 # finding both strings is unlikely to happen, but who knows?
11461 ac_cv_c_bigendian=unknown
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11480 /* Are we little or big endian? From Harbison&Steele. */
11484 char c[sizeof (long)];
11487 exit (u.c[sizeof (long) - 1] == 1);
11490 rm -f conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_c_bigendian=no
11503 echo "$as_me: program exited with status $ac_status" >&5
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 ( exit $ac_status )
11508 ac_cv_c_bigendian=yes
11510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11515 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11516 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11517 case $ac_cv_c_bigendian in
11520 cat >>confdefs.h <<\_ACEOF
11521 #define WORDS_BIGENDIAN 1
11527 { { echo "$as_me:$LINENO: error: unknown endianness
11528 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11529 echo "$as_me: error: unknown endianness
11530 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11531 { (exit 1); exit 1; }; } ;;
11535 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11536 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11537 if test "${ac_cv_have_decl_getenv+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 $ac_includes_default
11551 char *p = (char *) getenv;
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_have_decl_getenv=yes
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_cv_have_decl_getenv=no
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11589 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11590 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11591 if test $ac_cv_have_decl_getenv = yes; then
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_DECL_GETENV 1
11599 cat >>confdefs.h <<_ACEOF
11600 #define HAVE_DECL_GETENV 0
11609 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11610 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11611 if test "${gl_cv_header_inttypes_h+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 cat >conftest.$ac_ext <<_ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 #include <sys/types.h>
11621 #include <inttypes.h>
11625 uintmax_t i = (uintmax_t) -1;
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_c_werror_flag"
11640 || test ! -s conftest.err'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; } &&
11646 { ac_try='test -s conftest.$ac_objext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 gl_cv_header_inttypes_h=yes
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 gl_cv_header_inttypes_h=no
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11661 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
11662 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
11663 if test $gl_cv_header_inttypes_h = yes; then
11665 cat >>confdefs.h <<_ACEOF
11666 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11672 echo "$as_me:$LINENO: checking for stdint.h" >&5
11673 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11674 if test "${gl_cv_header_stdint_h+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 #include <sys/types.h>
11684 #include <stdint.h>
11688 uintmax_t i = (uintmax_t) -1;
11693 rm -f conftest.$ac_objext
11694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11695 (eval $ac_compile) 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
11702 { ac_try='test -z "$ac_c_werror_flag"
11703 || test ! -s conftest.err'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; } &&
11709 { ac_try='test -s conftest.$ac_objext'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 gl_cv_header_stdint_h=yes
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 gl_cv_header_stdint_h=no
11722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11724 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
11725 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
11726 if test $gl_cv_header_stdint_h = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define HAVE_STDINT_H_WITH_UINTMAX 1
11735 echo "$as_me:$LINENO: checking for unsigned long long" >&5
11736 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11737 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 unsigned long long ull = 1ULL; int i = 63;
11750 unsigned long long ullmax = (unsigned long long) -1;
11751 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11758 (eval $ac_link) 2>conftest.er1
11760 grep -v '^ *+' conftest.er1 >conftest.err
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -z "$ac_c_werror_flag"
11766 || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_type_unsigned_long_long=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_cv_type_unsigned_long_long=no
11785 rm -f conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11788 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
11789 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
11790 if test $ac_cv_type_unsigned_long_long = yes; then
11792 cat >>confdefs.h <<\_ACEOF
11793 #define HAVE_UNSIGNED_LONG_LONG 1
11801 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11803 test $ac_cv_type_unsigned_long_long = yes \
11804 && ac_type='unsigned long long' \
11805 || ac_type='unsigned long'
11807 cat >>confdefs.h <<_ACEOF
11808 #define uintmax_t $ac_type
11813 cat >>confdefs.h <<\_ACEOF
11814 #define HAVE_UINTMAX_T 1
11822 for ac_header in stdlib.h sys/time.h unistd.h
11824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11826 echo "$as_me:$LINENO: checking for $ac_header" >&5
11827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11834 # Is the header compilable?
11835 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 $ac_includes_default
11844 #include <$ac_header>
11846 rm -f conftest.$ac_objext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_header_compiler=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_header_compiler=no
11875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11877 echo "${ECHO_T}$ac_header_compiler" >&6
11879 # Is the header present?
11880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 #include <$ac_header>
11890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } >/dev/null; then
11898 if test -s conftest.err; then
11899 ac_cpp_err=$ac_c_preproc_warn_flag
11900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11907 if test -z "$ac_cpp_err"; then
11908 ac_header_preproc=yes
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_header_preproc=no
11915 rm -f conftest.err conftest.$ac_ext
11916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11917 echo "${ECHO_T}$ac_header_preproc" >&6
11919 # So? What about this header?
11920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11926 ac_header_preproc=yes
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11943 ## ------------------------------ ##
11944 ## Report this to bug-cvs@gnu.org ##
11945 ## ------------------------------ ##
11948 sed "s/^/$as_me: WARNING: /" >&2
11951 echo "$as_me:$LINENO: checking for $ac_header" >&5
11952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 eval "$as_ac_Header=\$ac_header_preproc"
11958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11963 cat >>confdefs.h <<_ACEOF
11964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11972 for ac_func in alarm
11974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11977 if eval "test \"\${$as_ac_var+set}\" = set"; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988 #define $ac_func innocuous_$ac_func
11990 /* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char $ac_func (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11996 # include <limits.h>
11998 # include <assert.h>
12003 /* Override any gcc2 internal prototype to avoid an error. */
12008 /* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12011 /* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12017 char (*f) () = $ac_func;
12026 return f != $ac_func;
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>conftest.er1
12035 grep -v '^ *+' conftest.er1 >conftest.err
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 eval "$as_ac_var=no"
12060 rm -f conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12065 if test `eval echo '${'$as_ac_var'}'` = yes; then
12066 cat >>confdefs.h <<_ACEOF
12067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 echo "$as_me:$LINENO: checking for working mktime" >&5
12074 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12075 if test "${ac_cv_func_working_mktime+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 if test "$cross_compiling" = yes; then
12079 ac_cv_func_working_mktime=no
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 /* Test program from Paul Eggert and Tony Leneis. */
12088 #if TIME_WITH_SYS_TIME
12089 # include <sys/time.h>
12092 # if HAVE_SYS_TIME_H
12093 # include <sys/time.h>
12100 # include <stdlib.h>
12104 # include <unistd.h>
12108 # define alarm(X) /* empty */
12111 /* Work around redefinition to rpl_putenv by other config tests. */
12114 static time_t time_t_max;
12115 static time_t time_t_min;
12117 /* Values we'll use to set the TZ environment variable. */
12118 static char *tz_strings[] = {
12119 (char *) 0, "TZ=GMT0", "TZ=JST-9",
12120 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12122 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12124 /* Fail if mktime fails to convert a date in the spring-forward gap.
12125 Based on a problem report from Andreas Jaeger. */
12127 spring_forward_gap ()
12129 /* glibc (up to about 1998-10-07) failed this test. */
12132 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12133 instead of "TZ=America/Vancouver" in order to detect the bug even
12134 on systems that don't support the Olson extension, or don't have the
12135 full zoneinfo tables installed. */
12136 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12145 if (mktime (&tm) == (time_t)-1)
12154 if ((lt = localtime (&now)) && mktime (lt) != now)
12162 mktime_test1 (now);
12163 mktime_test1 ((time_t) (time_t_max - now));
12164 mktime_test1 ((time_t) (time_t_min + now));
12170 /* Based on code from Ariel Faigon. */
12180 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12190 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12191 now = mktime (&tm);
12192 if (now != (time_t) -1)
12194 struct tm *lt = localtime (&now);
12196 && lt->tm_year == tm.tm_year
12197 && lt->tm_mon == tm.tm_mon
12198 && lt->tm_mday == tm.tm_mday
12199 && lt->tm_hour == tm.tm_hour
12200 && lt->tm_min == tm.tm_min
12201 && lt->tm_sec == tm.tm_sec
12202 && lt->tm_yday == tm.tm_yday
12203 && lt->tm_wday == tm.tm_wday
12204 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12205 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12216 /* This test makes some buggy mktime implementations loop.
12217 Give up after 60 seconds; a mktime slower than that
12218 isn't worth using anyway. */
12221 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12224 if ((time_t) -1 < 0)
12225 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
12227 delta = time_t_max / 997; /* a suitable prime number */
12228 for (i = 0; i < N_STRINGS; i++)
12231 putenv (tz_strings[i]);
12233 for (t = 0; t <= time_t_max - delta; t += delta)
12235 mktime_test ((time_t) 1);
12236 mktime_test ((time_t) (60 * 60));
12237 mktime_test ((time_t) (60 * 60 * 24));
12239 for (j = 1; 0 < j; j *= 2)
12241 bigtime_test (j - 1);
12244 spring_forward_gap ();
12248 rm -f conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 ac_cv_func_working_mktime=yes
12261 echo "$as_me: program exited with status $ac_status" >&5
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ( exit $ac_status )
12266 ac_cv_func_working_mktime=no
12268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12271 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12272 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12273 if test $ac_cv_func_working_mktime = no; then
12275 "mktime.$ac_objext" | \
12276 *" mktime.$ac_objext" | \
12277 "mktime.$ac_objext "* | \
12278 *" mktime.$ac_objext "* ) ;;
12279 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
12293 for ac_header in stdlib.h unistd.h
12295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12297 echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12305 # Is the header compilable?
12306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12308 cat >conftest.$ac_ext <<_ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12314 $ac_includes_default
12315 #include <$ac_header>
12317 rm -f conftest.$ac_objext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319 (eval $ac_compile) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_c_werror_flag"
12327 || test ! -s conftest.err'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest.$ac_objext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_header_compiler=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_header_compiler=no
12346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12348 echo "${ECHO_T}$ac_header_compiler" >&6
12350 # Is the header present?
12351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12353 cat >conftest.$ac_ext <<_ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 #include <$ac_header>
12361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } >/dev/null; then
12369 if test -s conftest.err; then
12370 ac_cpp_err=$ac_c_preproc_warn_flag
12371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12378 if test -z "$ac_cpp_err"; then
12379 ac_header_preproc=yes
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_header_preproc=no
12386 rm -f conftest.err conftest.$ac_ext
12387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12388 echo "${ECHO_T}$ac_header_preproc" >&6
12390 # So? What about this header?
12391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12397 ac_header_preproc=yes
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12414 ## ------------------------------ ##
12415 ## Report this to bug-cvs@gnu.org ##
12416 ## ------------------------------ ##
12419 sed "s/^/$as_me: WARNING: /" >&2
12422 echo "$as_me:$LINENO: checking for $ac_header" >&5
12423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 eval "$as_ac_Header=\$ac_header_preproc"
12429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12443 for ac_func in getpagesize
12445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12446 echo "$as_me:$LINENO: checking for $ac_func" >&5
12447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12448 if eval "test \"\${$as_ac_var+set}\" = set"; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12459 #define $ac_func innocuous_$ac_func
12461 /* System header to define __stub macros and hopefully few prototypes,
12462 which can conflict with char $ac_func (); below.
12463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12464 <limits.h> exists even on freestanding compilers. */
12467 # include <limits.h>
12469 # include <assert.h>
12474 /* Override any gcc2 internal prototype to avoid an error. */
12479 /* We use char because int might match the return type of a gcc2
12480 builtin and then its argument prototype would still apply. */
12482 /* The GNU C library defines this for functions which it implements
12483 to always fail with ENOSYS. Some functions are actually named
12484 something starting with __ and the normal name is an alias. */
12485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12488 char (*f) () = $ac_func;
12497 return f != $ac_func;
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 eval "$as_ac_var=yes"
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 eval "$as_ac_var=no"
12531 rm -f conftest.err conftest.$ac_objext \
12532 conftest$ac_exeext conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12536 if test `eval echo '${'$as_ac_var'}'` = yes; then
12537 cat >>confdefs.h <<_ACEOF
12538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12544 echo "$as_me:$LINENO: checking for working mmap" >&5
12545 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12546 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 if test "$cross_compiling" = yes; then
12550 ac_cv_func_mmap_fixed_mapped=no
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12559 /* malloc might have been renamed as rpl_malloc. */
12562 /* Thanks to Mike Haertel and Jim Avera for this test.
12563 Here is a matrix of mmap possibilities:
12564 mmap private not fixed
12565 mmap private fixed at somewhere currently unmapped
12566 mmap private fixed at somewhere already mapped
12567 mmap shared not fixed
12568 mmap shared fixed at somewhere currently unmapped
12569 mmap shared fixed at somewhere already mapped
12570 For private mappings, we should verify that changes cannot be read()
12571 back from the file, nor mmap's back from the file at a different
12572 address. (There have been systems where private was not correctly
12573 implemented like the infamous i386 svr4.0, and systems where the
12574 VM page cache was not coherent with the file system buffer cache
12575 like early versions of FreeBSD and possibly contemporary NetBSD.)
12576 For shared mappings, we should conversely verify that changes get
12577 propagated back to all the places they're supposed to be.
12579 Grep wants private fixed already mapped.
12580 The main things grep needs to know about mmap are:
12581 * does it exist and is it safe to write into the mmap'd area
12582 * how to use it (BSD variants) */
12585 #include <sys/mman.h>
12587 #if !STDC_HEADERS && !HAVE_STDLIB_H
12591 /* This mess was copied from the GNU getpagesize.h. */
12592 #if !HAVE_GETPAGESIZE
12593 /* Assume that all systems that can run configure have sys/param.h. */
12594 # if !HAVE_SYS_PARAM_H
12595 # define HAVE_SYS_PARAM_H 1
12598 # ifdef _SC_PAGESIZE
12599 # define getpagesize() sysconf(_SC_PAGESIZE)
12600 # else /* no _SC_PAGESIZE */
12601 # if HAVE_SYS_PARAM_H
12602 # include <sys/param.h>
12603 # ifdef EXEC_PAGESIZE
12604 # define getpagesize() EXEC_PAGESIZE
12605 # else /* no EXEC_PAGESIZE */
12607 # define getpagesize() NBPG * CLSIZE
12610 # endif /* no CLSIZE */
12611 # else /* no NBPG */
12613 # define getpagesize() NBPC
12614 # else /* no NBPC */
12616 # define getpagesize() PAGESIZE
12617 # endif /* PAGESIZE */
12618 # endif /* no NBPC */
12619 # endif /* no NBPG */
12620 # endif /* no EXEC_PAGESIZE */
12621 # else /* no HAVE_SYS_PARAM_H */
12622 # define getpagesize() 8192 /* punt totally */
12623 # endif /* no HAVE_SYS_PARAM_H */
12624 # endif /* no _SC_PAGESIZE */
12626 #endif /* no HAVE_GETPAGESIZE */
12631 char *data, *data2, *data3;
12635 pagesize = getpagesize ();
12637 /* First, make a file with some known garbage in it. */
12638 data = (char *) malloc (pagesize);
12641 for (i = 0; i < pagesize; ++i)
12642 *(data + i) = rand ();
12644 fd = creat ("conftest.mmap", 0600);
12647 if (write (fd, data, pagesize) != pagesize)
12651 /* Next, try to mmap the file at a fixed address which already has
12652 something else allocated at it. If we can, also make sure that
12653 we see the same garbage. */
12654 fd = open ("conftest.mmap", O_RDWR);
12657 data2 = (char *) malloc (2 * pagesize);
12660 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12661 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12662 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12664 for (i = 0; i < pagesize; ++i)
12665 if (*(data + i) != *(data2 + i))
12668 /* Finally, make sure that changes to the mapped area do not
12669 percolate back to the file as seen by read(). (This is a bug on
12670 some variants of i386 svr4.0.) */
12671 for (i = 0; i < pagesize; ++i)
12672 *(data2 + i) = *(data2 + i) + 1;
12673 data3 = (char *) malloc (pagesize);
12676 if (read (fd, data3, pagesize) != pagesize)
12678 for (i = 0; i < pagesize; ++i)
12679 if (*(data + i) != *(data3 + i))
12685 rm -f conftest$ac_exeext
12686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12687 (eval $ac_link) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 ac_cv_func_mmap_fixed_mapped=yes
12698 echo "$as_me: program exited with status $ac_status" >&5
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ( exit $ac_status )
12703 ac_cv_func_mmap_fixed_mapped=no
12705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12708 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12709 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12710 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_MMAP 1
12717 rm -f conftest.mmap
12720 # Try to allow MAP_ANONYMOUS.
12721 gl_have_mmap_anonymous=no
12722 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12723 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
12724 echo $ECHO_N "checking for MAP_ANONYMOUS... $ECHO_C" >&6
12725 cat >conftest.$ac_ext <<_ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 #include <sys/mman.h>
12733 #ifdef MAP_ANONYMOUS
12734 I cant identify this map.
12738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739 $EGREP "I cant identify this map." >/dev/null 2>&1; then
12740 gl_have_mmap_anonymous=yes
12744 if test $gl_have_mmap_anonymous = no; then
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12752 #include <sys/mman.h>
12754 I cant identify this map.
12759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12760 $EGREP "MAP_ANON" >/dev/null 2>&1; then
12762 cat >>confdefs.h <<\_ACEOF
12763 #define MAP_ANONYMOUS MAP_ANON
12766 gl_have_mmap_anonymous=yes
12771 echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
12772 echo "${ECHO_T}$gl_have_mmap_anonymous" >&6
12773 if test $gl_have_mmap_anonymous = yes; then
12775 cat >>confdefs.h <<\_ACEOF
12776 #define HAVE_MAP_ANONYMOUS 1
12812 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
12813 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
12814 if test "${gl_cv_c_restrict+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 gl_cv_c_restrict=no
12818 # Try the official restrict keyword, then gcc's __restrict, and
12819 # the less common variants.
12820 for ac_kw in restrict __restrict __restrict__ _Restrict; do
12821 cat >conftest.$ac_ext <<_ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12829 rm -f conftest.$ac_objext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831 (eval $ac_compile) 2>conftest.er1
12833 grep -v '^ *+' conftest.er1 >conftest.err
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -z "$ac_c_werror_flag"
12839 || test ! -s conftest.err'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; } &&
12845 { ac_try='test -s conftest.$ac_objext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 gl_cv_c_restrict=$ac_kw; break
12853 echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12861 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
12862 echo "${ECHO_T}$gl_cv_c_restrict" >&6
12863 case $gl_cv_c_restrict in
12866 cat >>confdefs.h <<\_ACEOF
12870 *) cat >>confdefs.h <<_ACEOF
12871 #define restrict $gl_cv_c_restrict
12883 echo "$as_me:$LINENO: checking for inttypes.h" >&5
12884 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
12885 if test "${gt_cv_header_inttypes_h+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 cat >conftest.$ac_ext <<_ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 #include <sys/types.h>
12896 #include <inttypes.h>
12905 rm -f conftest.$ac_objext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>conftest.er1
12909 grep -v '^ *+' conftest.er1 >conftest.err
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
12914 { ac_try='test -z "$ac_c_werror_flag"
12915 || test ! -s conftest.err'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 gt_cv_header_inttypes_h=yes
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12932 gt_cv_header_inttypes_h=no
12934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12937 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
12938 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
12939 if test $gt_cv_header_inttypes_h = yes; then
12941 cat >>confdefs.h <<_ACEOF
12942 #define HAVE_INTTYPES_H 1
12948 for ac_func in strftime
12950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12951 echo "$as_me:$LINENO: checking for $ac_func" >&5
12952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12953 if eval "test \"\${$as_ac_var+set}\" = set"; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 cat >conftest.$ac_ext <<_ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12964 #define $ac_func innocuous_$ac_func
12966 /* System header to define __stub macros and hopefully few prototypes,
12967 which can conflict with char $ac_func (); below.
12968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12969 <limits.h> exists even on freestanding compilers. */
12972 # include <limits.h>
12974 # include <assert.h>
12979 /* Override any gcc2 internal prototype to avoid an error. */
12984 /* We use char because int might match the return type of a gcc2
12985 builtin and then its argument prototype would still apply. */
12987 /* The GNU C library defines this for functions which it implements
12988 to always fail with ENOSYS. Some functions are actually named
12989 something starting with __ and the normal name is an alias. */
12990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12993 char (*f) () = $ac_func;
13002 return f != $ac_func;
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>conftest.er1
13011 grep -v '^ *+' conftest.er1 >conftest.err
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag"
13017 || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 eval "$as_ac_var=yes"
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13034 eval "$as_ac_var=no"
13036 rm -f conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13041 if test `eval echo '${'$as_ac_var'}'` = yes; then
13042 cat >>confdefs.h <<_ACEOF
13043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13047 # strftime is in -lintl on SCO UNIX.
13048 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13049 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13050 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 ac_check_lib_save_LIBS=$LIBS
13054 LIBS="-lintl $LIBS"
13055 cat >conftest.$ac_ext <<_ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13062 /* Override any gcc2 internal prototype to avoid an error. */
13066 /* We use char because int might match the return type of a gcc2
13067 builtin and then its argument prototype would still apply. */
13077 rm -f conftest.$ac_objext conftest$ac_exeext
13078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13079 (eval $ac_link) 2>conftest.er1
13081 grep -v '^ *+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag"
13087 || test ! -s conftest.err'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 ac_cv_lib_intl_strftime=yes
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 ac_cv_lib_intl_strftime=no
13106 rm -f conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108 LIBS=$ac_check_lib_save_LIBS
13110 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13111 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13112 if test $ac_cv_lib_intl_strftime = yes; then
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_STRFTIME 1
13117 LIBS="-lintl $LIBS"
13125 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
13126 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
13127 if test "${gl_cv_func_tzset_clobber+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 if test "$cross_compiling" = yes; then
13132 gl_cv_func_tzset_clobber=yes
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13141 #if TIME_WITH_SYS_TIME
13142 # include <sys/time.h>
13145 # if HAVE_SYS_TIME_H
13146 # include <sys/time.h>
13151 #include <stdlib.h>
13156 time_t t1 = 853958121;
13158 putenv ("TZ=GMT0");
13159 p = localtime (&t1);
13161 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
13163 exit (p->tm_year != s.tm_year
13164 || p->tm_mon != s.tm_mon
13165 || p->tm_mday != s.tm_mday
13166 || p->tm_hour != s.tm_hour
13167 || p->tm_min != s.tm_min
13168 || p->tm_sec != s.tm_sec);
13172 rm -f conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174 (eval $ac_link) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 gl_cv_func_tzset_clobber=no
13185 echo "$as_me: program exited with status $ac_status" >&5
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ( exit $ac_status )
13190 gl_cv_func_tzset_clobber=yes
13192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13195 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
13196 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_RUN_TZSET_TEST 1
13204 if test $gl_cv_func_tzset_clobber = yes; then
13207 "gettimeofday.$ac_objext" | \
13208 *" gettimeofday.$ac_objext" | \
13209 "gettimeofday.$ac_objext "* | \
13210 *" gettimeofday.$ac_objext "* ) ;;
13211 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
13215 cat >>confdefs.h <<\_ACEOF
13216 #define gmtime rpl_gmtime
13220 cat >>confdefs.h <<\_ACEOF
13221 #define localtime rpl_localtime
13227 cat >>confdefs.h <<\_ACEOF
13228 #define tzset rpl_tzset
13232 cat >>confdefs.h <<\_ACEOF
13233 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
13259 "strftime.$ac_objext" | \
13260 *" strftime.$ac_objext" | \
13261 "strftime.$ac_objext "* | \
13262 *" strftime.$ac_objext "* ) ;;
13263 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" ;;
13267 # strftime.c uses the underyling system strftime if it exists.
13270 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
13306 cat >>confdefs.h <<\_ACEOF
13307 #define my_strftime nstrftime
13312 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
13313 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
13314 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 cat >conftest.$ac_ext <<_ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 $ac_includes_default
13327 #ifndef clearerr_unlocked
13328 char *p = (char *) clearerr_unlocked;
13335 rm -f conftest.$ac_objext
13336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13337 (eval $ac_compile) 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag"
13345 || test ! -s conftest.err'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_have_decl_clearerr_unlocked=yes
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ac_cv_have_decl_clearerr_unlocked=no
13364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
13367 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
13368 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
13370 cat >>confdefs.h <<_ACEOF
13371 #define HAVE_DECL_CLEARERR_UNLOCKED 1
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_DECL_CLEARERR_UNLOCKED 0
13386 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
13387 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
13388 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 $ac_includes_default
13401 #ifndef feof_unlocked
13402 char *p = (char *) feof_unlocked;
13409 rm -f conftest.$ac_objext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411 (eval $ac_compile) 2>conftest.er1
13413 grep -v '^ *+' conftest.er1 >conftest.err
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag"
13419 || test ! -s conftest.err'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; } &&
13425 { ac_try='test -s conftest.$ac_objext'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13431 ac_cv_have_decl_feof_unlocked=yes
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ac_cv_have_decl_feof_unlocked=no
13438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13440 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
13441 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
13442 if test $ac_cv_have_decl_feof_unlocked = yes; then
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_DECL_FEOF_UNLOCKED 1
13450 cat >>confdefs.h <<_ACEOF
13451 #define HAVE_DECL_FEOF_UNLOCKED 0
13460 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
13461 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
13462 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 $ac_includes_default
13475 #ifndef ferror_unlocked
13476 char *p = (char *) ferror_unlocked;
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag"
13493 || test ! -s conftest.err'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_cv_have_decl_ferror_unlocked=yes
13507 echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 ac_cv_have_decl_ferror_unlocked=no
13512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13514 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
13515 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
13516 if test $ac_cv_have_decl_ferror_unlocked = yes; then
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_DECL_FERROR_UNLOCKED 1
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_DECL_FERROR_UNLOCKED 0
13534 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
13535 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
13536 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 cat >conftest.$ac_ext <<_ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13545 $ac_includes_default
13549 #ifndef fgets_unlocked
13550 char *p = (char *) fgets_unlocked;
13557 rm -f conftest.$ac_objext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559 (eval $ac_compile) 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
13566 { ac_try='test -z "$ac_c_werror_flag"
13567 || test ! -s conftest.err'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest.$ac_objext'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_cv_have_decl_fgets_unlocked=yes
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 ac_cv_have_decl_fgets_unlocked=no
13586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
13589 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
13590 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13592 cat >>confdefs.h <<_ACEOF
13593 #define HAVE_DECL_FGETS_UNLOCKED 1
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_DECL_FGETS_UNLOCKED 0
13608 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
13609 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
13610 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 $ac_includes_default
13623 #ifndef fputc_unlocked
13624 char *p = (char *) fputc_unlocked;
13631 rm -f conftest.$ac_objext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633 (eval $ac_compile) 2>conftest.er1
13635 grep -v '^ *+' conftest.er1 >conftest.err
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_c_werror_flag"
13641 || test ! -s conftest.err'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } &&
13647 { ac_try='test -s conftest.$ac_objext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_have_decl_fputc_unlocked=yes
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 ac_cv_have_decl_fputc_unlocked=no
13660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13662 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
13663 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
13664 if test $ac_cv_have_decl_fputc_unlocked = yes; then
13666 cat >>confdefs.h <<_ACEOF
13667 #define HAVE_DECL_FPUTC_UNLOCKED 1
13672 cat >>confdefs.h <<_ACEOF
13673 #define HAVE_DECL_FPUTC_UNLOCKED 0
13682 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
13683 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
13684 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 cat >conftest.$ac_ext <<_ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 $ac_includes_default
13697 #ifndef fread_unlocked
13698 char *p = (char *) fread_unlocked;
13705 rm -f conftest.$ac_objext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707 (eval $ac_compile) 2>conftest.er1
13709 grep -v '^ *+' conftest.er1 >conftest.err
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_cv_have_decl_fread_unlocked=yes
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 ac_cv_have_decl_fread_unlocked=no
13734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
13737 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
13738 if test $ac_cv_have_decl_fread_unlocked = yes; then
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_DECL_FREAD_UNLOCKED 1
13746 cat >>confdefs.h <<_ACEOF
13747 #define HAVE_DECL_FREAD_UNLOCKED 0
13756 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
13757 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
13758 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 $ac_includes_default
13771 #ifndef fwrite_unlocked
13772 char *p = (char *) fwrite_unlocked;
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781 (eval $ac_compile) 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_c_werror_flag"
13789 || test ! -s conftest.err'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_cv_have_decl_fwrite_unlocked=yes
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_cv_have_decl_fwrite_unlocked=no
13808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13810 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
13811 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
13812 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
13814 cat >>confdefs.h <<_ACEOF
13815 #define HAVE_DECL_FWRITE_UNLOCKED 1
13820 cat >>confdefs.h <<_ACEOF
13821 #define HAVE_DECL_FWRITE_UNLOCKED 0
13830 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13831 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13832 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 $ac_includes_default
13845 #ifndef getc_unlocked
13846 char *p = (char *) getc_unlocked;
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855 (eval $ac_compile) 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
13862 { ac_try='test -z "$ac_c_werror_flag"
13863 || test ! -s conftest.err'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; } &&
13869 { ac_try='test -s conftest.$ac_objext'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_have_decl_getc_unlocked=yes
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ac_cv_have_decl_getc_unlocked=no
13882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13884 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13885 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13886 if test $ac_cv_have_decl_getc_unlocked = yes; then
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_DECL_GETC_UNLOCKED 1
13894 cat >>confdefs.h <<_ACEOF
13895 #define HAVE_DECL_GETC_UNLOCKED 0
13904 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
13905 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
13906 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 $ac_includes_default
13919 #ifndef getchar_unlocked
13920 char *p = (char *) getchar_unlocked;
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929 (eval $ac_compile) 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag"
13937 || test ! -s conftest.err'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest.$ac_objext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 ac_cv_have_decl_getchar_unlocked=yes
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_cv_have_decl_getchar_unlocked=no
13956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13958 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
13959 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
13960 if test $ac_cv_have_decl_getchar_unlocked = yes; then
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_DECL_GETCHAR_UNLOCKED 1
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_DECL_GETCHAR_UNLOCKED 0
13978 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
13979 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
13980 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 $ac_includes_default
13993 #ifndef putchar_unlocked
13994 char *p = (char *) putchar_unlocked;
14001 rm -f conftest.$ac_objext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14003 (eval $ac_compile) 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag"
14011 || test ! -s conftest.err'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest.$ac_objext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_cv_have_decl_putchar_unlocked=yes
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 ac_cv_have_decl_putchar_unlocked=no
14030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14032 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
14033 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
14034 if test $ac_cv_have_decl_putchar_unlocked = yes; then
14036 cat >>confdefs.h <<_ACEOF
14037 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
14042 cat >>confdefs.h <<_ACEOF
14043 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
14053 echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
14054 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
14055 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14073 $EGREP "yes" >/dev/null 2>&1; then
14078 if test -n "$have_eoverflow"; then
14079 ac_cv_decl_EOVERFLOW=yes
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14088 #define _XOPEN_SOURCE_EXTENDED 1
14095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14096 $EGREP "yes" >/dev/null 2>&1; then
14101 if test -n "$have_eoverflow"; then
14102 if test "$cross_compiling" = yes; then
14103 # Depending upon the size, compute the lo and hi bounds.
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14111 #define _XOPEN_SOURCE_EXTENDED 1
14113 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14115 #include <stdlib.h>
14120 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
14127 rm -f conftest.$ac_objext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>conftest.er1
14131 grep -v '^ *+' conftest.er1 >conftest.err
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -z "$ac_c_werror_flag"
14137 || test ! -s conftest.err'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; } &&
14143 { ac_try='test -s conftest.$ac_objext'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14158 #define _XOPEN_SOURCE_EXTENDED 1
14160 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14162 #include <stdlib.h>
14167 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_hi=$ac_mid; break
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_lo=`expr $ac_mid + 1`
14202 if test $ac_lo -le $ac_mid; then
14206 ac_mid=`expr 2 '*' $ac_mid + 1`
14208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 cat >conftest.$ac_ext <<_ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14221 #define _XOPEN_SOURCE_EXTENDED 1
14223 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14225 #include <stdlib.h>
14230 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239 (eval $ac_compile) 2>conftest.er1
14241 grep -v '^ *+' conftest.er1 >conftest.err
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -z "$ac_c_werror_flag"
14247 || test ! -s conftest.err'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; } &&
14253 { ac_try='test -s conftest.$ac_objext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14261 cat >conftest.$ac_ext <<_ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14268 #define _XOPEN_SOURCE_EXTENDED 1
14270 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14272 #include <stdlib.h>
14277 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>conftest.er1
14288 grep -v '^ *+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_lo=$ac_mid; break
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 ac_hi=`expr '(' $ac_mid ')' - 1`
14312 if test $ac_mid -le $ac_hi; then
14316 ac_mid=`expr 2 '*' $ac_mid`
14318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14329 # Binary search between lo and hi bounds.
14330 while test "x$ac_lo" != "x$ac_hi"; do
14331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14332 cat >conftest.$ac_ext <<_ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14339 #define _XOPEN_SOURCE_EXTENDED 1
14341 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14343 #include <stdlib.h>
14348 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1 >conftest.err
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_lo=`expr '(' $ac_mid ')' + 1`
14384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14387 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
14391 if test "$cross_compiling" = yes; then
14392 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14393 See \`config.log' for more details." >&5
14394 echo "$as_me: error: cannot run test program while cross compiling
14395 See \`config.log' for more details." >&2;}
14396 { (exit 1); exit 1; }; }
14398 cat >conftest.$ac_ext <<_ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14405 #define _XOPEN_SOURCE_EXTENDED 1
14407 /* The following two lines are a workaround against an autoconf-2.52 bug. */
14409 #include <stdlib.h>
14411 long longval () { return EOVERFLOW; }
14412 unsigned long ulongval () { return EOVERFLOW; }
14414 #include <stdlib.h>
14419 FILE *f = fopen ("conftest.val", "w");
14422 if ((EOVERFLOW) < 0)
14424 long i = longval ();
14425 if (i != (EOVERFLOW))
14427 fprintf (f, "%ld\n", i);
14431 unsigned long i = ulongval ();
14432 if (i != (EOVERFLOW))
14434 fprintf (f, "%lu\n", i);
14436 exit (ferror (f) || fclose (f) != 0);
14442 rm -f conftest$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 ac_cv_decl_EOVERFLOW=`cat conftest.val`
14455 echo "$as_me: program exited with status $ac_status" >&5
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14465 ac_cv_decl_EOVERFLOW=E2BIG
14470 echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
14471 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
14472 if test "$ac_cv_decl_EOVERFLOW" != yes; then
14474 cat >>confdefs.h <<_ACEOF
14475 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
14478 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
14483 echo "$as_me:$LINENO: checking for signed" >&5
14484 echo $ECHO_N "checking for signed... $ECHO_C" >&6
14485 if test "${bh_cv_c_signed+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 (eval $ac_compile) 2>conftest.er1
14507 grep -v '^ *+' conftest.er1 >conftest.err
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag"
14513 || test ! -s conftest.err'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest.$ac_objext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14534 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
14535 echo "${ECHO_T}$bh_cv_c_signed" >&6
14536 if test $bh_cv_c_signed = no; then
14538 cat >>confdefs.h <<\_ACEOF
14545 echo "$as_me:$LINENO: checking for wchar_t" >&5
14546 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14547 if test "${gt_cv_c_wchar_t+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 #include <stddef.h>
14557 wchar_t foo = (wchar_t)'\0';
14566 rm -f conftest.$ac_objext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>conftest.er1
14570 grep -v '^ *+' conftest.er1 >conftest.err
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag"
14576 || test ! -s conftest.err'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 gt_cv_c_wchar_t=yes
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14597 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
14598 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
14599 if test $gt_cv_c_wchar_t = yes; then
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_WCHAR_T 1
14608 echo "$as_me:$LINENO: checking for wint_t" >&5
14609 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14610 if test "${gt_cv_c_wint_t+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14620 wint_t foo = (wchar_t)'\0';
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14633 grep -v '^ *+' conftest.er1 >conftest.err
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14660 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
14661 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
14662 if test $gt_cv_c_wint_t = yes; then
14664 cat >>confdefs.h <<\_ACEOF
14665 #define HAVE_WINT_T 1
14670 echo "$as_me:$LINENO: checking for size_t" >&5
14671 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14672 if test "${ac_cv_type_size_t+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14687 if (sizeof (size_t))
14693 rm -f conftest.$ac_objext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695 (eval $ac_compile) 2>conftest.er1
14697 grep -v '^ *+' conftest.er1 >conftest.err
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try='test -z "$ac_c_werror_flag"
14703 || test ! -s conftest.err'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try='test -s conftest.$ac_objext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_type_size_t=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_type_size_t=no
14722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14724 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14725 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14726 if test $ac_cv_type_size_t = yes; then
14730 cat >>confdefs.h <<_ACEOF
14731 #define size_t unsigned
14739 echo "$as_me:$LINENO: checking for intmax_t" >&5
14740 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
14741 if test "${gt_cv_c_intmax_t+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 cat >conftest.$ac_ext <<_ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14751 #include <stddef.h>
14752 #include <stdlib.h>
14753 #if HAVE_STDINT_H_WITH_UINTMAX
14754 #include <stdint.h>
14756 #if HAVE_INTTYPES_H_WITH_UINTMAX
14757 #include <inttypes.h>
14768 rm -f conftest.$ac_objext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770 (eval $ac_compile) 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag"
14778 || test ! -s conftest.err'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest.$ac_objext'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14790 gt_cv_c_intmax_t=yes
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 gt_cv_c_intmax_t=no
14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14799 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
14800 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
14801 if test $gt_cv_c_intmax_t = yes; then
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_INTMAX_T 1
14809 test $ac_cv_type_long_long = yes \
14810 && ac_type='long long' \
14813 cat >>confdefs.h <<_ACEOF
14814 #define intmax_t $ac_type
14819 echo "$as_me:$LINENO: checking for inline" >&5
14820 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14821 if test "${ac_cv_c_inline+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 for ac_kw in inline __inline__ __inline; do
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #ifndef __cplusplus
14834 static $ac_kw foo_t static_foo () {return 0; }
14835 $ac_kw foo_t foo () {return 0; }
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841 (eval $ac_compile) 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag"
14849 || test ! -s conftest.err'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_cv_c_inline=$ac_kw; break
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14871 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14872 echo "${ECHO_T}$ac_cv_c_inline" >&6
14875 case $ac_cv_c_inline in
14878 case $ac_cv_c_inline in
14880 *) ac_val=$ac_cv_c_inline;;
14882 cat >>confdefs.h <<_ACEOF
14883 #ifndef __cplusplus
14884 #define inline $ac_val
14892 for ac_header in stdint.h
14894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14896 echo "$as_me:$LINENO: checking for $ac_header" >&5
14897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14904 # Is the header compilable?
14905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 $ac_includes_default
14914 #include <$ac_header>
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918 (eval $ac_compile) 2>conftest.er1
14920 grep -v '^ *+' conftest.er1 >conftest.err
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -z "$ac_c_werror_flag"
14926 || test ! -s conftest.err'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; } &&
14932 { ac_try='test -s conftest.$ac_objext'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_header_compiler=yes
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 ac_header_compiler=no
14945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 echo "${ECHO_T}$ac_header_compiler" >&6
14949 # Is the header present?
14950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <$ac_header>
14960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14963 grep -v '^ *+' conftest.er1 >conftest.err
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } >/dev/null; then
14968 if test -s conftest.err; then
14969 ac_cpp_err=$ac_c_preproc_warn_flag
14970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14977 if test -z "$ac_cpp_err"; then
14978 ac_header_preproc=yes
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ac_header_preproc=no
14985 rm -f conftest.err conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 echo "${ECHO_T}$ac_header_preproc" >&6
14989 # So? What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc=yes
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15013 ## ------------------------------ ##
15014 ## Report this to bug-cvs@gnu.org ##
15015 ## ------------------------------ ##
15018 sed "s/^/$as_me: WARNING: /" >&2
15021 echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 eval "$as_ac_Header=\$ac_header_preproc"
15028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15033 cat >>confdefs.h <<_ACEOF
15034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15041 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
15042 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
15044 cat >conftest.$ac_ext <<_ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h. */
15051 #include <limits.h>
15053 #include <stdint.h>
15060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15061 $EGREP "Found it" >/dev/null 2>&1; then
15066 if test -z "$result"; then
15067 if test "$cross_compiling" = yes; then
15068 # Depending upon the size, compute the lo and hi bounds.
15069 cat >conftest.$ac_ext <<_ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 #include <stddef.h>
15079 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
15086 rm -f conftest.$ac_objext
15087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15088 (eval $ac_compile) 2>conftest.er1
15090 grep -v '^ *+' conftest.er1 >conftest.err
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } &&
15095 { ac_try='test -z "$ac_c_werror_flag"
15096 || test ! -s conftest.err'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest.$ac_objext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15110 cat >conftest.$ac_ext <<_ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 #include <stddef.h>
15120 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
15127 rm -f conftest.$ac_objext
15128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15129 (eval $ac_compile) 2>conftest.er1
15131 grep -v '^ *+' conftest.er1 >conftest.err
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
15136 { ac_try='test -z "$ac_c_werror_flag"
15137 || test ! -s conftest.err'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest.$ac_objext'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 ac_hi=$ac_mid; break
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_lo=`expr $ac_mid + 1`
15155 if test $ac_lo -le $ac_mid; then
15159 ac_mid=`expr 2 '*' $ac_mid + 1`
15161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #include <stddef.h>
15177 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
15184 rm -f conftest.$ac_objext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186 (eval $ac_compile) 2>conftest.er1
15188 grep -v '^ *+' conftest.er1 >conftest.err
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try='test -z "$ac_c_werror_flag"
15194 || test ! -s conftest.err'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 #include <stddef.h>
15218 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
15225 rm -f conftest.$ac_objext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15227 (eval $ac_compile) 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_objext'
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_lo=$ac_mid; break
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 ac_hi=`expr '(' $ac_mid ')' - 1`
15253 if test $ac_mid -le $ac_hi; then
15257 ac_mid=`expr 2 '*' $ac_mid`
15259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15270 # Binary search between lo and hi bounds.
15271 while test "x$ac_lo" != "x$ac_hi"; do
15272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 #include <stddef.h>
15283 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
15290 rm -f conftest.$ac_objext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15292 (eval $ac_compile) 2>conftest.er1
15294 grep -v '^ *+' conftest.er1 >conftest.err
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } &&
15299 { ac_try='test -z "$ac_c_werror_flag"
15300 || test ! -s conftest.err'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try='test -s conftest.$ac_objext'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 ac_lo=`expr '(' $ac_mid ')' + 1`
15319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15322 ?*) res_hi=$ac_lo;;
15326 if test "$cross_compiling" = yes; then
15327 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15328 See \`config.log' for more details." >&5
15329 echo "$as_me: error: cannot run test program while cross compiling
15330 See \`config.log' for more details." >&2;}
15331 { (exit 1); exit 1; }; }
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 #include <stddef.h>
15340 long longval () { return ~(size_t)0 / 10; }
15341 unsigned long ulongval () { return ~(size_t)0 / 10; }
15343 #include <stdlib.h>
15348 FILE *f = fopen ("conftest.val", "w");
15351 if ((~(size_t)0 / 10) < 0)
15353 long i = longval ();
15354 if (i != (~(size_t)0 / 10))
15356 fprintf (f, "%ld\n", i);
15360 unsigned long i = ulongval ();
15361 if (i != (~(size_t)0 / 10))
15363 fprintf (f, "%lu\n", i);
15365 exit (ferror (f) || fclose (f) != 0);
15371 rm -f conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373 (eval $ac_link) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 res_hi=`cat conftest.val`
15384 echo "$as_me: program exited with status $ac_status" >&5
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ( exit $ac_status )
15391 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15395 if test "$cross_compiling" = yes; then
15396 # Depending upon the size, compute the lo and hi bounds.
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 #include <stddef.h>
15407 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416 (eval $ac_compile) 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag"
15424 || test ! -s conftest.err'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15438 cat >conftest.$ac_ext <<_ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 #include <stddef.h>
15448 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_hi=$ac_mid; break
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_lo=`expr $ac_mid + 1`
15483 if test $ac_lo -le $ac_mid; then
15487 ac_mid=`expr 2 '*' $ac_mid + 1`
15489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <stddef.h>
15505 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
15512 rm -f conftest.$ac_objext
15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514 (eval $ac_compile) 2>conftest.er1
15516 grep -v '^ *+' conftest.er1 >conftest.err
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
15521 { ac_try='test -z "$ac_c_werror_flag"
15522 || test ! -s conftest.err'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <stddef.h>
15546 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
15553 rm -f conftest.$ac_objext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15555 (eval $ac_compile) 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try='test -z "$ac_c_werror_flag"
15563 || test ! -s conftest.err'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest.$ac_objext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575 ac_lo=$ac_mid; break
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15580 ac_hi=`expr '(' $ac_mid ')' - 1`
15581 if test $ac_mid -le $ac_hi; then
15585 ac_mid=`expr 2 '*' $ac_mid`
15587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15590 echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598 # Binary search between lo and hi bounds.
15599 while test "x$ac_lo" != "x$ac_hi"; do
15600 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15601 cat >conftest.$ac_ext <<_ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15607 #include <stddef.h>
15611 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag"
15628 || test ! -s conftest.err'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15642 echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ac_lo=`expr '(' $ac_mid ')' + 1`
15647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15650 ?*) res_lo=$ac_lo;;
15654 if test "$cross_compiling" = yes; then
15655 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15656 See \`config.log' for more details." >&5
15657 echo "$as_me: error: cannot run test program while cross compiling
15658 See \`config.log' for more details." >&2;}
15659 { (exit 1); exit 1; }; }
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 #include <stddef.h>
15668 long longval () { return ~(size_t)0 % 10; }
15669 unsigned long ulongval () { return ~(size_t)0 % 10; }
15671 #include <stdlib.h>
15676 FILE *f = fopen ("conftest.val", "w");
15679 if ((~(size_t)0 % 10) < 0)
15681 long i = longval ();
15682 if (i != (~(size_t)0 % 10))
15684 fprintf (f, "%ld\n", i);
15688 unsigned long i = ulongval ();
15689 if (i != (~(size_t)0 % 10))
15691 fprintf (f, "%lu\n", i);
15693 exit (ferror (f) || fclose (f) != 0);
15699 rm -f conftest$ac_exeext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701 (eval $ac_link) 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15710 res_lo=`cat conftest.val`
15712 echo "$as_me: program exited with status $ac_status" >&5
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 ( exit $ac_status )
15719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15723 if test "$cross_compiling" = yes; then
15724 # Depending upon the size, compute the lo and hi bounds.
15725 cat >conftest.$ac_ext <<_ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 #include <stddef.h>
15735 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>conftest.er1
15746 grep -v '^ *+' conftest.er1 >conftest.err
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15766 cat >conftest.$ac_ext <<_ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <stddef.h>
15776 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_hi=$ac_mid; break
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_lo=`expr $ac_mid + 1`
15811 if test $ac_lo -le $ac_mid; then
15815 ac_mid=`expr 2 '*' $ac_mid + 1`
15817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 cat >conftest.$ac_ext <<_ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 #include <stddef.h>
15833 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842 (eval $ac_compile) 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag"
15850 || test ! -s conftest.err'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }; then
15864 cat >conftest.$ac_ext <<_ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 #include <stddef.h>
15874 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 ac_lo=$ac_mid; break
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_hi=`expr '(' $ac_mid ')' - 1`
15909 if test $ac_mid -le $ac_hi; then
15913 ac_mid=`expr 2 '*' $ac_mid`
15915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15926 # Binary search between lo and hi bounds.
15927 while test "x$ac_lo" != "x$ac_hi"; do
15928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 #include <stddef.h>
15939 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15946 rm -f conftest.$ac_objext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>conftest.er1
15950 grep -v '^ *+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag"
15956 || test ! -s conftest.err'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try='test -s conftest.$ac_objext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_lo=`expr '(' $ac_mid ')' + 1`
15975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15978 ?*) fits_in_uint=$ac_lo;;
15982 if test "$cross_compiling" = yes; then
15983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15984 See \`config.log' for more details." >&5
15985 echo "$as_me: error: cannot run test program while cross compiling
15986 See \`config.log' for more details." >&2;}
15987 { (exit 1); exit 1; }; }
15989 cat >conftest.$ac_ext <<_ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 #include <stddef.h>
15996 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
15997 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
15999 #include <stdlib.h>
16004 FILE *f = fopen ("conftest.val", "w");
16007 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
16009 long i = longval ();
16010 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
16012 fprintf (f, "%ld\n", i);
16016 unsigned long i = ulongval ();
16017 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
16019 fprintf (f, "%lu\n", i);
16021 exit (ferror (f) || fclose (f) != 0);
16027 rm -f conftest$ac_exeext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029 (eval $ac_link) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 fits_in_uint=`cat conftest.val`
16040 echo "$as_me: program exited with status $ac_status" >&5
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ( exit $ac_status )
16047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16051 if test "$fits_in_uint" = 1; then
16052 cat >conftest.$ac_ext <<_ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 #include <stddef.h>
16060 extern unsigned long foo;
16070 rm -f conftest.$ac_objext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072 (eval $ac_compile) 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16100 if test -z "$result"; then
16101 if test "$fits_in_uint" = 1; then
16102 result="$res_hi$res_lo"U
16104 result="$res_hi$res_lo"UL
16107 result='~(size_t)0'
16110 echo "$as_me:$LINENO: result: $result" >&5
16111 echo "${ECHO_T}$result" >&6
16112 if test "$result" != yes; then
16114 cat >>confdefs.h <<_ACEOF
16115 #define SIZE_MAX $result
16126 if test $ac_cv_func_alloca_works = no; then
16130 # Define an additional variable used in the Makefile substitution.
16131 if test $ac_cv_working_alloca_h = yes; then
16132 cat >conftest.$ac_ext <<_ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16139 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16145 $EGREP "Need own alloca" >/dev/null 2>&1; then
16147 cat >>confdefs.h <<\_ACEOF
16148 #define HAVE_ALLOCA 1
16163 cat >>confdefs.h <<\_ACEOF
16164 #define HAVE_ALLOCA_H 1
16176 for ac_func in atexit
16178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179 echo "$as_me:$LINENO: checking for $ac_func" >&5
16180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16181 if eval "test \"\${$as_ac_var+set}\" = set"; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 cat >conftest.$ac_ext <<_ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16192 #define $ac_func innocuous_$ac_func
16194 /* System header to define __stub macros and hopefully few prototypes,
16195 which can conflict with char $ac_func (); below.
16196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16197 <limits.h> exists even on freestanding compilers. */
16200 # include <limits.h>
16202 # include <assert.h>
16207 /* Override any gcc2 internal prototype to avoid an error. */
16212 /* We use char because int might match the return type of a gcc2
16213 builtin and then its argument prototype would still apply. */
16215 /* The GNU C library defines this for functions which it implements
16216 to always fail with ENOSYS. Some functions are actually named
16217 something starting with __ and the normal name is an alias. */
16218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16221 char (*f) () = $ac_func;
16230 return f != $ac_func;
16235 rm -f conftest.$ac_objext conftest$ac_exeext
16236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16237 (eval $ac_link) 2>conftest.er1
16239 grep -v '^ *+' conftest.er1 >conftest.err
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try='test -z "$ac_c_werror_flag"
16245 || test ! -s conftest.err'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest$ac_exeext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 eval "$as_ac_var=yes"
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 eval "$as_ac_var=no"
16264 rm -f conftest.err conftest.$ac_objext \
16265 conftest$ac_exeext conftest.$ac_ext
16267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16269 if test `eval echo '${'$as_ac_var'}'` = yes; then
16270 cat >>confdefs.h <<_ACEOF
16271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16276 "$ac_func.$ac_objext" | \
16277 *" $ac_func.$ac_objext" | \
16278 "$ac_func.$ac_objext "* | \
16279 *" $ac_func.$ac_objext "* ) ;;
16280 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16287 if test $ac_cv_func_atexit = no; then
16295 echo "$as_me:$LINENO: checking whether this system has a definition of PATH_MAX" >&5
16296 echo $ECHO_N "checking whether this system has a definition of PATH_MAX... $ECHO_C" >&6
16297 if test "${gl_have_path_max_definition+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 #include <unistd.h>
16307 #include <limits.h>
16309 have_path_max_definition
16312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16313 $EGREP "have_path_max_definition" >/dev/null 2>&1; then
16314 gl_have_path_max_definition=yes
16316 gl_have_path_max_definition=no
16321 echo "$as_me:$LINENO: result: $gl_have_path_max_definition" >&5
16322 echo "${ECHO_T}$gl_have_path_max_definition" >&6
16324 if test $gl_have_path_max_definition; then
16326 "chdir-long.$ac_objext" | \
16327 *" chdir-long.$ac_objext" | \
16328 "chdir-long.$ac_objext "* | \
16329 *" chdir-long.$ac_objext "* ) ;;
16330 *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext" ;;
16337 # Define two additional variables used in the Makefile substitution.
16339 if test "$ac_cv_header_stdbool_h" = yes; then
16342 STDBOOL_H='stdbool.h'
16346 if test "$ac_cv_type__Bool" = yes; then
16359 for ac_func in mempcpy
16361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16362 echo "$as_me:$LINENO: checking for $ac_func" >&5
16363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16364 if eval "test \"\${$as_ac_var+set}\" = set"; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16375 #define $ac_func innocuous_$ac_func
16377 /* System header to define __stub macros and hopefully few prototypes,
16378 which can conflict with char $ac_func (); below.
16379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16380 <limits.h> exists even on freestanding compilers. */
16383 # include <limits.h>
16385 # include <assert.h>
16390 /* Override any gcc2 internal prototype to avoid an error. */
16395 /* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16398 /* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16404 char (*f) () = $ac_func;
16413 return f != $ac_func;
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16420 (eval $ac_link) 2>conftest.er1
16422 grep -v '^ *+' conftest.er1 >conftest.err
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -z "$ac_c_werror_flag"
16428 || test ! -s conftest.err'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; } &&
16434 { ac_try='test -s conftest$ac_exeext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 eval "$as_ac_var=yes"
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 eval "$as_ac_var=no"
16447 rm -f conftest.err conftest.$ac_objext \
16448 conftest$ac_exeext conftest.$ac_ext
16450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16452 if test `eval echo '${'$as_ac_var'}'` = yes; then
16453 cat >>confdefs.h <<_ACEOF
16454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16459 "$ac_func.$ac_objext" | \
16460 *" $ac_func.$ac_objext" | \
16461 "$ac_func.$ac_objext "* | \
16462 *" $ac_func.$ac_objext "* ) ;;
16463 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16470 if test $ac_cv_func_mempcpy = no; then
16480 for ac_func in openat
16482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16483 echo "$as_me:$LINENO: checking for $ac_func" >&5
16484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16485 if eval "test \"\${$as_ac_var+set}\" = set"; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16496 #define $ac_func innocuous_$ac_func
16498 /* System header to define __stub macros and hopefully few prototypes,
16499 which can conflict with char $ac_func (); below.
16500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16501 <limits.h> exists even on freestanding compilers. */
16504 # include <limits.h>
16506 # include <assert.h>
16511 /* Override any gcc2 internal prototype to avoid an error. */
16516 /* We use char because int might match the return type of a gcc2
16517 builtin and then its argument prototype would still apply. */
16519 /* The GNU C library defines this for functions which it implements
16520 to always fail with ENOSYS. Some functions are actually named
16521 something starting with __ and the normal name is an alias. */
16522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16525 char (*f) () = $ac_func;
16534 return f != $ac_func;
16539 rm -f conftest.$ac_objext conftest$ac_exeext
16540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541 (eval $ac_link) 2>conftest.er1
16543 grep -v '^ *+' conftest.er1 >conftest.err
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -z "$ac_c_werror_flag"
16549 || test ! -s conftest.err'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest$ac_exeext'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 eval "$as_ac_var=yes"
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 eval "$as_ac_var=no"
16568 rm -f conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16573 if test `eval echo '${'$as_ac_var'}'` = yes; then
16574 cat >>confdefs.h <<_ACEOF
16575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16580 "$ac_func.$ac_objext" | \
16581 *" $ac_func.$ac_objext" | \
16582 "$ac_func.$ac_objext "* | \
16583 *" $ac_func.$ac_objext "* ) ;;
16584 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16591 case $ac_cv_func_openat in
16595 cat >>confdefs.h <<\_ACEOF
16596 #define __OPENAT_PREFIX rpl_
16618 for ac_func in memrchr
16620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16621 echo "$as_me:$LINENO: checking for $ac_func" >&5
16622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16623 if eval "test \"\${$as_ac_var+set}\" = set"; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16634 #define $ac_func innocuous_$ac_func
16636 /* System header to define __stub macros and hopefully few prototypes,
16637 which can conflict with char $ac_func (); below.
16638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639 <limits.h> exists even on freestanding compilers. */
16642 # include <limits.h>
16644 # include <assert.h>
16649 /* Override any gcc2 internal prototype to avoid an error. */
16654 /* We use char because int might match the return type of a gcc2
16655 builtin and then its argument prototype would still apply. */
16657 /* The GNU C library defines this for functions which it implements
16658 to always fail with ENOSYS. Some functions are actually named
16659 something starting with __ and the normal name is an alias. */
16660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16663 char (*f) () = $ac_func;
16672 return f != $ac_func;
16677 rm -f conftest.$ac_objext conftest$ac_exeext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679 (eval $ac_link) 2>conftest.er1
16681 grep -v '^ *+' conftest.er1 >conftest.err
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
16686 { ac_try='test -z "$ac_c_werror_flag"
16687 || test ! -s conftest.err'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; } &&
16693 { ac_try='test -s conftest$ac_exeext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 eval "$as_ac_var=yes"
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 eval "$as_ac_var=no"
16706 rm -f conftest.err conftest.$ac_objext \
16707 conftest$ac_exeext conftest.$ac_ext
16709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16718 "$ac_func.$ac_objext" | \
16719 *" $ac_func.$ac_objext" | \
16720 "$ac_func.$ac_objext "* | \
16721 *" $ac_func.$ac_objext "* ) ;;
16722 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16729 if test $ac_cv_func_memrchr = no; then
16739 "closeout.$ac_objext" | \
16740 *" closeout.$ac_objext" | \
16741 "closeout.$ac_objext "* | \
16742 *" closeout.$ac_objext "* ) ;;
16743 *) LIBOBJS="$LIBOBJS closeout.$ac_objext" ;;
16752 "dirname.$ac_objext" | \
16753 *" dirname.$ac_objext" | \
16754 "dirname.$ac_objext "* | \
16755 *" dirname.$ac_objext "* ) ;;
16756 *) LIBOBJS="$LIBOBJS dirname.$ac_objext" ;;
16765 for ac_func in dup2
16767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16770 if eval "test \"\${$as_ac_var+set}\" = set"; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 cat >conftest.$ac_ext <<_ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16781 #define $ac_func innocuous_$ac_func
16783 /* System header to define __stub macros and hopefully few prototypes,
16784 which can conflict with char $ac_func (); below.
16785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 <limits.h> exists even on freestanding compilers. */
16789 # include <limits.h>
16791 # include <assert.h>
16796 /* Override any gcc2 internal prototype to avoid an error. */
16801 /* We use char because int might match the return type of a gcc2
16802 builtin and then its argument prototype would still apply. */
16804 /* The GNU C library defines this for functions which it implements
16805 to always fail with ENOSYS. Some functions are actually named
16806 something starting with __ and the normal name is an alias. */
16807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16810 char (*f) () = $ac_func;
16819 return f != $ac_func;
16824 rm -f conftest.$ac_objext conftest$ac_exeext
16825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16826 (eval $ac_link) 2>conftest.er1
16828 grep -v '^ *+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag"
16834 || test ! -s conftest.err'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest$ac_exeext'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 eval "$as_ac_var=yes"
16848 echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16851 eval "$as_ac_var=no"
16853 rm -f conftest.err conftest.$ac_objext \
16854 conftest$ac_exeext conftest.$ac_ext
16856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16858 if test `eval echo '${'$as_ac_var'}'` = yes; then
16859 cat >>confdefs.h <<_ACEOF
16860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16865 "$ac_func.$ac_objext" | \
16866 *" $ac_func.$ac_objext" | \
16867 "$ac_func.$ac_objext "* | \
16868 *" $ac_func.$ac_objext "* ) ;;
16869 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16876 if test $ac_cv_func_dup2 = no; then
16900 "exitfail.$ac_objext" | \
16901 *" exitfail.$ac_objext" | \
16902 "exitfail.$ac_objext "* | \
16903 *" exitfail.$ac_objext "* ) ;;
16904 *) LIBOBJS="$LIBOBJS exitfail.$ac_objext" ;;
16910 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
16913 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16914 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16915 if test "${ac_cv_func_fnmatch_posix+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 if test "$cross_compiling" = yes; then
16919 ac_cv_func_fnmatch_posix=cross
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16928 # include <stdlib.h>
16929 # include <fnmatch.h>
16930 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16931 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16937 (!(y ("a*", "abc", 0)
16938 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16939 && y ("a\\\\bc", "abc", 0)
16940 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16941 && y ("*x", ".x", 0)
16942 && n ("*x", ".x", FNM_PERIOD)
16948 rm -f conftest$ac_exeext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16950 (eval $ac_link) 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_func_fnmatch_posix=yes
16961 echo "$as_me: program exited with status $ac_status" >&5
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ( exit $ac_status )
16966 ac_cv_func_fnmatch_posix=no
16968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16971 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
16972 echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6
16973 if test $ac_cv_func_fnmatch_posix = yes; then
16974 rm -f lib/fnmatch.h
16976 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16977 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16978 if test "${ac_cv_have_decl_getenv+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 cat >conftest.$ac_ext <<_ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h. */
16987 $ac_includes_default
16992 char *p = (char *) getenv;
16999 rm -f conftest.$ac_objext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17001 (eval $ac_compile) 2>conftest.er1
17003 grep -v '^ *+' conftest.er1 >conftest.err
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
17008 { ac_try='test -z "$ac_c_werror_flag"
17009 || test ! -s conftest.err'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest.$ac_objext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_have_decl_getenv=yes
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_have_decl_getenv=no
17028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17031 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17032 if test $ac_cv_have_decl_getenv = yes; then
17034 cat >>confdefs.h <<_ACEOF
17035 #define HAVE_DECL_GETENV 1
17040 cat >>confdefs.h <<_ACEOF
17041 #define HAVE_DECL_GETENV 0
17054 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
17056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17057 echo "$as_me:$LINENO: checking for $ac_func" >&5
17058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17059 if eval "test \"\${$as_ac_var+set}\" = set"; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 cat >conftest.$ac_ext <<_ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17070 #define $ac_func innocuous_$ac_func
17072 /* System header to define __stub macros and hopefully few prototypes,
17073 which can conflict with char $ac_func (); below.
17074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17075 <limits.h> exists even on freestanding compilers. */
17078 # include <limits.h>
17080 # include <assert.h>
17085 /* Override any gcc2 internal prototype to avoid an error. */
17090 /* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
17093 /* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17099 char (*f) () = $ac_func;
17108 return f != $ac_func;
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115 (eval $ac_link) 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest$ac_exeext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 eval "$as_ac_var=yes"
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 eval "$as_ac_var=no"
17142 rm -f conftest.err conftest.$ac_objext \
17143 conftest$ac_exeext conftest.$ac_ext
17145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17147 if test `eval echo '${'$as_ac_var'}'` = yes; then
17148 cat >>confdefs.h <<_ACEOF
17149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17157 for ac_header in wchar.h wctype.h
17159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17161 echo "$as_me:$LINENO: checking for $ac_header" >&5
17162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17169 # Is the header compilable?
17170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17172 cat >conftest.$ac_ext <<_ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 $ac_includes_default
17179 #include <$ac_header>
17181 rm -f conftest.$ac_objext
17182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183 (eval $ac_compile) 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag"
17191 || test ! -s conftest.err'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest.$ac_objext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_header_compiler=yes
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ac_header_compiler=no
17210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17212 echo "${ECHO_T}$ac_header_compiler" >&6
17214 # Is the header present?
17215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17217 cat >conftest.$ac_ext <<_ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 #include <$ac_header>
17225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17228 grep -v '^ *+' conftest.er1 >conftest.err
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } >/dev/null; then
17233 if test -s conftest.err; then
17234 ac_cpp_err=$ac_c_preproc_warn_flag
17235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17242 if test -z "$ac_cpp_err"; then
17243 ac_header_preproc=yes
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ac_header_preproc=no
17250 rm -f conftest.err conftest.$ac_ext
17251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17252 echo "${ECHO_T}$ac_header_preproc" >&6
17254 # So? What about this header?
17255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17261 ac_header_preproc=yes
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17278 ## ------------------------------ ##
17279 ## Report this to bug-cvs@gnu.org ##
17280 ## ------------------------------ ##
17283 sed "s/^/$as_me: WARNING: /" >&2
17286 echo "$as_me:$LINENO: checking for $ac_header" >&5
17287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 eval "$as_ac_Header=\$ac_header_preproc"
17293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17298 cat >>confdefs.h <<_ACEOF
17299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17307 "fnmatch.$ac_objext" | \
17308 *" fnmatch.$ac_objext" | \
17309 "fnmatch.$ac_objext "* | \
17310 *" fnmatch.$ac_objext "* ) ;;
17311 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
17314 FNMATCH_H=fnmatch.h
17319 if test $ac_cv_func_fnmatch_posix != yes; then
17321 cat >>confdefs.h <<\_ACEOF
17322 #define fnmatch posix_fnmatch
17332 for ac_header in stdio_ext.h
17334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17336 echo "$as_me:$LINENO: checking for $ac_header" >&5
17337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17344 # Is the header compilable?
17345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17347 cat >conftest.$ac_ext <<_ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 $ac_includes_default
17354 #include <$ac_header>
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358 (eval $ac_compile) 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag"
17366 || test ! -s conftest.err'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_header_compiler=yes
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ac_header_compiler=no
17385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17387 echo "${ECHO_T}$ac_header_compiler" >&6
17389 # Is the header present?
17390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17392 cat >conftest.$ac_ext <<_ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 #include <$ac_header>
17400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17403 grep -v '^ *+' conftest.er1 >conftest.err
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } >/dev/null; then
17408 if test -s conftest.err; then
17409 ac_cpp_err=$ac_c_preproc_warn_flag
17410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17417 if test -z "$ac_cpp_err"; then
17418 ac_header_preproc=yes
17420 echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 ac_header_preproc=no
17425 rm -f conftest.err conftest.$ac_ext
17426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17427 echo "${ECHO_T}$ac_header_preproc" >&6
17429 # So? What about this header?
17430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17436 ac_header_preproc=yes
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17453 ## ------------------------------ ##
17454 ## Report this to bug-cvs@gnu.org ##
17455 ## ------------------------------ ##
17458 sed "s/^/$as_me: WARNING: /" >&2
17461 echo "$as_me:$LINENO: checking for $ac_header" >&5
17462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 eval "$as_ac_Header=\$ac_header_preproc"
17468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17473 cat >>confdefs.h <<_ACEOF
17474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17482 for ac_func in __fpending
17484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17485 echo "$as_me:$LINENO: checking for $ac_func" >&5
17486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17487 if eval "test \"\${$as_ac_var+set}\" = set"; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 cat >conftest.$ac_ext <<_ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17498 #define $ac_func innocuous_$ac_func
17500 /* System header to define __stub macros and hopefully few prototypes,
17501 which can conflict with char $ac_func (); below.
17502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17503 <limits.h> exists even on freestanding compilers. */
17506 # include <limits.h>
17508 # include <assert.h>
17513 /* Override any gcc2 internal prototype to avoid an error. */
17518 /* We use char because int might match the return type of a gcc2
17519 builtin and then its argument prototype would still apply. */
17521 /* The GNU C library defines this for functions which it implements
17522 to always fail with ENOSYS. Some functions are actually named
17523 something starting with __ and the normal name is an alias. */
17524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17527 char (*f) () = $ac_func;
17536 return f != $ac_func;
17541 rm -f conftest.$ac_objext conftest$ac_exeext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17543 (eval $ac_link) 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -z "$ac_c_werror_flag"
17551 || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest$ac_exeext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 eval "$as_ac_var=yes"
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 eval "$as_ac_var=no"
17570 rm -f conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
17573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576 cat >>confdefs.h <<_ACEOF
17577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582 "$ac_func.$ac_objext" | \
17583 *" $ac_func.$ac_objext" | \
17584 "$ac_func.$ac_objext "* | \
17585 *" $ac_func.$ac_objext "* ) ;;
17586 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17594 # if HAVE_STDIO_EXT_H
17595 # include <stdio_ext.h>
17598 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
17599 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
17600 if test "${ac_cv_have_decl___fpending+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 cat >conftest.$ac_ext <<_ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17615 char *p = (char *) __fpending;
17622 rm -f conftest.$ac_objext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624 (eval $ac_compile) 2>conftest.er1
17626 grep -v '^ *+' conftest.er1 >conftest.err
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try='test -z "$ac_c_werror_flag"
17632 || test ! -s conftest.err'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest.$ac_objext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_cv_have_decl___fpending=yes
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 ac_cv_have_decl___fpending=no
17651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17653 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
17654 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
17655 if test $ac_cv_have_decl___fpending = yes; then
17657 cat >>confdefs.h <<_ACEOF
17658 #define HAVE_DECL___FPENDING 1
17663 cat >>confdefs.h <<_ACEOF
17664 #define HAVE_DECL___FPENDING 0
17671 if test $ac_cv_func___fpending = no; then
17672 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
17673 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
17674 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 'fp->_IO_write_ptr - fp->_IO_write_base' \
17683 '# traditional Unix' \
17684 'fp->_ptr - fp->_base' \
17687 'fp->_p - fp->_bf._base' \
17689 '# SCO, Unixware' \
17690 'fp->__ptr - fp->__base' \
17693 'fp->__bufp - fp->__buffer' \
17695 '# old glibc iostream?' \
17696 'fp->_pptr - fp->_pbase' \
17699 '(*fp)->_ptr - (*fp)->_base' \
17701 '# e.g., DGUX R4.11; the info is not available' \
17705 # Skip each embedded comment.
17706 case "$ac_expr" in '#'*) continue;; esac
17708 cat >conftest.$ac_ext <<_ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17719 FILE *fp = stdin; (void) ($ac_expr);
17724 rm -f conftest.$ac_objext
17725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17726 (eval $ac_compile) 2>conftest.er1
17728 grep -v '^ *+' conftest.er1 >conftest.err
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } &&
17733 { ac_try='test -z "$ac_c_werror_flag"
17734 || test ! -s conftest.err'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; } &&
17740 { ac_try='test -s conftest.$ac_objext'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17754 test "$fp_done" = yes && break
17757 ac_cv_sys_pending_output_n_bytes=$ac_expr
17761 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
17762 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
17764 cat >>confdefs.h <<_ACEOF
17765 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
17772 for ac_func in ftruncate
17774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17775 echo "$as_me:$LINENO: checking for $ac_func" >&5
17776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17777 if eval "test \"\${$as_ac_var+set}\" = set"; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 cat >conftest.$ac_ext <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17788 #define $ac_func innocuous_$ac_func
17790 /* System header to define __stub macros and hopefully few prototypes,
17791 which can conflict with char $ac_func (); below.
17792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17793 <limits.h> exists even on freestanding compilers. */
17796 # include <limits.h>
17798 # include <assert.h>
17803 /* Override any gcc2 internal prototype to avoid an error. */
17808 /* We use char because int might match the return type of a gcc2
17809 builtin and then its argument prototype would still apply. */
17811 /* The GNU C library defines this for functions which it implements
17812 to always fail with ENOSYS. Some functions are actually named
17813 something starting with __ and the normal name is an alias. */
17814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17817 char (*f) () = $ac_func;
17826 return f != $ac_func;
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833 (eval $ac_link) 2>conftest.er1
17835 grep -v '^ *+' conftest.er1 >conftest.err
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest$ac_exeext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 eval "$as_ac_var=yes"
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17858 eval "$as_ac_var=no"
17860 rm -f conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17865 if test `eval echo '${'$as_ac_var'}'` = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17872 "$ac_func.$ac_objext" | \
17873 *" $ac_func.$ac_objext" | \
17874 "$ac_func.$ac_objext "* | \
17875 *" $ac_func.$ac_objext "* ) ;;
17876 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17883 if test $ac_cv_func_ftruncate = no; then
17893 for ac_func in chsize
17895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17896 echo "$as_me:$LINENO: checking for $ac_func" >&5
17897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17898 if eval "test \"\${$as_ac_var+set}\" = set"; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 cat >conftest.$ac_ext <<_ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17909 #define $ac_func innocuous_$ac_func
17911 /* System header to define __stub macros and hopefully few prototypes,
17912 which can conflict with char $ac_func (); below.
17913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17914 <limits.h> exists even on freestanding compilers. */
17917 # include <limits.h>
17919 # include <assert.h>
17924 /* Override any gcc2 internal prototype to avoid an error. */
17929 /* We use char because int might match the return type of a gcc2
17930 builtin and then its argument prototype would still apply. */
17932 /* The GNU C library defines this for functions which it implements
17933 to always fail with ENOSYS. Some functions are actually named
17934 something starting with __ and the normal name is an alias. */
17935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17938 char (*f) () = $ac_func;
17947 return f != $ac_func;
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954 (eval $ac_link) 2>conftest.er1
17956 grep -v '^ *+' conftest.er1 >conftest.err
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
17961 { ac_try='test -z "$ac_c_werror_flag"
17962 || test ! -s conftest.err'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 eval "$as_ac_var=yes"
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 eval "$as_ac_var=no"
17981 rm -f conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17986 if test `eval echo '${'$as_ac_var'}'` = yes; then
17987 cat >>confdefs.h <<_ACEOF
17988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18000 case $gl_cv_func_getcwd_null in
18017 echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
18018 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6
18019 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18022 # Arrange for deletion of the temporary directory this test creates.
18023 ac_clean_files="$ac_clean_files confdir3"
18024 if test "$cross_compiling" = yes; then
18025 gl_cv_func_getcwd_path_max=no
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18035 #include <stdlib.h>
18036 #include <unistd.h>
18037 #include <string.h>
18038 #include <limits.h>
18039 #include <sys/stat.h>
18040 #include <sys/types.h>
18042 # include <fcntl.h>
18046 # define AT_FDCWD 0
18048 #ifdef ENAMETOOLONG
18049 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
18051 # define is_ENAMETOOLONG(x) 0
18054 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18058 # define S_IRWXU 0700
18061 /* The length of this name must be 8. */
18062 #define DIR_NAME "confdir3"
18063 #define DIR_NAME_LEN 8
18064 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
18066 /* The length of "../". */
18067 #define DOTDOTSLASH_LEN 3
18069 /* Leftover bytes in the buffer, to work around library or OS bugs. */
18070 #define BUF_SLOP 20
18076 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
18077 at least not on a local file system. And if we were to start worrying
18078 about remote file systems, we'd have to enable the wrapper function
18079 all of the time, just to be safe. That's not worth the cost. */
18081 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
18082 - DIR_NAME_SIZE - BUF_SLOP) \
18084 /* FIXME: Assuming there's a system for which this is true,
18085 this should be done in a compile test. */
18088 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
18089 + DIR_NAME_SIZE + BUF_SLOP];
18090 char *cwd = getcwd (buf, PATH_MAX);
18091 size_t initial_cwd_len;
18094 size_t n_chdirs = 0;
18099 cwd_len = initial_cwd_len = strlen (cwd);
18103 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
18106 cwd_len += DIR_NAME_SIZE;
18107 /* If mkdir or chdir fails, it could be that this system cannot create
18108 any file with an absolute name longer than PATH_MAX, such as cygwin.
18109 If so, leave fail as 0, because the current working directory can't
18110 be too long for getcwd if it can't even be created. For other
18111 errors, be pessimistic and consider that as a failure, too. */
18112 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
18114 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
18119 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
18121 c = getcwd (buf, PATH_MAX);
18122 if (!c && errno == ENOENT)
18127 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
18134 if (dotdot_max <= cwd_len - initial_cwd_len)
18136 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
18138 c = getcwd (buf, cwd_len + 1);
18141 if (! (errno == ERANGE || errno == ENOENT
18142 || is_ENAMETOOLONG (errno)))
18147 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
18155 if (c && strlen (c) != cwd_len)
18163 /* Leaving behind such a deep directory is not polite.
18164 So clean up here, right away, even though the driving
18165 shell script would also clean up. */
18169 /* Unlink first, in case the chdir failed. */
18171 for (i = 0; i <= n_chdirs; i++)
18173 if (chdir ("..") < 0)
18184 rm -f conftest$ac_exeext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186 (eval $ac_link) 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 gl_cv_func_getcwd_path_max=yes
18197 echo "$as_me: program exited with status $ac_status" >&5
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ( exit $ac_status )
18203 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
18204 *) gl_cv_func_getcwd_path_max=no;;
18207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18211 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
18212 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6
18213 case $gl_cv_func_getcwd_path_max in
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE_PARTLY_WORKING_GETCWD 1
18224 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
18228 "getcwd.$ac_objext" | \
18229 *" getcwd.$ac_objext" | \
18230 "getcwd.$ac_objext "* | \
18231 *" getcwd.$ac_objext "* ) ;;
18232 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
18236 cat >>confdefs.h <<\_ACEOF
18237 #define __GETCWD_PREFIX rpl_
18258 "getdate.$ac_objext" | \
18259 *" getdate.$ac_objext" | \
18260 "getdate.$ac_objext "* | \
18261 *" getdate.$ac_objext "* ) ;;
18262 *) LIBOBJS="$LIBOBJS getdate.$ac_objext" ;;
18278 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18279 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
18280 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289 #include <sys/types.h>
18290 #include <$ac_cv_struct_tm>
18296 static struct tm ac_aggr;
18297 if (ac_aggr.tm_zone)
18303 rm -f conftest.$ac_objext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18305 (eval $ac_compile) 2>conftest.er1
18307 grep -v '^ *+' conftest.er1 >conftest.err
18309 cat conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -z "$ac_c_werror_flag"
18313 || test ! -s conftest.err'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest.$ac_objext'
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 ac_cv_member_struct_tm_tm_zone=yes
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18336 #include <sys/types.h>
18337 #include <$ac_cv_struct_tm>
18343 static struct tm ac_aggr;
18344 if (sizeof ac_aggr.tm_zone)
18350 rm -f conftest.$ac_objext
18351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18352 (eval $ac_compile) 2>conftest.er1
18354 grep -v '^ *+' conftest.er1 >conftest.err
18356 cat conftest.err >&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
18359 { ac_try='test -z "$ac_c_werror_flag"
18360 || test ! -s conftest.err'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest.$ac_objext'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18372 ac_cv_member_struct_tm_tm_zone=yes
18374 echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18377 ac_cv_member_struct_tm_tm_zone=no
18379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18384 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
18385 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_STRUCT_TM_TM_ZONE 1
18394 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18396 cat >>confdefs.h <<\_ACEOF
18397 #define HAVE_TM_ZONE 1
18401 echo "$as_me:$LINENO: checking for tzname" >&5
18402 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18403 if test "${ac_cv_var_tzname+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 cat >conftest.$ac_ext <<_ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18413 #ifndef tzname /* For SGI. */
18414 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427 (eval $ac_link) 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag"
18435 || test ! -s conftest.err'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_var_tzname=yes
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ac_cv_var_tzname=no
18454 rm -f conftest.err conftest.$ac_objext \
18455 conftest$ac_exeext conftest.$ac_ext
18457 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18458 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18459 if test $ac_cv_var_tzname = yes; then
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_TZNAME 1
18473 for ac_func in gethostname
18475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18476 echo "$as_me:$LINENO: checking for $ac_func" >&5
18477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18478 if eval "test \"\${$as_ac_var+set}\" = set"; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18489 #define $ac_func innocuous_$ac_func
18491 /* System header to define __stub macros and hopefully few prototypes,
18492 which can conflict with char $ac_func (); below.
18493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18494 <limits.h> exists even on freestanding compilers. */
18497 # include <limits.h>
18499 # include <assert.h>
18504 /* Override any gcc2 internal prototype to avoid an error. */
18509 /* We use char because int might match the return type of a gcc2
18510 builtin and then its argument prototype would still apply. */
18512 /* The GNU C library defines this for functions which it implements
18513 to always fail with ENOSYS. Some functions are actually named
18514 something starting with __ and the normal name is an alias. */
18515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18518 char (*f) () = $ac_func;
18527 return f != $ac_func;
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>conftest.er1
18536 grep -v '^ *+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -z "$ac_c_werror_flag"
18542 || test ! -s conftest.err'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 eval "$as_ac_var=yes"
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18559 eval "$as_ac_var=no"
18561 rm -f conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18566 if test `eval echo '${'$as_ac_var'}'` = yes; then
18567 cat >>confdefs.h <<_ACEOF
18568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18573 "$ac_func.$ac_objext" | \
18574 *" $ac_func.$ac_objext" | \
18575 "$ac_func.$ac_objext "* | \
18576 *" $ac_func.$ac_objext "* ) ;;
18577 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18584 if test $ac_cv_func_gethostname = no; then
18587 for ac_func in uname
18589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18590 echo "$as_me:$LINENO: checking for $ac_func" >&5
18591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18592 if eval "test \"\${$as_ac_var+set}\" = set"; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 cat >conftest.$ac_ext <<_ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18603 #define $ac_func innocuous_$ac_func
18605 /* System header to define __stub macros and hopefully few prototypes,
18606 which can conflict with char $ac_func (); below.
18607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18608 <limits.h> exists even on freestanding compilers. */
18611 # include <limits.h>
18613 # include <assert.h>
18618 /* Override any gcc2 internal prototype to avoid an error. */
18623 /* We use char because int might match the return type of a gcc2
18624 builtin and then its argument prototype would still apply. */
18626 /* The GNU C library defines this for functions which it implements
18627 to always fail with ENOSYS. Some functions are actually named
18628 something starting with __ and the normal name is an alias. */
18629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18632 char (*f) () = $ac_func;
18641 return f != $ac_func;
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18648 (eval $ac_link) 2>conftest.er1
18650 grep -v '^ *+' conftest.er1 >conftest.err
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest$ac_exeext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 eval "$as_ac_var=yes"
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 eval "$as_ac_var=no"
18675 rm -f conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18680 if test `eval echo '${'$as_ac_var'}'` = yes; then
18681 cat >>confdefs.h <<_ACEOF
18682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18696 am_getline_needs_run_time_check=no
18697 echo "$as_me:$LINENO: checking for getline" >&5
18698 echo $ECHO_N "checking for getline... $ECHO_C" >&6
18699 if test "${ac_cv_func_getline+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
18709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18710 #define getline innocuous_getline
18712 /* System header to define __stub macros and hopefully few prototypes,
18713 which can conflict with char getline (); below.
18714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18715 <limits.h> exists even on freestanding compilers. */
18718 # include <limits.h>
18720 # include <assert.h>
18725 /* Override any gcc2 internal prototype to avoid an error. */
18730 /* We use char because int might match the return type of a gcc2
18731 builtin and then its argument prototype would still apply. */
18733 /* The GNU C library defines this for functions which it implements
18734 to always fail with ENOSYS. Some functions are actually named
18735 something starting with __ and the normal name is an alias. */
18736 #if defined (__stub_getline) || defined (__stub___getline)
18739 char (*f) () = getline;
18748 return f != getline;
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18755 (eval $ac_link) 2>conftest.er1
18757 grep -v '^ *+' conftest.er1 >conftest.err
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } &&
18762 { ac_try='test -z "$ac_c_werror_flag"
18763 || test ! -s conftest.err'
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; } &&
18769 { ac_try='test -s conftest$ac_exeext'
18770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771 (eval $ac_try) 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 ac_cv_func_getline=yes
18777 echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18780 ac_cv_func_getline=no
18782 rm -f conftest.err conftest.$ac_objext \
18783 conftest$ac_exeext conftest.$ac_ext
18785 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
18786 echo "${ECHO_T}$ac_cv_func_getline" >&6
18787 if test $ac_cv_func_getline = yes; then
18788 am_getline_needs_run_time_check=yes
18790 am_cv_func_working_getline=no
18793 if test $am_getline_needs_run_time_check = yes; then
18794 echo "$as_me:$LINENO: checking for working getline function" >&5
18795 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
18796 if test "${am_cv_func_working_getline+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
18800 if test "$cross_compiling" = yes; then
18801 am_cv_func_working_getline=no
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18810 # include <stdio.h>
18811 # include <stdlib.h>
18812 # include <string.h>
18814 { /* Based on a test program from Karl Heuer. */
18818 FILE *in = fopen ("./conftest.data", "r");
18821 len = getline (&line, &siz, in);
18822 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
18826 rm -f conftest$ac_exeext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828 (eval $ac_link) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 am_cv_func_working_getline=yes
18839 echo "$as_me: program exited with status $ac_status" >&5
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18843 ( exit $ac_status )
18844 am_cv_func_working_getline=no
18846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
18850 echo "${ECHO_T}$am_cv_func_working_getline" >&6
18853 if test $am_cv_func_working_getline = no; then
18855 cat >>confdefs.h <<\_ACEOF
18856 #define getline gnu_getline
18860 "getline.$ac_objext" | \
18861 *" getline.$ac_objext" | \
18862 "getline.$ac_objext "* | \
18863 *" getline.$ac_objext "* ) ;;
18864 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
18868 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
18869 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
18870 case " $LIBOBJS " in
18871 *" getndelim2.$ac_objext "* ) ;;
18872 *) case $LIBOBJS in
18873 "getndelim2.$ac_objext" | \
18874 *" getndelim2.$ac_objext" | \
18875 "getndelim2.$ac_objext "* | \
18876 *" getndelim2.$ac_objext "* ) ;;
18877 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
18884 for ac_func in getdelim
18886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18887 echo "$as_me:$LINENO: checking for $ac_func" >&5
18888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18889 if eval "test \"\${$as_ac_var+set}\" = set"; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18900 #define $ac_func innocuous_$ac_func
18902 /* System header to define __stub macros and hopefully few prototypes,
18903 which can conflict with char $ac_func (); below.
18904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18905 <limits.h> exists even on freestanding compilers. */
18908 # include <limits.h>
18910 # include <assert.h>
18915 /* Override any gcc2 internal prototype to avoid an error. */
18920 /* We use char because int might match the return type of a gcc2
18921 builtin and then its argument prototype would still apply. */
18923 /* The GNU C library defines this for functions which it implements
18924 to always fail with ENOSYS. Some functions are actually named
18925 something starting with __ and the normal name is an alias. */
18926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18929 char (*f) () = $ac_func;
18938 return f != $ac_func;
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18945 (eval $ac_link) 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag"
18953 || test ! -s conftest.err'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; } &&
18959 { ac_try='test -s conftest$ac_exeext'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 eval "$as_ac_var=yes"
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 eval "$as_ac_var=no"
18972 rm -f conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18977 if test `eval echo '${'$as_ac_var'}'` = yes; then
18978 cat >>confdefs.h <<_ACEOF
18979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18992 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
18993 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
18994 case " $LIBOBJS " in
18995 *" getndelim2.$ac_objext "* ) ;;
18996 *) case $LIBOBJS in
18997 "getndelim2.$ac_objext" | \
18998 *" getndelim2.$ac_objext" | \
18999 "getndelim2.$ac_objext "* | \
19000 *" getndelim2.$ac_objext "* ) ;;
19001 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
19017 if test -z "$GETOPT_H"; then
19020 for ac_header in getopt.h
19022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19024 echo "$as_me:$LINENO: checking for $ac_header" >&5
19025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19032 # Is the header compilable?
19033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19035 cat >conftest.$ac_ext <<_ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041 $ac_includes_default
19042 #include <$ac_header>
19044 rm -f conftest.$ac_objext
19045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19046 (eval $ac_compile) 2>conftest.er1
19048 grep -v '^ *+' conftest.er1 >conftest.err
19050 cat conftest.err >&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } &&
19053 { ac_try='test -z "$ac_c_werror_flag"
19054 || test ! -s conftest.err'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; } &&
19060 { ac_try='test -s conftest.$ac_objext'
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_header_compiler=yes
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_header_compiler=no
19073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19075 echo "${ECHO_T}$ac_header_compiler" >&6
19077 # Is the header present?
19078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 #include <$ac_header>
19088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } >/dev/null; then
19096 if test -s conftest.err; then
19097 ac_cpp_err=$ac_c_preproc_warn_flag
19098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19105 if test -z "$ac_cpp_err"; then
19106 ac_header_preproc=yes
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 ac_header_preproc=no
19113 rm -f conftest.err conftest.$ac_ext
19114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6
19117 # So? What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124 ac_header_preproc=yes
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19141 ## ------------------------------ ##
19142 ## Report this to bug-cvs@gnu.org ##
19143 ## ------------------------------ ##
19146 sed "s/^/$as_me: WARNING: /" >&2
19149 echo "$as_me:$LINENO: checking for $ac_header" >&5
19150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 eval "$as_ac_Header=\$ac_header_preproc"
19156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19161 cat >>confdefs.h <<_ACEOF
19162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19172 for ac_func in getopt_long_only
19174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19175 echo "$as_me:$LINENO: checking for $ac_func" >&5
19176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19177 if eval "test \"\${$as_ac_var+set}\" = set"; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19188 #define $ac_func innocuous_$ac_func
19190 /* System header to define __stub macros and hopefully few prototypes,
19191 which can conflict with char $ac_func (); below.
19192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19193 <limits.h> exists even on freestanding compilers. */
19196 # include <limits.h>
19198 # include <assert.h>
19203 /* Override any gcc2 internal prototype to avoid an error. */
19208 /* We use char because int might match the return type of a gcc2
19209 builtin and then its argument prototype would still apply. */
19211 /* The GNU C library defines this for functions which it implements
19212 to always fail with ENOSYS. Some functions are actually named
19213 something starting with __ and the normal name is an alias. */
19214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19217 char (*f) () = $ac_func;
19226 return f != $ac_func;
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233 (eval $ac_link) 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_c_werror_flag"
19241 || test ! -s conftest.err'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest$ac_exeext'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 eval "$as_ac_var=yes"
19255 echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19258 eval "$as_ac_var=no"
19260 rm -f conftest.err conftest.$ac_objext \
19261 conftest$ac_exeext conftest.$ac_ext
19263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19265 if test `eval echo '${'$as_ac_var'}'` = yes; then
19266 cat >>confdefs.h <<_ACEOF
19267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19276 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19277 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
19278 if test "${ac_cv_have_decl_optreset+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 #include <getopt.h>
19293 char *p = (char *) optreset;
19300 rm -f conftest.$ac_objext
19301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19302 (eval $ac_compile) 2>conftest.er1
19304 grep -v '^ *+' conftest.er1 >conftest.err
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } &&
19309 { ac_try='test -z "$ac_c_werror_flag"
19310 || test ! -s conftest.err'
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; } &&
19316 { ac_try='test -s conftest.$ac_objext'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_cv_have_decl_optreset=yes
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_have_decl_optreset=no
19329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19331 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19332 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
19333 if test $ac_cv_have_decl_optreset = yes; then
19338 if test -n "$GETOPT_H"; then
19342 "getopt.$ac_objext" | \
19343 *" getopt.$ac_objext" | \
19344 "getopt.$ac_objext "* | \
19345 *" getopt.$ac_objext "* ) ;;
19346 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
19350 "getopt1.$ac_objext" | \
19351 *" getopt1.$ac_objext" | \
19352 "getopt1.$ac_objext "* | \
19353 *" getopt1.$ac_objext "* ) ;;
19354 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
19358 cat >>confdefs.h <<\_ACEOF
19359 #define __GETOPT_PREFIX rpl_
19381 for ac_header in OS.h
19383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19385 echo "$as_me:$LINENO: checking for $ac_header" >&5
19386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19393 # Is the header compilable?
19394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19396 cat >conftest.$ac_ext <<_ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19402 $ac_includes_default
19403 #include <$ac_header>
19405 rm -f conftest.$ac_objext
19406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19407 (eval $ac_compile) 2>conftest.er1
19409 grep -v '^ *+' conftest.er1 >conftest.err
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } &&
19414 { ac_try='test -z "$ac_c_werror_flag"
19415 || test ! -s conftest.err'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; } &&
19421 { ac_try='test -s conftest.$ac_objext'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_header_compiler=yes
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_header_compiler=no
19434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19436 echo "${ECHO_T}$ac_header_compiler" >&6
19438 # Is the header present?
19439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 #include <$ac_header>
19449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19452 grep -v '^ *+' conftest.er1 >conftest.err
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } >/dev/null; then
19457 if test -s conftest.err; then
19458 ac_cpp_err=$ac_c_preproc_warn_flag
19459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19466 if test -z "$ac_cpp_err"; then
19467 ac_header_preproc=yes
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19472 ac_header_preproc=no
19474 rm -f conftest.err conftest.$ac_ext
19475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19476 echo "${ECHO_T}$ac_header_preproc" >&6
19478 # So? What about this header?
19479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19485 ac_header_preproc=yes
19488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19502 ## ------------------------------ ##
19503 ## Report this to bug-cvs@gnu.org ##
19504 ## ------------------------------ ##
19507 sed "s/^/$as_me: WARNING: /" >&2
19510 echo "$as_me:$LINENO: checking for $ac_header" >&5
19511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 eval "$as_ac_Header=\$ac_header_preproc"
19517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19522 cat >>confdefs.h <<_ACEOF
19523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19531 for ac_func in getpagesize
19533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19534 echo "$as_me:$LINENO: checking for $ac_func" >&5
19535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19536 if eval "test \"\${$as_ac_var+set}\" = set"; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19547 #define $ac_func innocuous_$ac_func
19549 /* System header to define __stub macros and hopefully few prototypes,
19550 which can conflict with char $ac_func (); below.
19551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19552 <limits.h> exists even on freestanding compilers. */
19555 # include <limits.h>
19557 # include <assert.h>
19562 /* Override any gcc2 internal prototype to avoid an error. */
19567 /* We use char because int might match the return type of a gcc2
19568 builtin and then its argument prototype would still apply. */
19570 /* The GNU C library defines this for functions which it implements
19571 to always fail with ENOSYS. Some functions are actually named
19572 something starting with __ and the normal name is an alias. */
19573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19576 char (*f) () = $ac_func;
19585 return f != $ac_func;
19590 rm -f conftest.$ac_objext conftest$ac_exeext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19592 (eval $ac_link) 2>conftest.er1
19594 grep -v '^ *+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_c_werror_flag"
19600 || test ! -s conftest.err'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest$ac_exeext'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 eval "$as_ac_var=yes"
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 eval "$as_ac_var=no"
19619 rm -f conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
19622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19624 if test `eval echo '${'$as_ac_var'}'` = yes; then
19625 cat >>confdefs.h <<_ACEOF
19626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19644 "getpass.$ac_objext" | \
19645 *" getpass.$ac_objext" | \
19646 "getpass.$ac_objext "* | \
19647 *" getpass.$ac_objext "* ) ;;
19648 *) LIBOBJS="$LIBOBJS getpass.$ac_objext" ;;
19681 cat >>confdefs.h <<\_ACEOF
19682 #define getpass gnu_getpass
19689 "gettime.$ac_objext" | \
19690 *" gettime.$ac_objext" | \
19691 "gettime.$ac_objext "* | \
19692 *" gettime.$ac_objext "* ) ;;
19693 *) LIBOBJS="$LIBOBJS gettime.$ac_objext" ;;
19712 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
19713 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
19714 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 if test "$cross_compiling" = yes; then
19718 jm_cv_func_gettimeofday_clobber=yes
19720 cat >conftest.$ac_ext <<_ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19728 #include <string.h>
19730 #if TIME_WITH_SYS_TIME
19731 # include <sys/time.h>
19734 # if HAVE_SYS_TIME_H
19735 # include <sys/time.h>
19741 #include <stdlib.h>
19748 struct tm saved_lt;
19750 lt = localtime (&t);
19752 gettimeofday (&tv, NULL);
19753 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
19760 rm -f conftest$ac_exeext
19761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762 (eval $ac_link) 2>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; }; then
19771 jm_cv_func_gettimeofday_clobber=no
19773 echo "$as_me: program exited with status $ac_status" >&5
19774 echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19777 ( exit $ac_status )
19778 jm_cv_func_gettimeofday_clobber=yes
19780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19784 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
19785 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
19786 if test $jm_cv_func_gettimeofday_clobber = yes; then
19789 "gettimeofday.$ac_objext" | \
19790 *" gettimeofday.$ac_objext" | \
19791 "gettimeofday.$ac_objext "* | \
19792 *" gettimeofday.$ac_objext "* ) ;;
19793 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
19797 cat >>confdefs.h <<\_ACEOF
19798 #define gmtime rpl_gmtime
19802 cat >>confdefs.h <<\_ACEOF
19803 #define localtime rpl_localtime
19809 cat >>confdefs.h <<\_ACEOF
19810 #define gettimeofday rpl_gettimeofday
19814 cat >>confdefs.h <<\_ACEOF
19815 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
19824 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
19825 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
19826 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 if test "$cross_compiling" = yes; then
19830 ac_cv_func_lstat_empty_string_bug=yes
19832 cat >conftest.$ac_ext <<_ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19838 $ac_includes_default
19843 exit (lstat ("", &sbuf) ? 1 : 0);
19848 rm -f conftest$ac_exeext
19849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19850 (eval $ac_link) 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 ac_cv_func_lstat_empty_string_bug=yes
19861 echo "$as_me: program exited with status $ac_status" >&5
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ( exit $ac_status )
19866 ac_cv_func_lstat_empty_string_bug=no
19868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19871 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
19872 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
19873 if test $ac_cv_func_lstat_empty_string_bug = yes; then
19875 "lstat.$ac_objext" | \
19876 *" lstat.$ac_objext" | \
19877 "lstat.$ac_objext "* | \
19878 *" lstat.$ac_objext "* ) ;;
19879 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
19883 cat >>confdefs.h <<_ACEOF
19884 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
19889 if test $ac_cv_func_lstat_empty_string_bug = yes; then
19897 for ac_header in stdlib.h
19899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19901 echo "$as_me:$LINENO: checking for $ac_header" >&5
19902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19909 # Is the header compilable?
19910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 $ac_includes_default
19919 #include <$ac_header>
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>conftest.er1
19925 grep -v '^ *+' conftest.er1 >conftest.err
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
19930 { ac_try='test -z "$ac_c_werror_flag"
19931 || test ! -s conftest.err'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_header_compiler=yes
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_compiler=no
19950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6
19954 # Is the header present?
19955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <$ac_header>
19965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19968 grep -v '^ *+' conftest.er1 >conftest.err
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } >/dev/null; then
19973 if test -s conftest.err; then
19974 ac_cpp_err=$ac_c_preproc_warn_flag
19975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19982 if test -z "$ac_cpp_err"; then
19983 ac_header_preproc=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_header_preproc=no
19990 rm -f conftest.err conftest.$ac_ext
19991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6
19994 # So? What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20001 ac_header_preproc=yes
20004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20018 ## ------------------------------ ##
20019 ## Report this to bug-cvs@gnu.org ##
20020 ## ------------------------------ ##
20023 sed "s/^/$as_me: WARNING: /" >&2
20026 echo "$as_me:$LINENO: checking for $ac_header" >&5
20027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 eval "$as_ac_Header=\$ac_header_preproc"
20033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20038 cat >>confdefs.h <<_ACEOF
20039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20046 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20047 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20048 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 if test "$cross_compiling" = yes; then
20052 ac_cv_func_malloc_0_nonnull=no
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 #if STDC_HEADERS || HAVE_STDLIB_H
20061 # include <stdlib.h>
20069 exit (malloc (0) ? 0 : 1);
20074 rm -f conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076 (eval $ac_link) 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_cv_func_malloc_0_nonnull=yes
20087 echo "$as_me: program exited with status $ac_status" >&5
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 ( exit $ac_status )
20092 ac_cv_func_malloc_0_nonnull=no
20094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20097 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20098 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20099 if test $ac_cv_func_malloc_0_nonnull = yes; then
20101 cat >>confdefs.h <<\_ACEOF
20102 #define HAVE_MALLOC 1
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_MALLOC 0
20111 "malloc.$ac_objext" | \
20112 *" malloc.$ac_objext" | \
20113 "malloc.$ac_objext "* | \
20114 *" malloc.$ac_objext "* ) ;;
20115 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
20119 cat >>confdefs.h <<\_ACEOF
20120 #define malloc rpl_malloc
20130 "md5.$ac_objext" | \
20131 *" md5.$ac_objext" | \
20132 "md5.$ac_objext "* | \
20133 *" md5.$ac_objext "* ) ;;
20134 *) LIBOBJS="$LIBOBJS md5.$ac_objext" ;;
20145 for ac_func in memmove
20147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20148 echo "$as_me:$LINENO: checking for $ac_func" >&5
20149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20150 if eval "test \"\${$as_ac_var+set}\" = set"; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20161 #define $ac_func innocuous_$ac_func
20163 /* System header to define __stub macros and hopefully few prototypes,
20164 which can conflict with char $ac_func (); below.
20165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20166 <limits.h> exists even on freestanding compilers. */
20169 # include <limits.h>
20171 # include <assert.h>
20176 /* Override any gcc2 internal prototype to avoid an error. */
20181 /* We use char because int might match the return type of a gcc2
20182 builtin and then its argument prototype would still apply. */
20184 /* The GNU C library defines this for functions which it implements
20185 to always fail with ENOSYS. Some functions are actually named
20186 something starting with __ and the normal name is an alias. */
20187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20190 char (*f) () = $ac_func;
20199 return f != $ac_func;
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20206 (eval $ac_link) 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
20213 { ac_try='test -z "$ac_c_werror_flag"
20214 || test ! -s conftest.err'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest$ac_exeext'
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 eval "$as_ac_var=yes"
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 eval "$as_ac_var=no"
20233 rm -f conftest.err conftest.$ac_objext \
20234 conftest$ac_exeext conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20238 if test `eval echo '${'$as_ac_var'}'` = yes; then
20239 cat >>confdefs.h <<_ACEOF
20240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20245 "$ac_func.$ac_objext" | \
20246 *" $ac_func.$ac_objext" | \
20247 "$ac_func.$ac_objext "* | \
20248 *" $ac_func.$ac_objext "* ) ;;
20249 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20256 if test $ac_cv_func_memmove = no; then
20268 for ac_func in mempcpy
20270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20271 echo "$as_me:$LINENO: checking for $ac_func" >&5
20272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20273 if eval "test \"\${$as_ac_var+set}\" = set"; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20284 #define $ac_func innocuous_$ac_func
20286 /* System header to define __stub macros and hopefully few prototypes,
20287 which can conflict with char $ac_func (); below.
20288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20289 <limits.h> exists even on freestanding compilers. */
20292 # include <limits.h>
20294 # include <assert.h>
20299 /* Override any gcc2 internal prototype to avoid an error. */
20304 /* We use char because int might match the return type of a gcc2
20305 builtin and then its argument prototype would still apply. */
20307 /* The GNU C library defines this for functions which it implements
20308 to always fail with ENOSYS. Some functions are actually named
20309 something starting with __ and the normal name is an alias. */
20310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20313 char (*f) () = $ac_func;
20322 return f != $ac_func;
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20329 (eval $ac_link) 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try='test -s conftest$ac_exeext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 eval "$as_ac_var=yes"
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 eval "$as_ac_var=no"
20356 rm -f conftest.err conftest.$ac_objext \
20357 conftest$ac_exeext conftest.$ac_ext
20359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20361 if test `eval echo '${'$as_ac_var'}'` = yes; then
20362 cat >>confdefs.h <<_ACEOF
20363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20368 "$ac_func.$ac_objext" | \
20369 *" $ac_func.$ac_objext" | \
20370 "$ac_func.$ac_objext "* | \
20371 *" $ac_func.$ac_objext "* ) ;;
20372 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20379 if test $ac_cv_func_mempcpy = no; then
20399 for ac_func in memrchr
20401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20402 echo "$as_me:$LINENO: checking for $ac_func" >&5
20403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20404 if eval "test \"\${$as_ac_var+set}\" = set"; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20415 #define $ac_func innocuous_$ac_func
20417 /* System header to define __stub macros and hopefully few prototypes,
20418 which can conflict with char $ac_func (); below.
20419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20420 <limits.h> exists even on freestanding compilers. */
20423 # include <limits.h>
20425 # include <assert.h>
20430 /* Override any gcc2 internal prototype to avoid an error. */
20435 /* We use char because int might match the return type of a gcc2
20436 builtin and then its argument prototype would still apply. */
20438 /* The GNU C library defines this for functions which it implements
20439 to always fail with ENOSYS. Some functions are actually named
20440 something starting with __ and the normal name is an alias. */
20441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20444 char (*f) () = $ac_func;
20453 return f != $ac_func;
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20460 (eval $ac_link) 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag"
20468 || test ! -s conftest.err'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest$ac_exeext'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 eval "$as_ac_var=yes"
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 eval "$as_ac_var=no"
20487 rm -f conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
20490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20492 if test `eval echo '${'$as_ac_var'}'` = yes; then
20493 cat >>confdefs.h <<_ACEOF
20494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20499 "$ac_func.$ac_objext" | \
20500 *" $ac_func.$ac_objext" | \
20501 "$ac_func.$ac_objext "* | \
20502 *" $ac_func.$ac_objext "* ) ;;
20503 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20510 if test $ac_cv_func_memrchr = no; then
20514 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
20515 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
20516 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 # Arrange for deletion of the temporary directory this test might create.
20521 ac_clean_files="$ac_clean_files confdir-slash"
20522 if test "$cross_compiling" = yes; then
20523 gl_cv_func_mkdir_trailing_slash_bug=yes
20526 cat >conftest.$ac_ext <<_ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20533 # include <sys/types.h>
20534 # include <sys/stat.h>
20535 # include <stdlib.h>
20538 rmdir ("confdir-slash");
20539 exit (mkdir ("confdir-slash/", 0700));
20543 rm -f conftest$ac_exeext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20545 (eval $ac_link) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 gl_cv_func_mkdir_trailing_slash_bug=no
20556 echo "$as_me: program exited with status $ac_status" >&5
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ( exit $ac_status )
20561 gl_cv_func_mkdir_trailing_slash_bug=yes
20563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20568 echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
20569 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6
20571 if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
20573 "mkdir.$ac_objext" | \
20574 *" mkdir.$ac_objext" | \
20575 "mkdir.$ac_objext "* | \
20576 *" mkdir.$ac_objext "* ) ;;
20577 *) LIBOBJS="$LIBOBJS mkdir.$ac_objext" ;;
20581 cat >>confdefs.h <<\_ACEOF
20582 #define mkdir rpl_mkdir
20589 for ac_func in mkstemp
20591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20592 echo "$as_me:$LINENO: checking for $ac_func" >&5
20593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20594 if eval "test \"\${$as_ac_var+set}\" = set"; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 cat >conftest.$ac_ext <<_ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20605 #define $ac_func innocuous_$ac_func
20607 /* System header to define __stub macros and hopefully few prototypes,
20608 which can conflict with char $ac_func (); below.
20609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20610 <limits.h> exists even on freestanding compilers. */
20613 # include <limits.h>
20615 # include <assert.h>
20620 /* Override any gcc2 internal prototype to avoid an error. */
20625 /* We use char because int might match the return type of a gcc2
20626 builtin and then its argument prototype would still apply. */
20628 /* The GNU C library defines this for functions which it implements
20629 to always fail with ENOSYS. Some functions are actually named
20630 something starting with __ and the normal name is an alias. */
20631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20634 char (*f) () = $ac_func;
20643 return f != $ac_func;
20648 rm -f conftest.$ac_objext conftest$ac_exeext
20649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20650 (eval $ac_link) 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -z "$ac_c_werror_flag"
20658 || test ! -s conftest.err'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest$ac_exeext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 eval "$as_ac_var=yes"
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 eval "$as_ac_var=no"
20677 rm -f conftest.err conftest.$ac_objext \
20678 conftest$ac_exeext conftest.$ac_ext
20680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20682 if test `eval echo '${'$as_ac_var'}'` = yes; then
20683 cat >>confdefs.h <<_ACEOF
20684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20689 "$ac_func.$ac_objext" | \
20690 *" $ac_func.$ac_objext" | \
20691 "$ac_func.$ac_objext "* | \
20692 *" $ac_func.$ac_objext "* ) ;;
20693 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20700 if test $ac_cv_func_mkstemp = no; then
20701 gl_cv_func_mkstemp_limitations=yes
20703 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
20704 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
20705 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 mkdir conftest.mkstemp
20710 if test "$cross_compiling" = yes; then
20711 gl_cv_func_mkstemp_limitations=yes
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20721 # include <stdlib.h>
20722 # include <unistd.h>
20726 for (i = 0; i < 70; i++)
20728 char template[] = "conftest.mkstemp/coXXXXXX";
20729 int fd = mkstemp (template);
20738 rm -f conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; }; then
20749 gl_cv_func_mkstemp_limitations=no
20751 echo "$as_me: program exited with status $ac_status" >&5
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ( exit $ac_status )
20756 gl_cv_func_mkstemp_limitations=yes
20758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20760 rm -rf conftest.mkstemp
20764 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
20765 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
20768 if test $gl_cv_func_mkstemp_limitations = yes; then
20770 "mkstemp.$ac_objext" | \
20771 *" mkstemp.$ac_objext" | \
20772 "mkstemp.$ac_objext "* | \
20773 *" mkstemp.$ac_objext "* ) ;;
20774 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
20778 "tempname.$ac_objext" | \
20779 *" tempname.$ac_objext" | \
20780 "tempname.$ac_objext "* | \
20781 *" tempname.$ac_objext "* ) ;;
20782 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
20786 cat >>confdefs.h <<\_ACEOF
20787 #define mkstemp rpl_mkstemp
20808 for ac_header in stdint.h
20810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20812 echo "$as_me:$LINENO: checking for $ac_header" >&5
20813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20820 # Is the header compilable?
20821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20823 cat >conftest.$ac_ext <<_ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829 $ac_includes_default
20830 #include <$ac_header>
20832 rm -f conftest.$ac_objext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834 (eval $ac_compile) 2>conftest.er1
20836 grep -v '^ *+' conftest.er1 >conftest.err
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } &&
20841 { ac_try='test -z "$ac_c_werror_flag"
20842 || test ! -s conftest.err'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; } &&
20848 { ac_try='test -s conftest.$ac_objext'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 ac_header_compiler=yes
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20859 ac_header_compiler=no
20861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20863 echo "${ECHO_T}$ac_header_compiler" >&6
20865 # Is the header present?
20866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 #include <$ac_header>
20876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20879 grep -v '^ *+' conftest.er1 >conftest.err
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } >/dev/null; then
20884 if test -s conftest.err; then
20885 ac_cpp_err=$ac_c_preproc_warn_flag
20886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20893 if test -z "$ac_cpp_err"; then
20894 ac_header_preproc=yes
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899 ac_header_preproc=no
20901 rm -f conftest.err conftest.$ac_ext
20902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20903 echo "${ECHO_T}$ac_header_preproc" >&6
20905 # So? What about this header?
20906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20912 ac_header_preproc=yes
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20929 ## ------------------------------ ##
20930 ## Report this to bug-cvs@gnu.org ##
20931 ## ------------------------------ ##
20934 sed "s/^/$as_me: WARNING: /" >&2
20937 echo "$as_me:$LINENO: checking for $ac_header" >&5
20938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 eval "$as_ac_Header=\$ac_header_preproc"
20944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20949 cat >>confdefs.h <<_ACEOF
20950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20959 for ac_func in __secure_getenv gettimeofday
20961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20962 echo "$as_me:$LINENO: checking for $ac_func" >&5
20963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20964 if eval "test \"\${$as_ac_var+set}\" = set"; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20975 #define $ac_func innocuous_$ac_func
20977 /* System header to define __stub macros and hopefully few prototypes,
20978 which can conflict with char $ac_func (); below.
20979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20980 <limits.h> exists even on freestanding compilers. */
20983 # include <limits.h>
20985 # include <assert.h>
20990 /* Override any gcc2 internal prototype to avoid an error. */
20995 /* We use char because int might match the return type of a gcc2
20996 builtin and then its argument prototype would still apply. */
20998 /* The GNU C library defines this for functions which it implements
20999 to always fail with ENOSYS. Some functions are actually named
21000 something starting with __ and the normal name is an alias. */
21001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21004 char (*f) () = $ac_func;
21013 return f != $ac_func;
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020 (eval $ac_link) 2>conftest.er1
21022 grep -v '^ *+' conftest.er1 >conftest.err
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -z "$ac_c_werror_flag"
21028 || test ! -s conftest.err'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; } &&
21034 { ac_try='test -s conftest$ac_exeext'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; }; then
21040 eval "$as_ac_var=yes"
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21045 eval "$as_ac_var=no"
21047 rm -f conftest.err conftest.$ac_objext \
21048 conftest$ac_exeext conftest.$ac_ext
21050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21052 if test `eval echo '${'$as_ac_var'}'` = yes; then
21053 cat >>confdefs.h <<_ACEOF
21054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21073 if test $ac_cv_func_working_mktime = no; then
21075 cat >>confdefs.h <<\_ACEOF
21076 #define mktime rpl_mktime
21085 nanosleep_save_libs=$LIBS
21087 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
21088 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21089 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
21090 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
21091 if test "${ac_cv_search_nanosleep+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 ac_func_search_save_LIBS=$LIBS
21095 ac_cv_search_nanosleep=no
21096 cat >conftest.$ac_ext <<_ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21103 /* Override any gcc2 internal prototype to avoid an error. */
21107 /* We use char because int might match the return type of a gcc2
21108 builtin and then its argument prototype would still apply. */
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21120 (eval $ac_link) 2>conftest.er1
21122 grep -v '^ *+' conftest.er1 >conftest.err
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest$ac_exeext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_search_nanosleep="none required"
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21146 rm -f conftest.err conftest.$ac_objext \
21147 conftest$ac_exeext conftest.$ac_ext
21148 if test "$ac_cv_search_nanosleep" = no; then
21149 for ac_lib in rt posix4; do
21150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21158 /* Override any gcc2 internal prototype to avoid an error. */
21162 /* We use char because int might match the return type of a gcc2
21163 builtin and then its argument prototype would still apply. */
21173 rm -f conftest.$ac_objext conftest$ac_exeext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21175 (eval $ac_link) 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
21182 { ac_try='test -z "$ac_c_werror_flag"
21183 || test ! -s conftest.err'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest$ac_exeext'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_cv_search_nanosleep="-l$ac_lib"
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21202 rm -f conftest.err conftest.$ac_objext \
21203 conftest$ac_exeext conftest.$ac_ext
21206 LIBS=$ac_func_search_save_LIBS
21208 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
21209 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
21210 if test "$ac_cv_search_nanosleep" != no; then
21211 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
21212 test "$ac_cv_search_nanosleep" = "none required" ||
21213 LIB_NANOSLEEP=$ac_cv_search_nanosleep
21218 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
21219 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
21220 if test "${jm_cv_func_nanosleep_works+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 if test "$cross_compiling" = yes; then
21233 jm_cv_func_nanosleep_works=no
21235 cat >conftest.$ac_ext <<_ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21242 # if TIME_WITH_SYS_TIME
21243 # include <sys/time.h>
21246 # if HAVE_SYS_TIME_H
21247 # include <sys/time.h>
21256 struct timespec ts_sleep, ts_remaining;
21257 ts_sleep.tv_sec = 0;
21258 ts_sleep.tv_nsec = 1;
21259 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
21263 rm -f conftest$ac_exeext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21265 (eval $ac_link) 2>&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; }; then
21274 jm_cv_func_nanosleep_works=yes
21276 echo "$as_me: program exited with status $ac_status" >&5
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 ( exit $ac_status )
21281 jm_cv_func_nanosleep_works=no
21283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21287 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
21288 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
21289 if test $jm_cv_func_nanosleep_works = no; then
21291 "nanosleep.$ac_objext" | \
21292 *" nanosleep.$ac_objext" | \
21293 "nanosleep.$ac_objext "* | \
21294 *" nanosleep.$ac_objext "* ) ;;
21295 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
21299 cat >>confdefs.h <<\_ACEOF
21300 #define nanosleep rpl_nanosleep
21314 LIBS=$nanosleep_save_libs
21320 for ac_func in openat
21322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21323 echo "$as_me:$LINENO: checking for $ac_func" >&5
21324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21325 if eval "test \"\${$as_ac_var+set}\" = set"; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21336 #define $ac_func innocuous_$ac_func
21338 /* System header to define __stub macros and hopefully few prototypes,
21339 which can conflict with char $ac_func (); below.
21340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21341 <limits.h> exists even on freestanding compilers. */
21344 # include <limits.h>
21346 # include <assert.h>
21351 /* Override any gcc2 internal prototype to avoid an error. */
21356 /* We use char because int might match the return type of a gcc2
21357 builtin and then its argument prototype would still apply. */
21359 /* The GNU C library defines this for functions which it implements
21360 to always fail with ENOSYS. Some functions are actually named
21361 something starting with __ and the normal name is an alias. */
21362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21365 char (*f) () = $ac_func;
21374 return f != $ac_func;
21379 rm -f conftest.$ac_objext conftest$ac_exeext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21381 (eval $ac_link) 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } &&
21388 { ac_try='test -z "$ac_c_werror_flag"
21389 || test ! -s conftest.err'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; } &&
21395 { ac_try='test -s conftest$ac_exeext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 eval "$as_ac_var=yes"
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 eval "$as_ac_var=no"
21408 rm -f conftest.err conftest.$ac_objext \
21409 conftest$ac_exeext conftest.$ac_ext
21411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21413 if test `eval echo '${'$as_ac_var'}'` = yes; then
21414 cat >>confdefs.h <<_ACEOF
21415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21420 "$ac_func.$ac_objext" | \
21421 *" $ac_func.$ac_objext" | \
21422 "$ac_func.$ac_objext "* | \
21423 *" $ac_func.$ac_objext "* ) ;;
21424 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21431 case $ac_cv_func_openat in
21435 cat >>confdefs.h <<\_ACEOF
21436 #define __OPENAT_PREFIX rpl_
21449 "pagealign_alloc.$ac_objext" | \
21450 *" pagealign_alloc.$ac_objext" | \
21451 "pagealign_alloc.$ac_objext "* | \
21452 *" pagealign_alloc.$ac_objext "* ) ;;
21453 *) LIBOBJS="$LIBOBJS pagealign_alloc.$ac_objext" ;;
21495 "quotearg.$ac_objext" | \
21496 *" quotearg.$ac_objext" | \
21497 "quotearg.$ac_objext "* | \
21498 *" quotearg.$ac_objext "* ) ;;
21499 *) LIBOBJS="$LIBOBJS quotearg.$ac_objext" ;;
21523 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21524 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21525 if test "${ac_cv_type_mbstate_t+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 cat >conftest.$ac_ext <<_ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 $ac_includes_default
21535 # include <wchar.h>
21539 mbstate_t x; return sizeof x;
21544 rm -f conftest.$ac_objext
21545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21546 (eval $ac_compile) 2>conftest.er1
21548 grep -v '^ *+' conftest.er1 >conftest.err
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } &&
21553 { ac_try='test -z "$ac_c_werror_flag"
21554 || test ! -s conftest.err'
21555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; } &&
21560 { ac_try='test -s conftest.$ac_objext'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; }; then
21566 ac_cv_type_mbstate_t=yes
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21571 ac_cv_type_mbstate_t=no
21573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21575 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21576 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21577 if test $ac_cv_type_mbstate_t = yes; then
21579 cat >>confdefs.h <<\_ACEOF
21580 #define HAVE_MBSTATE_T 1
21585 cat >>confdefs.h <<\_ACEOF
21586 #define mbstate_t int
21591 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
21592 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
21593 if test "${gl_cv_func_mbrtowc+set}" = set; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21606 mbstate_t state; return ! (sizeof state && mbrtowc);
21611 rm -f conftest.$ac_objext conftest$ac_exeext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613 (eval $ac_link) 2>conftest.er1
21615 grep -v '^ *+' conftest.er1 >conftest.err
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try='test -z "$ac_c_werror_flag"
21621 || test ! -s conftest.err'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest$ac_exeext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 gl_cv_func_mbrtowc=yes
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 gl_cv_func_mbrtowc=no
21640 rm -f conftest.err conftest.$ac_objext \
21641 conftest$ac_exeext conftest.$ac_ext
21643 echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
21644 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
21645 if test $gl_cv_func_mbrtowc = yes; then
21647 cat >>confdefs.h <<\_ACEOF
21648 #define HAVE_MBRTOWC 1
21656 for ac_func in readlink
21658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21659 echo "$as_me:$LINENO: checking for $ac_func" >&5
21660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21661 if eval "test \"\${$as_ac_var+set}\" = set"; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 cat >conftest.$ac_ext <<_ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21672 #define $ac_func innocuous_$ac_func
21674 /* System header to define __stub macros and hopefully few prototypes,
21675 which can conflict with char $ac_func (); below.
21676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21677 <limits.h> exists even on freestanding compilers. */
21680 # include <limits.h>
21682 # include <assert.h>
21687 /* Override any gcc2 internal prototype to avoid an error. */
21692 /* We use char because int might match the return type of a gcc2
21693 builtin and then its argument prototype would still apply. */
21695 /* The GNU C library defines this for functions which it implements
21696 to always fail with ENOSYS. Some functions are actually named
21697 something starting with __ and the normal name is an alias. */
21698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21701 char (*f) () = $ac_func;
21710 return f != $ac_func;
21715 rm -f conftest.$ac_objext conftest$ac_exeext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21717 (eval $ac_link) 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } &&
21724 { ac_try='test -z "$ac_c_werror_flag"
21725 || test ! -s conftest.err'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; } &&
21731 { ac_try='test -s conftest$ac_exeext'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 eval "$as_ac_var=yes"
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 eval "$as_ac_var=no"
21744 rm -f conftest.err conftest.$ac_objext \
21745 conftest$ac_exeext conftest.$ac_ext
21747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21749 if test `eval echo '${'$as_ac_var'}'` = yes; then
21750 cat >>confdefs.h <<_ACEOF
21751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21757 if test $ac_cv_func_readlink = no; then
21759 "readlink.$ac_objext" | \
21760 *" readlink.$ac_objext" | \
21761 "readlink.$ac_objext "* | \
21762 *" readlink.$ac_objext "* ) ;;
21763 *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
21772 for ac_header in stdlib.h
21774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21776 echo "$as_me:$LINENO: checking for $ac_header" >&5
21777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21784 # Is the header compilable?
21785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21787 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 $ac_includes_default
21794 #include <$ac_header>
21796 rm -f conftest.$ac_objext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21798 (eval $ac_compile) 2>conftest.er1
21800 grep -v '^ *+' conftest.er1 >conftest.err
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
21805 { ac_try='test -z "$ac_c_werror_flag"
21806 || test ! -s conftest.err'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; } &&
21812 { ac_try='test -s conftest.$ac_objext'
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21818 ac_header_compiler=yes
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_header_compiler=no
21825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21827 echo "${ECHO_T}$ac_header_compiler" >&6
21829 # Is the header present?
21830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21832 cat >conftest.$ac_ext <<_ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21838 #include <$ac_header>
21840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21843 grep -v '^ *+' conftest.er1 >conftest.err
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } >/dev/null; then
21848 if test -s conftest.err; then
21849 ac_cpp_err=$ac_c_preproc_warn_flag
21850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21857 if test -z "$ac_cpp_err"; then
21858 ac_header_preproc=yes
21860 echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21863 ac_header_preproc=no
21865 rm -f conftest.err conftest.$ac_ext
21866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21867 echo "${ECHO_T}$ac_header_preproc" >&6
21869 # So? What about this header?
21870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21876 ac_header_preproc=yes
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21893 ## ------------------------------ ##
21894 ## Report this to bug-cvs@gnu.org ##
21895 ## ------------------------------ ##
21898 sed "s/^/$as_me: WARNING: /" >&2
21901 echo "$as_me:$LINENO: checking for $ac_header" >&5
21902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 eval "$as_ac_Header=\$ac_header_preproc"
21908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21913 cat >>confdefs.h <<_ACEOF
21914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21921 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21922 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
21923 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 if test "$cross_compiling" = yes; then
21927 ac_cv_func_realloc_0_nonnull=no
21929 cat >conftest.$ac_ext <<_ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h. */
21935 #if STDC_HEADERS || HAVE_STDLIB_H
21936 # include <stdlib.h>
21944 exit (realloc (0, 0) ? 0 : 1);
21949 rm -f conftest$ac_exeext
21950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21951 (eval $ac_link) 2>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; }; then
21960 ac_cv_func_realloc_0_nonnull=yes
21962 echo "$as_me: program exited with status $ac_status" >&5
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ( exit $ac_status )
21967 ac_cv_func_realloc_0_nonnull=no
21969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21972 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21973 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
21974 if test $ac_cv_func_realloc_0_nonnull = yes; then
21976 cat >>confdefs.h <<\_ACEOF
21977 #define HAVE_REALLOC 1
21981 cat >>confdefs.h <<\_ACEOF
21982 #define HAVE_REALLOC 0
21986 "realloc.$ac_objext" | \
21987 *" realloc.$ac_objext" | \
21988 "realloc.$ac_objext "* | \
21989 *" realloc.$ac_objext "* ) ;;
21990 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
21994 cat >>confdefs.h <<\_ACEOF
21995 #define realloc rpl_realloc
22005 # Assume we'll default to using the included regex.c.
22006 ac_use_included_regex=yes
22008 # However, if the system regex support is good enough that it passes the
22009 # the following run test, then default to *not* using the included regex.c.
22010 # If cross compiling, assume the test would fail and use the included
22011 # regex.c. The first failing regular expression is from `Spencer ere
22012 # test #75' in grep-2.3.
22013 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
22014 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
22015 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 if test "$cross_compiling" = yes; then
22019 jm_cv_func_working_re_compile_pattern=no
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22028 #include <string.h>
22033 static struct re_pattern_buffer regex;
22035 struct re_registers regs;
22036 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
22037 memset (®ex, 0, sizeof (regex));
22038 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
22039 /* This should fail with _Invalid character class name_ error. */
22043 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
22044 memset (®ex, 0, sizeof (regex));
22045 s = re_compile_pattern ("{1", 2, ®ex);
22050 /* The following example is derived from a problem report
22051 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
22052 memset (®ex, 0, sizeof (regex));
22053 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
22057 /* This should match, but doesn't for e.g. glibc-2.2.1. */
22058 if (re_match (®ex, "an", 2, 0, ®s) != 2)
22061 memset (®ex, 0, sizeof (regex));
22062 s = re_compile_pattern ("x", 1, ®ex);
22066 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
22067 work with a negative RANGE argument. */
22068 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
22075 rm -f conftest$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077 (eval $ac_link) 2>&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 jm_cv_func_working_re_compile_pattern=yes
22088 echo "$as_me: program exited with status $ac_status" >&5
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 ( exit $ac_status )
22093 jm_cv_func_working_re_compile_pattern=no
22095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22098 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
22099 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
22100 if test $jm_cv_func_working_re_compile_pattern = yes; then
22101 ac_use_included_regex=no
22104 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
22105 echo "$as_me: error: missing argument" >&2;}
22106 { (exit 1); exit 1; }; }
22110 # Check whether --with-included-regex or --without-included-regex was given.
22111 if test "${with_included_regex+set}" = set; then
22112 withval="$with_included_regex"
22113 jm_with_regex=$withval
22115 jm_with_regex=$ac_use_included_regex
22117 if test "$jm_with_regex" = yes; then
22119 "regex.$ac_objext" | \
22120 *" regex.$ac_objext" | \
22121 "regex.$ac_objext "* | \
22122 *" regex.$ac_objext "* ) ;;
22123 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
22154 for ac_func in btowc
22156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22157 echo "$as_me:$LINENO: checking for $ac_func" >&5
22158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22159 if eval "test \"\${$as_ac_var+set}\" = set"; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22162 cat >conftest.$ac_ext <<_ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h. */
22168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22170 #define $ac_func innocuous_$ac_func
22172 /* System header to define __stub macros and hopefully few prototypes,
22173 which can conflict with char $ac_func (); below.
22174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22175 <limits.h> exists even on freestanding compilers. */
22178 # include <limits.h>
22180 # include <assert.h>
22185 /* Override any gcc2 internal prototype to avoid an error. */
22190 /* We use char because int might match the return type of a gcc2
22191 builtin and then its argument prototype would still apply. */
22193 /* The GNU C library defines this for functions which it implements
22194 to always fail with ENOSYS. Some functions are actually named
22195 something starting with __ and the normal name is an alias. */
22196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22199 char (*f) () = $ac_func;
22208 return f != $ac_func;
22213 rm -f conftest.$ac_objext conftest$ac_exeext
22214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22215 (eval $ac_link) 2>conftest.er1
22217 grep -v '^ *+' conftest.er1 >conftest.err
22219 cat conftest.err >&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); } &&
22222 { ac_try='test -z "$ac_c_werror_flag"
22223 || test ! -s conftest.err'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; } &&
22229 { ac_try='test -s conftest$ac_exeext'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235 eval "$as_ac_var=yes"
22237 echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22240 eval "$as_ac_var=no"
22242 rm -f conftest.err conftest.$ac_objext \
22243 conftest$ac_exeext conftest.$ac_ext
22245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22247 if test `eval echo '${'$as_ac_var'}'` = yes; then
22248 cat >>confdefs.h <<_ACEOF
22249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22262 echo "$as_me:$LINENO: checking whether rename is broken" >&5
22263 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
22264 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 rm -rf conftest.d1 conftest.d2
22269 mkdir conftest.d1 ||
22270 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
22271 echo "$as_me: error: cannot create temporary directory" >&2;}
22272 { (exit 1); exit 1; }; }
22273 if test "$cross_compiling" = yes; then
22274 vb_cv_func_rename_trailing_slash_bug=yes
22276 cat >conftest.$ac_ext <<_ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22283 # include <stdio.h>
22287 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
22291 rm -f conftest$ac_exeext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22293 (eval $ac_link) 2>&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
22302 vb_cv_func_rename_trailing_slash_bug=no
22304 echo "$as_me: program exited with status $ac_status" >&5
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308 ( exit $ac_status )
22309 vb_cv_func_rename_trailing_slash_bug=yes
22311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22314 rm -rf conftest.d1 conftest.d2
22317 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
22318 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
22319 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
22321 "rename.$ac_objext" | \
22322 *" rename.$ac_objext" | \
22323 "rename.$ac_objext "* | \
22324 *" rename.$ac_objext "* ) ;;
22325 *) LIBOBJS="$LIBOBJS rename.$ac_objext" ;;
22329 cat >>confdefs.h <<\_ACEOF
22330 #define rename rpl_rename
22334 cat >>confdefs.h <<\_ACEOF
22335 #define RENAME_TRAILING_SLASH_BUG 1
22341 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
22342 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
22343 if test "${gl_cv_c_restrict+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 gl_cv_c_restrict=no
22347 # Try the official restrict keyword, then gcc's __restrict, and
22348 # the less common variants.
22349 for ac_kw in restrict __restrict __restrict__ _Restrict; do
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22358 rm -f conftest.$ac_objext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360 (eval $ac_compile) 2>conftest.er1
22362 grep -v '^ *+' conftest.er1 >conftest.err
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } &&
22367 { ac_try='test -z "$ac_c_werror_flag"
22368 || test ! -s conftest.err'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest.$ac_objext'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 gl_cv_c_restrict=$ac_kw; break
22382 echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22390 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
22391 echo "${ECHO_T}$gl_cv_c_restrict" >&6
22392 case $gl_cv_c_restrict in
22395 cat >>confdefs.h <<\_ACEOF
22399 *) cat >>confdefs.h <<_ACEOF
22400 #define restrict $gl_cv_c_restrict
22407 for ac_func in rpmatch
22409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22410 echo "$as_me:$LINENO: checking for $ac_func" >&5
22411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22412 if eval "test \"\${$as_ac_var+set}\" = set"; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22415 cat >conftest.$ac_ext <<_ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22423 #define $ac_func innocuous_$ac_func
22425 /* System header to define __stub macros and hopefully few prototypes,
22426 which can conflict with char $ac_func (); below.
22427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22428 <limits.h> exists even on freestanding compilers. */
22431 # include <limits.h>
22433 # include <assert.h>
22438 /* Override any gcc2 internal prototype to avoid an error. */
22443 /* We use char because int might match the return type of a gcc2
22444 builtin and then its argument prototype would still apply. */
22446 /* The GNU C library defines this for functions which it implements
22447 to always fail with ENOSYS. Some functions are actually named
22448 something starting with __ and the normal name is an alias. */
22449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22452 char (*f) () = $ac_func;
22461 return f != $ac_func;
22466 rm -f conftest.$ac_objext conftest$ac_exeext
22467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22468 (eval $ac_link) 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
22475 { ac_try='test -z "$ac_c_werror_flag"
22476 || test ! -s conftest.err'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; } &&
22482 { ac_try='test -s conftest$ac_exeext'
22483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484 (eval $ac_try) 2>&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); }; }; then
22488 eval "$as_ac_var=yes"
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 eval "$as_ac_var=no"
22495 rm -f conftest.err conftest.$ac_objext \
22496 conftest$ac_exeext conftest.$ac_ext
22498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22500 if test `eval echo '${'$as_ac_var'}'` = yes; then
22501 cat >>confdefs.h <<_ACEOF
22502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22507 "$ac_func.$ac_objext" | \
22508 *" $ac_func.$ac_objext" | \
22509 "$ac_func.$ac_objext "* | \
22510 *" $ac_func.$ac_objext "* ) ;;
22511 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22518 if test $ac_cv_func_rpmatch = no; then
22525 "save-cwd.$ac_objext" | \
22526 *" save-cwd.$ac_objext" | \
22527 "save-cwd.$ac_objext "* | \
22528 *" save-cwd.$ac_objext "* ) ;;
22529 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" ;;
22553 for ac_func in setenv unsetenv
22555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22556 echo "$as_me:$LINENO: checking for $ac_func" >&5
22557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22558 if eval "test \"\${$as_ac_var+set}\" = set"; then
22559 echo $ECHO_N "(cached) $ECHO_C" >&6
22561 cat >conftest.$ac_ext <<_ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22569 #define $ac_func innocuous_$ac_func
22571 /* System header to define __stub macros and hopefully few prototypes,
22572 which can conflict with char $ac_func (); below.
22573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22574 <limits.h> exists even on freestanding compilers. */
22577 # include <limits.h>
22579 # include <assert.h>
22584 /* Override any gcc2 internal prototype to avoid an error. */
22589 /* We use char because int might match the return type of a gcc2
22590 builtin and then its argument prototype would still apply. */
22592 /* The GNU C library defines this for functions which it implements
22593 to always fail with ENOSYS. Some functions are actually named
22594 something starting with __ and the normal name is an alias. */
22595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22598 char (*f) () = $ac_func;
22607 return f != $ac_func;
22612 rm -f conftest.$ac_objext conftest$ac_exeext
22613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22614 (eval $ac_link) 2>conftest.er1
22616 grep -v '^ *+' conftest.er1 >conftest.err
22618 cat conftest.err >&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try='test -z "$ac_c_werror_flag"
22622 || test ! -s conftest.err'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; } &&
22628 { ac_try='test -s conftest$ac_exeext'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 eval "$as_ac_var=yes"
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22639 eval "$as_ac_var=no"
22641 rm -f conftest.err conftest.$ac_objext \
22642 conftest$ac_exeext conftest.$ac_ext
22644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22646 if test `eval echo '${'$as_ac_var'}'` = yes; then
22647 cat >>confdefs.h <<_ACEOF
22648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22653 "$ac_func.$ac_objext" | \
22654 *" $ac_func.$ac_objext" | \
22655 "$ac_func.$ac_objext "* | \
22656 *" $ac_func.$ac_objext "* ) ;;
22657 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22664 if test $ac_cv_func_setenv = no; then
22675 for ac_header in search.h
22677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22679 echo "$as_me:$LINENO: checking for $ac_header" >&5
22680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22682 echo $ECHO_N "(cached) $ECHO_C" >&6
22684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22687 # Is the header compilable?
22688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22690 cat >conftest.$ac_ext <<_ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h. */
22696 $ac_includes_default
22697 #include <$ac_header>
22699 rm -f conftest.$ac_objext
22700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22701 (eval $ac_compile) 2>conftest.er1
22703 grep -v '^ *+' conftest.er1 >conftest.err
22705 cat conftest.err >&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } &&
22708 { ac_try='test -z "$ac_c_werror_flag"
22709 || test ! -s conftest.err'
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; } &&
22715 { ac_try='test -s conftest.$ac_objext'
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; }; then
22721 ac_header_compiler=yes
22723 echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22726 ac_header_compiler=no
22728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22730 echo "${ECHO_T}$ac_header_compiler" >&6
22732 # Is the header present?
22733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22735 cat >conftest.$ac_ext <<_ACEOF
22738 cat confdefs.h >>conftest.$ac_ext
22739 cat >>conftest.$ac_ext <<_ACEOF
22740 /* end confdefs.h. */
22741 #include <$ac_header>
22743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } >/dev/null; then
22751 if test -s conftest.err; then
22752 ac_cpp_err=$ac_c_preproc_warn_flag
22753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22760 if test -z "$ac_cpp_err"; then
22761 ac_header_preproc=yes
22763 echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 ac_header_preproc=no
22768 rm -f conftest.err conftest.$ac_ext
22769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22770 echo "${ECHO_T}$ac_header_preproc" >&6
22772 # So? What about this header?
22773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22779 ac_header_preproc=yes
22782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22796 ## ------------------------------ ##
22797 ## Report this to bug-cvs@gnu.org ##
22798 ## ------------------------------ ##
22801 sed "s/^/$as_me: WARNING: /" >&2
22804 echo "$as_me:$LINENO: checking for $ac_header" >&5
22805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22809 eval "$as_ac_Header=\$ac_header_preproc"
22811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22816 cat >>confdefs.h <<_ACEOF
22817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22825 for ac_func in tsearch
22827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22828 echo "$as_me:$LINENO: checking for $ac_func" >&5
22829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22830 if eval "test \"\${$as_ac_var+set}\" = set"; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22833 cat >conftest.$ac_ext <<_ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22841 #define $ac_func innocuous_$ac_func
22843 /* System header to define __stub macros and hopefully few prototypes,
22844 which can conflict with char $ac_func (); below.
22845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22846 <limits.h> exists even on freestanding compilers. */
22849 # include <limits.h>
22851 # include <assert.h>
22856 /* Override any gcc2 internal prototype to avoid an error. */
22861 /* We use char because int might match the return type of a gcc2
22862 builtin and then its argument prototype would still apply. */
22864 /* The GNU C library defines this for functions which it implements
22865 to always fail with ENOSYS. Some functions are actually named
22866 something starting with __ and the normal name is an alias. */
22867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22870 char (*f) () = $ac_func;
22879 return f != $ac_func;
22884 rm -f conftest.$ac_objext conftest$ac_exeext
22885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22886 (eval $ac_link) 2>conftest.er1
22888 grep -v '^ *+' conftest.er1 >conftest.err
22890 cat conftest.err >&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } &&
22893 { ac_try='test -z "$ac_c_werror_flag"
22894 || test ! -s conftest.err'
22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; } &&
22900 { ac_try='test -s conftest$ac_exeext'
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; }; then
22906 eval "$as_ac_var=yes"
22908 echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22911 eval "$as_ac_var=no"
22913 rm -f conftest.err conftest.$ac_objext \
22914 conftest$ac_exeext conftest.$ac_ext
22916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22918 if test `eval echo '${'$as_ac_var'}'` = yes; then
22919 cat >>confdefs.h <<_ACEOF
22920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22928 echo "$as_me:$LINENO: checking if errno is properly declared" >&5
22929 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
22930 if test "${gt_cv_var_errno_declaration+set}" = set; then
22931 echo $ECHO_N "(cached) $ECHO_C" >&6
22934 cat >conftest.$ac_ext <<_ACEOF
22937 cat confdefs.h >>conftest.$ac_ext
22938 cat >>conftest.$ac_ext <<_ACEOF
22939 /* end confdefs.h. */
22941 extern struct { int foo; } errno;
22950 rm -f conftest.$ac_objext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22952 (eval $ac_compile) 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } &&
22959 { ac_try='test -z "$ac_c_werror_flag"
22960 || test ! -s conftest.err'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; } &&
22966 { ac_try='test -s conftest.$ac_objext'
22967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968 (eval $ac_try) 2>&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); }; }; then
22972 gt_cv_var_errno_declaration=no
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 gt_cv_var_errno_declaration=yes
22979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22982 echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
22983 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
22984 if test $gt_cv_var_errno_declaration = yes; then
22986 cat >>confdefs.h <<\_ACEOF
22987 #define HAVE_ERRNO_DECL 1
22994 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22995 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
22996 if test "${gt_cv_var_environ_declaration+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
23000 cat >conftest.$ac_ext <<_ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h. */
23006 #include <unistd.h>
23007 extern struct { int foo; } environ;
23016 rm -f conftest.$ac_objext
23017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23018 (eval $ac_compile) 2>conftest.er1
23020 grep -v '^ *+' conftest.er1 >conftest.err
23022 cat conftest.err >&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } &&
23025 { ac_try='test -z "$ac_c_werror_flag"
23026 || test ! -s conftest.err'
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; } &&
23032 { ac_try='test -s conftest.$ac_objext'
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; }; then
23038 gt_cv_var_environ_declaration=no
23040 echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23043 gt_cv_var_environ_declaration=yes
23045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23048 echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
23049 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
23050 if test $gt_cv_var_environ_declaration = yes; then
23052 cat >>confdefs.h <<\_ACEOF
23053 #define HAVE_ENVIRON_DECL 1
23060 if test $ac_cv_func_unsetenv = no; then
23071 echo "$as_me:$LINENO: checking if errno is properly declared" >&5
23072 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
23073 if test "${gt_cv_var_errno_declaration+set}" = set; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23077 cat >conftest.$ac_ext <<_ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23084 extern struct { int foo; } errno;
23093 rm -f conftest.$ac_objext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23095 (eval $ac_compile) 2>conftest.er1
23097 grep -v '^ *+' conftest.er1 >conftest.err
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } &&
23102 { ac_try='test -z "$ac_c_werror_flag"
23103 || test ! -s conftest.err'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; } &&
23109 { ac_try='test -s conftest.$ac_objext'
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; }; then
23115 gt_cv_var_errno_declaration=no
23117 echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23120 gt_cv_var_errno_declaration=yes
23122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23125 echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
23126 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
23127 if test $gt_cv_var_errno_declaration = yes; then
23129 cat >>confdefs.h <<\_ACEOF
23130 #define HAVE_ERRNO_DECL 1
23137 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
23138 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
23139 if test "${gt_cv_var_environ_declaration+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 #include <unistd.h>
23150 extern struct { int foo; } environ;
23159 rm -f conftest.$ac_objext
23160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23161 (eval $ac_compile) 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } &&
23168 { ac_try='test -z "$ac_c_werror_flag"
23169 || test ! -s conftest.err'
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; } &&
23175 { ac_try='test -s conftest.$ac_objext'
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 gt_cv_var_environ_declaration=no
23183 echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23186 gt_cv_var_environ_declaration=yes
23188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23191 echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
23192 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
23193 if test $gt_cv_var_environ_declaration = yes; then
23195 cat >>confdefs.h <<\_ACEOF
23196 #define HAVE_ENVIRON_DECL 1
23203 echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
23204 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
23205 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23214 #include <stdlib.h>
23219 #if defined(__STDC__) || defined(__cplusplus)
23220 int unsetenv (const char *name);
23233 rm -f conftest.$ac_objext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23235 (eval $ac_compile) 2>conftest.er1
23237 grep -v '^ *+' conftest.er1 >conftest.err
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
23242 { ac_try='test -z "$ac_c_werror_flag"
23243 || test ! -s conftest.err'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest.$ac_objext'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 gt_cv_func_unsetenv_ret='int'
23257 echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23260 gt_cv_func_unsetenv_ret='void'
23262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23264 echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
23265 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
23266 if test $gt_cv_func_unsetenv_ret = 'void'; then
23268 cat >>confdefs.h <<\_ACEOF
23269 #define VOID_UNSETENV 1
23276 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
23277 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
23278 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23281 if test "$cross_compiling" = yes; then
23282 ac_cv_func_stat_empty_string_bug=yes
23284 cat >conftest.$ac_ext <<_ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h. */
23290 $ac_includes_default
23295 exit (stat ("", &sbuf) ? 1 : 0);
23300 rm -f conftest$ac_exeext
23301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23302 (eval $ac_link) 2>&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307 (eval $ac_try) 2>&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; }; then
23311 ac_cv_func_stat_empty_string_bug=yes
23313 echo "$as_me: program exited with status $ac_status" >&5
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 ( exit $ac_status )
23318 ac_cv_func_stat_empty_string_bug=no
23320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23323 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
23324 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
23325 if test $ac_cv_func_stat_empty_string_bug = yes; then
23327 "stat.$ac_objext" | \
23328 *" stat.$ac_objext" | \
23329 "stat.$ac_objext "* | \
23330 *" stat.$ac_objext "* ) ;;
23331 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
23335 cat >>confdefs.h <<_ACEOF
23336 #define HAVE_STAT_EMPTY_STRING_BUG 1
23341 if test $ac_cv_func_stat_empty_string_bug = yes; then
23353 # Define two additional variables used in the Makefile substitution.
23355 if test "$ac_cv_header_stdbool_h" = yes; then
23358 STDBOOL_H='stdbool.h'
23362 if test "$ac_cv_type__Bool" = yes; then
23371 for ac_header in sys/inttypes.h
23373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23375 echo "$as_me:$LINENO: checking for $ac_header" >&5
23376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23383 # Is the header compilable?
23384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23386 cat >conftest.$ac_ext <<_ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23392 $ac_includes_default
23393 #include <$ac_header>
23395 rm -f conftest.$ac_objext
23396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23397 (eval $ac_compile) 2>conftest.er1
23399 grep -v '^ *+' conftest.er1 >conftest.err
23401 cat conftest.err >&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } &&
23404 { ac_try='test -z "$ac_c_werror_flag"
23405 || test ! -s conftest.err'
23406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407 (eval $ac_try) 2>&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); }; } &&
23411 { ac_try='test -s conftest.$ac_objext'
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; }; then
23417 ac_header_compiler=yes
23419 echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23422 ac_header_compiler=no
23424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23426 echo "${ECHO_T}$ac_header_compiler" >&6
23428 # Is the header present?
23429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23431 cat >conftest.$ac_ext <<_ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23437 #include <$ac_header>
23439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23442 grep -v '^ *+' conftest.er1 >conftest.err
23444 cat conftest.err >&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } >/dev/null; then
23447 if test -s conftest.err; then
23448 ac_cpp_err=$ac_c_preproc_warn_flag
23449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23456 if test -z "$ac_cpp_err"; then
23457 ac_header_preproc=yes
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 ac_header_preproc=no
23464 rm -f conftest.err conftest.$ac_ext
23465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23466 echo "${ECHO_T}$ac_header_preproc" >&6
23468 # So? What about this header?
23469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23475 ac_header_preproc=yes
23478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23492 ## ------------------------------ ##
23493 ## Report this to bug-cvs@gnu.org ##
23494 ## ------------------------------ ##
23497 sed "s/^/$as_me: WARNING: /" >&2
23500 echo "$as_me:$LINENO: checking for $ac_header" >&5
23501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23505 eval "$as_ac_Header=\$ac_header_preproc"
23507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23512 cat >>confdefs.h <<_ACEOF
23513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23521 echo "$as_me:$LINENO: checking for stdint.h" >&5
23522 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
23523 if test "${gl_cv_header_stdint_h+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23527 cat >conftest.$ac_ext <<_ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h. */
23533 #include <stdint.h>
23542 rm -f conftest.$ac_objext
23543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23544 (eval $ac_compile) 2>conftest.er1
23546 grep -v '^ *+' conftest.er1 >conftest.err
23548 cat conftest.err >&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } &&
23551 { ac_try='test -z "$ac_c_werror_flag"
23552 || test ! -s conftest.err'
23553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554 (eval $ac_try) 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; } &&
23558 { ac_try='test -s conftest.$ac_objext'
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; }; then
23564 gl_cv_header_stdint_h=yes
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 gl_cv_header_stdint_h=no
23571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23574 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
23575 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
23576 if test $gl_cv_header_stdint_h = yes; then
23578 cat >>confdefs.h <<\_ACEOF
23579 #define HAVE_STDINT_H 1
23584 STDINT_H='stdint.h'
23586 echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
23587 echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6
23588 if test "${gl_cv_long_bitsize_64+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 cat >conftest.$ac_ext <<_ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23599 #define POW63 ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
23600 #define POW64 ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
23601 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
23611 rm -f conftest.$ac_objext
23612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23613 (eval $ac_compile) 2>conftest.er1
23615 grep -v '^ *+' conftest.er1 >conftest.err
23617 cat conftest.err >&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } &&
23620 { ac_try='test -z "$ac_c_werror_flag"
23621 || test ! -s conftest.err'
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; } &&
23627 { ac_try='test -s conftest.$ac_objext'
23628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629 (eval $ac_try) 2>&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); }; }; then
23633 gl_cv_long_bitsize_64=yes
23635 echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 gl_cv_long_bitsize_64=no
23640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23642 echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
23643 echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6
23644 if test $gl_cv_long_bitsize_64 = yes; then
23651 echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
23652 echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6
23653 if test "${gl_cv_longlong_bitsize_64+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23657 cat >conftest.$ac_ext <<_ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23664 #define POW63 ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
23665 #define POW64 ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
23666 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
23676 rm -f conftest.$ac_objext
23677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23678 (eval $ac_compile) 2>conftest.er1
23680 grep -v '^ *+' conftest.er1 >conftest.err
23682 cat conftest.err >&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } &&
23685 { ac_try='test -z "$ac_c_werror_flag"
23686 || test ! -s conftest.err'
23687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688 (eval $ac_try) 2>&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); }; } &&
23692 { ac_try='test -s conftest.$ac_objext'
23693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694 (eval $ac_try) 2>&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; }; then
23698 gl_cv_longlong_bitsize_64=yes
23700 echo "$as_me: failed program was:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23703 gl_cv_longlong_bitsize_64=no
23705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23707 echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
23708 echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6
23709 if test $gl_cv_longlong_bitsize_64 = yes; then
23710 HAVE_LONG_LONG_64BIT=1
23712 HAVE_LONG_LONG_64BIT=0
23722 for ac_func in strcasecmp
23724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23725 echo "$as_me:$LINENO: checking for $ac_func" >&5
23726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23727 if eval "test \"\${$as_ac_var+set}\" = set"; then
23728 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 cat >conftest.$ac_ext <<_ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h. */
23736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23738 #define $ac_func innocuous_$ac_func
23740 /* System header to define __stub macros and hopefully few prototypes,
23741 which can conflict with char $ac_func (); below.
23742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23743 <limits.h> exists even on freestanding compilers. */
23746 # include <limits.h>
23748 # include <assert.h>
23753 /* Override any gcc2 internal prototype to avoid an error. */
23758 /* We use char because int might match the return type of a gcc2
23759 builtin and then its argument prototype would still apply. */
23761 /* The GNU C library defines this for functions which it implements
23762 to always fail with ENOSYS. Some functions are actually named
23763 something starting with __ and the normal name is an alias. */
23764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23767 char (*f) () = $ac_func;
23776 return f != $ac_func;
23781 rm -f conftest.$ac_objext conftest$ac_exeext
23782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23783 (eval $ac_link) 2>conftest.er1
23785 grep -v '^ *+' conftest.er1 >conftest.err
23787 cat conftest.err >&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } &&
23790 { ac_try='test -z "$ac_c_werror_flag"
23791 || test ! -s conftest.err'
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; } &&
23797 { ac_try='test -s conftest$ac_exeext'
23798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23799 (eval $ac_try) 2>&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); }; }; then
23803 eval "$as_ac_var=yes"
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23808 eval "$as_ac_var=no"
23810 rm -f conftest.err conftest.$ac_objext \
23811 conftest$ac_exeext conftest.$ac_ext
23813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23815 if test `eval echo '${'$as_ac_var'}'` = yes; then
23816 cat >>confdefs.h <<_ACEOF
23817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23822 "$ac_func.$ac_objext" | \
23823 *" $ac_func.$ac_objext" | \
23824 "$ac_func.$ac_objext "* | \
23825 *" $ac_func.$ac_objext "* ) ;;
23826 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23833 if test $ac_cv_func_strcasecmp = no; then
23841 for ac_func in strncasecmp
23843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23844 echo "$as_me:$LINENO: checking for $ac_func" >&5
23845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23846 if eval "test \"\${$as_ac_var+set}\" = set"; then
23847 echo $ECHO_N "(cached) $ECHO_C" >&6
23849 cat >conftest.$ac_ext <<_ACEOF
23852 cat confdefs.h >>conftest.$ac_ext
23853 cat >>conftest.$ac_ext <<_ACEOF
23854 /* end confdefs.h. */
23855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23857 #define $ac_func innocuous_$ac_func
23859 /* System header to define __stub macros and hopefully few prototypes,
23860 which can conflict with char $ac_func (); below.
23861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23862 <limits.h> exists even on freestanding compilers. */
23865 # include <limits.h>
23867 # include <assert.h>
23872 /* Override any gcc2 internal prototype to avoid an error. */
23877 /* We use char because int might match the return type of a gcc2
23878 builtin and then its argument prototype would still apply. */
23880 /* The GNU C library defines this for functions which it implements
23881 to always fail with ENOSYS. Some functions are actually named
23882 something starting with __ and the normal name is an alias. */
23883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23886 char (*f) () = $ac_func;
23895 return f != $ac_func;
23900 rm -f conftest.$ac_objext conftest$ac_exeext
23901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23902 (eval $ac_link) 2>conftest.er1
23904 grep -v '^ *+' conftest.er1 >conftest.err
23906 cat conftest.err >&5
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } &&
23909 { ac_try='test -z "$ac_c_werror_flag"
23910 || test ! -s conftest.err'
23911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912 (eval $ac_try) 2>&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; } &&
23916 { ac_try='test -s conftest$ac_exeext'
23917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918 (eval $ac_try) 2>&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); }; }; then
23922 eval "$as_ac_var=yes"
23924 echo "$as_me: failed program was:" >&5
23925 sed 's/^/| /' conftest.$ac_ext >&5
23927 eval "$as_ac_var=no"
23929 rm -f conftest.err conftest.$ac_objext \
23930 conftest$ac_exeext conftest.$ac_ext
23932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23934 if test `eval echo '${'$as_ac_var'}'` = yes; then
23935 cat >>confdefs.h <<_ACEOF
23936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23941 "$ac_func.$ac_objext" | \
23942 *" $ac_func.$ac_objext" | \
23943 "$ac_func.$ac_objext "* | \
23944 *" $ac_func.$ac_objext "* ) ;;
23945 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23952 if test $ac_cv_func_strncasecmp = no; then
23961 for ac_func in strerror
23963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23964 echo "$as_me:$LINENO: checking for $ac_func" >&5
23965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23966 if eval "test \"\${$as_ac_var+set}\" = set"; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23969 cat >conftest.$ac_ext <<_ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23977 #define $ac_func innocuous_$ac_func
23979 /* System header to define __stub macros and hopefully few prototypes,
23980 which can conflict with char $ac_func (); below.
23981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23982 <limits.h> exists even on freestanding compilers. */
23985 # include <limits.h>
23987 # include <assert.h>
23992 /* Override any gcc2 internal prototype to avoid an error. */
23997 /* We use char because int might match the return type of a gcc2
23998 builtin and then its argument prototype would still apply. */
24000 /* The GNU C library defines this for functions which it implements
24001 to always fail with ENOSYS. Some functions are actually named
24002 something starting with __ and the normal name is an alias. */
24003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24006 char (*f) () = $ac_func;
24015 return f != $ac_func;
24020 rm -f conftest.$ac_objext conftest$ac_exeext
24021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24022 (eval $ac_link) 2>conftest.er1
24024 grep -v '^ *+' conftest.er1 >conftest.err
24026 cat conftest.err >&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } &&
24029 { ac_try='test -z "$ac_c_werror_flag"
24030 || test ! -s conftest.err'
24031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032 (eval $ac_try) 2>&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); }; } &&
24036 { ac_try='test -s conftest$ac_exeext'
24037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038 (eval $ac_try) 2>&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); }; }; then
24042 eval "$as_ac_var=yes"
24044 echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24047 eval "$as_ac_var=no"
24049 rm -f conftest.err conftest.$ac_objext \
24050 conftest$ac_exeext conftest.$ac_ext
24052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24054 if test `eval echo '${'$as_ac_var'}'` = yes; then
24055 cat >>confdefs.h <<_ACEOF
24056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24061 "$ac_func.$ac_objext" | \
24062 *" $ac_func.$ac_objext" | \
24063 "$ac_func.$ac_objext "* | \
24064 *" $ac_func.$ac_objext "* ) ;;
24065 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24072 if test $ac_cv_func_strerror = no; then
24081 for ac_func in strstr
24083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24084 echo "$as_me:$LINENO: checking for $ac_func" >&5
24085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24086 if eval "test \"\${$as_ac_var+set}\" = set"; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24089 cat >conftest.$ac_ext <<_ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24097 #define $ac_func innocuous_$ac_func
24099 /* System header to define __stub macros and hopefully few prototypes,
24100 which can conflict with char $ac_func (); below.
24101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24102 <limits.h> exists even on freestanding compilers. */
24105 # include <limits.h>
24107 # include <assert.h>
24112 /* Override any gcc2 internal prototype to avoid an error. */
24117 /* We use char because int might match the return type of a gcc2
24118 builtin and then its argument prototype would still apply. */
24120 /* The GNU C library defines this for functions which it implements
24121 to always fail with ENOSYS. Some functions are actually named
24122 something starting with __ and the normal name is an alias. */
24123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24126 char (*f) () = $ac_func;
24135 return f != $ac_func;
24140 rm -f conftest.$ac_objext conftest$ac_exeext
24141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24142 (eval $ac_link) 2>conftest.er1
24144 grep -v '^ *+' conftest.er1 >conftest.err
24146 cat conftest.err >&5
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); } &&
24149 { ac_try='test -z "$ac_c_werror_flag"
24150 || test ! -s conftest.err'
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest$ac_exeext'
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; }; then
24162 eval "$as_ac_var=yes"
24164 echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24167 eval "$as_ac_var=no"
24169 rm -f conftest.err conftest.$ac_objext \
24170 conftest$ac_exeext conftest.$ac_ext
24172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24174 if test `eval echo '${'$as_ac_var'}'` = yes; then
24175 cat >>confdefs.h <<_ACEOF
24176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24181 "$ac_func.$ac_objext" | \
24182 *" $ac_func.$ac_objext" | \
24183 "$ac_func.$ac_objext "* | \
24184 *" $ac_func.$ac_objext "* ) ;;
24185 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24192 if test $ac_cv_func_strstr = no; then
24198 for ac_func in strtol
24200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24201 echo "$as_me:$LINENO: checking for $ac_func" >&5
24202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24203 if eval "test \"\${$as_ac_var+set}\" = set"; then
24204 echo $ECHO_N "(cached) $ECHO_C" >&6
24206 cat >conftest.$ac_ext <<_ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h. */
24212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24214 #define $ac_func innocuous_$ac_func
24216 /* System header to define __stub macros and hopefully few prototypes,
24217 which can conflict with char $ac_func (); below.
24218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24219 <limits.h> exists even on freestanding compilers. */
24222 # include <limits.h>
24224 # include <assert.h>
24229 /* Override any gcc2 internal prototype to avoid an error. */
24234 /* We use char because int might match the return type of a gcc2
24235 builtin and then its argument prototype would still apply. */
24237 /* The GNU C library defines this for functions which it implements
24238 to always fail with ENOSYS. Some functions are actually named
24239 something starting with __ and the normal name is an alias. */
24240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24243 char (*f) () = $ac_func;
24252 return f != $ac_func;
24257 rm -f conftest.$ac_objext conftest$ac_exeext
24258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24259 (eval $ac_link) 2>conftest.er1
24261 grep -v '^ *+' conftest.er1 >conftest.err
24263 cat conftest.err >&5
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); } &&
24266 { ac_try='test -z "$ac_c_werror_flag"
24267 || test ! -s conftest.err'
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; } &&
24273 { ac_try='test -s conftest$ac_exeext'
24274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; }; then
24279 eval "$as_ac_var=yes"
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 eval "$as_ac_var=no"
24286 rm -f conftest.err conftest.$ac_objext \
24287 conftest$ac_exeext conftest.$ac_ext
24289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24291 if test `eval echo '${'$as_ac_var'}'` = yes; then
24292 cat >>confdefs.h <<_ACEOF
24293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24298 "$ac_func.$ac_objext" | \
24299 *" $ac_func.$ac_objext" | \
24300 "$ac_func.$ac_objext "* | \
24301 *" $ac_func.$ac_objext "* ) ;;
24302 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24309 if test $ac_cv_func_strtol = no; then
24324 for ac_func in strtoul
24326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24327 echo "$as_me:$LINENO: checking for $ac_func" >&5
24328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24329 if eval "test \"\${$as_ac_var+set}\" = set"; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 cat >conftest.$ac_ext <<_ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24340 #define $ac_func innocuous_$ac_func
24342 /* System header to define __stub macros and hopefully few prototypes,
24343 which can conflict with char $ac_func (); below.
24344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24345 <limits.h> exists even on freestanding compilers. */
24348 # include <limits.h>
24350 # include <assert.h>
24355 /* Override any gcc2 internal prototype to avoid an error. */
24360 /* We use char because int might match the return type of a gcc2
24361 builtin and then its argument prototype would still apply. */
24363 /* The GNU C library defines this for functions which it implements
24364 to always fail with ENOSYS. Some functions are actually named
24365 something starting with __ and the normal name is an alias. */
24366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24369 char (*f) () = $ac_func;
24378 return f != $ac_func;
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24385 (eval $ac_link) 2>conftest.er1
24387 grep -v '^ *+' conftest.er1 >conftest.err
24389 cat conftest.err >&5
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); } &&
24392 { ac_try='test -z "$ac_c_werror_flag"
24393 || test ! -s conftest.err'
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; } &&
24399 { ac_try='test -s conftest$ac_exeext'
24400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401 (eval $ac_try) 2>&5
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); }; }; then
24405 eval "$as_ac_var=yes"
24407 echo "$as_me: failed program was:" >&5
24408 sed 's/^/| /' conftest.$ac_ext >&5
24410 eval "$as_ac_var=no"
24412 rm -f conftest.err conftest.$ac_objext \
24413 conftest$ac_exeext conftest.$ac_ext
24415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24417 if test `eval echo '${'$as_ac_var'}'` = yes; then
24418 cat >>confdefs.h <<_ACEOF
24419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24424 "$ac_func.$ac_objext" | \
24425 *" $ac_func.$ac_objext" | \
24426 "$ac_func.$ac_objext "* | \
24427 *" $ac_func.$ac_objext "* ) ;;
24428 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24435 if test $ac_cv_func_strtoul = no; then
24454 echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
24455 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6
24456 if test "${gl_cv_time_r_posix+set}" = set; then
24457 echo $ECHO_N "(cached) $ECHO_C" >&6
24459 cat >conftest.$ac_ext <<_ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h. */
24469 /* We don't need to append 'restrict's to the argument types,
24470 even though the POSIX signature has the 'restrict's,
24471 since C99 says they can't affect type compatibility. */
24472 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24477 rm -f conftest.$ac_objext
24478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24479 (eval $ac_compile) 2>conftest.er1
24481 grep -v '^ *+' conftest.er1 >conftest.err
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } &&
24486 { ac_try='test -z "$ac_c_werror_flag"
24487 || test ! -s conftest.err'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; } &&
24493 { ac_try='test -s conftest.$ac_objext'
24494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495 (eval $ac_try) 2>&5
24497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); }; }; then
24499 gl_cv_time_r_posix=yes
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24504 gl_cv_time_r_posix=no
24506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24508 echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
24509 echo "${ECHO_T}$gl_cv_time_r_posix" >&6
24510 if test $gl_cv_time_r_posix = yes; then
24512 cat >>confdefs.h <<\_ACEOF
24513 #define HAVE_TIME_R_POSIX 1
24518 "time_r.$ac_objext" | \
24519 *" time_r.$ac_objext" | \
24520 "time_r.$ac_objext "* | \
24521 *" time_r.$ac_objext "* ) ;;
24522 *) LIBOBJS="$LIBOBJS time_r.$ac_objext" ;;
24552 echo "$as_me:$LINENO: checking for struct timespec" >&5
24553 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
24554 if test "${fu_cv_sys_struct_timespec+set}" = set; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24564 # if TIME_WITH_SYS_TIME
24565 # include <sys/time.h>
24568 # if HAVE_SYS_TIME_H
24569 # include <sys/time.h>
24578 static struct timespec x; x.tv_sec = x.tv_nsec;
24583 rm -f conftest.$ac_objext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24585 (eval $ac_compile) 2>conftest.er1
24587 grep -v '^ *+' conftest.er1 >conftest.err
24589 cat conftest.err >&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } &&
24592 { ac_try='test -z "$ac_c_werror_flag"
24593 || test ! -s conftest.err'
24594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595 (eval $ac_try) 2>&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); }; } &&
24599 { ac_try='test -s conftest.$ac_objext'
24600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; }; then
24605 fu_cv_sys_struct_timespec=yes
24607 echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24610 fu_cv_sys_struct_timespec=no
24612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24615 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
24616 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
24618 if test $fu_cv_sys_struct_timespec = yes; then
24620 cat >>confdefs.h <<\_ACEOF
24621 #define HAVE_STRUCT_TIMESPEC 1
24626 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
24627 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
24628 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24631 ac_save_CPPFLAGS="$CPPFLAGS"
24632 ac_cv_struct_st_mtim_nsec=no
24633 # tv_nsec -- the usual case
24634 # _tv_nsec -- Solaris 2.6, if
24635 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
24636 # && !defined __EXTENSIONS__)
24637 # st__tim.tv_nsec -- UnixWare 2.1.2
24638 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
24639 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
24640 cat >conftest.$ac_ext <<_ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h. */
24646 #include <sys/types.h>
24647 #include <sys/stat.h>
24651 struct stat s; s.st_mtim.ST_MTIM_NSEC;
24656 rm -f conftest.$ac_objext
24657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24658 (eval $ac_compile) 2>conftest.er1
24660 grep -v '^ *+' conftest.er1 >conftest.err
24662 cat conftest.err >&5
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); } &&
24665 { ac_try='test -z "$ac_c_werror_flag"
24666 || test ! -s conftest.err'
24667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668 (eval $ac_try) 2>&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; } &&
24672 { ac_try='test -s conftest.$ac_objext'
24673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674 (eval $ac_try) 2>&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24678 ac_cv_struct_st_mtim_nsec=$ac_val; break
24680 echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24686 CPPFLAGS="$ac_save_CPPFLAGS"
24688 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
24689 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
24691 if test $ac_cv_struct_st_mtim_nsec != no; then
24693 cat >>confdefs.h <<_ACEOF
24694 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
24703 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
24704 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
24705 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
24706 echo $ECHO_N "(cached) $ECHO_C" >&6
24708 cat >conftest.$ac_ext <<_ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h. */
24720 char *p = (char *) nanosleep;
24727 rm -f conftest.$ac_objext
24728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24729 (eval $ac_compile) 2>conftest.er1
24731 grep -v '^ *+' conftest.er1 >conftest.err
24733 cat conftest.err >&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); } &&
24736 { ac_try='test -z "$ac_c_werror_flag"
24737 || test ! -s conftest.err'
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; } &&
24743 { ac_try='test -s conftest.$ac_objext'
24744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745 (eval $ac_try) 2>&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; }; then
24749 ac_cv_have_decl_nanosleep=yes
24751 echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.$ac_ext >&5
24754 ac_cv_have_decl_nanosleep=no
24756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24758 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
24759 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
24760 if test $ac_cv_have_decl_nanosleep = yes; then
24762 cat >>confdefs.h <<_ACEOF
24763 #define HAVE_DECL_NANOSLEEP 1
24768 cat >>confdefs.h <<_ACEOF
24769 #define HAVE_DECL_NANOSLEEP 0
24779 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
24780 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
24781 if test "${gl_cv_func_tzset_clobber+set}" = set; then
24782 echo $ECHO_N "(cached) $ECHO_C" >&6
24785 if test "$cross_compiling" = yes; then
24786 gl_cv_func_tzset_clobber=yes
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24795 #if TIME_WITH_SYS_TIME
24796 # include <sys/time.h>
24799 # if HAVE_SYS_TIME_H
24800 # include <sys/time.h>
24805 #include <stdlib.h>
24810 time_t t1 = 853958121;
24812 putenv ("TZ=GMT0");
24813 p = localtime (&t1);
24815 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
24817 exit (p->tm_year != s.tm_year
24818 || p->tm_mon != s.tm_mon
24819 || p->tm_mday != s.tm_mday
24820 || p->tm_hour != s.tm_hour
24821 || p->tm_min != s.tm_min
24822 || p->tm_sec != s.tm_sec);
24826 rm -f conftest$ac_exeext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24828 (eval $ac_link) 2>&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833 (eval $ac_try) 2>&5
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); }; }; then
24837 gl_cv_func_tzset_clobber=no
24839 echo "$as_me: program exited with status $ac_status" >&5
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24843 ( exit $ac_status )
24844 gl_cv_func_tzset_clobber=yes
24846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24849 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
24850 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
24853 cat >>confdefs.h <<\_ACEOF
24854 #define HAVE_RUN_TZSET_TEST 1
24858 if test $gl_cv_func_tzset_clobber = yes; then
24861 "gettimeofday.$ac_objext" | \
24862 *" gettimeofday.$ac_objext" | \
24863 "gettimeofday.$ac_objext "* | \
24864 *" gettimeofday.$ac_objext "* ) ;;
24865 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
24869 cat >>confdefs.h <<\_ACEOF
24870 #define gmtime rpl_gmtime
24874 cat >>confdefs.h <<\_ACEOF
24875 #define localtime rpl_localtime
24881 cat >>confdefs.h <<\_ACEOF
24882 #define tzset rpl_tzset
24886 cat >>confdefs.h <<\_ACEOF
24887 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
24896 cat >>confdefs.h <<\_ACEOF
24897 #define USE_UNLOCKED_IO 1
24950 for ac_func in vasnprintf
24952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24953 echo "$as_me:$LINENO: checking for $ac_func" >&5
24954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24955 if eval "test \"\${$as_ac_var+set}\" = set"; then
24956 echo $ECHO_N "(cached) $ECHO_C" >&6
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24966 #define $ac_func innocuous_$ac_func
24968 /* System header to define __stub macros and hopefully few prototypes,
24969 which can conflict with char $ac_func (); below.
24970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24971 <limits.h> exists even on freestanding compilers. */
24974 # include <limits.h>
24976 # include <assert.h>
24981 /* Override any gcc2 internal prototype to avoid an error. */
24986 /* We use char because int might match the return type of a gcc2
24987 builtin and then its argument prototype would still apply. */
24989 /* The GNU C library defines this for functions which it implements
24990 to always fail with ENOSYS. Some functions are actually named
24991 something starting with __ and the normal name is an alias. */
24992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24995 char (*f) () = $ac_func;
25004 return f != $ac_func;
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25011 (eval $ac_link) 2>conftest.er1
25013 grep -v '^ *+' conftest.er1 >conftest.err
25015 cat conftest.err >&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
25018 { ac_try='test -z "$ac_c_werror_flag"
25019 || test ! -s conftest.err'
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
25025 { ac_try='test -s conftest$ac_exeext'
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 eval "$as_ac_var=yes"
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25036 eval "$as_ac_var=no"
25038 rm -f conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
25041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25043 if test `eval echo '${'$as_ac_var'}'` = yes; then
25044 cat >>confdefs.h <<_ACEOF
25045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25050 "$ac_func.$ac_objext" | \
25051 *" $ac_func.$ac_objext" | \
25052 "$ac_func.$ac_objext "* | \
25053 *" $ac_func.$ac_objext "* ) ;;
25054 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25061 if test $ac_cv_func_vasnprintf = no; then
25063 "printf-args.$ac_objext" | \
25064 *" printf-args.$ac_objext" | \
25065 "printf-args.$ac_objext "* | \
25066 *" printf-args.$ac_objext "* ) ;;
25067 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
25071 "printf-parse.$ac_objext" | \
25072 *" printf-parse.$ac_objext" | \
25073 "printf-parse.$ac_objext "* | \
25074 *" printf-parse.$ac_objext "* ) ;;
25075 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
25079 "asnprintf.$ac_objext" | \
25080 *" asnprintf.$ac_objext" | \
25081 "asnprintf.$ac_objext "* | \
25082 *" asnprintf.$ac_objext "* ) ;;
25083 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
25099 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25100 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
25101 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25102 echo $ECHO_N "(cached) $ECHO_C" >&6
25104 cat >conftest.$ac_ext <<_ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25110 $ac_includes_default
25114 if ((ptrdiff_t *) 0)
25116 if (sizeof (ptrdiff_t))
25122 rm -f conftest.$ac_objext
25123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25124 (eval $ac_compile) 2>conftest.er1
25126 grep -v '^ *+' conftest.er1 >conftest.err
25128 cat conftest.err >&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); } &&
25131 { ac_try='test -z "$ac_c_werror_flag"
25132 || test ! -s conftest.err'
25133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25134 (eval $ac_try) 2>&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); }; } &&
25138 { ac_try='test -s conftest.$ac_objext'
25139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140 (eval $ac_try) 2>&5
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; }; then
25144 ac_cv_type_ptrdiff_t=yes
25146 echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25149 ac_cv_type_ptrdiff_t=no
25151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25153 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25154 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
25155 if test $ac_cv_type_ptrdiff_t = yes; then
25157 cat >>confdefs.h <<_ACEOF
25158 #define HAVE_PTRDIFF_T 1
25174 for ac_func in snprintf wcslen
25176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25177 echo "$as_me:$LINENO: checking for $ac_func" >&5
25178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25179 if eval "test \"\${$as_ac_var+set}\" = set"; then
25180 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 cat >conftest.$ac_ext <<_ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25190 #define $ac_func innocuous_$ac_func
25192 /* System header to define __stub macros and hopefully few prototypes,
25193 which can conflict with char $ac_func (); below.
25194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25195 <limits.h> exists even on freestanding compilers. */
25198 # include <limits.h>
25200 # include <assert.h>
25205 /* Override any gcc2 internal prototype to avoid an error. */
25210 /* We use char because int might match the return type of a gcc2
25211 builtin and then its argument prototype would still apply. */
25213 /* The GNU C library defines this for functions which it implements
25214 to always fail with ENOSYS. Some functions are actually named
25215 something starting with __ and the normal name is an alias. */
25216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25219 char (*f) () = $ac_func;
25228 return f != $ac_func;
25233 rm -f conftest.$ac_objext conftest$ac_exeext
25234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25235 (eval $ac_link) 2>conftest.er1
25237 grep -v '^ *+' conftest.er1 >conftest.err
25239 cat conftest.err >&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } &&
25242 { ac_try='test -z "$ac_c_werror_flag"
25243 || test ! -s conftest.err'
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; } &&
25249 { ac_try='test -s conftest$ac_exeext'
25250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251 (eval $ac_try) 2>&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); }; }; then
25255 eval "$as_ac_var=yes"
25257 echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25260 eval "$as_ac_var=no"
25262 rm -f conftest.err conftest.$ac_objext \
25263 conftest$ac_exeext conftest.$ac_ext
25265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25267 if test `eval echo '${'$as_ac_var'}'` = yes; then
25268 cat >>confdefs.h <<_ACEOF
25269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25282 for ac_func in vasprintf
25284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25285 echo "$as_me:$LINENO: checking for $ac_func" >&5
25286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25287 if eval "test \"\${$as_ac_var+set}\" = set"; then
25288 echo $ECHO_N "(cached) $ECHO_C" >&6
25290 cat >conftest.$ac_ext <<_ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25298 #define $ac_func innocuous_$ac_func
25300 /* System header to define __stub macros and hopefully few prototypes,
25301 which can conflict with char $ac_func (); below.
25302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25303 <limits.h> exists even on freestanding compilers. */
25306 # include <limits.h>
25308 # include <assert.h>
25313 /* Override any gcc2 internal prototype to avoid an error. */
25318 /* We use char because int might match the return type of a gcc2
25319 builtin and then its argument prototype would still apply. */
25321 /* The GNU C library defines this for functions which it implements
25322 to always fail with ENOSYS. Some functions are actually named
25323 something starting with __ and the normal name is an alias. */
25324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25327 char (*f) () = $ac_func;
25336 return f != $ac_func;
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25343 (eval $ac_link) 2>conftest.er1
25345 grep -v '^ *+' conftest.er1 >conftest.err
25347 cat conftest.err >&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
25350 { ac_try='test -z "$ac_c_werror_flag"
25351 || test ! -s conftest.err'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest$ac_exeext'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 eval "$as_ac_var=yes"
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25368 eval "$as_ac_var=no"
25370 rm -f conftest.err conftest.$ac_objext \
25371 conftest$ac_exeext conftest.$ac_ext
25373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25375 if test `eval echo '${'$as_ac_var'}'` = yes; then
25376 cat >>confdefs.h <<_ACEOF
25377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25382 "$ac_func.$ac_objext" | \
25383 *" $ac_func.$ac_objext" | \
25384 "$ac_func.$ac_objext "* | \
25385 *" $ac_func.$ac_objext "* ) ;;
25386 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25393 if test $ac_cv_func_vasprintf = no; then
25395 "asprintf.$ac_objext" | \
25396 *" asprintf.$ac_objext" | \
25397 "asprintf.$ac_objext "* | \
25398 *" asprintf.$ac_objext "* ) ;;
25399 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
25411 "xmalloc.$ac_objext" | \
25412 *" xmalloc.$ac_objext" | \
25413 "xmalloc.$ac_objext "* | \
25414 *" xmalloc.$ac_objext "* ) ;;
25415 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
25444 for ac_header in stdint.h
25446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25448 echo "$as_me:$LINENO: checking for $ac_header" >&5
25449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25451 echo $ECHO_N "(cached) $ECHO_C" >&6
25453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25456 # Is the header compilable?
25457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25459 cat >conftest.$ac_ext <<_ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 $ac_includes_default
25466 #include <$ac_header>
25468 rm -f conftest.$ac_objext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25470 (eval $ac_compile) 2>conftest.er1
25472 grep -v '^ *+' conftest.er1 >conftest.err
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } &&
25477 { ac_try='test -z "$ac_c_werror_flag"
25478 || test ! -s conftest.err'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; } &&
25484 { ac_try='test -s conftest.$ac_objext'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; }; then
25490 ac_header_compiler=yes
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 ac_header_compiler=no
25497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25499 echo "${ECHO_T}$ac_header_compiler" >&6
25501 # Is the header present?
25502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25504 cat >conftest.$ac_ext <<_ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h. */
25510 #include <$ac_header>
25512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25515 grep -v '^ *+' conftest.er1 >conftest.err
25517 cat conftest.err >&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); } >/dev/null; then
25520 if test -s conftest.err; then
25521 ac_cpp_err=$ac_c_preproc_warn_flag
25522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25529 if test -z "$ac_cpp_err"; then
25530 ac_header_preproc=yes
25532 echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25535 ac_header_preproc=no
25537 rm -f conftest.err conftest.$ac_ext
25538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25539 echo "${ECHO_T}$ac_header_preproc" >&6
25541 # So? What about this header?
25542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25548 ac_header_preproc=yes
25551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25565 ## ------------------------------ ##
25566 ## Report this to bug-cvs@gnu.org ##
25567 ## ------------------------------ ##
25570 sed "s/^/$as_me: WARNING: /" >&2
25573 echo "$as_me:$LINENO: checking for $ac_header" >&5
25574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
25578 eval "$as_ac_Header=\$ac_header_preproc"
25580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25585 cat >>confdefs.h <<_ACEOF
25586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25597 "yesno.$ac_objext" | \
25598 *" yesno.$ac_objext" | \
25599 "yesno.$ac_objext "* | \
25600 *" yesno.$ac_objext "* ) ;;
25601 *) LIBOBJS="$LIBOBJS yesno.$ac_objext" ;;
25611 if test -n "$ac_aux_dir"; then
25612 case "$ac_aux_dir" in
25613 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
25614 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
25617 if test -z "$MKINSTALLDIRS"; then
25618 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
25623 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
25624 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
25625 # Check whether --enable-nls or --disable-nls was given.
25626 if test "${enable_nls+set}" = set; then
25627 enableval="$enable_nls"
25632 echo "$as_me:$LINENO: result: $USE_NLS" >&5
25633 echo "${ECHO_T}$USE_NLS" >&6
25640 # Prepare PATH_SEPARATOR.
25641 # The user is always right.
25642 if test "${PATH_SEPARATOR+set}" != set; then
25643 echo "#! /bin/sh" >conf$$.sh
25644 echo "exit 0" >>conf$$.sh
25646 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25654 # Find out how to test for executable files. Don't use a zero-byte file,
25655 # as systems may use methods other than mode bits to determine executability.
25656 cat >conf$$.file <<_ASEOF
25660 chmod +x conf$$.file
25661 if test -x conf$$.file >/dev/null 2>&1; then
25662 ac_executable_p="test -x"
25664 ac_executable_p="test -f"
25668 # Extract the first word of "msgfmt", so it can be a program name with args.
25669 set dummy msgfmt; ac_word=$2
25670 echo "$as_me:$LINENO: checking for $ac_word" >&5
25671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25672 if test "${ac_cv_path_MSGFMT+set}" = set; then
25673 echo $ECHO_N "(cached) $ECHO_C" >&6
25677 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25680 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25681 for ac_dir in $PATH; do
25683 test -z "$ac_dir" && ac_dir=.
25684 for ac_exec_ext in '' $ac_executable_extensions; do
25685 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25686 echo "$as_me: trying $ac_dir/$ac_word..." >&5
25687 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
25688 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25689 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
25696 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
25700 MSGFMT="$ac_cv_path_MSGFMT"
25701 if test "$MSGFMT" != ":"; then
25702 echo "$as_me:$LINENO: result: $MSGFMT" >&5
25703 echo "${ECHO_T}$MSGFMT" >&6
25705 echo "$as_me:$LINENO: result: no" >&5
25706 echo "${ECHO_T}no" >&6
25709 # Extract the first word of "gmsgfmt", so it can be a program name with args.
25710 set dummy gmsgfmt; ac_word=$2
25711 echo "$as_me:$LINENO: checking for $ac_word" >&5
25712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25713 if test "${ac_cv_path_GMSGFMT+set}" = set; then
25714 echo $ECHO_N "(cached) $ECHO_C" >&6
25718 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
25721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25722 for as_dir in $PATH
25725 test -z "$as_dir" && as_dir=.
25726 for ac_exec_ext in '' $ac_executable_extensions; do
25727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25728 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
25729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25735 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
25739 GMSGFMT=$ac_cv_path_GMSGFMT
25741 if test -n "$GMSGFMT"; then
25742 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
25743 echo "${ECHO_T}$GMSGFMT" >&6
25745 echo "$as_me:$LINENO: result: no" >&5
25746 echo "${ECHO_T}no" >&6
25751 # Prepare PATH_SEPARATOR.
25752 # The user is always right.
25753 if test "${PATH_SEPARATOR+set}" != set; then
25754 echo "#! /bin/sh" >conf$$.sh
25755 echo "exit 0" >>conf$$.sh
25757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25765 # Find out how to test for executable files. Don't use a zero-byte file,
25766 # as systems may use methods other than mode bits to determine executability.
25767 cat >conf$$.file <<_ASEOF
25771 chmod +x conf$$.file
25772 if test -x conf$$.file >/dev/null 2>&1; then
25773 ac_executable_p="test -x"
25775 ac_executable_p="test -f"
25779 # Extract the first word of "xgettext", so it can be a program name with args.
25780 set dummy xgettext; ac_word=$2
25781 echo "$as_me:$LINENO: checking for $ac_word" >&5
25782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25783 if test "${ac_cv_path_XGETTEXT+set}" = set; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25786 case "$XGETTEXT" in
25788 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
25791 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25792 for ac_dir in $PATH; do
25794 test -z "$ac_dir" && ac_dir=.
25795 for ac_exec_ext in '' $ac_executable_extensions; do
25796 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25797 echo "$as_me: trying $ac_dir/$ac_word..." >&5
25798 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
25799 (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
25800 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
25807 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
25811 XGETTEXT="$ac_cv_path_XGETTEXT"
25812 if test "$XGETTEXT" != ":"; then
25813 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25814 echo "${ECHO_T}$XGETTEXT" >&6
25816 echo "$as_me:$LINENO: result: no" >&5
25817 echo "${ECHO_T}no" >&6
25823 # Prepare PATH_SEPARATOR.
25824 # The user is always right.
25825 if test "${PATH_SEPARATOR+set}" != set; then
25826 echo "#! /bin/sh" >conf$$.sh
25827 echo "exit 0" >>conf$$.sh
25829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25837 # Find out how to test for executable files. Don't use a zero-byte file,
25838 # as systems may use methods other than mode bits to determine executability.
25839 cat >conf$$.file <<_ASEOF
25843 chmod +x conf$$.file
25844 if test -x conf$$.file >/dev/null 2>&1; then
25845 ac_executable_p="test -x"
25847 ac_executable_p="test -f"
25851 # Extract the first word of "msgmerge", so it can be a program name with args.
25852 set dummy msgmerge; ac_word=$2
25853 echo "$as_me:$LINENO: checking for $ac_word" >&5
25854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25855 if test "${ac_cv_path_MSGMERGE+set}" = set; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
25858 case "$MSGMERGE" in
25860 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25864 for ac_dir in $PATH; do
25866 test -z "$ac_dir" && ac_dir=.
25867 for ac_exec_ext in '' $ac_executable_extensions; do
25868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25869 echo "$as_me: trying $ac_dir/$ac_word..." >&5
25870 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
25871 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
25878 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
25882 MSGMERGE="$ac_cv_path_MSGMERGE"
25883 if test "$MSGMERGE" != ":"; then
25884 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25885 echo "${ECHO_T}$MSGMERGE" >&6
25887 echo "$as_me:$LINENO: result: no" >&5
25888 echo "${ECHO_T}no" >&6
25892 if test "$GMSGFMT" != ":"; then
25893 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
25894 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25897 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
25898 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
25899 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
25904 if test "$XGETTEXT" != ":"; then
25905 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
25906 (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
25909 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
25910 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
25916 ac_config_commands="$ac_config_commands default-1"
25920 if test "X$prefix" = "XNONE"; then
25921 acl_final_prefix="$ac_default_prefix"
25923 acl_final_prefix="$prefix"
25925 if test "X$exec_prefix" = "XNONE"; then
25926 acl_final_exec_prefix='${prefix}'
25928 acl_final_exec_prefix="$exec_prefix"
25930 acl_save_prefix="$prefix"
25931 prefix="$acl_final_prefix"
25932 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
25933 prefix="$acl_save_prefix"
25935 # Make sure we can run config.sub.
25936 $ac_config_sub sun4 >/dev/null 2>&1 ||
25937 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
25938 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
25939 { (exit 1); exit 1; }; }
25941 echo "$as_me:$LINENO: checking build system type" >&5
25942 echo $ECHO_N "checking build system type... $ECHO_C" >&6
25943 if test "${ac_cv_build+set}" = set; then
25944 echo $ECHO_N "(cached) $ECHO_C" >&6
25946 ac_cv_build_alias=$build_alias
25947 test -z "$ac_cv_build_alias" &&
25948 ac_cv_build_alias=`$ac_config_guess`
25949 test -z "$ac_cv_build_alias" &&
25950 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
25951 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
25952 { (exit 1); exit 1; }; }
25953 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
25954 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
25955 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
25956 { (exit 1); exit 1; }; }
25959 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
25960 echo "${ECHO_T}$ac_cv_build" >&6
25962 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
25963 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
25964 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
25967 echo "$as_me:$LINENO: checking host system type" >&5
25968 echo $ECHO_N "checking host system type... $ECHO_C" >&6
25969 if test "${ac_cv_host+set}" = set; then
25970 echo $ECHO_N "(cached) $ECHO_C" >&6
25972 ac_cv_host_alias=$host_alias
25973 test -z "$ac_cv_host_alias" &&
25974 ac_cv_host_alias=$ac_cv_build_alias
25975 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
25976 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
25977 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
25978 { (exit 1); exit 1; }; }
25981 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
25982 echo "${ECHO_T}$ac_cv_host" >&6
25984 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
25985 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
25986 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
25990 # Check whether --with-gnu-ld or --without-gnu-ld was given.
25991 if test "${with_gnu_ld+set}" = set; then
25992 withval="$with_gnu_ld"
25993 test "$withval" = no || with_gnu_ld=yes
25997 # Prepare PATH_SEPARATOR.
25998 # The user is always right.
25999 if test "${PATH_SEPARATOR+set}" != set; then
26000 echo "#! /bin/sh" >conf$$.sh
26001 echo "exit 0" >>conf$$.sh
26003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26011 if test "$GCC" = yes; then
26012 # Check if gcc -print-prog-name=ld gives a path.
26013 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
26014 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
26017 # gcc leaves a trailing carriage return which upsets mingw
26018 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26020 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26023 # Accept absolute paths.
26024 [\\/]* | [A-Za-z]:[\\/]*)
26025 re_direlt='/[^/][^/]*/\.\./'
26026 # Canonicalize the path of ld
26027 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
26028 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
26029 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
26031 test -z "$LD" && LD="$ac_prog"
26034 # If it fails, then pretend we aren't using GCC.
26038 # If it is relative, then search for the first ld in PATH.
26039 with_gnu_ld=unknown
26042 elif test "$with_gnu_ld" = yes; then
26043 echo "$as_me:$LINENO: checking for GNU ld" >&5
26044 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
26046 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
26047 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
26049 if test "${acl_cv_path_LD+set}" = set; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26052 if test -z "$LD"; then
26053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26054 for ac_dir in $PATH; do
26055 test -z "$ac_dir" && ac_dir=.
26056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26057 acl_cv_path_LD="$ac_dir/$ac_prog"
26058 # Check to see if the program is GNU ld. I'd rather use --version,
26059 # but apparently some GNU ld's only accept -v.
26060 # Break only if it was the GNU/non-GNU ld that we prefer.
26061 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
26062 *GNU* | *'with BFD'*)
26063 test "$with_gnu_ld" != no && break ;;
26065 test "$with_gnu_ld" != yes && break ;;
26071 acl_cv_path_LD="$LD" # Let the user override the test with a path.
26075 LD="$acl_cv_path_LD"
26076 if test -n "$LD"; then
26077 echo "$as_me:$LINENO: result: $LD" >&5
26078 echo "${ECHO_T}$LD" >&6
26080 echo "$as_me:$LINENO: result: no" >&5
26081 echo "${ECHO_T}no" >&6
26083 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
26084 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
26085 { (exit 1); exit 1; }; }
26086 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
26087 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
26088 if test "${acl_cv_prog_gnu_ld+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26092 case `$LD -v 2>&1 </dev/null` in
26093 *GNU* | *'with BFD'*)
26094 acl_cv_prog_gnu_ld=yes ;;
26096 acl_cv_prog_gnu_ld=no ;;
26099 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
26100 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
26101 with_gnu_ld=$acl_cv_prog_gnu_ld
26106 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
26107 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
26108 if test "${acl_cv_rpath+set}" = set; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26112 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
26113 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26115 rm -f ./conftest.sh
26119 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
26120 echo "${ECHO_T}$acl_cv_rpath" >&6
26122 libext="$acl_cv_libext"
26123 shlibext="$acl_cv_shlibext"
26124 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
26125 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
26126 hardcode_direct="$acl_cv_hardcode_direct"
26127 hardcode_minus_L="$acl_cv_hardcode_minus_L"
26128 # Check whether --enable-rpath or --disable-rpath was given.
26129 if test "${enable_rpath+set}" = set; then
26130 enableval="$enable_rpath"
26144 acl_save_prefix="$prefix"
26145 prefix="$acl_final_prefix"
26146 acl_save_exec_prefix="$exec_prefix"
26147 exec_prefix="$acl_final_exec_prefix"
26149 eval additional_includedir=\"$includedir\"
26150 eval additional_libdir=\"$libdir\"
26152 exec_prefix="$acl_save_exec_prefix"
26153 prefix="$acl_save_prefix"
26156 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26157 if test "${with_libiconv_prefix+set}" = set; then
26158 withval="$with_libiconv_prefix"
26160 if test "X$withval" = "Xno"; then
26163 if test "X$withval" = "X"; then
26165 acl_save_prefix="$prefix"
26166 prefix="$acl_final_prefix"
26167 acl_save_exec_prefix="$exec_prefix"
26168 exec_prefix="$acl_final_exec_prefix"
26170 eval additional_includedir=\"$includedir\"
26171 eval additional_libdir=\"$libdir\"
26173 exec_prefix="$acl_save_exec_prefix"
26174 prefix="$acl_save_prefix"
26177 additional_includedir="$withval/include"
26178 additional_libdir="$withval/lib"
26188 names_already_handled=
26189 names_next_round='iconv '
26190 while test -n "$names_next_round"; do
26191 names_this_round="$names_next_round"
26193 for name in $names_this_round; do
26195 for n in $names_already_handled; do
26196 if test "$n" = "$name"; then
26197 already_handled=yes
26201 if test -z "$already_handled"; then
26202 names_already_handled="$names_already_handled $name"
26203 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26204 eval value=\"\$HAVE_LIB$uppername\"
26205 if test -n "$value"; then
26206 if test "$value" = yes; then
26207 eval value=\"\$LIB$uppername\"
26208 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26209 eval value=\"\$LTLIB$uppername\"
26210 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26219 if test $use_additional = yes; then
26220 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26221 found_dir="$additional_libdir"
26222 found_so="$additional_libdir/lib$name.$shlibext"
26223 if test -f "$additional_libdir/lib$name.la"; then
26224 found_la="$additional_libdir/lib$name.la"
26227 if test -f "$additional_libdir/lib$name.$libext"; then
26228 found_dir="$additional_libdir"
26229 found_a="$additional_libdir/lib$name.$libext"
26230 if test -f "$additional_libdir/lib$name.la"; then
26231 found_la="$additional_libdir/lib$name.la"
26236 if test "X$found_dir" = "X"; then
26237 for x in $LDFLAGS $LTLIBICONV; do
26239 acl_save_prefix="$prefix"
26240 prefix="$acl_final_prefix"
26241 acl_save_exec_prefix="$exec_prefix"
26242 exec_prefix="$acl_final_exec_prefix"
26244 exec_prefix="$acl_save_exec_prefix"
26245 prefix="$acl_save_prefix"
26249 dir=`echo "X$x" | sed -e 's/^X-L//'`
26250 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26252 found_so="$dir/lib$name.$shlibext"
26253 if test -f "$dir/lib$name.la"; then
26254 found_la="$dir/lib$name.la"
26257 if test -f "$dir/lib$name.$libext"; then
26259 found_a="$dir/lib$name.$libext"
26260 if test -f "$dir/lib$name.la"; then
26261 found_la="$dir/lib$name.la"
26267 if test "X$found_dir" != "X"; then
26272 if test "X$found_dir" != "X"; then
26273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26274 if test "X$found_so" != "X"; then
26275 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26276 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26279 for x in $ltrpathdirs; do
26280 if test "X$x" = "X$found_dir"; then
26285 if test -z "$haveit"; then
26286 ltrpathdirs="$ltrpathdirs $found_dir"
26288 if test "$hardcode_direct" = yes; then
26289 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26291 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26292 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26294 for x in $rpathdirs; do
26295 if test "X$x" = "X$found_dir"; then
26300 if test -z "$haveit"; then
26301 rpathdirs="$rpathdirs $found_dir"
26305 for x in $LDFLAGS $LIBICONV; do
26307 acl_save_prefix="$prefix"
26308 prefix="$acl_final_prefix"
26309 acl_save_exec_prefix="$exec_prefix"
26310 exec_prefix="$acl_final_exec_prefix"
26312 exec_prefix="$acl_save_exec_prefix"
26313 prefix="$acl_save_prefix"
26315 if test "X$x" = "X-L$found_dir"; then
26320 if test -z "$haveit"; then
26321 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26323 if test "$hardcode_minus_L" != no; then
26324 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26326 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26332 if test "X$found_a" != "X"; then
26333 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26335 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26338 additional_includedir=
26339 case "$found_dir" in
26341 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26342 additional_includedir="$basedir/include"
26345 if test "X$additional_includedir" != "X"; then
26346 if test "X$additional_includedir" != "X/usr/include"; then
26348 if test "X$additional_includedir" = "X/usr/local/include"; then
26349 if test -n "$GCC"; then
26351 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26355 if test -z "$haveit"; then
26356 for x in $CPPFLAGS $INCICONV; do
26358 acl_save_prefix="$prefix"
26359 prefix="$acl_final_prefix"
26360 acl_save_exec_prefix="$exec_prefix"
26361 exec_prefix="$acl_final_exec_prefix"
26363 exec_prefix="$acl_save_exec_prefix"
26364 prefix="$acl_save_prefix"
26366 if test "X$x" = "X-I$additional_includedir"; then
26371 if test -z "$haveit"; then
26372 if test -d "$additional_includedir"; then
26373 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26379 if test -n "$found_la"; then
26380 save_libdir="$libdir"
26381 case "$found_la" in
26382 */* | *\\*) . "$found_la" ;;
26383 *) . "./$found_la" ;;
26385 libdir="$save_libdir"
26386 for dep in $dependency_libs; do
26389 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26390 if test "X$additional_libdir" != "X/usr/lib"; then
26392 if test "X$additional_libdir" = "X/usr/local/lib"; then
26393 if test -n "$GCC"; then
26395 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26399 if test -z "$haveit"; then
26401 for x in $LDFLAGS $LIBICONV; do
26403 acl_save_prefix="$prefix"
26404 prefix="$acl_final_prefix"
26405 acl_save_exec_prefix="$exec_prefix"
26406 exec_prefix="$acl_final_exec_prefix"
26408 exec_prefix="$acl_save_exec_prefix"
26409 prefix="$acl_save_prefix"
26411 if test "X$x" = "X-L$additional_libdir"; then
26416 if test -z "$haveit"; then
26417 if test -d "$additional_libdir"; then
26418 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26422 for x in $LDFLAGS $LTLIBICONV; do
26424 acl_save_prefix="$prefix"
26425 prefix="$acl_final_prefix"
26426 acl_save_exec_prefix="$exec_prefix"
26427 exec_prefix="$acl_final_exec_prefix"
26429 exec_prefix="$acl_save_exec_prefix"
26430 prefix="$acl_save_prefix"
26432 if test "X$x" = "X-L$additional_libdir"; then
26437 if test -z "$haveit"; then
26438 if test -d "$additional_libdir"; then
26439 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26446 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26447 if test "$enable_rpath" != no; then
26449 for x in $rpathdirs; do
26450 if test "X$x" = "X$dir"; then
26455 if test -z "$haveit"; then
26456 rpathdirs="$rpathdirs $dir"
26459 for x in $ltrpathdirs; do
26460 if test "X$x" = "X$dir"; then
26465 if test -z "$haveit"; then
26466 ltrpathdirs="$ltrpathdirs $dir"
26471 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26477 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26478 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26484 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26485 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26491 if test "X$rpathdirs" != "X"; then
26492 if test -n "$hardcode_libdir_separator"; then
26494 for found_dir in $rpathdirs; do
26495 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26497 acl_save_libdir="$libdir"
26499 eval flag=\"$hardcode_libdir_flag_spec\"
26500 libdir="$acl_save_libdir"
26501 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26503 for found_dir in $rpathdirs; do
26504 acl_save_libdir="$libdir"
26505 libdir="$found_dir"
26506 eval flag=\"$hardcode_libdir_flag_spec\"
26507 libdir="$acl_save_libdir"
26508 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26512 if test "X$ltrpathdirs" != "X"; then
26513 for found_dir in $ltrpathdirs; do
26514 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26535 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26536 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
26537 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26538 echo $ECHO_N "(cached) $ECHO_C" >&6
26540 gt_save_CPPFLAGS="$CPPFLAGS"
26541 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26542 gt_save_LIBS="$LIBS"
26543 LIBS="$LIBS -framework CoreFoundation"
26544 cat >conftest.$ac_ext <<_ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h. */
26550 #include <CFPreferences.h>
26554 CFPreferencesCopyAppValue(NULL, NULL)
26559 rm -f conftest.$ac_objext conftest$ac_exeext
26560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26561 (eval $ac_link) 2>conftest.er1
26563 grep -v '^ *+' conftest.er1 >conftest.err
26565 cat conftest.err >&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); } &&
26568 { ac_try='test -z "$ac_c_werror_flag"
26569 || test ! -s conftest.err'
26570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26571 (eval $ac_try) 2>&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); }; } &&
26575 { ac_try='test -s conftest$ac_exeext'
26576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577 (eval $ac_try) 2>&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); }; }; then
26581 gt_cv_func_CFPreferencesCopyAppValue=yes
26583 echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26586 gt_cv_func_CFPreferencesCopyAppValue=no
26588 rm -f conftest.err conftest.$ac_objext \
26589 conftest$ac_exeext conftest.$ac_ext
26590 CPPFLAGS="$gt_save_CPPFLAGS"
26591 LIBS="$gt_save_LIBS"
26593 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26594 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
26595 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26597 cat >>confdefs.h <<\_ACEOF
26598 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26602 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26603 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
26604 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26607 gt_save_CPPFLAGS="$CPPFLAGS"
26608 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26609 gt_save_LIBS="$LIBS"
26610 LIBS="$LIBS -framework CoreFoundation"
26611 cat >conftest.$ac_ext <<_ACEOF
26614 cat confdefs.h >>conftest.$ac_ext
26615 cat >>conftest.$ac_ext <<_ACEOF
26616 /* end confdefs.h. */
26617 #include <CFLocale.h>
26621 CFLocaleCopyCurrent();
26626 rm -f conftest.$ac_objext conftest$ac_exeext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26628 (eval $ac_link) 2>conftest.er1
26630 grep -v '^ *+' conftest.er1 >conftest.err
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } &&
26635 { ac_try='test -z "$ac_c_werror_flag"
26636 || test ! -s conftest.err'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; } &&
26642 { ac_try='test -s conftest$ac_exeext'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; }; then
26648 gt_cv_func_CFLocaleCopyCurrent=yes
26650 echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26653 gt_cv_func_CFLocaleCopyCurrent=no
26655 rm -f conftest.err conftest.$ac_objext \
26656 conftest$ac_exeext conftest.$ac_ext
26657 CPPFLAGS="$gt_save_CPPFLAGS"
26658 LIBS="$gt_save_LIBS"
26660 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26661 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
26662 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26664 cat >>confdefs.h <<\_ACEOF
26665 #define HAVE_CFLOCALECOPYCURRENT 1
26670 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26671 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26677 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
26678 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
26679 # Check whether --enable-nls or --disable-nls was given.
26680 if test "${enable_nls+set}" = set; then
26681 enableval="$enable_nls"
26686 echo "$as_me:$LINENO: result: $USE_NLS" >&5
26687 echo "${ECHO_T}$USE_NLS" >&6
26696 if test "$USE_NLS" = "yes"; then
26697 gt_use_preinstalled_gnugettext=no
26704 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26705 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
26706 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26707 echo $ECHO_N "(cached) $ECHO_C" >&6
26709 cat >conftest.$ac_ext <<_ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h. */
26715 #include <libintl.h>
26716 extern int _nl_msg_cat_cntr;
26717 extern int *_nl_domain_bindings;
26721 bindtextdomain ("", "");
26722 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
26727 rm -f conftest.$ac_objext conftest$ac_exeext
26728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26729 (eval $ac_link) 2>conftest.er1
26731 grep -v '^ *+' conftest.er1 >conftest.err
26733 cat conftest.err >&5
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } &&
26736 { ac_try='test -z "$ac_c_werror_flag"
26737 || test ! -s conftest.err'
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; } &&
26743 { ac_try='test -s conftest$ac_exeext'
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; }; then
26749 gt_cv_func_gnugettext1_libc=yes
26751 echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.$ac_ext >&5
26754 gt_cv_func_gnugettext1_libc=no
26756 rm -f conftest.err conftest.$ac_objext \
26757 conftest$ac_exeext conftest.$ac_ext
26759 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
26760 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
26762 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
26768 am_save_CPPFLAGS="$CPPFLAGS"
26770 for element in $INCICONV; do
26772 for x in $CPPFLAGS; do
26774 acl_save_prefix="$prefix"
26775 prefix="$acl_final_prefix"
26776 acl_save_exec_prefix="$exec_prefix"
26777 exec_prefix="$acl_final_exec_prefix"
26779 exec_prefix="$acl_save_exec_prefix"
26780 prefix="$acl_save_prefix"
26782 if test "X$x" = "X$element"; then
26787 if test -z "$haveit"; then
26788 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26793 echo "$as_me:$LINENO: checking for iconv" >&5
26794 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26795 if test "${am_cv_func_iconv+set}" = set; then
26796 echo $ECHO_N "(cached) $ECHO_C" >&6
26799 am_cv_func_iconv="no, consider installing GNU libiconv"
26801 cat >conftest.$ac_ext <<_ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h. */
26807 #include <stdlib.h>
26812 iconv_t cd = iconv_open("","");
26813 iconv(cd,NULL,NULL,NULL,NULL);
26819 rm -f conftest.$ac_objext conftest$ac_exeext
26820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26821 (eval $ac_link) 2>conftest.er1
26823 grep -v '^ *+' conftest.er1 >conftest.err
26825 cat conftest.err >&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } &&
26828 { ac_try='test -z "$ac_c_werror_flag"
26829 || test ! -s conftest.err'
26830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831 (eval $ac_try) 2>&5
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); }; } &&
26835 { ac_try='test -s conftest$ac_exeext'
26836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837 (eval $ac_try) 2>&5
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; }; then
26841 am_cv_func_iconv=yes
26843 echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26847 rm -f conftest.err conftest.$ac_objext \
26848 conftest$ac_exeext conftest.$ac_ext
26849 if test "$am_cv_func_iconv" != yes; then
26850 am_save_LIBS="$LIBS"
26851 LIBS="$LIBS $LIBICONV"
26852 cat >conftest.$ac_ext <<_ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h. */
26858 #include <stdlib.h>
26863 iconv_t cd = iconv_open("","");
26864 iconv(cd,NULL,NULL,NULL,NULL);
26870 rm -f conftest.$ac_objext conftest$ac_exeext
26871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26872 (eval $ac_link) 2>conftest.er1
26874 grep -v '^ *+' conftest.er1 >conftest.err
26876 cat conftest.err >&5
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); } &&
26879 { ac_try='test -z "$ac_c_werror_flag"
26880 || test ! -s conftest.err'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; } &&
26886 { ac_try='test -s conftest$ac_exeext'
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 am_cv_lib_iconv=yes
26893 am_cv_func_iconv=yes
26895 echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26899 rm -f conftest.err conftest.$ac_objext \
26900 conftest$ac_exeext conftest.$ac_ext
26901 LIBS="$am_save_LIBS"
26905 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26906 echo "${ECHO_T}$am_cv_func_iconv" >&6
26907 if test "$am_cv_func_iconv" = yes; then
26909 cat >>confdefs.h <<\_ACEOF
26910 #define HAVE_ICONV 1
26914 if test "$am_cv_lib_iconv" = yes; then
26915 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26916 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
26917 echo "$as_me:$LINENO: result: $LIBICONV" >&5
26918 echo "${ECHO_T}$LIBICONV" >&6
26920 CPPFLAGS="$am_save_CPPFLAGS"
26932 acl_save_prefix="$prefix"
26933 prefix="$acl_final_prefix"
26934 acl_save_exec_prefix="$exec_prefix"
26935 exec_prefix="$acl_final_exec_prefix"
26937 eval additional_includedir=\"$includedir\"
26938 eval additional_libdir=\"$libdir\"
26940 exec_prefix="$acl_save_exec_prefix"
26941 prefix="$acl_save_prefix"
26944 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
26945 if test "${with_libintl_prefix+set}" = set; then
26946 withval="$with_libintl_prefix"
26948 if test "X$withval" = "Xno"; then
26951 if test "X$withval" = "X"; then
26953 acl_save_prefix="$prefix"
26954 prefix="$acl_final_prefix"
26955 acl_save_exec_prefix="$exec_prefix"
26956 exec_prefix="$acl_final_exec_prefix"
26958 eval additional_includedir=\"$includedir\"
26959 eval additional_libdir=\"$libdir\"
26961 exec_prefix="$acl_save_exec_prefix"
26962 prefix="$acl_save_prefix"
26965 additional_includedir="$withval/include"
26966 additional_libdir="$withval/lib"
26976 names_already_handled=
26977 names_next_round='intl '
26978 while test -n "$names_next_round"; do
26979 names_this_round="$names_next_round"
26981 for name in $names_this_round; do
26983 for n in $names_already_handled; do
26984 if test "$n" = "$name"; then
26985 already_handled=yes
26989 if test -z "$already_handled"; then
26990 names_already_handled="$names_already_handled $name"
26991 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26992 eval value=\"\$HAVE_LIB$uppername\"
26993 if test -n "$value"; then
26994 if test "$value" = yes; then
26995 eval value=\"\$LIB$uppername\"
26996 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26997 eval value=\"\$LTLIB$uppername\"
26998 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
27007 if test $use_additional = yes; then
27008 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27009 found_dir="$additional_libdir"
27010 found_so="$additional_libdir/lib$name.$shlibext"
27011 if test -f "$additional_libdir/lib$name.la"; then
27012 found_la="$additional_libdir/lib$name.la"
27015 if test -f "$additional_libdir/lib$name.$libext"; then
27016 found_dir="$additional_libdir"
27017 found_a="$additional_libdir/lib$name.$libext"
27018 if test -f "$additional_libdir/lib$name.la"; then
27019 found_la="$additional_libdir/lib$name.la"
27024 if test "X$found_dir" = "X"; then
27025 for x in $LDFLAGS $LTLIBINTL; do
27027 acl_save_prefix="$prefix"
27028 prefix="$acl_final_prefix"
27029 acl_save_exec_prefix="$exec_prefix"
27030 exec_prefix="$acl_final_exec_prefix"
27032 exec_prefix="$acl_save_exec_prefix"
27033 prefix="$acl_save_prefix"
27037 dir=`echo "X$x" | sed -e 's/^X-L//'`
27038 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27040 found_so="$dir/lib$name.$shlibext"
27041 if test -f "$dir/lib$name.la"; then
27042 found_la="$dir/lib$name.la"
27045 if test -f "$dir/lib$name.$libext"; then
27047 found_a="$dir/lib$name.$libext"
27048 if test -f "$dir/lib$name.la"; then
27049 found_la="$dir/lib$name.la"
27055 if test "X$found_dir" != "X"; then
27060 if test "X$found_dir" != "X"; then
27061 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
27062 if test "X$found_so" != "X"; then
27063 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27064 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27067 for x in $ltrpathdirs; do
27068 if test "X$x" = "X$found_dir"; then
27073 if test -z "$haveit"; then
27074 ltrpathdirs="$ltrpathdirs $found_dir"
27076 if test "$hardcode_direct" = yes; then
27077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27079 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27080 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27082 for x in $rpathdirs; do
27083 if test "X$x" = "X$found_dir"; then
27088 if test -z "$haveit"; then
27089 rpathdirs="$rpathdirs $found_dir"
27093 for x in $LDFLAGS $LIBINTL; do
27095 acl_save_prefix="$prefix"
27096 prefix="$acl_final_prefix"
27097 acl_save_exec_prefix="$exec_prefix"
27098 exec_prefix="$acl_final_exec_prefix"
27100 exec_prefix="$acl_save_exec_prefix"
27101 prefix="$acl_save_prefix"
27103 if test "X$x" = "X-L$found_dir"; then
27108 if test -z "$haveit"; then
27109 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
27111 if test "$hardcode_minus_L" != no; then
27112 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27114 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
27120 if test "X$found_a" != "X"; then
27121 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
27123 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
27126 additional_includedir=
27127 case "$found_dir" in
27129 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27130 additional_includedir="$basedir/include"
27133 if test "X$additional_includedir" != "X"; then
27134 if test "X$additional_includedir" != "X/usr/include"; then
27136 if test "X$additional_includedir" = "X/usr/local/include"; then
27137 if test -n "$GCC"; then
27139 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27143 if test -z "$haveit"; then
27144 for x in $CPPFLAGS $INCINTL; do
27146 acl_save_prefix="$prefix"
27147 prefix="$acl_final_prefix"
27148 acl_save_exec_prefix="$exec_prefix"
27149 exec_prefix="$acl_final_exec_prefix"
27151 exec_prefix="$acl_save_exec_prefix"
27152 prefix="$acl_save_prefix"
27154 if test "X$x" = "X-I$additional_includedir"; then
27159 if test -z "$haveit"; then
27160 if test -d "$additional_includedir"; then
27161 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
27167 if test -n "$found_la"; then
27168 save_libdir="$libdir"
27169 case "$found_la" in
27170 */* | *\\*) . "$found_la" ;;
27171 *) . "./$found_la" ;;
27173 libdir="$save_libdir"
27174 for dep in $dependency_libs; do
27177 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27178 if test "X$additional_libdir" != "X/usr/lib"; then
27180 if test "X$additional_libdir" = "X/usr/local/lib"; then
27181 if test -n "$GCC"; then
27183 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27187 if test -z "$haveit"; then
27189 for x in $LDFLAGS $LIBINTL; do
27191 acl_save_prefix="$prefix"
27192 prefix="$acl_final_prefix"
27193 acl_save_exec_prefix="$exec_prefix"
27194 exec_prefix="$acl_final_exec_prefix"
27196 exec_prefix="$acl_save_exec_prefix"
27197 prefix="$acl_save_prefix"
27199 if test "X$x" = "X-L$additional_libdir"; then
27204 if test -z "$haveit"; then
27205 if test -d "$additional_libdir"; then
27206 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
27210 for x in $LDFLAGS $LTLIBINTL; do
27212 acl_save_prefix="$prefix"
27213 prefix="$acl_final_prefix"
27214 acl_save_exec_prefix="$exec_prefix"
27215 exec_prefix="$acl_final_exec_prefix"
27217 exec_prefix="$acl_save_exec_prefix"
27218 prefix="$acl_save_prefix"
27220 if test "X$x" = "X-L$additional_libdir"; then
27225 if test -z "$haveit"; then
27226 if test -d "$additional_libdir"; then
27227 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
27234 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27235 if test "$enable_rpath" != no; then
27237 for x in $rpathdirs; do
27238 if test "X$x" = "X$dir"; then
27243 if test -z "$haveit"; then
27244 rpathdirs="$rpathdirs $dir"
27247 for x in $ltrpathdirs; do
27248 if test "X$x" = "X$dir"; then
27253 if test -z "$haveit"; then
27254 ltrpathdirs="$ltrpathdirs $dir"
27259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27262 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27265 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
27266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
27272 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
27273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
27279 if test "X$rpathdirs" != "X"; then
27280 if test -n "$hardcode_libdir_separator"; then
27282 for found_dir in $rpathdirs; do
27283 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27285 acl_save_libdir="$libdir"
27287 eval flag=\"$hardcode_libdir_flag_spec\"
27288 libdir="$acl_save_libdir"
27289 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
27291 for found_dir in $rpathdirs; do
27292 acl_save_libdir="$libdir"
27293 libdir="$found_dir"
27294 eval flag=\"$hardcode_libdir_flag_spec\"
27295 libdir="$acl_save_libdir"
27296 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
27300 if test "X$ltrpathdirs" != "X"; then
27301 for found_dir in $ltrpathdirs; do
27302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
27306 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
27307 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
27308 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
27309 echo $ECHO_N "(cached) $ECHO_C" >&6
27311 gt_save_CPPFLAGS="$CPPFLAGS"
27312 CPPFLAGS="$CPPFLAGS $INCINTL"
27313 gt_save_LIBS="$LIBS"
27314 LIBS="$LIBS $LIBINTL"
27315 cat >conftest.$ac_ext <<_ACEOF
27318 cat confdefs.h >>conftest.$ac_ext
27319 cat >>conftest.$ac_ext <<_ACEOF
27320 /* end confdefs.h. */
27321 #include <libintl.h>
27322 extern int _nl_msg_cat_cntr;
27327 const char *_nl_expand_alias (const char *);
27331 bindtextdomain ("", "");
27332 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
27337 rm -f conftest.$ac_objext conftest$ac_exeext
27338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27339 (eval $ac_link) 2>conftest.er1
27341 grep -v '^ *+' conftest.er1 >conftest.err
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } &&
27346 { ac_try='test -z "$ac_c_werror_flag"
27347 || test ! -s conftest.err'
27348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; } &&
27353 { ac_try='test -s conftest$ac_exeext'
27354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355 (eval $ac_try) 2>&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
27359 gt_cv_func_gnugettext1_libintl=yes
27361 echo "$as_me: failed program was:" >&5
27362 sed 's/^/| /' conftest.$ac_ext >&5
27364 gt_cv_func_gnugettext1_libintl=no
27366 rm -f conftest.err conftest.$ac_objext \
27367 conftest$ac_exeext conftest.$ac_ext
27368 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
27369 LIBS="$LIBS $LIBICONV"
27370 cat >conftest.$ac_ext <<_ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h. */
27376 #include <libintl.h>
27377 extern int _nl_msg_cat_cntr;
27382 const char *_nl_expand_alias (const char *);
27386 bindtextdomain ("", "");
27387 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
27392 rm -f conftest.$ac_objext conftest$ac_exeext
27393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27394 (eval $ac_link) 2>conftest.er1
27396 grep -v '^ *+' conftest.er1 >conftest.err
27398 cat conftest.err >&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); } &&
27401 { ac_try='test -z "$ac_c_werror_flag"
27402 || test ! -s conftest.err'
27403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404 (eval $ac_try) 2>&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest$ac_exeext'
27409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410 (eval $ac_try) 2>&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; }; then
27414 LIBINTL="$LIBINTL $LIBICONV"
27415 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
27416 gt_cv_func_gnugettext1_libintl=yes
27419 echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27423 rm -f conftest.err conftest.$ac_objext \
27424 conftest$ac_exeext conftest.$ac_ext
27426 CPPFLAGS="$gt_save_CPPFLAGS"
27427 LIBS="$gt_save_LIBS"
27429 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
27430 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
27433 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
27434 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
27435 && test "$PACKAGE" != gettext-runtime \
27436 && test "$PACKAGE" != gettext-tools; }; then
27437 gt_use_preinstalled_gnugettext=yes
27446 if test -n "$INTL_MACOSX_LIBS"; then
27447 if test "$gt_use_preinstalled_gnugettext" = "yes" \
27448 || test "$nls_cv_use_gnu_gettext" = "yes"; then
27449 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
27450 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
27454 if test "$gt_use_preinstalled_gnugettext" = "yes" \
27455 || test "$nls_cv_use_gnu_gettext" = "yes"; then
27457 cat >>confdefs.h <<\_ACEOF
27458 #define ENABLE_NLS 1
27466 echo "$as_me:$LINENO: checking whether to use NLS" >&5
27467 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
27468 echo "$as_me:$LINENO: result: $USE_NLS" >&5
27469 echo "${ECHO_T}$USE_NLS" >&6
27470 if test "$USE_NLS" = "yes"; then
27471 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
27472 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
27473 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27474 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27475 gt_source="external libintl"
27480 gt_source="included intl directory"
27482 echo "$as_me:$LINENO: result: $gt_source" >&5
27483 echo "${ECHO_T}$gt_source" >&6
27486 if test "$USE_NLS" = "yes"; then
27488 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27489 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27490 echo "$as_me:$LINENO: checking how to link with libintl" >&5
27491 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
27492 echo "$as_me:$LINENO: result: $LIBINTL" >&5
27493 echo "${ECHO_T}$LIBINTL" >&6
27495 for element in $INCINTL; do
27497 for x in $CPPFLAGS; do
27499 acl_save_prefix="$prefix"
27500 prefix="$acl_final_prefix"
27501 acl_save_exec_prefix="$exec_prefix"
27502 exec_prefix="$acl_final_exec_prefix"
27504 exec_prefix="$acl_save_exec_prefix"
27505 prefix="$acl_save_prefix"
27507 if test "X$x" = "X$element"; then
27512 if test -z "$haveit"; then
27513 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27520 cat >>confdefs.h <<\_ACEOF
27521 #define HAVE_GETTEXT 1
27525 cat >>confdefs.h <<\_ACEOF
27526 #define HAVE_DCGETTEXT 1
27536 INTLLIBS="$LIBINTL"
27543 # The error module still poses merge problems.
27544 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
27545 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
27546 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
27547 echo $ECHO_N "(cached) $ECHO_C" >&6
27549 cat >conftest.$ac_ext <<_ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h. */
27555 $ac_includes_default
27560 char *p = (char *) strerror_r;
27567 rm -f conftest.$ac_objext
27568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27569 (eval $ac_compile) 2>conftest.er1
27571 grep -v '^ *+' conftest.er1 >conftest.err
27573 cat conftest.err >&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); } &&
27576 { ac_try='test -z "$ac_c_werror_flag"
27577 || test ! -s conftest.err'
27578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579 (eval $ac_try) 2>&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; } &&
27583 { ac_try='test -s conftest.$ac_objext'
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; }; then
27589 ac_cv_have_decl_strerror_r=yes
27591 echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27594 ac_cv_have_decl_strerror_r=no
27596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27598 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
27599 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
27600 if test $ac_cv_have_decl_strerror_r = yes; then
27602 cat >>confdefs.h <<_ACEOF
27603 #define HAVE_DECL_STRERROR_R 1
27608 cat >>confdefs.h <<_ACEOF
27609 #define HAVE_DECL_STRERROR_R 0
27617 for ac_func in strerror_r
27619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27620 echo "$as_me:$LINENO: checking for $ac_func" >&5
27621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27622 if eval "test \"\${$as_ac_var+set}\" = set"; then
27623 echo $ECHO_N "(cached) $ECHO_C" >&6
27625 cat >conftest.$ac_ext <<_ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h. */
27631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27633 #define $ac_func innocuous_$ac_func
27635 /* System header to define __stub macros and hopefully few prototypes,
27636 which can conflict with char $ac_func (); below.
27637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27638 <limits.h> exists even on freestanding compilers. */
27641 # include <limits.h>
27643 # include <assert.h>
27648 /* Override any gcc2 internal prototype to avoid an error. */
27653 /* We use char because int might match the return type of a gcc2
27654 builtin and then its argument prototype would still apply. */
27656 /* The GNU C library defines this for functions which it implements
27657 to always fail with ENOSYS. Some functions are actually named
27658 something starting with __ and the normal name is an alias. */
27659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27662 char (*f) () = $ac_func;
27671 return f != $ac_func;
27676 rm -f conftest.$ac_objext conftest$ac_exeext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27678 (eval $ac_link) 2>conftest.er1
27680 grep -v '^ *+' conftest.er1 >conftest.err
27682 cat conftest.err >&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); } &&
27685 { ac_try='test -z "$ac_c_werror_flag"
27686 || test ! -s conftest.err'
27687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688 (eval $ac_try) 2>&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; } &&
27692 { ac_try='test -s conftest$ac_exeext'
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; }; then
27698 eval "$as_ac_var=yes"
27700 echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27703 eval "$as_ac_var=no"
27705 rm -f conftest.err conftest.$ac_objext \
27706 conftest$ac_exeext conftest.$ac_ext
27708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27710 if test `eval echo '${'$as_ac_var'}'` = yes; then
27711 cat >>confdefs.h <<_ACEOF
27712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27718 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
27719 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
27720 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27724 ac_cv_func_strerror_r_char_p=no
27725 if test $ac_cv_have_decl_strerror_r = yes; then
27726 cat >conftest.$ac_ext <<_ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h. */
27732 $ac_includes_default
27738 char x = *strerror_r (0, buf, sizeof buf);
27739 char *p = strerror_r (0, buf, sizeof buf);
27745 rm -f conftest.$ac_objext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27747 (eval $ac_compile) 2>conftest.er1
27749 grep -v '^ *+' conftest.er1 >conftest.err
27751 cat conftest.err >&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } &&
27754 { ac_try='test -z "$ac_c_werror_flag"
27755 || test ! -s conftest.err'
27756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27757 (eval $ac_try) 2>&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); }; } &&
27761 { ac_try='test -s conftest.$ac_objext'
27762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763 (eval $ac_try) 2>&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; }; then
27767 ac_cv_func_strerror_r_char_p=yes
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27775 # strerror_r is not declared. Choose between
27776 # systems that have relatively inaccessible declarations for the
27777 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
27778 # former has a strerror_r that returns char*, while the latter
27779 # has a strerror_r that returns `int'.
27780 # This test should segfault on the DEC system.
27781 if test "$cross_compiling" = yes; then
27784 cat >conftest.$ac_ext <<_ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h. */
27790 $ac_includes_default
27791 extern char *strerror_r ();
27796 char x = *strerror_r (0, buf, sizeof buf);
27797 exit (!isalpha (x));
27802 rm -f conftest$ac_exeext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27804 (eval $ac_link) 2>&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809 (eval $ac_try) 2>&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
27813 ac_cv_func_strerror_r_char_p=yes
27815 echo "$as_me: program exited with status $ac_status" >&5
27816 echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27825 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
27826 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
27827 if test $ac_cv_func_strerror_r_char_p = yes; then
27829 cat >>confdefs.h <<\_ACEOF
27830 #define STRERROR_R_CHAR_P 1
27839 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
27841 test $ac_cv_type_long_long = yes \
27842 && ac_type='long long' \
27845 cat >>confdefs.h <<_ACEOF
27846 #define intmax_t $ac_type
27851 cat >>confdefs.h <<\_ACEOF
27852 #define HAVE_INTMAX_T 1
27865 # End GNULIB stuff.
27870 # Check for function existance.
27926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27927 echo "$as_me:$LINENO: checking for $ac_func" >&5
27928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27929 if eval "test \"\${$as_ac_var+set}\" = set"; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27932 cat >conftest.$ac_ext <<_ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h. */
27938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27940 #define $ac_func innocuous_$ac_func
27942 /* System header to define __stub macros and hopefully few prototypes,
27943 which can conflict with char $ac_func (); below.
27944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27945 <limits.h> exists even on freestanding compilers. */
27948 # include <limits.h>
27950 # include <assert.h>
27955 /* Override any gcc2 internal prototype to avoid an error. */
27960 /* We use char because int might match the return type of a gcc2
27961 builtin and then its argument prototype would still apply. */
27963 /* The GNU C library defines this for functions which it implements
27964 to always fail with ENOSYS. Some functions are actually named
27965 something starting with __ and the normal name is an alias. */
27966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27969 char (*f) () = $ac_func;
27978 return f != $ac_func;
27983 rm -f conftest.$ac_objext conftest$ac_exeext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27985 (eval $ac_link) 2>conftest.er1
27987 grep -v '^ *+' conftest.er1 >conftest.err
27989 cat conftest.err >&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } &&
27992 { ac_try='test -z "$ac_c_werror_flag"
27993 || test ! -s conftest.err'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; } &&
27999 { ac_try='test -s conftest$ac_exeext'
28000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001 (eval $ac_try) 2>&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 eval "$as_ac_var=yes"
28007 echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010 eval "$as_ac_var=no"
28012 rm -f conftest.err conftest.$ac_objext \
28013 conftest$ac_exeext conftest.$ac_ext
28015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28017 if test `eval echo '${'$as_ac_var'}'` = yes; then
28018 cat >>confdefs.h <<_ACEOF
28019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28025 HAVE_PUTENV=$ac_cv_func_putenv
28028 if test $cross_compiling = yes ; then
28030 cat >>confdefs.h <<\_ACEOF
28031 #define CROSS_COMPILING 1
28035 echo "$as_me:$LINENO: checking for char" >&5
28036 echo $ECHO_N "checking for char... $ECHO_C" >&6
28037 if test "${ac_cv_type_char+set}" = set; then
28038 echo $ECHO_N "(cached) $ECHO_C" >&6
28040 cat >conftest.$ac_ext <<_ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h. */
28046 $ac_includes_default
28058 rm -f conftest.$ac_objext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28060 (eval $ac_compile) 2>conftest.er1
28062 grep -v '^ *+' conftest.er1 >conftest.err
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } &&
28067 { ac_try='test -z "$ac_c_werror_flag"
28068 || test ! -s conftest.err'
28069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070 (eval $ac_try) 2>&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest.$ac_objext'
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }; then
28080 ac_cv_type_char=yes
28082 echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28089 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
28090 echo "${ECHO_T}$ac_cv_type_char" >&6
28092 echo "$as_me:$LINENO: checking size of char" >&5
28093 echo $ECHO_N "checking size of char... $ECHO_C" >&6
28094 if test "${ac_cv_sizeof_char+set}" = set; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28097 if test "$ac_cv_type_char" = yes; then
28098 # The cast to unsigned long works around a bug in the HP C Compiler
28099 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28100 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28101 # This bug is HP SR number 8606223364.
28102 if test "$cross_compiling" = yes; then
28103 # Depending upon the size, compute the lo and hi bounds.
28104 cat >conftest.$ac_ext <<_ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28110 $ac_includes_default
28114 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
28121 rm -f conftest.$ac_objext
28122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28123 (eval $ac_compile) 2>conftest.er1
28125 grep -v '^ *+' conftest.er1 >conftest.err
28127 cat conftest.err >&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } &&
28130 { ac_try='test -z "$ac_c_werror_flag"
28131 || test ! -s conftest.err'
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; } &&
28137 { ac_try='test -s conftest.$ac_objext'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; }; then
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28151 $ac_includes_default
28155 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
28162 rm -f conftest.$ac_objext
28163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28164 (eval $ac_compile) 2>conftest.er1
28166 grep -v '^ *+' conftest.er1 >conftest.err
28168 cat conftest.err >&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } &&
28171 { ac_try='test -z "$ac_c_werror_flag"
28172 || test ! -s conftest.err'
28173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174 (eval $ac_try) 2>&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; } &&
28178 { ac_try='test -s conftest.$ac_objext'
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28184 ac_hi=$ac_mid; break
28186 echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28189 ac_lo=`expr $ac_mid + 1`
28190 if test $ac_lo -le $ac_mid; then
28194 ac_mid=`expr 2 '*' $ac_mid + 1`
28196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28199 echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28202 cat >conftest.$ac_ext <<_ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h. */
28208 $ac_includes_default
28212 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
28219 rm -f conftest.$ac_objext
28220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28221 (eval $ac_compile) 2>conftest.er1
28223 grep -v '^ *+' conftest.er1 >conftest.err
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
28228 { ac_try='test -z "$ac_c_werror_flag"
28229 || test ! -s conftest.err'
28230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231 (eval $ac_try) 2>&5
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest.$ac_objext'
28236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237 (eval $ac_try) 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; }; then
28243 cat >conftest.$ac_ext <<_ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h. */
28249 $ac_includes_default
28253 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
28260 rm -f conftest.$ac_objext
28261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28262 (eval $ac_compile) 2>conftest.er1
28264 grep -v '^ *+' conftest.er1 >conftest.err
28266 cat conftest.err >&5
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); } &&
28269 { ac_try='test -z "$ac_c_werror_flag"
28270 || test ! -s conftest.err'
28271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272 (eval $ac_try) 2>&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; } &&
28276 { ac_try='test -s conftest.$ac_objext'
28277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278 (eval $ac_try) 2>&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; }; then
28282 ac_lo=$ac_mid; break
28284 echo "$as_me: failed program was:" >&5
28285 sed 's/^/| /' conftest.$ac_ext >&5
28287 ac_hi=`expr '(' $ac_mid ')' - 1`
28288 if test $ac_mid -le $ac_hi; then
28292 ac_mid=`expr 2 '*' $ac_mid`
28294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28297 echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28305 # Binary search between lo and hi bounds.
28306 while test "x$ac_lo" != "x$ac_hi"; do
28307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28308 cat >conftest.$ac_ext <<_ACEOF
28311 cat confdefs.h >>conftest.$ac_ext
28312 cat >>conftest.$ac_ext <<_ACEOF
28313 /* end confdefs.h. */
28314 $ac_includes_default
28318 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
28325 rm -f conftest.$ac_objext
28326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28327 (eval $ac_compile) 2>conftest.er1
28329 grep -v '^ *+' conftest.er1 >conftest.err
28331 cat conftest.err >&5
28332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333 (exit $ac_status); } &&
28334 { ac_try='test -z "$ac_c_werror_flag"
28335 || test ! -s conftest.err'
28336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28337 (eval $ac_try) 2>&5
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); }; } &&
28341 { ac_try='test -s conftest.$ac_objext'
28342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343 (eval $ac_try) 2>&5
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); }; }; then
28349 echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28352 ac_lo=`expr '(' $ac_mid ')' + 1`
28354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28357 ?*) ac_cv_sizeof_char=$ac_lo;;
28358 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
28359 See \`config.log' for more details." >&5
28360 echo "$as_me: error: cannot compute sizeof (char), 77
28361 See \`config.log' for more details." >&2;}
28362 { (exit 1); exit 1; }; } ;;
28365 if test "$cross_compiling" = yes; then
28366 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28367 See \`config.log' for more details." >&5
28368 echo "$as_me: error: cannot run test program while cross compiling
28369 See \`config.log' for more details." >&2;}
28370 { (exit 1); exit 1; }; }
28372 cat >conftest.$ac_ext <<_ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28378 $ac_includes_default
28379 long longval () { return (long) (sizeof (char)); }
28380 unsigned long ulongval () { return (long) (sizeof (char)); }
28382 #include <stdlib.h>
28387 FILE *f = fopen ("conftest.val", "w");
28390 if (((long) (sizeof (char))) < 0)
28392 long i = longval ();
28393 if (i != ((long) (sizeof (char))))
28395 fprintf (f, "%ld\n", i);
28399 unsigned long i = ulongval ();
28400 if (i != ((long) (sizeof (char))))
28402 fprintf (f, "%lu\n", i);
28404 exit (ferror (f) || fclose (f) != 0);
28410 rm -f conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412 (eval $ac_link) 2>&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; }; then
28421 ac_cv_sizeof_char=`cat conftest.val`
28423 echo "$as_me: program exited with status $ac_status" >&5
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28427 ( exit $ac_status )
28428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
28429 See \`config.log' for more details." >&5
28430 echo "$as_me: error: cannot compute sizeof (char), 77
28431 See \`config.log' for more details." >&2;}
28432 { (exit 1); exit 1; }; }
28434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28439 ac_cv_sizeof_char=0
28442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
28443 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
28444 cat >>confdefs.h <<_ACEOF
28445 #define SIZEOF_CHAR $ac_cv_sizeof_char
28449 echo "$as_me:$LINENO: checking for uniquely sized char" >&5
28450 echo $ECHO_N "checking for uniquely sized char... $ECHO_C" >&6
28451 if test "${ccvs_cv_unique_int_type_char+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28454 if set |grep ^ccvs_cv_unique_int_type_ \
28455 |grep "($ac_cv_sizeof_char)" >/dev/null ; then
28456 ccvs_cv_unique_int_type_char=no
28458 ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\)
28461 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_char" >&5
28462 echo "${ECHO_T}$ccvs_cv_unique_int_type_char" >&6
28463 if test $ccvs_cv_unique_int_type_char != no ; then
28465 cat >>confdefs.h <<\_ACEOF
28466 #define UNIQUE_INT_TYPE_CHAR 1
28470 echo "$as_me:$LINENO: checking for short" >&5
28471 echo $ECHO_N "checking for short... $ECHO_C" >&6
28472 if test "${ac_cv_type_short+set}" = set; then
28473 echo $ECHO_N "(cached) $ECHO_C" >&6
28475 cat >conftest.$ac_ext <<_ACEOF
28478 cat confdefs.h >>conftest.$ac_ext
28479 cat >>conftest.$ac_ext <<_ACEOF
28480 /* end confdefs.h. */
28481 $ac_includes_default
28487 if (sizeof (short))
28493 rm -f conftest.$ac_objext
28494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28495 (eval $ac_compile) 2>conftest.er1
28497 grep -v '^ *+' conftest.er1 >conftest.err
28499 cat conftest.err >&5
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); } &&
28502 { ac_try='test -z "$ac_c_werror_flag"
28503 || test ! -s conftest.err'
28504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505 (eval $ac_try) 2>&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; } &&
28509 { ac_try='test -s conftest.$ac_objext'
28510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511 (eval $ac_try) 2>&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; }; then
28515 ac_cv_type_short=yes
28517 echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28520 ac_cv_type_short=no
28522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28524 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28525 echo "${ECHO_T}$ac_cv_type_short" >&6
28527 echo "$as_me:$LINENO: checking size of short" >&5
28528 echo $ECHO_N "checking size of short... $ECHO_C" >&6
28529 if test "${ac_cv_sizeof_short+set}" = set; then
28530 echo $ECHO_N "(cached) $ECHO_C" >&6
28532 if test "$ac_cv_type_short" = yes; then
28533 # The cast to unsigned long works around a bug in the HP C Compiler
28534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28536 # This bug is HP SR number 8606223364.
28537 if test "$cross_compiling" = yes; then
28538 # Depending upon the size, compute the lo and hi bounds.
28539 cat >conftest.$ac_ext <<_ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h. */
28545 $ac_includes_default
28549 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
28556 rm -f conftest.$ac_objext
28557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28558 (eval $ac_compile) 2>conftest.er1
28560 grep -v '^ *+' conftest.er1 >conftest.err
28562 cat conftest.err >&5
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); } &&
28565 { ac_try='test -z "$ac_c_werror_flag"
28566 || test ! -s conftest.err'
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; } &&
28572 { ac_try='test -s conftest.$ac_objext'
28573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28574 (eval $ac_try) 2>&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); }; }; then
28580 cat >conftest.$ac_ext <<_ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h. */
28586 $ac_includes_default
28590 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
28597 rm -f conftest.$ac_objext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28599 (eval $ac_compile) 2>conftest.er1
28601 grep -v '^ *+' conftest.er1 >conftest.err
28603 cat conftest.err >&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); } &&
28606 { ac_try='test -z "$ac_c_werror_flag"
28607 || test ! -s conftest.err'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; } &&
28613 { ac_try='test -s conftest.$ac_objext'
28614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615 (eval $ac_try) 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 ac_hi=$ac_mid; break
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624 ac_lo=`expr $ac_mid + 1`
28625 if test $ac_lo -le $ac_mid; then
28629 ac_mid=`expr 2 '*' $ac_mid + 1`
28631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28634 echo "$as_me: failed program was:" >&5
28635 sed 's/^/| /' conftest.$ac_ext >&5
28637 cat >conftest.$ac_ext <<_ACEOF
28640 cat confdefs.h >>conftest.$ac_ext
28641 cat >>conftest.$ac_ext <<_ACEOF
28642 /* end confdefs.h. */
28643 $ac_includes_default
28647 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
28654 rm -f conftest.$ac_objext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656 (eval $ac_compile) 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_c_werror_flag"
28664 || test ! -s conftest.err'
28665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666 (eval $ac_try) 2>&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; } &&
28670 { ac_try='test -s conftest.$ac_objext'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; }; then
28678 cat >conftest.$ac_ext <<_ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h. */
28684 $ac_includes_default
28688 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
28695 rm -f conftest.$ac_objext
28696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28697 (eval $ac_compile) 2>conftest.er1
28699 grep -v '^ *+' conftest.er1 >conftest.err
28701 cat conftest.err >&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); } &&
28704 { ac_try='test -z "$ac_c_werror_flag"
28705 || test ! -s conftest.err'
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; } &&
28711 { ac_try='test -s conftest.$ac_objext'
28712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; }; then
28717 ac_lo=$ac_mid; break
28719 echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28722 ac_hi=`expr '(' $ac_mid ')' - 1`
28723 if test $ac_mid -le $ac_hi; then
28727 ac_mid=`expr 2 '*' $ac_mid`
28729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28732 echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28740 # Binary search between lo and hi bounds.
28741 while test "x$ac_lo" != "x$ac_hi"; do
28742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28743 cat >conftest.$ac_ext <<_ACEOF
28746 cat confdefs.h >>conftest.$ac_ext
28747 cat >>conftest.$ac_ext <<_ACEOF
28748 /* end confdefs.h. */
28749 $ac_includes_default
28753 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
28760 rm -f conftest.$ac_objext
28761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28762 (eval $ac_compile) 2>conftest.er1
28764 grep -v '^ *+' conftest.er1 >conftest.err
28766 cat conftest.err >&5
28767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768 (exit $ac_status); } &&
28769 { ac_try='test -z "$ac_c_werror_flag"
28770 || test ! -s conftest.err'
28771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772 (eval $ac_try) 2>&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; } &&
28776 { ac_try='test -s conftest.$ac_objext'
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; }; then
28784 echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28787 ac_lo=`expr '(' $ac_mid ')' + 1`
28789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28792 ?*) ac_cv_sizeof_short=$ac_lo;;
28793 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
28794 See \`config.log' for more details." >&5
28795 echo "$as_me: error: cannot compute sizeof (short), 77
28796 See \`config.log' for more details." >&2;}
28797 { (exit 1); exit 1; }; } ;;
28800 if test "$cross_compiling" = yes; then
28801 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28802 See \`config.log' for more details." >&5
28803 echo "$as_me: error: cannot run test program while cross compiling
28804 See \`config.log' for more details." >&2;}
28805 { (exit 1); exit 1; }; }
28807 cat >conftest.$ac_ext <<_ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28813 $ac_includes_default
28814 long longval () { return (long) (sizeof (short)); }
28815 unsigned long ulongval () { return (long) (sizeof (short)); }
28817 #include <stdlib.h>
28822 FILE *f = fopen ("conftest.val", "w");
28825 if (((long) (sizeof (short))) < 0)
28827 long i = longval ();
28828 if (i != ((long) (sizeof (short))))
28830 fprintf (f, "%ld\n", i);
28834 unsigned long i = ulongval ();
28835 if (i != ((long) (sizeof (short))))
28837 fprintf (f, "%lu\n", i);
28839 exit (ferror (f) || fclose (f) != 0);
28845 rm -f conftest$ac_exeext
28846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28847 (eval $ac_link) 2>&5
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; }; then
28856 ac_cv_sizeof_short=`cat conftest.val`
28858 echo "$as_me: program exited with status $ac_status" >&5
28859 echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28862 ( exit $ac_status )
28863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
28864 See \`config.log' for more details." >&5
28865 echo "$as_me: error: cannot compute sizeof (short), 77
28866 See \`config.log' for more details." >&2;}
28867 { (exit 1); exit 1; }; }
28869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28874 ac_cv_sizeof_short=0
28877 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28878 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
28879 cat >>confdefs.h <<_ACEOF
28880 #define SIZEOF_SHORT $ac_cv_sizeof_short
28884 echo "$as_me:$LINENO: checking for uniquely sized short" >&5
28885 echo $ECHO_N "checking for uniquely sized short... $ECHO_C" >&6
28886 if test "${ccvs_cv_unique_int_type_short+set}" = set; then
28887 echo $ECHO_N "(cached) $ECHO_C" >&6
28889 if set |grep ^ccvs_cv_unique_int_type_ \
28890 |grep "($ac_cv_sizeof_short)" >/dev/null ; then
28891 ccvs_cv_unique_int_type_short=no
28893 ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\)
28896 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_short" >&5
28897 echo "${ECHO_T}$ccvs_cv_unique_int_type_short" >&6
28898 if test $ccvs_cv_unique_int_type_short != no ; then
28900 cat >>confdefs.h <<\_ACEOF
28901 #define UNIQUE_INT_TYPE_SHORT 1
28905 echo "$as_me:$LINENO: checking for int" >&5
28906 echo $ECHO_N "checking for int... $ECHO_C" >&6
28907 if test "${ac_cv_type_int+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28910 cat >conftest.$ac_ext <<_ACEOF
28913 cat confdefs.h >>conftest.$ac_ext
28914 cat >>conftest.$ac_ext <<_ACEOF
28915 /* end confdefs.h. */
28916 $ac_includes_default
28928 rm -f conftest.$ac_objext
28929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28930 (eval $ac_compile) 2>conftest.er1
28932 grep -v '^ *+' conftest.er1 >conftest.err
28934 cat conftest.err >&5
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); } &&
28937 { ac_try='test -z "$ac_c_werror_flag"
28938 || test ! -s conftest.err'
28939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; } &&
28944 { ac_try='test -s conftest.$ac_objext'
28945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28946 (eval $ac_try) 2>&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); }; }; then
28952 echo "$as_me: failed program was:" >&5
28953 sed 's/^/| /' conftest.$ac_ext >&5
28957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28959 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28960 echo "${ECHO_T}$ac_cv_type_int" >&6
28962 echo "$as_me:$LINENO: checking size of int" >&5
28963 echo $ECHO_N "checking size of int... $ECHO_C" >&6
28964 if test "${ac_cv_sizeof_int+set}" = set; then
28965 echo $ECHO_N "(cached) $ECHO_C" >&6
28967 if test "$ac_cv_type_int" = yes; then
28968 # The cast to unsigned long works around a bug in the HP C Compiler
28969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28971 # This bug is HP SR number 8606223364.
28972 if test "$cross_compiling" = yes; then
28973 # Depending upon the size, compute the lo and hi bounds.
28974 cat >conftest.$ac_ext <<_ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h. */
28980 $ac_includes_default
28984 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
28991 rm -f conftest.$ac_objext
28992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28993 (eval $ac_compile) 2>conftest.er1
28995 grep -v '^ *+' conftest.er1 >conftest.err
28997 cat conftest.err >&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); } &&
29000 { ac_try='test -z "$ac_c_werror_flag"
29001 || test ! -s conftest.err'
29002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29003 (eval $ac_try) 2>&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); }; } &&
29007 { ac_try='test -s conftest.$ac_objext'
29008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29009 (eval $ac_try) 2>&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); }; }; then
29015 cat >conftest.$ac_ext <<_ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h. */
29021 $ac_includes_default
29025 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
29032 rm -f conftest.$ac_objext
29033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29034 (eval $ac_compile) 2>conftest.er1
29036 grep -v '^ *+' conftest.er1 >conftest.err
29038 cat conftest.err >&5
29039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040 (exit $ac_status); } &&
29041 { ac_try='test -z "$ac_c_werror_flag"
29042 || test ! -s conftest.err'
29043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29044 (eval $ac_try) 2>&5
29046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); }; } &&
29048 { ac_try='test -s conftest.$ac_objext'
29049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29050 (eval $ac_try) 2>&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); }; }; then
29054 ac_hi=$ac_mid; break
29056 echo "$as_me: failed program was:" >&5
29057 sed 's/^/| /' conftest.$ac_ext >&5
29059 ac_lo=`expr $ac_mid + 1`
29060 if test $ac_lo -le $ac_mid; then
29064 ac_mid=`expr 2 '*' $ac_mid + 1`
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29069 echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29072 cat >conftest.$ac_ext <<_ACEOF
29075 cat confdefs.h >>conftest.$ac_ext
29076 cat >>conftest.$ac_ext <<_ACEOF
29077 /* end confdefs.h. */
29078 $ac_includes_default
29082 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
29089 rm -f conftest.$ac_objext
29090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29091 (eval $ac_compile) 2>conftest.er1
29093 grep -v '^ *+' conftest.er1 >conftest.err
29095 cat conftest.err >&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } &&
29098 { ac_try='test -z "$ac_c_werror_flag"
29099 || test ! -s conftest.err'
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest.$ac_objext'
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29113 cat >conftest.$ac_ext <<_ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h. */
29119 $ac_includes_default
29123 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
29130 rm -f conftest.$ac_objext
29131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29132 (eval $ac_compile) 2>conftest.er1
29134 grep -v '^ *+' conftest.er1 >conftest.err
29136 cat conftest.err >&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); } &&
29139 { ac_try='test -z "$ac_c_werror_flag"
29140 || test ! -s conftest.err'
29141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142 (eval $ac_try) 2>&5
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); }; } &&
29146 { ac_try='test -s conftest.$ac_objext'
29147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148 (eval $ac_try) 2>&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; }; then
29152 ac_lo=$ac_mid; break
29154 echo "$as_me: failed program was:" >&5
29155 sed 's/^/| /' conftest.$ac_ext >&5
29157 ac_hi=`expr '(' $ac_mid ')' - 1`
29158 if test $ac_mid -le $ac_hi; then
29162 ac_mid=`expr 2 '*' $ac_mid`
29164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29175 # Binary search between lo and hi bounds.
29176 while test "x$ac_lo" != "x$ac_hi"; do
29177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29178 cat >conftest.$ac_ext <<_ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h. */
29184 $ac_includes_default
29188 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
29195 rm -f conftest.$ac_objext
29196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29197 (eval $ac_compile) 2>conftest.er1
29199 grep -v '^ *+' conftest.er1 >conftest.err
29201 cat conftest.err >&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } &&
29204 { ac_try='test -z "$ac_c_werror_flag"
29205 || test ! -s conftest.err'
29206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207 (eval $ac_try) 2>&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; } &&
29211 { ac_try='test -s conftest.$ac_objext'
29212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29213 (eval $ac_try) 2>&5
29215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216 (exit $ac_status); }; }; then
29219 echo "$as_me: failed program was:" >&5
29220 sed 's/^/| /' conftest.$ac_ext >&5
29222 ac_lo=`expr '(' $ac_mid ')' + 1`
29224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29227 ?*) ac_cv_sizeof_int=$ac_lo;;
29228 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
29229 See \`config.log' for more details." >&5
29230 echo "$as_me: error: cannot compute sizeof (int), 77
29231 See \`config.log' for more details." >&2;}
29232 { (exit 1); exit 1; }; } ;;
29235 if test "$cross_compiling" = yes; then
29236 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29237 See \`config.log' for more details." >&5
29238 echo "$as_me: error: cannot run test program while cross compiling
29239 See \`config.log' for more details." >&2;}
29240 { (exit 1); exit 1; }; }
29242 cat >conftest.$ac_ext <<_ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h. */
29248 $ac_includes_default
29249 long longval () { return (long) (sizeof (int)); }
29250 unsigned long ulongval () { return (long) (sizeof (int)); }
29252 #include <stdlib.h>
29257 FILE *f = fopen ("conftest.val", "w");
29260 if (((long) (sizeof (int))) < 0)
29262 long i = longval ();
29263 if (i != ((long) (sizeof (int))))
29265 fprintf (f, "%ld\n", i);
29269 unsigned long i = ulongval ();
29270 if (i != ((long) (sizeof (int))))
29272 fprintf (f, "%lu\n", i);
29274 exit (ferror (f) || fclose (f) != 0);
29280 rm -f conftest$ac_exeext
29281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29282 (eval $ac_link) 2>&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287 (eval $ac_try) 2>&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; }; then
29291 ac_cv_sizeof_int=`cat conftest.val`
29293 echo "$as_me: program exited with status $ac_status" >&5
29294 echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29297 ( exit $ac_status )
29298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
29299 See \`config.log' for more details." >&5
29300 echo "$as_me: error: cannot compute sizeof (int), 77
29301 See \`config.log' for more details." >&2;}
29302 { (exit 1); exit 1; }; }
29304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29313 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
29314 cat >>confdefs.h <<_ACEOF
29315 #define SIZEOF_INT $ac_cv_sizeof_int
29319 echo "$as_me:$LINENO: checking for uniquely sized int" >&5
29320 echo $ECHO_N "checking for uniquely sized int... $ECHO_C" >&6
29321 if test "${ccvs_cv_unique_int_type_int+set}" = set; then
29322 echo $ECHO_N "(cached) $ECHO_C" >&6
29324 if set |grep ^ccvs_cv_unique_int_type_ \
29325 |grep "($ac_cv_sizeof_int)" >/dev/null ; then
29326 ccvs_cv_unique_int_type_int=no
29328 ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\)
29331 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_int" >&5
29332 echo "${ECHO_T}$ccvs_cv_unique_int_type_int" >&6
29333 if test $ccvs_cv_unique_int_type_int != no ; then
29335 cat >>confdefs.h <<\_ACEOF
29336 #define UNIQUE_INT_TYPE_INT 1
29340 echo "$as_me:$LINENO: checking for long" >&5
29341 echo $ECHO_N "checking for long... $ECHO_C" >&6
29342 if test "${ac_cv_type_long+set}" = set; then
29343 echo $ECHO_N "(cached) $ECHO_C" >&6
29345 cat >conftest.$ac_ext <<_ACEOF
29348 cat confdefs.h >>conftest.$ac_ext
29349 cat >>conftest.$ac_ext <<_ACEOF
29350 /* end confdefs.h. */
29351 $ac_includes_default
29363 rm -f conftest.$ac_objext
29364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29365 (eval $ac_compile) 2>conftest.er1
29367 grep -v '^ *+' conftest.er1 >conftest.err
29369 cat conftest.err >&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } &&
29372 { ac_try='test -z "$ac_c_werror_flag"
29373 || test ! -s conftest.err'
29374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375 (eval $ac_try) 2>&5
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); }; } &&
29379 { ac_try='test -s conftest.$ac_objext'
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; }; then
29385 ac_cv_type_long=yes
29387 echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29394 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29395 echo "${ECHO_T}$ac_cv_type_long" >&6
29397 echo "$as_me:$LINENO: checking size of long" >&5
29398 echo $ECHO_N "checking size of long... $ECHO_C" >&6
29399 if test "${ac_cv_sizeof_long+set}" = set; then
29400 echo $ECHO_N "(cached) $ECHO_C" >&6
29402 if test "$ac_cv_type_long" = yes; then
29403 # The cast to unsigned long works around a bug in the HP C Compiler
29404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29406 # This bug is HP SR number 8606223364.
29407 if test "$cross_compiling" = yes; then
29408 # Depending upon the size, compute the lo and hi bounds.
29409 cat >conftest.$ac_ext <<_ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h. */
29415 $ac_includes_default
29419 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
29426 rm -f conftest.$ac_objext
29427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29428 (eval $ac_compile) 2>conftest.er1
29430 grep -v '^ *+' conftest.er1 >conftest.err
29432 cat conftest.err >&5
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); } &&
29435 { ac_try='test -z "$ac_c_werror_flag"
29436 || test ! -s conftest.err'
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest.$ac_objext'
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29450 cat >conftest.$ac_ext <<_ACEOF
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h. */
29456 $ac_includes_default
29460 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
29467 rm -f conftest.$ac_objext
29468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29469 (eval $ac_compile) 2>conftest.er1
29471 grep -v '^ *+' conftest.er1 >conftest.err
29473 cat conftest.err >&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); } &&
29476 { ac_try='test -z "$ac_c_werror_flag"
29477 || test ! -s conftest.err'
29478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479 (eval $ac_try) 2>&5
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); }; } &&
29483 { ac_try='test -s conftest.$ac_objext'
29484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485 (eval $ac_try) 2>&5
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; }; then
29489 ac_hi=$ac_mid; break
29491 echo "$as_me: failed program was:" >&5
29492 sed 's/^/| /' conftest.$ac_ext >&5
29494 ac_lo=`expr $ac_mid + 1`
29495 if test $ac_lo -le $ac_mid; then
29499 ac_mid=`expr 2 '*' $ac_mid + 1`
29501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29504 echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29507 cat >conftest.$ac_ext <<_ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h. */
29513 $ac_includes_default
29517 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
29524 rm -f conftest.$ac_objext
29525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29526 (eval $ac_compile) 2>conftest.er1
29528 grep -v '^ *+' conftest.er1 >conftest.err
29530 cat conftest.err >&5
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); } &&
29533 { ac_try='test -z "$ac_c_werror_flag"
29534 || test ! -s conftest.err'
29535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536 (eval $ac_try) 2>&5
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); }; } &&
29540 { ac_try='test -s conftest.$ac_objext'
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; }; then
29548 cat >conftest.$ac_ext <<_ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29554 $ac_includes_default
29558 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
29565 rm -f conftest.$ac_objext
29566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29567 (eval $ac_compile) 2>conftest.er1
29569 grep -v '^ *+' conftest.er1 >conftest.err
29571 cat conftest.err >&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); } &&
29574 { ac_try='test -z "$ac_c_werror_flag"
29575 || test ! -s conftest.err'
29576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29577 (eval $ac_try) 2>&5
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); }; } &&
29581 { ac_try='test -s conftest.$ac_objext'
29582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29583 (eval $ac_try) 2>&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; }; then
29587 ac_lo=$ac_mid; break
29589 echo "$as_me: failed program was:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29592 ac_hi=`expr '(' $ac_mid ')' - 1`
29593 if test $ac_mid -le $ac_hi; then
29597 ac_mid=`expr 2 '*' $ac_mid`
29599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29602 echo "$as_me: failed program was:" >&5
29603 sed 's/^/| /' conftest.$ac_ext >&5
29607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29610 # Binary search between lo and hi bounds.
29611 while test "x$ac_lo" != "x$ac_hi"; do
29612 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29613 cat >conftest.$ac_ext <<_ACEOF
29616 cat confdefs.h >>conftest.$ac_ext
29617 cat >>conftest.$ac_ext <<_ACEOF
29618 /* end confdefs.h. */
29619 $ac_includes_default
29623 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
29630 rm -f conftest.$ac_objext
29631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29632 (eval $ac_compile) 2>conftest.er1
29634 grep -v '^ *+' conftest.er1 >conftest.err
29636 cat conftest.err >&5
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } &&
29639 { ac_try='test -z "$ac_c_werror_flag"
29640 || test ! -s conftest.err'
29641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29642 (eval $ac_try) 2>&5
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; } &&
29646 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29654 echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29657 ac_lo=`expr '(' $ac_mid ')' + 1`
29659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29662 ?*) ac_cv_sizeof_long=$ac_lo;;
29663 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
29664 See \`config.log' for more details." >&5
29665 echo "$as_me: error: cannot compute sizeof (long), 77
29666 See \`config.log' for more details." >&2;}
29667 { (exit 1); exit 1; }; } ;;
29670 if test "$cross_compiling" = yes; then
29671 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29672 See \`config.log' for more details." >&5
29673 echo "$as_me: error: cannot run test program while cross compiling
29674 See \`config.log' for more details." >&2;}
29675 { (exit 1); exit 1; }; }
29677 cat >conftest.$ac_ext <<_ACEOF
29680 cat confdefs.h >>conftest.$ac_ext
29681 cat >>conftest.$ac_ext <<_ACEOF
29682 /* end confdefs.h. */
29683 $ac_includes_default
29684 long longval () { return (long) (sizeof (long)); }
29685 unsigned long ulongval () { return (long) (sizeof (long)); }
29687 #include <stdlib.h>
29692 FILE *f = fopen ("conftest.val", "w");
29695 if (((long) (sizeof (long))) < 0)
29697 long i = longval ();
29698 if (i != ((long) (sizeof (long))))
29700 fprintf (f, "%ld\n", i);
29704 unsigned long i = ulongval ();
29705 if (i != ((long) (sizeof (long))))
29707 fprintf (f, "%lu\n", i);
29709 exit (ferror (f) || fclose (f) != 0);
29715 rm -f conftest$ac_exeext
29716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29717 (eval $ac_link) 2>&5
29719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722 (eval $ac_try) 2>&5
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; }; then
29726 ac_cv_sizeof_long=`cat conftest.val`
29728 echo "$as_me: program exited with status $ac_status" >&5
29729 echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29732 ( exit $ac_status )
29733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
29734 See \`config.log' for more details." >&5
29735 echo "$as_me: error: cannot compute sizeof (long), 77
29736 See \`config.log' for more details." >&2;}
29737 { (exit 1); exit 1; }; }
29739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29744 ac_cv_sizeof_long=0
29747 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29748 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
29749 cat >>confdefs.h <<_ACEOF
29750 #define SIZEOF_LONG $ac_cv_sizeof_long
29754 echo "$as_me:$LINENO: checking for uniquely sized long" >&5
29755 echo $ECHO_N "checking for uniquely sized long... $ECHO_C" >&6
29756 if test "${ccvs_cv_unique_int_type_long+set}" = set; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
29759 if set |grep ^ccvs_cv_unique_int_type_ \
29760 |grep "($ac_cv_sizeof_long)" >/dev/null ; then
29761 ccvs_cv_unique_int_type_long=no
29763 ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\)
29766 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long" >&5
29767 echo "${ECHO_T}$ccvs_cv_unique_int_type_long" >&6
29768 if test $ccvs_cv_unique_int_type_long != no ; then
29770 cat >>confdefs.h <<\_ACEOF
29771 #define UNIQUE_INT_TYPE_LONG 1
29775 if test $ac_cv_type_long_long != no; then
29776 echo "$as_me:$LINENO: checking for long long" >&5
29777 echo $ECHO_N "checking for long long... $ECHO_C" >&6
29778 if test "${ac_cv_type_long_long+set}" = set; then
29779 echo $ECHO_N "(cached) $ECHO_C" >&6
29781 cat >conftest.$ac_ext <<_ACEOF
29784 cat confdefs.h >>conftest.$ac_ext
29785 cat >>conftest.$ac_ext <<_ACEOF
29786 /* end confdefs.h. */
29787 $ac_includes_default
29791 if ((long long *) 0)
29793 if (sizeof (long long))
29799 rm -f conftest.$ac_objext
29800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29801 (eval $ac_compile) 2>conftest.er1
29803 grep -v '^ *+' conftest.er1 >conftest.err
29805 cat conftest.err >&5
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } &&
29808 { ac_try='test -z "$ac_c_werror_flag"
29809 || test ! -s conftest.err'
29810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811 (eval $ac_try) 2>&5
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; } &&
29815 { ac_try='test -s conftest.$ac_objext'
29816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29817 (eval $ac_try) 2>&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); }; }; then
29821 ac_cv_type_long_long=yes
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29826 ac_cv_type_long_long=no
29828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29830 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
29831 echo "${ECHO_T}$ac_cv_type_long_long" >&6
29833 echo "$as_me:$LINENO: checking size of long long" >&5
29834 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
29835 if test "${ac_cv_sizeof_long_long+set}" = set; then
29836 echo $ECHO_N "(cached) $ECHO_C" >&6
29838 if test "$ac_cv_type_long_long" = yes; then
29839 # The cast to unsigned long works around a bug in the HP C Compiler
29840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29842 # This bug is HP SR number 8606223364.
29843 if test "$cross_compiling" = yes; then
29844 # Depending upon the size, compute the lo and hi bounds.
29845 cat >conftest.$ac_ext <<_ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h. */
29851 $ac_includes_default
29855 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
29862 rm -f conftest.$ac_objext
29863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29864 (eval $ac_compile) 2>conftest.er1
29866 grep -v '^ *+' conftest.er1 >conftest.err
29868 cat conftest.err >&5
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); } &&
29871 { ac_try='test -z "$ac_c_werror_flag"
29872 || test ! -s conftest.err'
29873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874 (eval $ac_try) 2>&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; } &&
29878 { ac_try='test -s conftest.$ac_objext'
29879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880 (eval $ac_try) 2>&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; }; then
29886 cat >conftest.$ac_ext <<_ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h. */
29892 $ac_includes_default
29896 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
29903 rm -f conftest.$ac_objext
29904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29905 (eval $ac_compile) 2>conftest.er1
29907 grep -v '^ *+' conftest.er1 >conftest.err
29909 cat conftest.err >&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
29912 { ac_try='test -z "$ac_c_werror_flag"
29913 || test ! -s conftest.err'
29914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915 (eval $ac_try) 2>&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; } &&
29919 { ac_try='test -s conftest.$ac_objext'
29920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921 (eval $ac_try) 2>&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); }; }; then
29925 ac_hi=$ac_mid; break
29927 echo "$as_me: failed program was:" >&5
29928 sed 's/^/| /' conftest.$ac_ext >&5
29930 ac_lo=`expr $ac_mid + 1`
29931 if test $ac_lo -le $ac_mid; then
29935 ac_mid=`expr 2 '*' $ac_mid + 1`
29937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29940 echo "$as_me: failed program was:" >&5
29941 sed 's/^/| /' conftest.$ac_ext >&5
29943 cat >conftest.$ac_ext <<_ACEOF
29946 cat confdefs.h >>conftest.$ac_ext
29947 cat >>conftest.$ac_ext <<_ACEOF
29948 /* end confdefs.h. */
29949 $ac_includes_default
29953 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
29960 rm -f conftest.$ac_objext
29961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29962 (eval $ac_compile) 2>conftest.er1
29964 grep -v '^ *+' conftest.er1 >conftest.err
29966 cat conftest.err >&5
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); } &&
29969 { ac_try='test -z "$ac_c_werror_flag"
29970 || test ! -s conftest.err'
29971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972 (eval $ac_try) 2>&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; } &&
29976 { ac_try='test -s conftest.$ac_objext'
29977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978 (eval $ac_try) 2>&5
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; }; then
29984 cat >conftest.$ac_ext <<_ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29990 $ac_includes_default
29994 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
30001 rm -f conftest.$ac_objext
30002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30003 (eval $ac_compile) 2>conftest.er1
30005 grep -v '^ *+' conftest.er1 >conftest.err
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
30010 { ac_try='test -z "$ac_c_werror_flag"
30011 || test ! -s conftest.err'
30012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013 (eval $ac_try) 2>&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; } &&
30017 { ac_try='test -s conftest.$ac_objext'
30018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; }; then
30023 ac_lo=$ac_mid; break
30025 echo "$as_me: failed program was:" >&5
30026 sed 's/^/| /' conftest.$ac_ext >&5
30028 ac_hi=`expr '(' $ac_mid ')' - 1`
30029 if test $ac_mid -le $ac_hi; then
30033 ac_mid=`expr 2 '*' $ac_mid`
30035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30038 echo "$as_me: failed program was:" >&5
30039 sed 's/^/| /' conftest.$ac_ext >&5
30043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30046 # Binary search between lo and hi bounds.
30047 while test "x$ac_lo" != "x$ac_hi"; do
30048 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30049 cat >conftest.$ac_ext <<_ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 $ac_includes_default
30059 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
30066 rm -f conftest.$ac_objext
30067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30068 (eval $ac_compile) 2>conftest.er1
30070 grep -v '^ *+' conftest.er1 >conftest.err
30072 cat conftest.err >&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); } &&
30075 { ac_try='test -z "$ac_c_werror_flag"
30076 || test ! -s conftest.err'
30077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30078 (eval $ac_try) 2>&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); }; } &&
30082 { ac_try='test -s conftest.$ac_objext'
30083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084 (eval $ac_try) 2>&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); }; }; then
30090 echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30093 ac_lo=`expr '(' $ac_mid ')' + 1`
30095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30098 ?*) ac_cv_sizeof_long_long=$ac_lo;;
30099 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
30100 See \`config.log' for more details." >&5
30101 echo "$as_me: error: cannot compute sizeof (long long), 77
30102 See \`config.log' for more details." >&2;}
30103 { (exit 1); exit 1; }; } ;;
30106 if test "$cross_compiling" = yes; then
30107 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30108 See \`config.log' for more details." >&5
30109 echo "$as_me: error: cannot run test program while cross compiling
30110 See \`config.log' for more details." >&2;}
30111 { (exit 1); exit 1; }; }
30113 cat >conftest.$ac_ext <<_ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h. */
30119 $ac_includes_default
30120 long longval () { return (long) (sizeof (long long)); }
30121 unsigned long ulongval () { return (long) (sizeof (long long)); }
30123 #include <stdlib.h>
30128 FILE *f = fopen ("conftest.val", "w");
30131 if (((long) (sizeof (long long))) < 0)
30133 long i = longval ();
30134 if (i != ((long) (sizeof (long long))))
30136 fprintf (f, "%ld\n", i);
30140 unsigned long i = ulongval ();
30141 if (i != ((long) (sizeof (long long))))
30143 fprintf (f, "%lu\n", i);
30145 exit (ferror (f) || fclose (f) != 0);
30151 rm -f conftest$ac_exeext
30152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30153 (eval $ac_link) 2>&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30158 (eval $ac_try) 2>&5
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); }; }; then
30162 ac_cv_sizeof_long_long=`cat conftest.val`
30164 echo "$as_me: program exited with status $ac_status" >&5
30165 echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30168 ( exit $ac_status )
30169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
30170 See \`config.log' for more details." >&5
30171 echo "$as_me: error: cannot compute sizeof (long long), 77
30172 See \`config.log' for more details." >&2;}
30173 { (exit 1); exit 1; }; }
30175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30180 ac_cv_sizeof_long_long=0
30183 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
30184 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
30185 cat >>confdefs.h <<_ACEOF
30186 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
30190 echo "$as_me:$LINENO: checking for uniquely sized long long" >&5
30191 echo $ECHO_N "checking for uniquely sized long long... $ECHO_C" >&6
30192 if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then
30193 echo $ECHO_N "(cached) $ECHO_C" >&6
30195 if set |grep ^ccvs_cv_unique_int_type_ \
30196 |grep "($ac_cv_sizeof_long_long)" >/dev/null ; then
30197 ccvs_cv_unique_int_type_long_long=no
30199 ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\)
30202 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long_long" >&5
30203 echo "${ECHO_T}$ccvs_cv_unique_int_type_long_long" >&6
30204 if test $ccvs_cv_unique_int_type_long_long != no ; then
30206 cat >>confdefs.h <<\_ACEOF
30207 #define UNIQUE_INT_TYPE_LONG_LONG 1
30212 echo "$as_me:$LINENO: checking for size_t" >&5
30213 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30214 if test "${ac_cv_type_size_t+set}" = set; then
30215 echo $ECHO_N "(cached) $ECHO_C" >&6
30217 cat >conftest.$ac_ext <<_ACEOF
30220 cat confdefs.h >>conftest.$ac_ext
30221 cat >>conftest.$ac_ext <<_ACEOF
30222 /* end confdefs.h. */
30223 $ac_includes_default
30229 if (sizeof (size_t))
30235 rm -f conftest.$ac_objext
30236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30237 (eval $ac_compile) 2>conftest.er1
30239 grep -v '^ *+' conftest.er1 >conftest.err
30241 cat conftest.err >&5
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
30244 { ac_try='test -z "$ac_c_werror_flag"
30245 || test ! -s conftest.err'
30246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247 (eval $ac_try) 2>&5
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest.$ac_objext'
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; }; then
30257 ac_cv_type_size_t=yes
30259 echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30262 ac_cv_type_size_t=no
30264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30266 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30267 echo "${ECHO_T}$ac_cv_type_size_t" >&6
30269 echo "$as_me:$LINENO: checking size of size_t" >&5
30270 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
30271 if test "${ac_cv_sizeof_size_t+set}" = set; then
30272 echo $ECHO_N "(cached) $ECHO_C" >&6
30274 if test "$ac_cv_type_size_t" = yes; then
30275 # The cast to unsigned long works around a bug in the HP C Compiler
30276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30278 # This bug is HP SR number 8606223364.
30279 if test "$cross_compiling" = yes; then
30280 # Depending upon the size, compute the lo and hi bounds.
30281 cat >conftest.$ac_ext <<_ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h. */
30287 $ac_includes_default
30291 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
30298 rm -f conftest.$ac_objext
30299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30300 (eval $ac_compile) 2>conftest.er1
30302 grep -v '^ *+' conftest.er1 >conftest.err
30304 cat conftest.err >&5
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); } &&
30307 { ac_try='test -z "$ac_c_werror_flag"
30308 || test ! -s conftest.err'
30309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30310 (eval $ac_try) 2>&5
30312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); }; } &&
30314 { ac_try='test -s conftest.$ac_objext'
30315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30316 (eval $ac_try) 2>&5
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; }; then
30322 cat >conftest.$ac_ext <<_ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h. */
30328 $ac_includes_default
30332 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
30339 rm -f conftest.$ac_objext
30340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30341 (eval $ac_compile) 2>conftest.er1
30343 grep -v '^ *+' conftest.er1 >conftest.err
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag"
30349 || test ! -s conftest.err'
30350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351 (eval $ac_try) 2>&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; } &&
30355 { ac_try='test -s conftest.$ac_objext'
30356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357 (eval $ac_try) 2>&5
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); }; }; then
30361 ac_hi=$ac_mid; break
30363 echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30366 ac_lo=`expr $ac_mid + 1`
30367 if test $ac_lo -le $ac_mid; then
30371 ac_mid=`expr 2 '*' $ac_mid + 1`
30373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30376 echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30379 cat >conftest.$ac_ext <<_ACEOF
30382 cat confdefs.h >>conftest.$ac_ext
30383 cat >>conftest.$ac_ext <<_ACEOF
30384 /* end confdefs.h. */
30385 $ac_includes_default
30389 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
30396 rm -f conftest.$ac_objext
30397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30398 (eval $ac_compile) 2>conftest.er1
30400 grep -v '^ *+' conftest.er1 >conftest.err
30402 cat conftest.err >&5
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); } &&
30405 { ac_try='test -z "$ac_c_werror_flag"
30406 || test ! -s conftest.err'
30407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408 (eval $ac_try) 2>&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; } &&
30412 { ac_try='test -s conftest.$ac_objext'
30413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414 (eval $ac_try) 2>&5
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); }; }; then
30420 cat >conftest.$ac_ext <<_ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h. */
30426 $ac_includes_default
30430 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
30437 rm -f conftest.$ac_objext
30438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30439 (eval $ac_compile) 2>conftest.er1
30441 grep -v '^ *+' conftest.er1 >conftest.err
30443 cat conftest.err >&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); } &&
30446 { ac_try='test -z "$ac_c_werror_flag"
30447 || test ! -s conftest.err'
30448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30449 (eval $ac_try) 2>&5
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); }; } &&
30453 { ac_try='test -s conftest.$ac_objext'
30454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455 (eval $ac_try) 2>&5
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; }; then
30459 ac_lo=$ac_mid; break
30461 echo "$as_me: failed program was:" >&5
30462 sed 's/^/| /' conftest.$ac_ext >&5
30464 ac_hi=`expr '(' $ac_mid ')' - 1`
30465 if test $ac_mid -le $ac_hi; then
30469 ac_mid=`expr 2 '*' $ac_mid`
30471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30474 echo "$as_me: failed program was:" >&5
30475 sed 's/^/| /' conftest.$ac_ext >&5
30479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30482 # Binary search between lo and hi bounds.
30483 while test "x$ac_lo" != "x$ac_hi"; do
30484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30485 cat >conftest.$ac_ext <<_ACEOF
30488 cat confdefs.h >>conftest.$ac_ext
30489 cat >>conftest.$ac_ext <<_ACEOF
30490 /* end confdefs.h. */
30491 $ac_includes_default
30495 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
30502 rm -f conftest.$ac_objext
30503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30504 (eval $ac_compile) 2>conftest.er1
30506 grep -v '^ *+' conftest.er1 >conftest.err
30508 cat conftest.err >&5
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); } &&
30511 { ac_try='test -z "$ac_c_werror_flag"
30512 || test ! -s conftest.err'
30513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30514 (eval $ac_try) 2>&5
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); }; } &&
30518 { ac_try='test -s conftest.$ac_objext'
30519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520 (eval $ac_try) 2>&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); }; }; then
30526 echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30529 ac_lo=`expr '(' $ac_mid ')' + 1`
30531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30534 ?*) ac_cv_sizeof_size_t=$ac_lo;;
30535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
30536 See \`config.log' for more details." >&5
30537 echo "$as_me: error: cannot compute sizeof (size_t), 77
30538 See \`config.log' for more details." >&2;}
30539 { (exit 1); exit 1; }; } ;;
30542 if test "$cross_compiling" = yes; then
30543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30544 See \`config.log' for more details." >&5
30545 echo "$as_me: error: cannot run test program while cross compiling
30546 See \`config.log' for more details." >&2;}
30547 { (exit 1); exit 1; }; }
30549 cat >conftest.$ac_ext <<_ACEOF
30552 cat confdefs.h >>conftest.$ac_ext
30553 cat >>conftest.$ac_ext <<_ACEOF
30554 /* end confdefs.h. */
30555 $ac_includes_default
30556 long longval () { return (long) (sizeof (size_t)); }
30557 unsigned long ulongval () { return (long) (sizeof (size_t)); }
30559 #include <stdlib.h>
30564 FILE *f = fopen ("conftest.val", "w");
30567 if (((long) (sizeof (size_t))) < 0)
30569 long i = longval ();
30570 if (i != ((long) (sizeof (size_t))))
30572 fprintf (f, "%ld\n", i);
30576 unsigned long i = ulongval ();
30577 if (i != ((long) (sizeof (size_t))))
30579 fprintf (f, "%lu\n", i);
30581 exit (ferror (f) || fclose (f) != 0);
30587 rm -f conftest$ac_exeext
30588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30589 (eval $ac_link) 2>&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30594 (eval $ac_try) 2>&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); }; }; then
30598 ac_cv_sizeof_size_t=`cat conftest.val`
30600 echo "$as_me: program exited with status $ac_status" >&5
30601 echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30604 ( exit $ac_status )
30605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
30606 See \`config.log' for more details." >&5
30607 echo "$as_me: error: cannot compute sizeof (size_t), 77
30608 See \`config.log' for more details." >&2;}
30609 { (exit 1); exit 1; }; }
30611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30616 ac_cv_sizeof_size_t=0
30619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
30620 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
30621 cat >>confdefs.h <<_ACEOF
30622 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
30626 echo "$as_me:$LINENO: checking for uniquely sized size_t" >&5
30627 echo $ECHO_N "checking for uniquely sized size_t... $ECHO_C" >&6
30628 if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then
30629 echo $ECHO_N "(cached) $ECHO_C" >&6
30631 if set |grep ^ccvs_cv_unique_int_type_ \
30632 |grep "($ac_cv_sizeof_size_t)" >/dev/null ; then
30633 ccvs_cv_unique_int_type_size_t=no
30635 ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\)
30638 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_size_t" >&5
30639 echo "${ECHO_T}$ccvs_cv_unique_int_type_size_t" >&6
30640 if test $ccvs_cv_unique_int_type_size_t != no ; then
30642 cat >>confdefs.h <<\_ACEOF
30643 #define UNIQUE_INT_TYPE_SIZE_T 1
30647 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
30648 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
30649 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
30650 echo $ECHO_N "(cached) $ECHO_C" >&6
30652 cat >conftest.$ac_ext <<_ACEOF
30655 cat confdefs.h >>conftest.$ac_ext
30656 cat >>conftest.$ac_ext <<_ACEOF
30657 /* end confdefs.h. */
30658 $ac_includes_default
30662 if ((ptrdiff_t *) 0)
30664 if (sizeof (ptrdiff_t))
30670 rm -f conftest.$ac_objext
30671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30672 (eval $ac_compile) 2>conftest.er1
30674 grep -v '^ *+' conftest.er1 >conftest.err
30676 cat conftest.err >&5
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); } &&
30679 { ac_try='test -z "$ac_c_werror_flag"
30680 || test ! -s conftest.err'
30681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682 (eval $ac_try) 2>&5
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; } &&
30686 { ac_try='test -s conftest.$ac_objext'
30687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688 (eval $ac_try) 2>&5
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; }; then
30692 ac_cv_type_ptrdiff_t=yes
30694 echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30697 ac_cv_type_ptrdiff_t=no
30699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30701 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
30702 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
30704 echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
30705 echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
30706 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
30707 echo $ECHO_N "(cached) $ECHO_C" >&6
30709 if test "$ac_cv_type_ptrdiff_t" = yes; then
30710 # The cast to unsigned long works around a bug in the HP C Compiler
30711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30713 # This bug is HP SR number 8606223364.
30714 if test "$cross_compiling" = yes; then
30715 # Depending upon the size, compute the lo and hi bounds.
30716 cat >conftest.$ac_ext <<_ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h. */
30722 $ac_includes_default
30726 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
30733 rm -f conftest.$ac_objext
30734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30735 (eval $ac_compile) 2>conftest.er1
30737 grep -v '^ *+' conftest.er1 >conftest.err
30739 cat conftest.err >&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } &&
30742 { ac_try='test -z "$ac_c_werror_flag"
30743 || test ! -s conftest.err'
30744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745 (eval $ac_try) 2>&5
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; } &&
30749 { ac_try='test -s conftest.$ac_objext'
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; }; then
30757 cat >conftest.$ac_ext <<_ACEOF
30760 cat confdefs.h >>conftest.$ac_ext
30761 cat >>conftest.$ac_ext <<_ACEOF
30762 /* end confdefs.h. */
30763 $ac_includes_default
30767 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
30774 rm -f conftest.$ac_objext
30775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30776 (eval $ac_compile) 2>conftest.er1
30778 grep -v '^ *+' conftest.er1 >conftest.err
30780 cat conftest.err >&5
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); } &&
30783 { ac_try='test -z "$ac_c_werror_flag"
30784 || test ! -s conftest.err'
30785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30786 (eval $ac_try) 2>&5
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; } &&
30790 { ac_try='test -s conftest.$ac_objext'
30791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30792 (eval $ac_try) 2>&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; }; then
30796 ac_hi=$ac_mid; break
30798 echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30801 ac_lo=`expr $ac_mid + 1`
30802 if test $ac_lo -le $ac_mid; then
30806 ac_mid=`expr 2 '*' $ac_mid + 1`
30808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30811 echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30814 cat >conftest.$ac_ext <<_ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h. */
30820 $ac_includes_default
30824 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
30831 rm -f conftest.$ac_objext
30832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30833 (eval $ac_compile) 2>conftest.er1
30835 grep -v '^ *+' conftest.er1 >conftest.err
30837 cat conftest.err >&5
30838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); } &&
30840 { ac_try='test -z "$ac_c_werror_flag"
30841 || test ! -s conftest.err'
30842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30843 (eval $ac_try) 2>&5
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; } &&
30847 { ac_try='test -s conftest.$ac_objext'
30848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30849 (eval $ac_try) 2>&5
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); }; }; then
30855 cat >conftest.$ac_ext <<_ACEOF
30858 cat confdefs.h >>conftest.$ac_ext
30859 cat >>conftest.$ac_ext <<_ACEOF
30860 /* end confdefs.h. */
30861 $ac_includes_default
30865 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
30872 rm -f conftest.$ac_objext
30873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30874 (eval $ac_compile) 2>conftest.er1
30876 grep -v '^ *+' conftest.er1 >conftest.err
30878 cat conftest.err >&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } &&
30881 { ac_try='test -z "$ac_c_werror_flag"
30882 || test ! -s conftest.err'
30883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30884 (eval $ac_try) 2>&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest.$ac_objext'
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 ac_lo=$ac_mid; break
30896 echo "$as_me: failed program was:" >&5
30897 sed 's/^/| /' conftest.$ac_ext >&5
30899 ac_hi=`expr '(' $ac_mid ')' - 1`
30900 if test $ac_mid -le $ac_hi; then
30904 ac_mid=`expr 2 '*' $ac_mid`
30906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30909 echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30917 # Binary search between lo and hi bounds.
30918 while test "x$ac_lo" != "x$ac_hi"; do
30919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30920 cat >conftest.$ac_ext <<_ACEOF
30923 cat confdefs.h >>conftest.$ac_ext
30924 cat >>conftest.$ac_ext <<_ACEOF
30925 /* end confdefs.h. */
30926 $ac_includes_default
30930 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
30937 rm -f conftest.$ac_objext
30938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30939 (eval $ac_compile) 2>conftest.er1
30941 grep -v '^ *+' conftest.er1 >conftest.err
30943 cat conftest.err >&5
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); } &&
30946 { ac_try='test -z "$ac_c_werror_flag"
30947 || test ! -s conftest.err'
30948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949 (eval $ac_try) 2>&5
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; } &&
30953 { ac_try='test -s conftest.$ac_objext'
30954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30955 (eval $ac_try) 2>&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); }; }; then
30961 echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30964 ac_lo=`expr '(' $ac_mid ')' + 1`
30966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30969 ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
30970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
30971 See \`config.log' for more details." >&5
30972 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
30973 See \`config.log' for more details." >&2;}
30974 { (exit 1); exit 1; }; } ;;
30977 if test "$cross_compiling" = yes; then
30978 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30979 See \`config.log' for more details." >&5
30980 echo "$as_me: error: cannot run test program while cross compiling
30981 See \`config.log' for more details." >&2;}
30982 { (exit 1); exit 1; }; }
30984 cat >conftest.$ac_ext <<_ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h. */
30990 $ac_includes_default
30991 long longval () { return (long) (sizeof (ptrdiff_t)); }
30992 unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
30994 #include <stdlib.h>
30999 FILE *f = fopen ("conftest.val", "w");
31002 if (((long) (sizeof (ptrdiff_t))) < 0)
31004 long i = longval ();
31005 if (i != ((long) (sizeof (ptrdiff_t))))
31007 fprintf (f, "%ld\n", i);
31011 unsigned long i = ulongval ();
31012 if (i != ((long) (sizeof (ptrdiff_t))))
31014 fprintf (f, "%lu\n", i);
31016 exit (ferror (f) || fclose (f) != 0);
31022 rm -f conftest$ac_exeext
31023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31024 (eval $ac_link) 2>&5
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029 (eval $ac_try) 2>&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
31035 echo "$as_me: program exited with status $ac_status" >&5
31036 echo "$as_me: failed program was:" >&5
31037 sed 's/^/| /' conftest.$ac_ext >&5
31039 ( exit $ac_status )
31040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
31041 See \`config.log' for more details." >&5
31042 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
31043 See \`config.log' for more details." >&2;}
31044 { (exit 1); exit 1; }; }
31046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31051 ac_cv_sizeof_ptrdiff_t=0
31054 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
31055 echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
31056 cat >>confdefs.h <<_ACEOF
31057 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
31061 echo "$as_me:$LINENO: checking for uniquely sized ptrdiff_t" >&5
31062 echo $ECHO_N "checking for uniquely sized ptrdiff_t... $ECHO_C" >&6
31063 if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then
31064 echo $ECHO_N "(cached) $ECHO_C" >&6
31066 if set |grep ^ccvs_cv_unique_int_type_ \
31067 |grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then
31068 ccvs_cv_unique_int_type_ptrdiff_t=no
31070 ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\)
31073 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_ptrdiff_t" >&5
31074 echo "${ECHO_T}$ccvs_cv_unique_int_type_ptrdiff_t" >&6
31075 if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then
31077 cat >>confdefs.h <<\_ACEOF
31078 #define UNIQUE_INT_TYPE_PTRDIFF_T 1
31082 if test $gt_cv_c_wint_t != no; then
31083 echo "$as_me:$LINENO: checking for wint_t" >&5
31084 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
31085 if test "${ac_cv_type_wint_t+set}" = set; then
31086 echo $ECHO_N "(cached) $ECHO_C" >&6
31088 cat >conftest.$ac_ext <<_ACEOF
31091 cat confdefs.h >>conftest.$ac_ext
31092 cat >>conftest.$ac_ext <<_ACEOF
31093 /* end confdefs.h. */
31103 if (sizeof (wint_t))
31109 rm -f conftest.$ac_objext
31110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31111 (eval $ac_compile) 2>conftest.er1
31113 grep -v '^ *+' conftest.er1 >conftest.err
31115 cat conftest.err >&5
31116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117 (exit $ac_status); } &&
31118 { ac_try='test -z "$ac_c_werror_flag"
31119 || test ! -s conftest.err'
31120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121 (eval $ac_try) 2>&5
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); }; } &&
31125 { ac_try='test -s conftest.$ac_objext'
31126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31127 (eval $ac_try) 2>&5
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; }; then
31131 ac_cv_type_wint_t=yes
31133 echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31136 ac_cv_type_wint_t=no
31138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31140 echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
31141 echo "${ECHO_T}$ac_cv_type_wint_t" >&6
31143 echo "$as_me:$LINENO: checking size of wint_t" >&5
31144 echo $ECHO_N "checking size of wint_t... $ECHO_C" >&6
31145 if test "${ac_cv_sizeof_wint_t+set}" = set; then
31146 echo $ECHO_N "(cached) $ECHO_C" >&6
31148 if test "$ac_cv_type_wint_t" = yes; then
31149 # The cast to unsigned long works around a bug in the HP C Compiler
31150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31151 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31152 # This bug is HP SR number 8606223364.
31153 if test "$cross_compiling" = yes; then
31154 # Depending upon the size, compute the lo and hi bounds.
31155 cat >conftest.$ac_ext <<_ACEOF
31158 cat confdefs.h >>conftest.$ac_ext
31159 cat >>conftest.$ac_ext <<_ACEOF
31160 /* end confdefs.h. */
31168 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= 0)];
31175 rm -f conftest.$ac_objext
31176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31177 (eval $ac_compile) 2>conftest.er1
31179 grep -v '^ *+' conftest.er1 >conftest.err
31181 cat conftest.err >&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); } &&
31184 { ac_try='test -z "$ac_c_werror_flag"
31185 || test ! -s conftest.err'
31186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31187 (eval $ac_try) 2>&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); }; } &&
31191 { ac_try='test -s conftest.$ac_objext'
31192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31193 (eval $ac_try) 2>&5
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); }; }; then
31199 cat >conftest.$ac_ext <<_ACEOF
31202 cat confdefs.h >>conftest.$ac_ext
31203 cat >>conftest.$ac_ext <<_ACEOF
31204 /* end confdefs.h. */
31212 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
31219 rm -f conftest.$ac_objext
31220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31221 (eval $ac_compile) 2>conftest.er1
31223 grep -v '^ *+' conftest.er1 >conftest.err
31225 cat conftest.err >&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); } &&
31228 { ac_try='test -z "$ac_c_werror_flag"
31229 || test ! -s conftest.err'
31230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231 (eval $ac_try) 2>&5
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; } &&
31235 { ac_try='test -s conftest.$ac_objext'
31236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31237 (eval $ac_try) 2>&5
31239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); }; }; then
31241 ac_hi=$ac_mid; break
31243 echo "$as_me: failed program was:" >&5
31244 sed 's/^/| /' conftest.$ac_ext >&5
31246 ac_lo=`expr $ac_mid + 1`
31247 if test $ac_lo -le $ac_mid; then
31251 ac_mid=`expr 2 '*' $ac_mid + 1`
31253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31256 echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31259 cat >conftest.$ac_ext <<_ACEOF
31262 cat confdefs.h >>conftest.$ac_ext
31263 cat >>conftest.$ac_ext <<_ACEOF
31264 /* end confdefs.h. */
31272 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) < 0)];
31279 rm -f conftest.$ac_objext
31280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31281 (eval $ac_compile) 2>conftest.er1
31283 grep -v '^ *+' conftest.er1 >conftest.err
31285 cat conftest.err >&5
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); } &&
31288 { ac_try='test -z "$ac_c_werror_flag"
31289 || test ! -s conftest.err'
31290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31291 (eval $ac_try) 2>&5
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 (exit $ac_status); }; } &&
31295 { ac_try='test -s conftest.$ac_objext'
31296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31297 (eval $ac_try) 2>&5
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); }; }; then
31303 cat >conftest.$ac_ext <<_ACEOF
31306 cat confdefs.h >>conftest.$ac_ext
31307 cat >>conftest.$ac_ext <<_ACEOF
31308 /* end confdefs.h. */
31316 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= $ac_mid)];
31323 rm -f conftest.$ac_objext
31324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31325 (eval $ac_compile) 2>conftest.er1
31327 grep -v '^ *+' conftest.er1 >conftest.err
31329 cat conftest.err >&5
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); } &&
31332 { ac_try='test -z "$ac_c_werror_flag"
31333 || test ! -s conftest.err'
31334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31335 (eval $ac_try) 2>&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; } &&
31339 { ac_try='test -s conftest.$ac_objext'
31340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341 (eval $ac_try) 2>&5
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; }; then
31345 ac_lo=$ac_mid; break
31347 echo "$as_me: failed program was:" >&5
31348 sed 's/^/| /' conftest.$ac_ext >&5
31350 ac_hi=`expr '(' $ac_mid ')' - 1`
31351 if test $ac_mid -le $ac_hi; then
31355 ac_mid=`expr 2 '*' $ac_mid`
31357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31360 echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31368 # Binary search between lo and hi bounds.
31369 while test "x$ac_lo" != "x$ac_hi"; do
31370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31371 cat >conftest.$ac_ext <<_ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h. */
31384 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
31391 rm -f conftest.$ac_objext
31392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31393 (eval $ac_compile) 2>conftest.er1
31395 grep -v '^ *+' conftest.er1 >conftest.err
31397 cat conftest.err >&5
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); } &&
31400 { ac_try='test -z "$ac_c_werror_flag"
31401 || test ! -s conftest.err'
31402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403 (eval $ac_try) 2>&5
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; } &&
31407 { ac_try='test -s conftest.$ac_objext'
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; }; then
31415 echo "$as_me: failed program was:" >&5
31416 sed 's/^/| /' conftest.$ac_ext >&5
31418 ac_lo=`expr '(' $ac_mid ')' + 1`
31420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31423 ?*) ac_cv_sizeof_wint_t=$ac_lo;;
31424 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
31425 See \`config.log' for more details." >&5
31426 echo "$as_me: error: cannot compute sizeof (wint_t), 77
31427 See \`config.log' for more details." >&2;}
31428 { (exit 1); exit 1; }; } ;;
31431 if test "$cross_compiling" = yes; then
31432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31433 See \`config.log' for more details." >&5
31434 echo "$as_me: error: cannot run test program while cross compiling
31435 See \`config.log' for more details." >&2;}
31436 { (exit 1); exit 1; }; }
31438 cat >conftest.$ac_ext <<_ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h. */
31448 long longval () { return (long) (sizeof (wint_t)); }
31449 unsigned long ulongval () { return (long) (sizeof (wint_t)); }
31451 #include <stdlib.h>
31456 FILE *f = fopen ("conftest.val", "w");
31459 if (((long) (sizeof (wint_t))) < 0)
31461 long i = longval ();
31462 if (i != ((long) (sizeof (wint_t))))
31464 fprintf (f, "%ld\n", i);
31468 unsigned long i = ulongval ();
31469 if (i != ((long) (sizeof (wint_t))))
31471 fprintf (f, "%lu\n", i);
31473 exit (ferror (f) || fclose (f) != 0);
31479 rm -f conftest$ac_exeext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31481 (eval $ac_link) 2>&5
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486 (eval $ac_try) 2>&5
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; }; then
31490 ac_cv_sizeof_wint_t=`cat conftest.val`
31492 echo "$as_me: program exited with status $ac_status" >&5
31493 echo "$as_me: failed program was:" >&5
31494 sed 's/^/| /' conftest.$ac_ext >&5
31496 ( exit $ac_status )
31497 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
31498 See \`config.log' for more details." >&5
31499 echo "$as_me: error: cannot compute sizeof (wint_t), 77
31500 See \`config.log' for more details." >&2;}
31501 { (exit 1); exit 1; }; }
31503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31508 ac_cv_sizeof_wint_t=0
31511 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wint_t" >&5
31512 echo "${ECHO_T}$ac_cv_sizeof_wint_t" >&6
31513 cat >>confdefs.h <<_ACEOF
31514 #define SIZEOF_WINT_T $ac_cv_sizeof_wint_t
31518 echo "$as_me:$LINENO: checking for uniquely sized wint_t" >&5
31519 echo $ECHO_N "checking for uniquely sized wint_t... $ECHO_C" >&6
31520 if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31523 if set |grep ^ccvs_cv_unique_int_type_ \
31524 |grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then
31525 ccvs_cv_unique_int_type_wint_t=no
31527 ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\)
31530 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_wint_t" >&5
31531 echo "${ECHO_T}$ccvs_cv_unique_int_type_wint_t" >&6
31532 if test $ccvs_cv_unique_int_type_wint_t != no ; then
31534 cat >>confdefs.h <<\_ACEOF
31535 #define UNIQUE_INT_TYPE_WINT_T 1
31540 if test $gt_cv_c_intmax_t != no; then
31541 echo "$as_me:$LINENO: checking for intmax_t" >&5
31542 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
31543 if test "${ac_cv_type_intmax_t+set}" = set; then
31544 echo $ECHO_N "(cached) $ECHO_C" >&6
31546 cat >conftest.$ac_ext <<_ACEOF
31549 cat confdefs.h >>conftest.$ac_ext
31550 cat >>conftest.$ac_ext <<_ACEOF
31551 /* end confdefs.h. */
31553 #ifdef HAVE_INTTYPES_H
31554 #include <inttypes.h>
31556 #ifdef HAVE_STDINT_H
31557 #include <stdint.h>
31565 if ((intmax_t *) 0)
31567 if (sizeof (intmax_t))
31573 rm -f conftest.$ac_objext
31574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31575 (eval $ac_compile) 2>conftest.er1
31577 grep -v '^ *+' conftest.er1 >conftest.err
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } &&
31582 { ac_try='test -z "$ac_c_werror_flag"
31583 || test ! -s conftest.err'
31584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31585 (eval $ac_try) 2>&5
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); }; } &&
31589 { ac_try='test -s conftest.$ac_objext'
31590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31591 (eval $ac_try) 2>&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; }; then
31595 ac_cv_type_intmax_t=yes
31597 echo "$as_me: failed program was:" >&5
31598 sed 's/^/| /' conftest.$ac_ext >&5
31600 ac_cv_type_intmax_t=no
31602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31604 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
31605 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
31607 echo "$as_me:$LINENO: checking size of intmax_t" >&5
31608 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
31609 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
31610 echo $ECHO_N "(cached) $ECHO_C" >&6
31612 if test "$ac_cv_type_intmax_t" = yes; then
31613 # The cast to unsigned long works around a bug in the HP C Compiler
31614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31616 # This bug is HP SR number 8606223364.
31617 if test "$cross_compiling" = yes; then
31618 # Depending upon the size, compute the lo and hi bounds.
31619 cat >conftest.$ac_ext <<_ACEOF
31622 cat confdefs.h >>conftest.$ac_ext
31623 cat >>conftest.$ac_ext <<_ACEOF
31624 /* end confdefs.h. */
31626 #ifdef HAVE_INTTYPES_H
31627 #include <inttypes.h>
31629 #ifdef HAVE_STDINT_H
31630 #include <stdint.h>
31638 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
31645 rm -f conftest.$ac_objext
31646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31647 (eval $ac_compile) 2>conftest.er1
31649 grep -v '^ *+' conftest.er1 >conftest.err
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); } &&
31654 { ac_try='test -z "$ac_c_werror_flag"
31655 || test ! -s conftest.err'
31656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657 (eval $ac_try) 2>&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; } &&
31661 { ac_try='test -s conftest.$ac_objext'
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; }; then
31669 cat >conftest.$ac_ext <<_ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h. */
31676 #ifdef HAVE_INTTYPES_H
31677 #include <inttypes.h>
31679 #ifdef HAVE_STDINT_H
31680 #include <stdint.h>
31688 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
31695 rm -f conftest.$ac_objext
31696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31697 (eval $ac_compile) 2>conftest.er1
31699 grep -v '^ *+' conftest.er1 >conftest.err
31701 cat conftest.err >&5
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); } &&
31704 { ac_try='test -z "$ac_c_werror_flag"
31705 || test ! -s conftest.err'
31706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31707 (eval $ac_try) 2>&5
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); }; } &&
31711 { ac_try='test -s conftest.$ac_objext'
31712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713 (eval $ac_try) 2>&5
31715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); }; }; then
31717 ac_hi=$ac_mid; break
31719 echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.$ac_ext >&5
31722 ac_lo=`expr $ac_mid + 1`
31723 if test $ac_lo -le $ac_mid; then
31727 ac_mid=`expr 2 '*' $ac_mid + 1`
31729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31732 echo "$as_me: failed program was:" >&5
31733 sed 's/^/| /' conftest.$ac_ext >&5
31735 cat >conftest.$ac_ext <<_ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h. */
31742 #ifdef HAVE_INTTYPES_H
31743 #include <inttypes.h>
31745 #ifdef HAVE_STDINT_H
31746 #include <stdint.h>
31754 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
31761 rm -f conftest.$ac_objext
31762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31763 (eval $ac_compile) 2>conftest.er1
31765 grep -v '^ *+' conftest.er1 >conftest.err
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } &&
31770 { ac_try='test -z "$ac_c_werror_flag"
31771 || test ! -s conftest.err'
31772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773 (eval $ac_try) 2>&5
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); }; } &&
31777 { ac_try='test -s conftest.$ac_objext'
31778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779 (eval $ac_try) 2>&5
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); }; }; then
31785 cat >conftest.$ac_ext <<_ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h. */
31792 #ifdef HAVE_INTTYPES_H
31793 #include <inttypes.h>
31795 #ifdef HAVE_STDINT_H
31796 #include <stdint.h>
31804 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
31811 rm -f conftest.$ac_objext
31812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31813 (eval $ac_compile) 2>conftest.er1
31815 grep -v '^ *+' conftest.er1 >conftest.err
31817 cat conftest.err >&5
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); } &&
31820 { ac_try='test -z "$ac_c_werror_flag"
31821 || test ! -s conftest.err'
31822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823 (eval $ac_try) 2>&5
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); }; } &&
31827 { ac_try='test -s conftest.$ac_objext'
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 ac_lo=$ac_mid; break
31835 echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31838 ac_hi=`expr '(' $ac_mid ')' - 1`
31839 if test $ac_mid -le $ac_hi; then
31843 ac_mid=`expr 2 '*' $ac_mid`
31845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31848 echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31856 # Binary search between lo and hi bounds.
31857 while test "x$ac_lo" != "x$ac_hi"; do
31858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31859 cat >conftest.$ac_ext <<_ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h. */
31866 #ifdef HAVE_INTTYPES_H
31867 #include <inttypes.h>
31869 #ifdef HAVE_STDINT_H
31870 #include <stdint.h>
31878 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
31885 rm -f conftest.$ac_objext
31886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31887 (eval $ac_compile) 2>conftest.er1
31889 grep -v '^ *+' conftest.er1 >conftest.err
31891 cat conftest.err >&5
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); } &&
31894 { ac_try='test -z "$ac_c_werror_flag"
31895 || test ! -s conftest.err'
31896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897 (eval $ac_try) 2>&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; } &&
31901 { ac_try='test -s conftest.$ac_objext'
31902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903 (eval $ac_try) 2>&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; }; then
31909 echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31912 ac_lo=`expr '(' $ac_mid ')' + 1`
31914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31917 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
31918 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
31919 See \`config.log' for more details." >&5
31920 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
31921 See \`config.log' for more details." >&2;}
31922 { (exit 1); exit 1; }; } ;;
31925 if test "$cross_compiling" = yes; then
31926 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31927 See \`config.log' for more details." >&5
31928 echo "$as_me: error: cannot run test program while cross compiling
31929 See \`config.log' for more details." >&2;}
31930 { (exit 1); exit 1; }; }
31932 cat >conftest.$ac_ext <<_ACEOF
31935 cat confdefs.h >>conftest.$ac_ext
31936 cat >>conftest.$ac_ext <<_ACEOF
31937 /* end confdefs.h. */
31939 #ifdef HAVE_INTTYPES_H
31940 #include <inttypes.h>
31942 #ifdef HAVE_STDINT_H
31943 #include <stdint.h>
31948 long longval () { return (long) (sizeof (intmax_t)); }
31949 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
31951 #include <stdlib.h>
31956 FILE *f = fopen ("conftest.val", "w");
31959 if (((long) (sizeof (intmax_t))) < 0)
31961 long i = longval ();
31962 if (i != ((long) (sizeof (intmax_t))))
31964 fprintf (f, "%ld\n", i);
31968 unsigned long i = ulongval ();
31969 if (i != ((long) (sizeof (intmax_t))))
31971 fprintf (f, "%lu\n", i);
31973 exit (ferror (f) || fclose (f) != 0);
31979 rm -f conftest$ac_exeext
31980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31981 (eval $ac_link) 2>&5
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31986 (eval $ac_try) 2>&5
31988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); }; }; then
31990 ac_cv_sizeof_intmax_t=`cat conftest.val`
31992 echo "$as_me: program exited with status $ac_status" >&5
31993 echo "$as_me: failed program was:" >&5
31994 sed 's/^/| /' conftest.$ac_ext >&5
31996 ( exit $ac_status )
31997 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
31998 See \`config.log' for more details." >&5
31999 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
32000 See \`config.log' for more details." >&2;}
32001 { (exit 1); exit 1; }; }
32003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32008 ac_cv_sizeof_intmax_t=0
32011 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
32012 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
32013 cat >>confdefs.h <<_ACEOF
32014 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
32018 echo "$as_me:$LINENO: checking for uniquely sized intmax_t" >&5
32019 echo $ECHO_N "checking for uniquely sized intmax_t... $ECHO_C" >&6
32020 if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then
32021 echo $ECHO_N "(cached) $ECHO_C" >&6
32023 if set |grep ^ccvs_cv_unique_int_type_ \
32024 |grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then
32025 ccvs_cv_unique_int_type_intmax_t=no
32027 ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\)
32030 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_intmax_t" >&5
32031 echo "${ECHO_T}$ccvs_cv_unique_int_type_intmax_t" >&6
32032 if test $ccvs_cv_unique_int_type_intmax_t != no ; then
32034 cat >>confdefs.h <<\_ACEOF
32035 #define UNIQUE_INT_TYPE_INTMAX_T 1
32041 echo "$as_me:$LINENO: checking for float" >&5
32042 echo $ECHO_N "checking for float... $ECHO_C" >&6
32043 if test "${ac_cv_type_float+set}" = set; then
32044 echo $ECHO_N "(cached) $ECHO_C" >&6
32046 cat >conftest.$ac_ext <<_ACEOF
32049 cat confdefs.h >>conftest.$ac_ext
32050 cat >>conftest.$ac_ext <<_ACEOF
32051 /* end confdefs.h. */
32052 $ac_includes_default
32058 if (sizeof (float))
32064 rm -f conftest.$ac_objext
32065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32066 (eval $ac_compile) 2>conftest.er1
32068 grep -v '^ *+' conftest.er1 >conftest.err
32070 cat conftest.err >&5
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); } &&
32073 { ac_try='test -z "$ac_c_werror_flag"
32074 || test ! -s conftest.err'
32075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32076 (eval $ac_try) 2>&5
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); }; } &&
32080 { ac_try='test -s conftest.$ac_objext'
32081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32082 (eval $ac_try) 2>&5
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); }; }; then
32086 ac_cv_type_float=yes
32088 echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32091 ac_cv_type_float=no
32093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32095 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
32096 echo "${ECHO_T}$ac_cv_type_float" >&6
32098 echo "$as_me:$LINENO: checking size of float" >&5
32099 echo $ECHO_N "checking size of float... $ECHO_C" >&6
32100 if test "${ac_cv_sizeof_float+set}" = set; then
32101 echo $ECHO_N "(cached) $ECHO_C" >&6
32103 if test "$ac_cv_type_float" = yes; then
32104 # The cast to unsigned long works around a bug in the HP C Compiler
32105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32107 # This bug is HP SR number 8606223364.
32108 if test "$cross_compiling" = yes; then
32109 # Depending upon the size, compute the lo and hi bounds.
32110 cat >conftest.$ac_ext <<_ACEOF
32113 cat confdefs.h >>conftest.$ac_ext
32114 cat >>conftest.$ac_ext <<_ACEOF
32115 /* end confdefs.h. */
32116 $ac_includes_default
32120 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
32127 rm -f conftest.$ac_objext
32128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32129 (eval $ac_compile) 2>conftest.er1
32131 grep -v '^ *+' conftest.er1 >conftest.err
32133 cat conftest.err >&5
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); } &&
32136 { ac_try='test -z "$ac_c_werror_flag"
32137 || test ! -s conftest.err'
32138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32139 (eval $ac_try) 2>&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); }; } &&
32143 { ac_try='test -s conftest.$ac_objext'
32144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145 (eval $ac_try) 2>&5
32147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148 (exit $ac_status); }; }; then
32151 cat >conftest.$ac_ext <<_ACEOF
32154 cat confdefs.h >>conftest.$ac_ext
32155 cat >>conftest.$ac_ext <<_ACEOF
32156 /* end confdefs.h. */
32157 $ac_includes_default
32161 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
32168 rm -f conftest.$ac_objext
32169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32170 (eval $ac_compile) 2>conftest.er1
32172 grep -v '^ *+' conftest.er1 >conftest.err
32174 cat conftest.err >&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); } &&
32177 { ac_try='test -z "$ac_c_werror_flag"
32178 || test ! -s conftest.err'
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; } &&
32184 { ac_try='test -s conftest.$ac_objext'
32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186 (eval $ac_try) 2>&5
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; }; then
32190 ac_hi=$ac_mid; break
32192 echo "$as_me: failed program was:" >&5
32193 sed 's/^/| /' conftest.$ac_ext >&5
32195 ac_lo=`expr $ac_mid + 1`
32196 if test $ac_lo -le $ac_mid; then
32200 ac_mid=`expr 2 '*' $ac_mid + 1`
32202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32205 echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32208 cat >conftest.$ac_ext <<_ACEOF
32211 cat confdefs.h >>conftest.$ac_ext
32212 cat >>conftest.$ac_ext <<_ACEOF
32213 /* end confdefs.h. */
32214 $ac_includes_default
32218 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
32225 rm -f conftest.$ac_objext
32226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32227 (eval $ac_compile) 2>conftest.er1
32229 grep -v '^ *+' conftest.er1 >conftest.err
32231 cat conftest.err >&5
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); } &&
32234 { ac_try='test -z "$ac_c_werror_flag"
32235 || test ! -s conftest.err'
32236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237 (eval $ac_try) 2>&5
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; } &&
32241 { ac_try='test -s conftest.$ac_objext'
32242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32243 (eval $ac_try) 2>&5
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); }; }; then
32249 cat >conftest.$ac_ext <<_ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h. */
32255 $ac_includes_default
32259 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
32266 rm -f conftest.$ac_objext
32267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32268 (eval $ac_compile) 2>conftest.er1
32270 grep -v '^ *+' conftest.er1 >conftest.err
32272 cat conftest.err >&5
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); } &&
32275 { ac_try='test -z "$ac_c_werror_flag"
32276 || test ! -s conftest.err'
32277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278 (eval $ac_try) 2>&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; } &&
32282 { ac_try='test -s conftest.$ac_objext'
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; }; then
32288 ac_lo=$ac_mid; break
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32293 ac_hi=`expr '(' $ac_mid ')' - 1`
32294 if test $ac_mid -le $ac_hi; then
32298 ac_mid=`expr 2 '*' $ac_mid`
32300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32303 echo "$as_me: failed program was:" >&5
32304 sed 's/^/| /' conftest.$ac_ext >&5
32308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32311 # Binary search between lo and hi bounds.
32312 while test "x$ac_lo" != "x$ac_hi"; do
32313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32314 cat >conftest.$ac_ext <<_ACEOF
32317 cat confdefs.h >>conftest.$ac_ext
32318 cat >>conftest.$ac_ext <<_ACEOF
32319 /* end confdefs.h. */
32320 $ac_includes_default
32324 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
32331 rm -f conftest.$ac_objext
32332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32333 (eval $ac_compile) 2>conftest.er1
32335 grep -v '^ *+' conftest.er1 >conftest.err
32337 cat conftest.err >&5
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); } &&
32340 { ac_try='test -z "$ac_c_werror_flag"
32341 || test ! -s conftest.err'
32342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32343 (eval $ac_try) 2>&5
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); }; } &&
32347 { ac_try='test -s conftest.$ac_objext'
32348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349 (eval $ac_try) 2>&5
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); }; }; then
32355 echo "$as_me: failed program was:" >&5
32356 sed 's/^/| /' conftest.$ac_ext >&5
32358 ac_lo=`expr '(' $ac_mid ')' + 1`
32360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32363 ?*) ac_cv_sizeof_float=$ac_lo;;
32364 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
32365 See \`config.log' for more details." >&5
32366 echo "$as_me: error: cannot compute sizeof (float), 77
32367 See \`config.log' for more details." >&2;}
32368 { (exit 1); exit 1; }; } ;;
32371 if test "$cross_compiling" = yes; then
32372 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32373 See \`config.log' for more details." >&5
32374 echo "$as_me: error: cannot run test program while cross compiling
32375 See \`config.log' for more details." >&2;}
32376 { (exit 1); exit 1; }; }
32378 cat >conftest.$ac_ext <<_ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h. */
32384 $ac_includes_default
32385 long longval () { return (long) (sizeof (float)); }
32386 unsigned long ulongval () { return (long) (sizeof (float)); }
32388 #include <stdlib.h>
32393 FILE *f = fopen ("conftest.val", "w");
32396 if (((long) (sizeof (float))) < 0)
32398 long i = longval ();
32399 if (i != ((long) (sizeof (float))))
32401 fprintf (f, "%ld\n", i);
32405 unsigned long i = ulongval ();
32406 if (i != ((long) (sizeof (float))))
32408 fprintf (f, "%lu\n", i);
32410 exit (ferror (f) || fclose (f) != 0);
32416 rm -f conftest$ac_exeext
32417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32418 (eval $ac_link) 2>&5
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32423 (eval $ac_try) 2>&5
32425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); }; }; then
32427 ac_cv_sizeof_float=`cat conftest.val`
32429 echo "$as_me: program exited with status $ac_status" >&5
32430 echo "$as_me: failed program was:" >&5
32431 sed 's/^/| /' conftest.$ac_ext >&5
32433 ( exit $ac_status )
32434 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
32435 See \`config.log' for more details." >&5
32436 echo "$as_me: error: cannot compute sizeof (float), 77
32437 See \`config.log' for more details." >&2;}
32438 { (exit 1); exit 1; }; }
32440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32445 ac_cv_sizeof_float=0
32448 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
32449 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
32450 cat >>confdefs.h <<_ACEOF
32451 #define SIZEOF_FLOAT $ac_cv_sizeof_float
32455 echo "$as_me:$LINENO: checking for uniquely sized float" >&5
32456 echo $ECHO_N "checking for uniquely sized float... $ECHO_C" >&6
32457 if test "${ccvs_cv_unique_float_type_float+set}" = set; then
32458 echo $ECHO_N "(cached) $ECHO_C" >&6
32460 if set |grep ^ccvs_cv_unique_float_type_ \
32461 |grep "($ac_cv_sizeof_float)" >/dev/null ; then
32462 ccvs_cv_unique_float_type_float=no
32464 ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\)
32467 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_float" >&5
32468 echo "${ECHO_T}$ccvs_cv_unique_float_type_float" >&6
32469 if test $ccvs_cv_unique_float_type_float != no ; then
32471 cat >>confdefs.h <<\_ACEOF
32472 #define UNIQUE_FLOAT_TYPE_FLOAT 1
32476 echo "$as_me:$LINENO: checking for double" >&5
32477 echo $ECHO_N "checking for double... $ECHO_C" >&6
32478 if test "${ac_cv_type_double+set}" = set; then
32479 echo $ECHO_N "(cached) $ECHO_C" >&6
32481 cat >conftest.$ac_ext <<_ACEOF
32484 cat confdefs.h >>conftest.$ac_ext
32485 cat >>conftest.$ac_ext <<_ACEOF
32486 /* end confdefs.h. */
32487 $ac_includes_default
32493 if (sizeof (double))
32499 rm -f conftest.$ac_objext
32500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32501 (eval $ac_compile) 2>conftest.er1
32503 grep -v '^ *+' conftest.er1 >conftest.err
32505 cat conftest.err >&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); } &&
32508 { ac_try='test -z "$ac_c_werror_flag"
32509 || test ! -s conftest.err'
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; } &&
32515 { ac_try='test -s conftest.$ac_objext'
32516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32517 (eval $ac_try) 2>&5
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
32521 ac_cv_type_double=yes
32523 echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32526 ac_cv_type_double=no
32528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32530 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
32531 echo "${ECHO_T}$ac_cv_type_double" >&6
32533 echo "$as_me:$LINENO: checking size of double" >&5
32534 echo $ECHO_N "checking size of double... $ECHO_C" >&6
32535 if test "${ac_cv_sizeof_double+set}" = set; then
32536 echo $ECHO_N "(cached) $ECHO_C" >&6
32538 if test "$ac_cv_type_double" = yes; then
32539 # The cast to unsigned long works around a bug in the HP C Compiler
32540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32542 # This bug is HP SR number 8606223364.
32543 if test "$cross_compiling" = yes; then
32544 # Depending upon the size, compute the lo and hi bounds.
32545 cat >conftest.$ac_ext <<_ACEOF
32548 cat confdefs.h >>conftest.$ac_ext
32549 cat >>conftest.$ac_ext <<_ACEOF
32550 /* end confdefs.h. */
32551 $ac_includes_default
32555 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
32562 rm -f conftest.$ac_objext
32563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32564 (eval $ac_compile) 2>conftest.er1
32566 grep -v '^ *+' conftest.er1 >conftest.err
32568 cat conftest.err >&5
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); } &&
32571 { ac_try='test -z "$ac_c_werror_flag"
32572 || test ! -s conftest.err'
32573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32574 (eval $ac_try) 2>&5
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); }; } &&
32578 { ac_try='test -s conftest.$ac_objext'
32579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32580 (eval $ac_try) 2>&5
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); }; }; then
32586 cat >conftest.$ac_ext <<_ACEOF
32589 cat confdefs.h >>conftest.$ac_ext
32590 cat >>conftest.$ac_ext <<_ACEOF
32591 /* end confdefs.h. */
32592 $ac_includes_default
32596 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
32603 rm -f conftest.$ac_objext
32604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32605 (eval $ac_compile) 2>conftest.er1
32607 grep -v '^ *+' conftest.er1 >conftest.err
32609 cat conftest.err >&5
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); } &&
32612 { ac_try='test -z "$ac_c_werror_flag"
32613 || test ! -s conftest.err'
32614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615 (eval $ac_try) 2>&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; } &&
32619 { ac_try='test -s conftest.$ac_objext'
32620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621 (eval $ac_try) 2>&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; }; then
32625 ac_hi=$ac_mid; break
32627 echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32630 ac_lo=`expr $ac_mid + 1`
32631 if test $ac_lo -le $ac_mid; then
32635 ac_mid=`expr 2 '*' $ac_mid + 1`
32637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32640 echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32643 cat >conftest.$ac_ext <<_ACEOF
32646 cat confdefs.h >>conftest.$ac_ext
32647 cat >>conftest.$ac_ext <<_ACEOF
32648 /* end confdefs.h. */
32649 $ac_includes_default
32653 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
32660 rm -f conftest.$ac_objext
32661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32662 (eval $ac_compile) 2>conftest.er1
32664 grep -v '^ *+' conftest.er1 >conftest.err
32666 cat conftest.err >&5
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); } &&
32669 { ac_try='test -z "$ac_c_werror_flag"
32670 || test ! -s conftest.err'
32671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32672 (eval $ac_try) 2>&5
32674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675 (exit $ac_status); }; } &&
32676 { ac_try='test -s conftest.$ac_objext'
32677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32678 (eval $ac_try) 2>&5
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); }; }; then
32684 cat >conftest.$ac_ext <<_ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h. */
32690 $ac_includes_default
32694 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
32701 rm -f conftest.$ac_objext
32702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32703 (eval $ac_compile) 2>conftest.er1
32705 grep -v '^ *+' conftest.er1 >conftest.err
32707 cat conftest.err >&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); } &&
32710 { ac_try='test -z "$ac_c_werror_flag"
32711 || test ! -s conftest.err'
32712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32713 (eval $ac_try) 2>&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; } &&
32717 { ac_try='test -s conftest.$ac_objext'
32718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719 (eval $ac_try) 2>&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); }; }; then
32723 ac_lo=$ac_mid; break
32725 echo "$as_me: failed program was:" >&5
32726 sed 's/^/| /' conftest.$ac_ext >&5
32728 ac_hi=`expr '(' $ac_mid ')' - 1`
32729 if test $ac_mid -le $ac_hi; then
32733 ac_mid=`expr 2 '*' $ac_mid`
32735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32738 echo "$as_me: failed program was:" >&5
32739 sed 's/^/| /' conftest.$ac_ext >&5
32743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32746 # Binary search between lo and hi bounds.
32747 while test "x$ac_lo" != "x$ac_hi"; do
32748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32749 cat >conftest.$ac_ext <<_ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h. */
32755 $ac_includes_default
32759 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
32766 rm -f conftest.$ac_objext
32767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32768 (eval $ac_compile) 2>conftest.er1
32770 grep -v '^ *+' conftest.er1 >conftest.err
32772 cat conftest.err >&5
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); } &&
32775 { ac_try='test -z "$ac_c_werror_flag"
32776 || test ! -s conftest.err'
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; } &&
32782 { ac_try='test -s conftest.$ac_objext'
32783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32784 (eval $ac_try) 2>&5
32786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787 (exit $ac_status); }; }; then
32790 echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32793 ac_lo=`expr '(' $ac_mid ')' + 1`
32795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32798 ?*) ac_cv_sizeof_double=$ac_lo;;
32799 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
32800 See \`config.log' for more details." >&5
32801 echo "$as_me: error: cannot compute sizeof (double), 77
32802 See \`config.log' for more details." >&2;}
32803 { (exit 1); exit 1; }; } ;;
32806 if test "$cross_compiling" = yes; then
32807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32808 See \`config.log' for more details." >&5
32809 echo "$as_me: error: cannot run test program while cross compiling
32810 See \`config.log' for more details." >&2;}
32811 { (exit 1); exit 1; }; }
32813 cat >conftest.$ac_ext <<_ACEOF
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h. */
32819 $ac_includes_default
32820 long longval () { return (long) (sizeof (double)); }
32821 unsigned long ulongval () { return (long) (sizeof (double)); }
32823 #include <stdlib.h>
32828 FILE *f = fopen ("conftest.val", "w");
32831 if (((long) (sizeof (double))) < 0)
32833 long i = longval ();
32834 if (i != ((long) (sizeof (double))))
32836 fprintf (f, "%ld\n", i);
32840 unsigned long i = ulongval ();
32841 if (i != ((long) (sizeof (double))))
32843 fprintf (f, "%lu\n", i);
32845 exit (ferror (f) || fclose (f) != 0);
32851 rm -f conftest$ac_exeext
32852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32853 (eval $ac_link) 2>&5
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32858 (eval $ac_try) 2>&5
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); }; }; then
32862 ac_cv_sizeof_double=`cat conftest.val`
32864 echo "$as_me: program exited with status $ac_status" >&5
32865 echo "$as_me: failed program was:" >&5
32866 sed 's/^/| /' conftest.$ac_ext >&5
32868 ( exit $ac_status )
32869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
32870 See \`config.log' for more details." >&5
32871 echo "$as_me: error: cannot compute sizeof (double), 77
32872 See \`config.log' for more details." >&2;}
32873 { (exit 1); exit 1; }; }
32875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32880 ac_cv_sizeof_double=0
32883 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
32884 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
32885 cat >>confdefs.h <<_ACEOF
32886 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
32890 echo "$as_me:$LINENO: checking for uniquely sized double" >&5
32891 echo $ECHO_N "checking for uniquely sized double... $ECHO_C" >&6
32892 if test "${ccvs_cv_unique_float_type_double+set}" = set; then
32893 echo $ECHO_N "(cached) $ECHO_C" >&6
32895 if set |grep ^ccvs_cv_unique_float_type_ \
32896 |grep "($ac_cv_sizeof_double)" >/dev/null ; then
32897 ccvs_cv_unique_float_type_double=no
32899 ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\)
32902 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_double" >&5
32903 echo "${ECHO_T}$ccvs_cv_unique_float_type_double" >&6
32904 if test $ccvs_cv_unique_float_type_double != no ; then
32906 cat >>confdefs.h <<\_ACEOF
32907 #define UNIQUE_FLOAT_TYPE_DOUBLE 1
32911 if test $gt_cv_c_long_double != no; then
32912 echo "$as_me:$LINENO: checking for long double" >&5
32913 echo $ECHO_N "checking for long double... $ECHO_C" >&6
32914 if test "${ac_cv_type_long_double+set}" = set; then
32915 echo $ECHO_N "(cached) $ECHO_C" >&6
32917 cat >conftest.$ac_ext <<_ACEOF
32920 cat confdefs.h >>conftest.$ac_ext
32921 cat >>conftest.$ac_ext <<_ACEOF
32922 /* end confdefs.h. */
32923 $ac_includes_default
32927 if ((long double *) 0)
32929 if (sizeof (long double))
32935 rm -f conftest.$ac_objext
32936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32937 (eval $ac_compile) 2>conftest.er1
32939 grep -v '^ *+' conftest.er1 >conftest.err
32941 cat conftest.err >&5
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); } &&
32944 { ac_try='test -z "$ac_c_werror_flag"
32945 || test ! -s conftest.err'
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; } &&
32951 { ac_try='test -s conftest.$ac_objext'
32952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953 (eval $ac_try) 2>&5
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
32957 ac_cv_type_long_double=yes
32959 echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32962 ac_cv_type_long_double=no
32964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32966 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
32967 echo "${ECHO_T}$ac_cv_type_long_double" >&6
32969 echo "$as_me:$LINENO: checking size of long double" >&5
32970 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
32971 if test "${ac_cv_sizeof_long_double+set}" = set; then
32972 echo $ECHO_N "(cached) $ECHO_C" >&6
32974 if test "$ac_cv_type_long_double" = yes; then
32975 # The cast to unsigned long works around a bug in the HP C Compiler
32976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32978 # This bug is HP SR number 8606223364.
32979 if test "$cross_compiling" = yes; then
32980 # Depending upon the size, compute the lo and hi bounds.
32981 cat >conftest.$ac_ext <<_ACEOF
32984 cat confdefs.h >>conftest.$ac_ext
32985 cat >>conftest.$ac_ext <<_ACEOF
32986 /* end confdefs.h. */
32987 $ac_includes_default
32991 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
32998 rm -f conftest.$ac_objext
32999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33000 (eval $ac_compile) 2>conftest.er1
33002 grep -v '^ *+' conftest.er1 >conftest.err
33004 cat conftest.err >&5
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); } &&
33007 { ac_try='test -z "$ac_c_werror_flag"
33008 || test ! -s conftest.err'
33009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010 (eval $ac_try) 2>&5
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; } &&
33014 { ac_try='test -s conftest.$ac_objext'
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; }; then
33022 cat >conftest.$ac_ext <<_ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h. */
33028 $ac_includes_default
33032 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
33039 rm -f conftest.$ac_objext
33040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33041 (eval $ac_compile) 2>conftest.er1
33043 grep -v '^ *+' conftest.er1 >conftest.err
33045 cat conftest.err >&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } &&
33048 { ac_try='test -z "$ac_c_werror_flag"
33049 || test ! -s conftest.err'
33050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 (eval $ac_try) 2>&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; } &&
33055 { ac_try='test -s conftest.$ac_objext'
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; }; then
33061 ac_hi=$ac_mid; break
33063 echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33066 ac_lo=`expr $ac_mid + 1`
33067 if test $ac_lo -le $ac_mid; then
33071 ac_mid=`expr 2 '*' $ac_mid + 1`
33073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33076 echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33079 cat >conftest.$ac_ext <<_ACEOF
33082 cat confdefs.h >>conftest.$ac_ext
33083 cat >>conftest.$ac_ext <<_ACEOF
33084 /* end confdefs.h. */
33085 $ac_includes_default
33089 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
33096 rm -f conftest.$ac_objext
33097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33098 (eval $ac_compile) 2>conftest.er1
33100 grep -v '^ *+' conftest.er1 >conftest.err
33102 cat conftest.err >&5
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); } &&
33105 { ac_try='test -z "$ac_c_werror_flag"
33106 || test ! -s conftest.err'
33107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108 (eval $ac_try) 2>&5
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; } &&
33112 { ac_try='test -s conftest.$ac_objext'
33113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33114 (eval $ac_try) 2>&5
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); }; }; then
33120 cat >conftest.$ac_ext <<_ACEOF
33123 cat confdefs.h >>conftest.$ac_ext
33124 cat >>conftest.$ac_ext <<_ACEOF
33125 /* end confdefs.h. */
33126 $ac_includes_default
33130 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
33137 rm -f conftest.$ac_objext
33138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33139 (eval $ac_compile) 2>conftest.er1
33141 grep -v '^ *+' conftest.er1 >conftest.err
33143 cat conftest.err >&5
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); } &&
33146 { ac_try='test -z "$ac_c_werror_flag"
33147 || test ! -s conftest.err'
33148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33149 (eval $ac_try) 2>&5
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; } &&
33153 { ac_try='test -s conftest.$ac_objext'
33154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33155 (eval $ac_try) 2>&5
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); }; }; then
33159 ac_lo=$ac_mid; break
33161 echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33164 ac_hi=`expr '(' $ac_mid ')' - 1`
33165 if test $ac_mid -le $ac_hi; then
33169 ac_mid=`expr 2 '*' $ac_mid`
33171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33174 echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33182 # Binary search between lo and hi bounds.
33183 while test "x$ac_lo" != "x$ac_hi"; do
33184 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33185 cat >conftest.$ac_ext <<_ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h. */
33191 $ac_includes_default
33195 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
33202 rm -f conftest.$ac_objext
33203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33204 (eval $ac_compile) 2>conftest.er1
33206 grep -v '^ *+' conftest.er1 >conftest.err
33208 cat conftest.err >&5
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); } &&
33211 { ac_try='test -z "$ac_c_werror_flag"
33212 || test ! -s conftest.err'
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest.$ac_objext'
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
33226 echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33229 ac_lo=`expr '(' $ac_mid ')' + 1`
33231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33234 ?*) ac_cv_sizeof_long_double=$ac_lo;;
33235 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
33236 See \`config.log' for more details." >&5
33237 echo "$as_me: error: cannot compute sizeof (long double), 77
33238 See \`config.log' for more details." >&2;}
33239 { (exit 1); exit 1; }; } ;;
33242 if test "$cross_compiling" = yes; then
33243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33244 See \`config.log' for more details." >&5
33245 echo "$as_me: error: cannot run test program while cross compiling
33246 See \`config.log' for more details." >&2;}
33247 { (exit 1); exit 1; }; }
33249 cat >conftest.$ac_ext <<_ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h. */
33255 $ac_includes_default
33256 long longval () { return (long) (sizeof (long double)); }
33257 unsigned long ulongval () { return (long) (sizeof (long double)); }
33259 #include <stdlib.h>
33264 FILE *f = fopen ("conftest.val", "w");
33267 if (((long) (sizeof (long double))) < 0)
33269 long i = longval ();
33270 if (i != ((long) (sizeof (long double))))
33272 fprintf (f, "%ld\n", i);
33276 unsigned long i = ulongval ();
33277 if (i != ((long) (sizeof (long double))))
33279 fprintf (f, "%lu\n", i);
33281 exit (ferror (f) || fclose (f) != 0);
33287 rm -f conftest$ac_exeext
33288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33289 (eval $ac_link) 2>&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33294 (eval $ac_try) 2>&5
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; }; then
33298 ac_cv_sizeof_long_double=`cat conftest.val`
33300 echo "$as_me: program exited with status $ac_status" >&5
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33304 ( exit $ac_status )
33305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
33306 See \`config.log' for more details." >&5
33307 echo "$as_me: error: cannot compute sizeof (long double), 77
33308 See \`config.log' for more details." >&2;}
33309 { (exit 1); exit 1; }; }
33311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33316 ac_cv_sizeof_long_double=0
33319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
33320 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
33321 cat >>confdefs.h <<_ACEOF
33322 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
33326 echo "$as_me:$LINENO: checking for uniquely sized long double" >&5
33327 echo $ECHO_N "checking for uniquely sized long double... $ECHO_C" >&6
33328 if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then
33329 echo $ECHO_N "(cached) $ECHO_C" >&6
33331 if set |grep ^ccvs_cv_unique_float_type_ \
33332 |grep "($ac_cv_sizeof_long_double)" >/dev/null ; then
33333 ccvs_cv_unique_float_type_long_double=no
33335 ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\)
33338 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_long_double" >&5
33339 echo "${ECHO_T}$ccvs_cv_unique_float_type_long_double" >&6
33340 if test $ccvs_cv_unique_float_type_long_double != no ; then
33342 cat >>confdefs.h <<\_ACEOF
33343 #define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1
33351 cat >>confdefs.h <<\_ACEOF
33352 #define HAVE_STRCHR 1
33356 cat >>confdefs.h <<\_ACEOF
33357 #define HAVE_MEMCHR 1
33362 cat >>confdefs.h <<\_ACEOF
33363 #define REGEX_MALLOC 1
33367 cat >>confdefs.h <<\_ACEOF
33368 #define _REGEX_RE_COMP 1
33373 for ac_header in unistd.h vfork.h
33375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33377 echo "$as_me:$LINENO: checking for $ac_header" >&5
33378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33380 echo $ECHO_N "(cached) $ECHO_C" >&6
33382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33385 # Is the header compilable?
33386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33388 cat >conftest.$ac_ext <<_ACEOF
33391 cat confdefs.h >>conftest.$ac_ext
33392 cat >>conftest.$ac_ext <<_ACEOF
33393 /* end confdefs.h. */
33394 $ac_includes_default
33395 #include <$ac_header>
33397 rm -f conftest.$ac_objext
33398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33399 (eval $ac_compile) 2>conftest.er1
33401 grep -v '^ *+' conftest.er1 >conftest.err
33403 cat conftest.err >&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); } &&
33406 { ac_try='test -z "$ac_c_werror_flag"
33407 || test ! -s conftest.err'
33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409 (eval $ac_try) 2>&5
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); }; } &&
33413 { ac_try='test -s conftest.$ac_objext'
33414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415 (eval $ac_try) 2>&5
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); }; }; then
33419 ac_header_compiler=yes
33421 echo "$as_me: failed program was:" >&5
33422 sed 's/^/| /' conftest.$ac_ext >&5
33424 ac_header_compiler=no
33426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33428 echo "${ECHO_T}$ac_header_compiler" >&6
33430 # Is the header present?
33431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33433 cat >conftest.$ac_ext <<_ACEOF
33436 cat confdefs.h >>conftest.$ac_ext
33437 cat >>conftest.$ac_ext <<_ACEOF
33438 /* end confdefs.h. */
33439 #include <$ac_header>
33441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33444 grep -v '^ *+' conftest.er1 >conftest.err
33446 cat conftest.err >&5
33447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448 (exit $ac_status); } >/dev/null; then
33449 if test -s conftest.err; then
33450 ac_cpp_err=$ac_c_preproc_warn_flag
33451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33458 if test -z "$ac_cpp_err"; then
33459 ac_header_preproc=yes
33461 echo "$as_me: failed program was:" >&5
33462 sed 's/^/| /' conftest.$ac_ext >&5
33464 ac_header_preproc=no
33466 rm -f conftest.err conftest.$ac_ext
33467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33468 echo "${ECHO_T}$ac_header_preproc" >&6
33470 # So? What about this header?
33471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33477 ac_header_preproc=yes
33480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33494 ## ------------------------------ ##
33495 ## Report this to bug-cvs@gnu.org ##
33496 ## ------------------------------ ##
33499 sed "s/^/$as_me: WARNING: /" >&2
33502 echo "$as_me:$LINENO: checking for $ac_header" >&5
33503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33505 echo $ECHO_N "(cached) $ECHO_C" >&6
33507 eval "$as_ac_Header=\$ac_header_preproc"
33509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33514 cat >>confdefs.h <<_ACEOF
33515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33524 for ac_func in fork vfork
33526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33527 echo "$as_me:$LINENO: checking for $ac_func" >&5
33528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33529 if eval "test \"\${$as_ac_var+set}\" = set"; then
33530 echo $ECHO_N "(cached) $ECHO_C" >&6
33532 cat >conftest.$ac_ext <<_ACEOF
33535 cat confdefs.h >>conftest.$ac_ext
33536 cat >>conftest.$ac_ext <<_ACEOF
33537 /* end confdefs.h. */
33538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33540 #define $ac_func innocuous_$ac_func
33542 /* System header to define __stub macros and hopefully few prototypes,
33543 which can conflict with char $ac_func (); below.
33544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33545 <limits.h> exists even on freestanding compilers. */
33548 # include <limits.h>
33550 # include <assert.h>
33555 /* Override any gcc2 internal prototype to avoid an error. */
33560 /* We use char because int might match the return type of a gcc2
33561 builtin and then its argument prototype would still apply. */
33563 /* The GNU C library defines this for functions which it implements
33564 to always fail with ENOSYS. Some functions are actually named
33565 something starting with __ and the normal name is an alias. */
33566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33569 char (*f) () = $ac_func;
33578 return f != $ac_func;
33583 rm -f conftest.$ac_objext conftest$ac_exeext
33584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33585 (eval $ac_link) 2>conftest.er1
33587 grep -v '^ *+' conftest.er1 >conftest.err
33589 cat conftest.err >&5
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); } &&
33592 { ac_try='test -z "$ac_c_werror_flag"
33593 || test ! -s conftest.err'
33594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33595 (eval $ac_try) 2>&5
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); }; } &&
33599 { ac_try='test -s conftest$ac_exeext'
33600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601 (eval $ac_try) 2>&5
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); }; }; then
33605 eval "$as_ac_var=yes"
33607 echo "$as_me: failed program was:" >&5
33608 sed 's/^/| /' conftest.$ac_ext >&5
33610 eval "$as_ac_var=no"
33612 rm -f conftest.err conftest.$ac_objext \
33613 conftest$ac_exeext conftest.$ac_ext
33615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33617 if test `eval echo '${'$as_ac_var'}'` = yes; then
33618 cat >>confdefs.h <<_ACEOF
33619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33625 if test "x$ac_cv_func_fork" = xyes; then
33626 echo "$as_me:$LINENO: checking for working fork" >&5
33627 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
33628 if test "${ac_cv_func_fork_works+set}" = set; then
33629 echo $ECHO_N "(cached) $ECHO_C" >&6
33631 if test "$cross_compiling" = yes; then
33632 ac_cv_func_fork_works=cross
33634 cat >conftest.$ac_ext <<_ACEOF
33635 /* By Ruediger Kuhlmann. */
33636 #include <sys/types.h>
33638 # include <unistd.h>
33640 /* Some systems only have a dummy stub for fork() */
33648 rm -f conftest$ac_exeext
33649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33650 (eval $ac_link) 2>&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33655 (eval $ac_try) 2>&5
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); }; }; then
33659 ac_cv_func_fork_works=yes
33661 echo "$as_me: program exited with status $ac_status" >&5
33662 echo "$as_me: failed program was:" >&5
33663 sed 's/^/| /' conftest.$ac_ext >&5
33665 ( exit $ac_status )
33666 ac_cv_func_fork_works=no
33668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33671 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
33672 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
33675 ac_cv_func_fork_works=$ac_cv_func_fork
33677 if test "x$ac_cv_func_fork_works" = xcross; then
33679 *-*-amigaos* | *-*-msdosdjgpp*)
33680 # Override, as these systems have only a dummy fork() stub
33681 ac_cv_func_fork_works=no
33684 ac_cv_func_fork_works=yes
33687 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
33688 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
33690 ac_cv_func_vfork_works=$ac_cv_func_vfork
33691 if test "x$ac_cv_func_vfork" = xyes; then
33692 echo "$as_me:$LINENO: checking for working vfork" >&5
33693 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
33694 if test "${ac_cv_func_vfork_works+set}" = set; then
33695 echo $ECHO_N "(cached) $ECHO_C" >&6
33697 if test "$cross_compiling" = yes; then
33698 ac_cv_func_vfork_works=cross
33700 cat >conftest.$ac_ext <<_ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h. */
33706 /* Thanks to Paul Eggert for this test. */
33708 #include <stdlib.h>
33709 #include <sys/types.h>
33710 #include <sys/stat.h>
33711 #include <sys/wait.h>
33713 # include <unistd.h>
33716 # include <vfork.h>
33718 /* On some sparc systems, changes by the child to local and incoming
33719 argument registers are propagated back to the parent. The compiler
33720 is told about this with #include <vfork.h>, but some compilers
33721 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
33722 static variable whose address is put into a register that is
33723 clobbered by the vfork. */
33726 sparc_address_test (int arg)
33728 sparc_address_test (arg) int arg;
33731 static pid_t child;
33749 pid_t parent = getpid ();
33752 sparc_address_test (0);
33757 /* Here is another test for sparc vfork register problems. This
33758 test uses lots of local variables, at least as many local
33759 variables as main has allocated so far including compiler
33760 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
33761 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
33762 reuse the register of parent for one of the local variables,
33763 since it will think that parent can't possibly be used any more
33764 in this routine. Assigning to the local variable will thus
33765 munge parent in the parent process. */
33767 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
33768 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
33769 /* Convince the compiler that p..p7 are live; otherwise, it might
33770 use the same hardware register for all 8 local variables. */
33771 if (p != p1 || p != p2 || p != p3 || p != p4
33772 || p != p5 || p != p6 || p != p7)
33775 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
33776 from child file descriptors. If the child closes a descriptor
33777 before it execs or exits, this munges the parent's descriptor
33778 as well. Test for this by closing stdout in the child. */
33779 _exit(close(fileno(stdout)) != 0);
33784 while (wait(&status) != child)
33787 /* Was there some problem with vforking? */
33790 /* Did the child fail? (This shouldn't happen.) */
33793 /* Did the vfork/compiler bug occur? */
33794 || parent != getpid()
33796 /* Did the file descriptor bug occur? */
33797 || fstat(fileno(stdout), &st) != 0
33802 rm -f conftest$ac_exeext
33803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33804 (eval $ac_link) 2>&5
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809 (eval $ac_try) 2>&5
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); }; }; then
33813 ac_cv_func_vfork_works=yes
33815 echo "$as_me: program exited with status $ac_status" >&5
33816 echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33819 ( exit $ac_status )
33820 ac_cv_func_vfork_works=no
33822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33825 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
33826 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
33829 if test "x$ac_cv_func_fork_works" = xcross; then
33830 ac_cv_func_vfork_works=$ac_cv_func_vfork
33831 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
33832 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
33835 if test "x$ac_cv_func_vfork_works" = xyes; then
33837 cat >>confdefs.h <<\_ACEOF
33838 #define HAVE_WORKING_VFORK 1
33843 cat >>confdefs.h <<\_ACEOF
33848 if test "x$ac_cv_func_fork_works" = xyes; then
33850 cat >>confdefs.h <<\_ACEOF
33851 #define HAVE_WORKING_FORK 1
33856 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33857 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
33858 if test "${ac_cv_func_closedir_void+set}" = set; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33861 if test "$cross_compiling" = yes; then
33862 ac_cv_func_closedir_void=yes
33864 cat >conftest.$ac_ext <<_ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h. */
33870 $ac_includes_default
33871 #include <$ac_header_dirent>
33872 #ifndef __cplusplus
33879 exit (closedir (opendir (".")) != 0);
33884 rm -f conftest$ac_exeext
33885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33886 (eval $ac_link) 2>&5
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33891 (eval $ac_try) 2>&5
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; }; then
33895 ac_cv_func_closedir_void=no
33897 echo "$as_me: program exited with status $ac_status" >&5
33898 echo "$as_me: failed program was:" >&5
33899 sed 's/^/| /' conftest.$ac_ext >&5
33901 ( exit $ac_status )
33902 ac_cv_func_closedir_void=yes
33904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33907 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33908 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
33909 if test $ac_cv_func_closedir_void = yes; then
33911 cat >>confdefs.h <<\_ACEOF
33912 #define CLOSEDIR_VOID 1
33918 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
33919 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
33920 if test "${ac_cv_search_getspnam+set}" = set; then
33921 echo $ECHO_N "(cached) $ECHO_C" >&6
33923 ac_func_search_save_LIBS=$LIBS
33924 ac_cv_search_getspnam=no
33925 cat >conftest.$ac_ext <<_ACEOF
33928 cat confdefs.h >>conftest.$ac_ext
33929 cat >>conftest.$ac_ext <<_ACEOF
33930 /* end confdefs.h. */
33932 /* Override any gcc2 internal prototype to avoid an error. */
33936 /* We use char because int might match the return type of a gcc2
33937 builtin and then its argument prototype would still apply. */
33947 rm -f conftest.$ac_objext conftest$ac_exeext
33948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33949 (eval $ac_link) 2>conftest.er1
33951 grep -v '^ *+' conftest.er1 >conftest.err
33953 cat conftest.err >&5
33954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955 (exit $ac_status); } &&
33956 { ac_try='test -z "$ac_c_werror_flag"
33957 || test ! -s conftest.err'
33958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33959 (eval $ac_try) 2>&5
33961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33962 (exit $ac_status); }; } &&
33963 { ac_try='test -s conftest$ac_exeext'
33964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33965 (eval $ac_try) 2>&5
33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968 (exit $ac_status); }; }; then
33969 ac_cv_search_getspnam="none required"
33971 echo "$as_me: failed program was:" >&5
33972 sed 's/^/| /' conftest.$ac_ext >&5
33975 rm -f conftest.err conftest.$ac_objext \
33976 conftest$ac_exeext conftest.$ac_ext
33977 if test "$ac_cv_search_getspnam" = no; then
33978 for ac_lib in sec gen; do
33979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33980 cat >conftest.$ac_ext <<_ACEOF
33983 cat confdefs.h >>conftest.$ac_ext
33984 cat >>conftest.$ac_ext <<_ACEOF
33985 /* end confdefs.h. */
33987 /* Override any gcc2 internal prototype to avoid an error. */
33991 /* We use char because int might match the return type of a gcc2
33992 builtin and then its argument prototype would still apply. */
34002 rm -f conftest.$ac_objext conftest$ac_exeext
34003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34004 (eval $ac_link) 2>conftest.er1
34006 grep -v '^ *+' conftest.er1 >conftest.err
34008 cat conftest.err >&5
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); } &&
34011 { ac_try='test -z "$ac_c_werror_flag"
34012 || test ! -s conftest.err'
34013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34014 (eval $ac_try) 2>&5
34016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); }; } &&
34018 { ac_try='test -s conftest$ac_exeext'
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
34024 ac_cv_search_getspnam="-l$ac_lib"
34027 echo "$as_me: failed program was:" >&5
34028 sed 's/^/| /' conftest.$ac_ext >&5
34031 rm -f conftest.err conftest.$ac_objext \
34032 conftest$ac_exeext conftest.$ac_ext
34035 LIBS=$ac_func_search_save_LIBS
34037 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
34038 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
34039 if test "$ac_cv_search_getspnam" != no; then
34040 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
34042 cat >>confdefs.h <<\_ACEOF
34043 #define HAVE_GETSPNAM 1
34049 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
34050 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
34051 if test "${ac_cv_func_utime_null+set}" = set; then
34052 echo $ECHO_N "(cached) $ECHO_C" >&6
34054 rm -f conftest.data; >conftest.data
34055 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
34056 if test "$cross_compiling" = yes; then
34057 ac_cv_func_utime_null=no
34059 cat >conftest.$ac_ext <<_ACEOF
34062 cat confdefs.h >>conftest.$ac_ext
34063 cat >>conftest.$ac_ext <<_ACEOF
34064 /* end confdefs.h. */
34065 $ac_includes_default
34070 exit (!(stat ("conftest.data", &s) == 0
34071 && utime ("conftest.data", (long *)0) == 0
34072 && stat ("conftest.data", &t) == 0
34073 && t.st_mtime >= s.st_mtime
34074 && t.st_mtime - s.st_mtime < 120));
34079 rm -f conftest$ac_exeext
34080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34081 (eval $ac_link) 2>&5
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34086 (eval $ac_try) 2>&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); }; }; then
34090 ac_cv_func_utime_null=yes
34092 echo "$as_me: program exited with status $ac_status" >&5
34093 echo "$as_me: failed program was:" >&5
34094 sed 's/^/| /' conftest.$ac_ext >&5
34096 ( exit $ac_status )
34097 ac_cv_func_utime_null=no
34099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34103 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
34104 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
34105 if test $ac_cv_func_utime_null = yes; then
34107 cat >>confdefs.h <<\_ACEOF
34108 #define HAVE_UTIME_NULL 1
34112 rm -f conftest.data
34114 echo "$as_me:$LINENO: checking for long file names" >&5
34115 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
34116 if test "${ac_cv_sys_long_file_names+set}" = set; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34119 ac_cv_sys_long_file_names=yes
34120 # Test for long file names in all the places we know might matter:
34121 # . the current directory, where building will happen
34122 # $prefix/lib where we will be installing things
34123 # $exec_prefix/lib likewise
34124 # eval it to expand exec_prefix.
34125 # $TMPDIR if set, where it might want to write temporary files
34126 # if $TMPDIR is not set:
34127 # /tmp where it might want to write temporary files
34128 # /var/tmp likewise
34129 # /usr/tmp likewise
34130 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
34133 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
34135 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
34136 test -d $ac_dir || continue
34137 test -w $ac_dir || continue # It is less confusing to not echo anything here.
34138 ac_xdir=$ac_dir/cf$$
34139 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
34140 ac_tf1=$ac_xdir/conftest9012345
34141 ac_tf2=$ac_xdir/conftest9012346
34142 (echo 1 >$ac_tf1) 2>/dev/null
34143 (echo 2 >$ac_tf2) 2>/dev/null
34144 ac_val=`cat $ac_tf1 2>/dev/null`
34145 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
34146 ac_cv_sys_long_file_names=no
34147 rm -rf $ac_xdir 2>/dev/null
34150 rm -rf $ac_xdir 2>/dev/null
34153 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
34154 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
34155 if test $ac_cv_sys_long_file_names = yes; then
34157 cat >>confdefs.h <<\_ACEOF
34158 #define HAVE_LONG_FILE_NAMES 1
34164 echo "$as_me:$LINENO: checking whether printf supports %p" >&5
34165 echo $ECHO_N "checking whether printf supports %p... $ECHO_C" >&6
34166 if test "${cvs_cv_func_printf_ptr+set}" = set; then
34167 echo $ECHO_N "(cached) $ECHO_C" >&6
34169 if test "$cross_compiling" = yes; then
34170 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34171 See \`config.log' for more details." >&5
34172 echo "$as_me: error: cannot run test program while cross compiling
34173 See \`config.log' for more details." >&2;}
34174 { (exit 1); exit 1; }; }
34176 cat >conftest.$ac_ext <<_ACEOF
34179 cat confdefs.h >>conftest.$ac_ext
34180 cat >>conftest.$ac_ext <<_ACEOF
34181 /* end confdefs.h. */
34183 /* If printf supports %p, exit 0. */
34189 p1 = &p1; p2 = &p2;
34190 sprintf(buf, "%p", p1);
34191 exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
34194 rm -f conftest$ac_exeext
34195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34196 (eval $ac_link) 2>&5
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201 (eval $ac_try) 2>&5
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; }; then
34205 cvs_cv_func_printf_ptr=yes
34207 echo "$as_me: program exited with status $ac_status" >&5
34208 echo "$as_me: failed program was:" >&5
34209 sed 's/^/| /' conftest.$ac_ext >&5
34211 ( exit $ac_status )
34212 cvs_cv_func_printf_ptr=no
34214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34216 rm -f core core.* *.core
34218 echo "$as_me:$LINENO: result: $cvs_cv_func_printf_ptr" >&5
34219 echo "${ECHO_T}$cvs_cv_func_printf_ptr" >&6
34220 if test $cvs_cv_func_printf_ptr = yes; then
34222 cat >>confdefs.h <<\_ACEOF
34223 #define HAVE_PRINTF_PTR 1
34229 # Try to find connect and gethostbyname.
34231 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
34232 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
34233 if test "${ac_cv_lib_nsl_main+set}" = set; then
34234 echo $ECHO_N "(cached) $ECHO_C" >&6
34236 ac_check_lib_save_LIBS=$LIBS
34238 cat >conftest.$ac_ext <<_ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h. */
34254 rm -f conftest.$ac_objext conftest$ac_exeext
34255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34256 (eval $ac_link) 2>conftest.er1
34258 grep -v '^ *+' conftest.er1 >conftest.err
34260 cat conftest.err >&5
34261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262 (exit $ac_status); } &&
34263 { ac_try='test -z "$ac_c_werror_flag"
34264 || test ! -s conftest.err'
34265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34266 (eval $ac_try) 2>&5
34268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34269 (exit $ac_status); }; } &&
34270 { ac_try='test -s conftest$ac_exeext'
34271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34272 (eval $ac_try) 2>&5
34274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275 (exit $ac_status); }; }; then
34276 ac_cv_lib_nsl_main=yes
34278 echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34281 ac_cv_lib_nsl_main=no
34283 rm -f conftest.err conftest.$ac_objext \
34284 conftest$ac_exeext conftest.$ac_ext
34285 LIBS=$ac_check_lib_save_LIBS
34287 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
34288 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
34289 if test $ac_cv_lib_nsl_main = yes; then
34290 cat >>confdefs.h <<_ACEOF
34291 #define HAVE_LIBNSL 1
34298 echo "$as_me:$LINENO: checking for library containing connect" >&5
34299 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
34300 if test "${ac_cv_search_connect+set}" = set; then
34301 echo $ECHO_N "(cached) $ECHO_C" >&6
34303 ac_func_search_save_LIBS=$LIBS
34304 ac_cv_search_connect=no
34305 cat >conftest.$ac_ext <<_ACEOF
34308 cat confdefs.h >>conftest.$ac_ext
34309 cat >>conftest.$ac_ext <<_ACEOF
34310 /* end confdefs.h. */
34312 /* Override any gcc2 internal prototype to avoid an error. */
34316 /* We use char because int might match the return type of a gcc2
34317 builtin and then its argument prototype would still apply. */
34327 rm -f conftest.$ac_objext conftest$ac_exeext
34328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34329 (eval $ac_link) 2>conftest.er1
34331 grep -v '^ *+' conftest.er1 >conftest.err
34333 cat conftest.err >&5
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); } &&
34336 { ac_try='test -z "$ac_c_werror_flag"
34337 || test ! -s conftest.err'
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; } &&
34343 { ac_try='test -s conftest$ac_exeext'
34344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345 (eval $ac_try) 2>&5
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); }; }; then
34349 ac_cv_search_connect="none required"
34351 echo "$as_me: failed program was:" >&5
34352 sed 's/^/| /' conftest.$ac_ext >&5
34355 rm -f conftest.err conftest.$ac_objext \
34356 conftest$ac_exeext conftest.$ac_ext
34357 if test "$ac_cv_search_connect" = no; then
34358 for ac_lib in xnet socket inet; do
34359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34360 cat >conftest.$ac_ext <<_ACEOF
34363 cat confdefs.h >>conftest.$ac_ext
34364 cat >>conftest.$ac_ext <<_ACEOF
34365 /* end confdefs.h. */
34367 /* Override any gcc2 internal prototype to avoid an error. */
34371 /* We use char because int might match the return type of a gcc2
34372 builtin and then its argument prototype would still apply. */
34382 rm -f conftest.$ac_objext conftest$ac_exeext
34383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34384 (eval $ac_link) 2>conftest.er1
34386 grep -v '^ *+' conftest.er1 >conftest.err
34388 cat conftest.err >&5
34389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390 (exit $ac_status); } &&
34391 { ac_try='test -z "$ac_c_werror_flag"
34392 || test ! -s conftest.err'
34393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394 (eval $ac_try) 2>&5
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); }; } &&
34398 { ac_try='test -s conftest$ac_exeext'
34399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400 (eval $ac_try) 2>&5
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); }; }; then
34404 ac_cv_search_connect="-l$ac_lib"
34407 echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34411 rm -f conftest.err conftest.$ac_objext \
34412 conftest$ac_exeext conftest.$ac_ext
34415 LIBS=$ac_func_search_save_LIBS
34417 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
34418 echo "${ECHO_T}$ac_cv_search_connect" >&6
34419 if test "$ac_cv_search_connect" != no; then
34420 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
34422 cat >>confdefs.h <<\_ACEOF
34423 #define HAVE_CONNECT 1
34428 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
34429 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
34430 if test "${ac_cv_search_gethostbyname+set}" = set; then
34431 echo $ECHO_N "(cached) $ECHO_C" >&6
34433 ac_func_search_save_LIBS=$LIBS
34434 ac_cv_search_gethostbyname=no
34435 cat >conftest.$ac_ext <<_ACEOF
34438 cat confdefs.h >>conftest.$ac_ext
34439 cat >>conftest.$ac_ext <<_ACEOF
34440 /* end confdefs.h. */
34442 /* Override any gcc2 internal prototype to avoid an error. */
34446 /* We use char because int might match the return type of a gcc2
34447 builtin and then its argument prototype would still apply. */
34448 char gethostbyname ();
34457 rm -f conftest.$ac_objext conftest$ac_exeext
34458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34459 (eval $ac_link) 2>conftest.er1
34461 grep -v '^ *+' conftest.er1 >conftest.err
34463 cat conftest.err >&5
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); } &&
34466 { ac_try='test -z "$ac_c_werror_flag"
34467 || test ! -s conftest.err'
34468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34469 (eval $ac_try) 2>&5
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); }; } &&
34473 { ac_try='test -s conftest$ac_exeext'
34474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475 (eval $ac_try) 2>&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); }; }; then
34479 ac_cv_search_gethostbyname="none required"
34481 echo "$as_me: failed program was:" >&5
34482 sed 's/^/| /' conftest.$ac_ext >&5
34485 rm -f conftest.err conftest.$ac_objext \
34486 conftest$ac_exeext conftest.$ac_ext
34487 if test "$ac_cv_search_gethostbyname" = no; then
34488 for ac_lib in netinet; do
34489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34490 cat >conftest.$ac_ext <<_ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h. */
34497 /* Override any gcc2 internal prototype to avoid an error. */
34501 /* We use char because int might match the return type of a gcc2
34502 builtin and then its argument prototype would still apply. */
34503 char gethostbyname ();
34512 rm -f conftest.$ac_objext conftest$ac_exeext
34513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34514 (eval $ac_link) 2>conftest.er1
34516 grep -v '^ *+' conftest.er1 >conftest.err
34518 cat conftest.err >&5
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); } &&
34521 { ac_try='test -z "$ac_c_werror_flag"
34522 || test ! -s conftest.err'
34523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524 (eval $ac_try) 2>&5
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); }; } &&
34528 { ac_try='test -s conftest$ac_exeext'
34529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530 (eval $ac_try) 2>&5
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); }; }; then
34534 ac_cv_search_gethostbyname="-l$ac_lib"
34537 echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34541 rm -f conftest.err conftest.$ac_objext \
34542 conftest$ac_exeext conftest.$ac_ext
34545 LIBS=$ac_func_search_save_LIBS
34547 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
34548 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
34549 if test "$ac_cv_search_gethostbyname" != no; then
34550 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
34555 echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
34556 echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6
34557 if test "${ac_cv_search_hstrerror+set}" = set; then
34558 echo $ECHO_N "(cached) $ECHO_C" >&6
34560 ac_func_search_save_LIBS=$LIBS
34561 ac_cv_search_hstrerror=no
34562 cat >conftest.$ac_ext <<_ACEOF
34565 cat confdefs.h >>conftest.$ac_ext
34566 cat >>conftest.$ac_ext <<_ACEOF
34567 /* end confdefs.h. */
34569 /* Override any gcc2 internal prototype to avoid an error. */
34573 /* We use char because int might match the return type of a gcc2
34574 builtin and then its argument prototype would still apply. */
34584 rm -f conftest.$ac_objext conftest$ac_exeext
34585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34586 (eval $ac_link) 2>conftest.er1
34588 grep -v '^ *+' conftest.er1 >conftest.err
34590 cat conftest.err >&5
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); } &&
34593 { ac_try='test -z "$ac_c_werror_flag"
34594 || test ! -s conftest.err'
34595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596 (eval $ac_try) 2>&5
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); }; } &&
34600 { ac_try='test -s conftest$ac_exeext'
34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602 (eval $ac_try) 2>&5
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; }; then
34606 ac_cv_search_hstrerror="none required"
34608 echo "$as_me: failed program was:" >&5
34609 sed 's/^/| /' conftest.$ac_ext >&5
34612 rm -f conftest.err conftest.$ac_objext \
34613 conftest$ac_exeext conftest.$ac_ext
34614 if test "$ac_cv_search_hstrerror" = no; then
34615 for ac_lib in resolv; do
34616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34617 cat >conftest.$ac_ext <<_ACEOF
34620 cat confdefs.h >>conftest.$ac_ext
34621 cat >>conftest.$ac_ext <<_ACEOF
34622 /* end confdefs.h. */
34624 /* Override any gcc2 internal prototype to avoid an error. */
34628 /* We use char because int might match the return type of a gcc2
34629 builtin and then its argument prototype would still apply. */
34639 rm -f conftest.$ac_objext conftest$ac_exeext
34640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34641 (eval $ac_link) 2>conftest.er1
34643 grep -v '^ *+' conftest.er1 >conftest.err
34645 cat conftest.err >&5
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); } &&
34648 { ac_try='test -z "$ac_c_werror_flag"
34649 || test ! -s conftest.err'
34650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651 (eval $ac_try) 2>&5
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); }; } &&
34655 { ac_try='test -s conftest$ac_exeext'
34656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657 (eval $ac_try) 2>&5
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; }; then
34661 ac_cv_search_hstrerror="-l$ac_lib"
34664 echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.$ac_ext >&5
34668 rm -f conftest.err conftest.$ac_objext \
34669 conftest$ac_exeext conftest.$ac_ext
34672 LIBS=$ac_func_search_save_LIBS
34674 echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
34675 echo "${ECHO_T}$ac_cv_search_hstrerror" >&6
34676 if test "$ac_cv_search_hstrerror" != no; then
34677 test "$ac_cv_search_hstrerror" = "none required" || LIBS="$ac_cv_search_hstrerror $LIBS"
34679 cat >>confdefs.h <<\_ACEOF
34680 #define HAVE_HSTRERROR 1
34693 # Check whether --with-krb4 or --without-krb4 was given.
34694 if test "${with_krb4+set}" = set; then
34695 withval="$with_krb4"
34697 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
34698 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
34699 echo "$as_me:$LINENO: result: " >&5
34700 echo "${ECHO_T}" >&6
34704 echo "$as_me:$LINENO: checking for krb.h" >&5
34705 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
34706 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
34707 hold_cflags=$CFLAGS
34708 CFLAGS="$CFLAGS -I$KRB4/include"
34709 cat >conftest.$ac_ext <<_ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h. */
34724 rm -f conftest.$ac_objext conftest$ac_exeext
34725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34726 (eval $ac_link) 2>conftest.er1
34728 grep -v '^ *+' conftest.er1 >conftest.err
34730 cat conftest.err >&5
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); } &&
34733 { ac_try='test -z "$ac_c_werror_flag"
34734 || test ! -s conftest.err'
34735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736 (eval $ac_try) 2>&5
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; } &&
34740 { ac_try='test -s conftest$ac_exeext'
34741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742 (eval $ac_try) 2>&5
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); }; }; then
34746 krb_h=yes krb_incdir=$KRB4/include
34748 echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34751 CFLAGS=$hold_cflags
34752 cat >conftest.$ac_ext <<_ACEOF
34755 cat confdefs.h >>conftest.$ac_ext
34756 cat >>conftest.$ac_ext <<_ACEOF
34757 /* end confdefs.h. */
34767 rm -f conftest.$ac_objext conftest$ac_exeext
34768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34769 (eval $ac_link) 2>conftest.er1
34771 grep -v '^ *+' conftest.er1 >conftest.err
34773 cat conftest.err >&5
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); } &&
34776 { ac_try='test -z "$ac_c_werror_flag"
34777 || test ! -s conftest.err'
34778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779 (eval $ac_try) 2>&5
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); }; } &&
34783 { ac_try='test -s conftest$ac_exeext'
34784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34785 (eval $ac_try) 2>&5
34787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788 (exit $ac_status); }; }; then
34789 krb_h=yes krb_incdir=
34791 echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34795 rm -f conftest.err conftest.$ac_objext \
34796 conftest$ac_exeext conftest.$ac_ext
34798 rm -f conftest.err conftest.$ac_objext \
34799 conftest$ac_exeext conftest.$ac_ext
34800 CFLAGS=$hold_cflags
34802 cat >conftest.$ac_ext <<_ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h. */
34817 rm -f conftest.$ac_objext conftest$ac_exeext
34818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34819 (eval $ac_link) 2>conftest.er1
34821 grep -v '^ *+' conftest.er1 >conftest.err
34823 cat conftest.err >&5
34824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34825 (exit $ac_status); } &&
34826 { ac_try='test -z "$ac_c_werror_flag"
34827 || test ! -s conftest.err'
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; } &&
34833 { ac_try='test -s conftest$ac_exeext'
34834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34835 (eval $ac_try) 2>&5
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); }; }; then
34839 krb_h=yes krb_incdir=
34841 echo "$as_me: failed program was:" >&5
34842 sed 's/^/| /' conftest.$ac_ext >&5
34845 rm -f conftest.err conftest.$ac_objext \
34846 conftest$ac_exeext conftest.$ac_ext
34848 if test -z "$krb_h"; then
34849 cat >conftest.$ac_ext <<_ACEOF
34852 cat confdefs.h >>conftest.$ac_ext
34853 cat >>conftest.$ac_ext <<_ACEOF
34854 /* end confdefs.h. */
34864 rm -f conftest.$ac_objext conftest$ac_exeext
34865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34866 (eval $ac_link) 2>conftest.er1
34868 grep -v '^ *+' conftest.er1 >conftest.err
34870 cat conftest.err >&5
34871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872 (exit $ac_status); } &&
34873 { ac_try='test -z "$ac_c_werror_flag"
34874 || test ! -s conftest.err'
34875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876 (eval $ac_try) 2>&5
34878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879 (exit $ac_status); }; } &&
34880 { ac_try='test -s conftest$ac_exeext'
34881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34882 (eval $ac_try) 2>&5
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); }; }; then
34886 krb_h=yes krb_incdir=
34888 echo "$as_me: failed program was:" >&5
34889 sed 's/^/| /' conftest.$ac_ext >&5
34891 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
34892 hold_cflags=$CFLAGS
34893 CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
34894 cat >conftest.$ac_ext <<_ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h. */
34909 rm -f conftest.$ac_objext conftest$ac_exeext
34910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34911 (eval $ac_link) 2>conftest.er1
34913 grep -v '^ *+' conftest.er1 >conftest.err
34915 cat conftest.err >&5
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); } &&
34918 { ac_try='test -z "$ac_c_werror_flag"
34919 || test ! -s conftest.err'
34920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34921 (eval $ac_try) 2>&5
34923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924 (exit $ac_status); }; } &&
34925 { ac_try='test -s conftest$ac_exeext'
34926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34927 (eval $ac_try) 2>&5
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); }; }; then
34931 krb_h=yes krb_incdir=$KRB4/include/kerberosIV
34933 echo "$as_me: failed program was:" >&5
34934 sed 's/^/| /' conftest.$ac_ext >&5
34937 rm -f conftest.err conftest.$ac_objext \
34938 conftest$ac_exeext conftest.$ac_ext
34939 CFLAGS=$hold_cflags
34942 rm -f conftest.err conftest.$ac_objext \
34943 conftest$ac_exeext conftest.$ac_ext
34945 echo "$as_me:$LINENO: result: $krb_h" >&5
34946 echo "${ECHO_T}$krb_h" >&6
34948 if test -n "$krb_h"; then
34950 if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
34951 hold_ldflags=$LDFLAGS
34952 LDFLAGS="-L${KRB4}/lib $LDFLAGS"
34953 echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
34954 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
34955 if test "${ac_cv_lib_krb_printf+set}" = set; then
34956 echo $ECHO_N "(cached) $ECHO_C" >&6
34958 ac_check_lib_save_LIBS=$LIBS
34960 cat >conftest.$ac_ext <<_ACEOF
34963 cat confdefs.h >>conftest.$ac_ext
34964 cat >>conftest.$ac_ext <<_ACEOF
34965 /* end confdefs.h. */
34967 /* Override any gcc2 internal prototype to avoid an error. */
34971 /* We use char because int might match the return type of a gcc2
34972 builtin and then its argument prototype would still apply. */
34982 rm -f conftest.$ac_objext conftest$ac_exeext
34983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34984 (eval $ac_link) 2>conftest.er1
34986 grep -v '^ *+' conftest.er1 >conftest.err
34988 cat conftest.err >&5
34989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 (exit $ac_status); } &&
34991 { ac_try='test -z "$ac_c_werror_flag"
34992 || test ! -s conftest.err'
34993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34994 (eval $ac_try) 2>&5
34996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997 (exit $ac_status); }; } &&
34998 { ac_try='test -s conftest$ac_exeext'
34999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000 (eval $ac_try) 2>&5
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); }; }; then
35004 ac_cv_lib_krb_printf=yes
35006 echo "$as_me: failed program was:" >&5
35007 sed 's/^/| /' conftest.$ac_ext >&5
35009 ac_cv_lib_krb_printf=no
35011 rm -f conftest.err conftest.$ac_objext \
35012 conftest$ac_exeext conftest.$ac_ext
35013 LIBS=$ac_check_lib_save_LIBS
35015 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
35016 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
35017 if test $ac_cv_lib_krb_printf = yes; then
35018 krb_lib=yes krb_libdir=${KRB4}/lib
35020 LDFLAGS=$hold_ldflags
35021 # Using open here instead of printf so we don't
35022 # get confused by the cached value for printf from above.
35023 echo "$as_me:$LINENO: checking for open in -lkrb" >&5
35024 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
35025 if test "${ac_cv_lib_krb_open+set}" = set; then
35026 echo $ECHO_N "(cached) $ECHO_C" >&6
35028 ac_check_lib_save_LIBS=$LIBS
35030 cat >conftest.$ac_ext <<_ACEOF
35033 cat confdefs.h >>conftest.$ac_ext
35034 cat >>conftest.$ac_ext <<_ACEOF
35035 /* end confdefs.h. */
35037 /* Override any gcc2 internal prototype to avoid an error. */
35041 /* We use char because int might match the return type of a gcc2
35042 builtin and then its argument prototype would still apply. */
35052 rm -f conftest.$ac_objext conftest$ac_exeext
35053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35054 (eval $ac_link) 2>conftest.er1
35056 grep -v '^ *+' conftest.er1 >conftest.err
35058 cat conftest.err >&5
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); } &&
35061 { ac_try='test -z "$ac_c_werror_flag"
35062 || test ! -s conftest.err'
35063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35064 (eval $ac_try) 2>&5
35066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067 (exit $ac_status); }; } &&
35068 { ac_try='test -s conftest$ac_exeext'
35069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070 (eval $ac_try) 2>&5
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); }; }; then
35074 ac_cv_lib_krb_open=yes
35076 echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35079 ac_cv_lib_krb_open=no
35081 rm -f conftest.err conftest.$ac_objext \
35082 conftest$ac_exeext conftest.$ac_ext
35083 LIBS=$ac_check_lib_save_LIBS
35085 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
35086 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
35087 if test $ac_cv_lib_krb_open = yes; then
35088 krb_lib=yes krb_libdir=
35093 LDFLAGS=$hold_ldflags
35095 echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
35096 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
35097 if test "${ac_cv_lib_krb_printf+set}" = set; then
35098 echo $ECHO_N "(cached) $ECHO_C" >&6
35100 ac_check_lib_save_LIBS=$LIBS
35102 cat >conftest.$ac_ext <<_ACEOF
35105 cat confdefs.h >>conftest.$ac_ext
35106 cat >>conftest.$ac_ext <<_ACEOF
35107 /* end confdefs.h. */
35109 /* Override any gcc2 internal prototype to avoid an error. */
35113 /* We use char because int might match the return type of a gcc2
35114 builtin and then its argument prototype would still apply. */
35124 rm -f conftest.$ac_objext conftest$ac_exeext
35125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35126 (eval $ac_link) 2>conftest.er1
35128 grep -v '^ *+' conftest.er1 >conftest.err
35130 cat conftest.err >&5
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); } &&
35133 { ac_try='test -z "$ac_c_werror_flag"
35134 || test ! -s conftest.err'
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; } &&
35140 { ac_try='test -s conftest$ac_exeext'
35141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35142 (eval $ac_try) 2>&5
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); }; }; then
35146 ac_cv_lib_krb_printf=yes
35148 echo "$as_me: failed program was:" >&5
35149 sed 's/^/| /' conftest.$ac_ext >&5
35151 ac_cv_lib_krb_printf=no
35153 rm -f conftest.err conftest.$ac_objext \
35154 conftest$ac_exeext conftest.$ac_ext
35155 LIBS=$ac_check_lib_save_LIBS
35157 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
35158 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
35159 if test $ac_cv_lib_krb_printf = yes; then
35160 krb_lib=yes krb_libdir=
35163 echo "$as_me:$LINENO: checking for krb_recvauth" >&5
35164 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6
35165 if test "${ac_cv_func_krb_recvauth+set}" = set; then
35166 echo $ECHO_N "(cached) $ECHO_C" >&6
35168 cat >conftest.$ac_ext <<_ACEOF
35171 cat confdefs.h >>conftest.$ac_ext
35172 cat >>conftest.$ac_ext <<_ACEOF
35173 /* end confdefs.h. */
35174 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
35175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35176 #define krb_recvauth innocuous_krb_recvauth
35178 /* System header to define __stub macros and hopefully few prototypes,
35179 which can conflict with char krb_recvauth (); below.
35180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35181 <limits.h> exists even on freestanding compilers. */
35184 # include <limits.h>
35186 # include <assert.h>
35189 #undef krb_recvauth
35191 /* Override any gcc2 internal prototype to avoid an error. */
35196 /* We use char because int might match the return type of a gcc2
35197 builtin and then its argument prototype would still apply. */
35198 char krb_recvauth ();
35199 /* The GNU C library defines this for functions which it implements
35200 to always fail with ENOSYS. Some functions are actually named
35201 something starting with __ and the normal name is an alias. */
35202 #if defined (__stub_krb_recvauth) || defined (__stub___krb_recvauth)
35205 char (*f) () = krb_recvauth;
35214 return f != krb_recvauth;
35219 rm -f conftest.$ac_objext conftest$ac_exeext
35220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35221 (eval $ac_link) 2>conftest.er1
35223 grep -v '^ *+' conftest.er1 >conftest.err
35225 cat conftest.err >&5
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227 (exit $ac_status); } &&
35228 { ac_try='test -z "$ac_c_werror_flag"
35229 || test ! -s conftest.err'
35230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231 (eval $ac_try) 2>&5
35233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234 (exit $ac_status); }; } &&
35235 { ac_try='test -s conftest$ac_exeext'
35236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35237 (eval $ac_try) 2>&5
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); }; }; then
35241 ac_cv_func_krb_recvauth=yes
35243 echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35246 ac_cv_func_krb_recvauth=no
35248 rm -f conftest.err conftest.$ac_objext \
35249 conftest$ac_exeext conftest.$ac_ext
35251 echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
35252 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6
35253 if test $ac_cv_func_krb_recvauth = yes; then
35254 krb_lib=yes krb_libdir=
35258 if test -n "$krb_lib"; then
35260 cat >>confdefs.h <<\_ACEOF
35261 #define HAVE_KERBEROS 1
35264 cvs_client_objects="$cvs_client_objects kerberos4-client.o"
35265 test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
35266 # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
35267 # -ldes in the command line. Don't do it permanently so that we honor
35268 # the user's setting for LDFLAGS
35269 hold_ldflags=$LDFLAGS
35270 test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
35271 echo "$as_me:$LINENO: checking for printf in -ldes" >&5
35272 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
35273 if test "${ac_cv_lib_des_printf+set}" = set; then
35274 echo $ECHO_N "(cached) $ECHO_C" >&6
35276 ac_check_lib_save_LIBS=$LIBS
35278 cat >conftest.$ac_ext <<_ACEOF
35281 cat confdefs.h >>conftest.$ac_ext
35282 cat >>conftest.$ac_ext <<_ACEOF
35283 /* end confdefs.h. */
35285 /* Override any gcc2 internal prototype to avoid an error. */
35289 /* We use char because int might match the return type of a gcc2
35290 builtin and then its argument prototype would still apply. */
35300 rm -f conftest.$ac_objext conftest$ac_exeext
35301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35302 (eval $ac_link) 2>conftest.er1
35304 grep -v '^ *+' conftest.er1 >conftest.err
35306 cat conftest.err >&5
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); } &&
35309 { ac_try='test -z "$ac_c_werror_flag"
35310 || test ! -s conftest.err'
35311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312 (eval $ac_try) 2>&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; } &&
35316 { ac_try='test -s conftest$ac_exeext'
35317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318 (eval $ac_try) 2>&5
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; }; then
35322 ac_cv_lib_des_printf=yes
35324 echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35327 ac_cv_lib_des_printf=no
35329 rm -f conftest.err conftest.$ac_objext \
35330 conftest$ac_exeext conftest.$ac_ext
35331 LIBS=$ac_check_lib_save_LIBS
35333 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
35334 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
35335 if test $ac_cv_lib_des_printf = yes; then
35336 LIBS="${LIBS} -ldes"
35340 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
35341 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6
35342 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
35343 echo $ECHO_N "(cached) $ECHO_C" >&6
35345 ac_check_lib_save_LIBS=$LIBS
35347 cat >conftest.$ac_ext <<_ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h. */
35354 /* Override any gcc2 internal prototype to avoid an error. */
35358 /* We use char because int might match the return type of a gcc2
35359 builtin and then its argument prototype would still apply. */
35360 char krb_recvauth ();
35369 rm -f conftest.$ac_objext conftest$ac_exeext
35370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35371 (eval $ac_link) 2>conftest.er1
35373 grep -v '^ *+' conftest.er1 >conftest.err
35375 cat conftest.err >&5
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); } &&
35378 { ac_try='test -z "$ac_c_werror_flag"
35379 || test ! -s conftest.err'
35380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35381 (eval $ac_try) 2>&5
35383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384 (exit $ac_status); }; } &&
35385 { ac_try='test -s conftest$ac_exeext'
35386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387 (eval $ac_try) 2>&5
35389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390 (exit $ac_status); }; }; then
35391 ac_cv_lib_krb_krb_recvauth=yes
35393 echo "$as_me: failed program was:" >&5
35394 sed 's/^/| /' conftest.$ac_ext >&5
35396 ac_cv_lib_krb_krb_recvauth=no
35398 rm -f conftest.err conftest.$ac_objext \
35399 conftest$ac_exeext conftest.$ac_ext
35400 LIBS=$ac_check_lib_save_LIBS
35402 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
35403 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6
35404 if test $ac_cv_lib_krb_krb_recvauth = yes; then
35405 cat >>confdefs.h <<_ACEOF
35406 #define HAVE_LIBKRB 1
35414 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
35415 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6
35416 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
35417 echo $ECHO_N "(cached) $ECHO_C" >&6
35419 ac_check_lib_save_LIBS=$LIBS
35420 LIBS="-lkrb4 $LIBS"
35421 cat >conftest.$ac_ext <<_ACEOF
35424 cat confdefs.h >>conftest.$ac_ext
35425 cat >>conftest.$ac_ext <<_ACEOF
35426 /* end confdefs.h. */
35428 /* Override any gcc2 internal prototype to avoid an error. */
35432 /* We use char because int might match the return type of a gcc2
35433 builtin and then its argument prototype would still apply. */
35434 char krb_recvauth ();
35443 rm -f conftest.$ac_objext conftest$ac_exeext
35444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35445 (eval $ac_link) 2>conftest.er1
35447 grep -v '^ *+' conftest.er1 >conftest.err
35449 cat conftest.err >&5
35450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451 (exit $ac_status); } &&
35452 { ac_try='test -z "$ac_c_werror_flag"
35453 || test ! -s conftest.err'
35454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35455 (eval $ac_try) 2>&5
35457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35458 (exit $ac_status); }; } &&
35459 { ac_try='test -s conftest$ac_exeext'
35460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35461 (eval $ac_try) 2>&5
35463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464 (exit $ac_status); }; }; then
35465 ac_cv_lib_krb4_krb_recvauth=yes
35467 echo "$as_me: failed program was:" >&5
35468 sed 's/^/| /' conftest.$ac_ext >&5
35470 ac_cv_lib_krb4_krb_recvauth=no
35472 rm -f conftest.err conftest.$ac_objext \
35473 conftest$ac_exeext conftest.$ac_ext
35474 LIBS=$ac_check_lib_save_LIBS
35476 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
35477 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6
35478 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
35479 cat >>confdefs.h <<_ACEOF
35480 #define HAVE_LIBKRB4 1
35483 LIBS="-lkrb4 $LIBS"
35487 LDFLAGS=$hold_ldflags
35488 if test -n "$krb_incdir"; then
35489 CPPFLAGS="$CPPFLAGS -I$krb_incdir"
35494 for ac_func in krb_get_err_text
35496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35497 echo "$as_me:$LINENO: checking for $ac_func" >&5
35498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35499 if eval "test \"\${$as_ac_var+set}\" = set"; then
35500 echo $ECHO_N "(cached) $ECHO_C" >&6
35502 cat >conftest.$ac_ext <<_ACEOF
35505 cat confdefs.h >>conftest.$ac_ext
35506 cat >>conftest.$ac_ext <<_ACEOF
35507 /* end confdefs.h. */
35508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35510 #define $ac_func innocuous_$ac_func
35512 /* System header to define __stub macros and hopefully few prototypes,
35513 which can conflict with char $ac_func (); below.
35514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35515 <limits.h> exists even on freestanding compilers. */
35518 # include <limits.h>
35520 # include <assert.h>
35525 /* Override any gcc2 internal prototype to avoid an error. */
35530 /* We use char because int might match the return type of a gcc2
35531 builtin and then its argument prototype would still apply. */
35533 /* The GNU C library defines this for functions which it implements
35534 to always fail with ENOSYS. Some functions are actually named
35535 something starting with __ and the normal name is an alias. */
35536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35539 char (*f) () = $ac_func;
35548 return f != $ac_func;
35553 rm -f conftest.$ac_objext conftest$ac_exeext
35554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35555 (eval $ac_link) 2>conftest.er1
35557 grep -v '^ *+' conftest.er1 >conftest.err
35559 cat conftest.err >&5
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); } &&
35562 { ac_try='test -z "$ac_c_werror_flag"
35563 || test ! -s conftest.err'
35564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565 (eval $ac_try) 2>&5
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); }; } &&
35569 { ac_try='test -s conftest$ac_exeext'
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; }; then
35575 eval "$as_ac_var=yes"
35577 echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35580 eval "$as_ac_var=no"
35582 rm -f conftest.err conftest.$ac_objext \
35583 conftest$ac_exeext conftest.$ac_ext
35585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35587 if test `eval echo '${'$as_ac_var'}'` = yes; then
35588 cat >>confdefs.h <<_ACEOF
35589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35599 # Use --with-gssapi[=DIR] to enable GSSAPI support.
35601 # defaults to enabled with DIR in default list below
35603 # Search for /SUNHEA/ and read the comments about this default below.
35606 # Check whether --with-gssapi or --without-gssapi was given.
35607 if test "${with_gssapi+set}" = set; then
35608 withval="$with_gssapi"
35614 # Try to locate a GSSAPI installation if no location was specified, assuming
35615 # GSSAPI was enabled (the default).
35617 if test -n "$acx_gssapi_cv_gssapi"; then
35618 # Granted, this is a slightly ugly way to print this info, but the
35619 # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
35620 # AC_CACHE_CHECK worse
35621 echo "$as_me:$LINENO: checking for GSSAPI" >&5
35622 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
35624 if test "${acx_gssapi_cv_gssapi+set}" = set; then
35625 echo $ECHO_N "(cached) $ECHO_C" >&6
35628 if test x$with_gssapi = xyes; then
35629 # --with but no location specified
35630 # assume a gssapi.h or gssapi/gssapi.h locates our install.
35632 # This isn't always strictly true. For instance Solaris 7's SUNHEA (header)
35633 # package installs gssapi.h whether or not the necessary libraries are
35634 # installed. I'm still not sure whether to consider this a bug. The long
35635 # way around is to not consider GSSPAI installed unless gss_import_name is
35636 # found, but that brings up a lot of other hassles, like continuing to let
35637 # gcc & ld generate the error messages when the user uses --with-gssapi=dir
35638 # as a debugging aid. The short way around is to disable GSSAPI by default,
35639 # but I think Sun users have been faced with this for awhile and I haven't
35640 # heard many complaints.
35641 acx_gssapi_save_CPPFLAGS=$CPPFLAGS
35642 for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
35643 if test x$acx_gssapi_cv_gssapi = xno; then
35646 if test x$acx_gssapi_cv_gssapi = xyes; then
35647 echo "$as_me:$LINENO: checking for GSSAPI" >&5
35648 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
35649 echo "$as_me:$LINENO: result: " >&5
35650 echo "${ECHO_T}" >&6
35652 CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
35653 echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
35654 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
35655 echo "$as_me:$LINENO: result: " >&5
35656 echo "${ECHO_T}" >&6
35658 unset ac_cv_header_gssapi_h
35659 unset ac_cv_header_gssapi_gssapi_h
35660 unset ac_cv_header_krb5_h
35664 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
35666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35668 echo "$as_me:$LINENO: checking for $ac_header" >&5
35669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35671 echo $ECHO_N "(cached) $ECHO_C" >&6
35673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35676 # Is the header compilable?
35677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35679 cat >conftest.$ac_ext <<_ACEOF
35682 cat confdefs.h >>conftest.$ac_ext
35683 cat >>conftest.$ac_ext <<_ACEOF
35684 /* end confdefs.h. */
35685 $ac_includes_default
35686 #include <$ac_header>
35688 rm -f conftest.$ac_objext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35690 (eval $ac_compile) 2>conftest.er1
35692 grep -v '^ *+' conftest.er1 >conftest.err
35694 cat conftest.err >&5
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); } &&
35697 { ac_try='test -z "$ac_c_werror_flag"
35698 || test ! -s conftest.err'
35699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700 (eval $ac_try) 2>&5
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); }; } &&
35704 { ac_try='test -s conftest.$ac_objext'
35705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706 (eval $ac_try) 2>&5
35708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); }; }; then
35710 ac_header_compiler=yes
35712 echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35715 ac_header_compiler=no
35717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35719 echo "${ECHO_T}$ac_header_compiler" >&6
35721 # Is the header present?
35722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35724 cat >conftest.$ac_ext <<_ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h. */
35730 #include <$ac_header>
35732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35735 grep -v '^ *+' conftest.er1 >conftest.err
35737 cat conftest.err >&5
35738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739 (exit $ac_status); } >/dev/null; then
35740 if test -s conftest.err; then
35741 ac_cpp_err=$ac_c_preproc_warn_flag
35742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35749 if test -z "$ac_cpp_err"; then
35750 ac_header_preproc=yes
35752 echo "$as_me: failed program was:" >&5
35753 sed 's/^/| /' conftest.$ac_ext >&5
35755 ac_header_preproc=no
35757 rm -f conftest.err conftest.$ac_ext
35758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35759 echo "${ECHO_T}$ac_header_preproc" >&6
35761 # So? What about this header?
35762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35768 ac_header_preproc=yes
35771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35785 ## ------------------------------ ##
35786 ## Report this to bug-cvs@gnu.org ##
35787 ## ------------------------------ ##
35790 sed "s/^/$as_me: WARNING: /" >&2
35793 echo "$as_me:$LINENO: checking for $ac_header" >&5
35794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35796 echo $ECHO_N "(cached) $ECHO_C" >&6
35798 eval "$as_ac_Header=\$ac_header_preproc"
35800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35805 cat >>confdefs.h <<_ACEOF
35806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35813 if (test "$ac_cv_header_gssapi_h" = yes ||
35814 test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
35815 test "$ac_cv_header_krb5_h" = yes; then
35819 CPPFLAGS=$acx_gssapi_save_CPPFLAGS
35821 acx_gssapi_cv_gssapi=$with_gssapi
35823 echo "$as_me:$LINENO: checking for GSSAPI" >&5
35824 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
35827 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
35828 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
35831 # Set up GSSAPI includes for later use. We don't bother to check for
35832 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
35834 if test x$acx_gssapi_cv_gssapi = xyes; then
35835 # no special includes necessary
35838 # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
35839 GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
35843 # Get the rest of the information CVS needs to compile with GSSAPI support
35845 if test x$acx_gssapi_cv_gssapi != xno; then
35846 # define HAVE_GSSAPI and set up the includes
35848 cat >>confdefs.h <<\_ACEOF
35849 #define HAVE_GSSAPI
35852 CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
35854 cvs_client_objects="$cvs_client_objects gssapi-client.o"
35856 # locate any other headers
35861 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
35863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35865 echo "$as_me:$LINENO: checking for $ac_header" >&5
35866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35868 echo $ECHO_N "(cached) $ECHO_C" >&6
35870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35873 # Is the header compilable?
35874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35876 cat >conftest.$ac_ext <<_ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h. */
35882 $ac_includes_default
35883 #include <$ac_header>
35885 rm -f conftest.$ac_objext
35886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35887 (eval $ac_compile) 2>conftest.er1
35889 grep -v '^ *+' conftest.er1 >conftest.err
35891 cat conftest.err >&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } &&
35894 { ac_try='test -z "$ac_c_werror_flag"
35895 || test ! -s conftest.err'
35896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35897 (eval $ac_try) 2>&5
35899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900 (exit $ac_status); }; } &&
35901 { ac_try='test -s conftest.$ac_objext'
35902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35903 (eval $ac_try) 2>&5
35905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906 (exit $ac_status); }; }; then
35907 ac_header_compiler=yes
35909 echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35912 ac_header_compiler=no
35914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35916 echo "${ECHO_T}$ac_header_compiler" >&6
35918 # Is the header present?
35919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35921 cat >conftest.$ac_ext <<_ACEOF
35924 cat confdefs.h >>conftest.$ac_ext
35925 cat >>conftest.$ac_ext <<_ACEOF
35926 /* end confdefs.h. */
35927 #include <$ac_header>
35929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35932 grep -v '^ *+' conftest.er1 >conftest.err
35934 cat conftest.err >&5
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); } >/dev/null; then
35937 if test -s conftest.err; then
35938 ac_cpp_err=$ac_c_preproc_warn_flag
35939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35946 if test -z "$ac_cpp_err"; then
35947 ac_header_preproc=yes
35949 echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35952 ac_header_preproc=no
35954 rm -f conftest.err conftest.$ac_ext
35955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35956 echo "${ECHO_T}$ac_header_preproc" >&6
35958 # So? What about this header?
35959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35965 ac_header_preproc=yes
35968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35982 ## ------------------------------ ##
35983 ## Report this to bug-cvs@gnu.org ##
35984 ## ------------------------------ ##
35987 sed "s/^/$as_me: WARNING: /" >&2
35990 echo "$as_me:$LINENO: checking for $ac_header" >&5
35991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35993 echo $ECHO_N "(cached) $ECHO_C" >&6
35995 eval "$as_ac_Header=\$ac_header_preproc"
35997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36002 cat >>confdefs.h <<_ACEOF
36003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36010 # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
36011 echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
36012 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
36013 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
36014 echo $ECHO_N "(cached) $ECHO_C" >&6
36017 acx_gssapi_cv_gss_c_nt_hostbased_service=no
36018 if test "$ac_cv_header_gssapi_h" = "yes"; then
36019 cat >conftest.$ac_ext <<_ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h. */
36025 #include <gssapi.h>
36028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36029 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
36030 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
36033 cat >conftest.$ac_ext <<_ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h. */
36039 #include <gssapi.h>
36042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36043 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
36044 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
36053 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
36054 test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
36055 cat >conftest.$ac_ext <<_ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h. */
36061 #include <gssapi/gssapi.h>
36064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36065 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
36066 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
36069 cat >conftest.$ac_ext <<_ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h. */
36075 #include <gssapi/gssapi.h>
36078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36079 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
36080 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
36089 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
36090 test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
36091 cat >conftest.$ac_ext <<_ACEOF
36094 cat confdefs.h >>conftest.$ac_ext
36095 cat >>conftest.$ac_ext <<_ACEOF
36096 /* end confdefs.h. */
36097 #include <gssapi/gssapi_generic.h>
36100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36101 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
36102 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
36105 cat >conftest.$ac_ext <<_ACEOF
36108 cat confdefs.h >>conftest.$ac_ext
36109 cat >>conftest.$ac_ext <<_ACEOF
36110 /* end confdefs.h. */
36111 #include <gssapi/gssapi_generic.h>
36114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36115 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
36116 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
36127 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
36128 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
36129 if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
36130 test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
36131 # don't define for yes since that means it already means something and
36132 # don't define for no since we'd rather the compiler catch the error
36133 # It's debatable whether we'd prefer that the compiler catch the error
36134 # - it seems our estranged developer is more likely to be familiar with
36135 # the intricacies of the compiler than with those of autoconf, but by
36136 # the same token, maybe we'd rather alert them to the fact that most
36137 # of the support they need to fix the problem is installed if they can
36138 # simply locate the appropriate symbol.
36140 cat >>confdefs.h <<_ACEOF
36141 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
36146 # Expect the libs to be installed parallel to the headers
36148 # We could try once with and once without, but I'm not sure it's worth the
36150 if test x$acx_gssapi_cv_gssapi != xyes; then
36151 if test -z "$LIBS"; then
36152 LIBS="-L$acx_gssapi_cv_gssapi/lib"
36154 LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
36159 # Some of the order below is particular due to library dependencies
36163 # des Heimdal K 0.3d, but Heimdal seems to be set up such
36164 # that it could have been installed from elsewhere.
36166 echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
36167 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
36168 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
36169 echo $ECHO_N "(cached) $ECHO_C" >&6
36171 ac_func_search_save_LIBS=$LIBS
36172 ac_cv_search_des_set_odd_parity=no
36173 cat >conftest.$ac_ext <<_ACEOF
36176 cat confdefs.h >>conftest.$ac_ext
36177 cat >>conftest.$ac_ext <<_ACEOF
36178 /* end confdefs.h. */
36180 /* Override any gcc2 internal prototype to avoid an error. */
36184 /* We use char because int might match the return type of a gcc2
36185 builtin and then its argument prototype would still apply. */
36186 char des_set_odd_parity ();
36190 des_set_odd_parity ();
36195 rm -f conftest.$ac_objext conftest$ac_exeext
36196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36197 (eval $ac_link) 2>conftest.er1
36199 grep -v '^ *+' conftest.er1 >conftest.err
36201 cat conftest.err >&5
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); } &&
36204 { ac_try='test -z "$ac_c_werror_flag"
36205 || test ! -s conftest.err'
36206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36207 (eval $ac_try) 2>&5
36209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); }; } &&
36211 { ac_try='test -s conftest$ac_exeext'
36212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36213 (eval $ac_try) 2>&5
36215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36216 (exit $ac_status); }; }; then
36217 ac_cv_search_des_set_odd_parity="none required"
36219 echo "$as_me: failed program was:" >&5
36220 sed 's/^/| /' conftest.$ac_ext >&5
36223 rm -f conftest.err conftest.$ac_objext \
36224 conftest$ac_exeext conftest.$ac_ext
36225 if test "$ac_cv_search_des_set_odd_parity" = no; then
36226 for ac_lib in des; do
36227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36228 cat >conftest.$ac_ext <<_ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h. */
36235 /* Override any gcc2 internal prototype to avoid an error. */
36239 /* We use char because int might match the return type of a gcc2
36240 builtin and then its argument prototype would still apply. */
36241 char des_set_odd_parity ();
36245 des_set_odd_parity ();
36250 rm -f conftest.$ac_objext conftest$ac_exeext
36251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36252 (eval $ac_link) 2>conftest.er1
36254 grep -v '^ *+' conftest.er1 >conftest.err
36256 cat conftest.err >&5
36257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); } &&
36259 { ac_try='test -z "$ac_c_werror_flag"
36260 || test ! -s conftest.err'
36261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262 (eval $ac_try) 2>&5
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); }; } &&
36266 { ac_try='test -s conftest$ac_exeext'
36267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268 (eval $ac_try) 2>&5
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 (exit $ac_status); }; }; then
36272 ac_cv_search_des_set_odd_parity="-l$ac_lib"
36275 echo "$as_me: failed program was:" >&5
36276 sed 's/^/| /' conftest.$ac_ext >&5
36279 rm -f conftest.err conftest.$ac_objext \
36280 conftest$ac_exeext conftest.$ac_ext
36283 LIBS=$ac_func_search_save_LIBS
36285 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
36286 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
36287 if test "$ac_cv_search_des_set_odd_parity" != no; then
36288 test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
36294 # com_err Heimdal K 0.3d
36296 # com_err MIT K5 v1.2.2-beta1
36298 echo "$as_me:$LINENO: checking for library containing com_err" >&5
36299 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
36300 if test "${ac_cv_search_com_err+set}" = set; then
36301 echo $ECHO_N "(cached) $ECHO_C" >&6
36303 ac_func_search_save_LIBS=$LIBS
36304 ac_cv_search_com_err=no
36305 cat >conftest.$ac_ext <<_ACEOF
36308 cat confdefs.h >>conftest.$ac_ext
36309 cat >>conftest.$ac_ext <<_ACEOF
36310 /* end confdefs.h. */
36312 /* Override any gcc2 internal prototype to avoid an error. */
36316 /* We use char because int might match the return type of a gcc2
36317 builtin and then its argument prototype would still apply. */
36327 rm -f conftest.$ac_objext conftest$ac_exeext
36328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36329 (eval $ac_link) 2>conftest.er1
36331 grep -v '^ *+' conftest.er1 >conftest.err
36333 cat conftest.err >&5
36334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335 (exit $ac_status); } &&
36336 { ac_try='test -z "$ac_c_werror_flag"
36337 || test ! -s conftest.err'
36338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36339 (eval $ac_try) 2>&5
36341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342 (exit $ac_status); }; } &&
36343 { ac_try='test -s conftest$ac_exeext'
36344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345 (eval $ac_try) 2>&5
36347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348 (exit $ac_status); }; }; then
36349 ac_cv_search_com_err="none required"
36351 echo "$as_me: failed program was:" >&5
36352 sed 's/^/| /' conftest.$ac_ext >&5
36355 rm -f conftest.err conftest.$ac_objext \
36356 conftest$ac_exeext conftest.$ac_ext
36357 if test "$ac_cv_search_com_err" = no; then
36358 for ac_lib in com_err; do
36359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36360 cat >conftest.$ac_ext <<_ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h. */
36367 /* Override any gcc2 internal prototype to avoid an error. */
36371 /* We use char because int might match the return type of a gcc2
36372 builtin and then its argument prototype would still apply. */
36382 rm -f conftest.$ac_objext conftest$ac_exeext
36383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36384 (eval $ac_link) 2>conftest.er1
36386 grep -v '^ *+' conftest.er1 >conftest.err
36388 cat conftest.err >&5
36389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390 (exit $ac_status); } &&
36391 { ac_try='test -z "$ac_c_werror_flag"
36392 || test ! -s conftest.err'
36393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36394 (eval $ac_try) 2>&5
36396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397 (exit $ac_status); }; } &&
36398 { ac_try='test -s conftest$ac_exeext'
36399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36400 (eval $ac_try) 2>&5
36402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36403 (exit $ac_status); }; }; then
36404 ac_cv_search_com_err="-l$ac_lib"
36407 echo "$as_me: failed program was:" >&5
36408 sed 's/^/| /' conftest.$ac_ext >&5
36411 rm -f conftest.err conftest.$ac_objext \
36412 conftest$ac_exeext conftest.$ac_ext
36415 LIBS=$ac_func_search_save_LIBS
36417 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
36418 echo "${ECHO_T}$ac_cv_search_com_err" >&6
36419 if test "$ac_cv_search_com_err" != no; then
36420 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
36426 # asn1 Heimdal K 0.3d -lcom_err
36428 echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
36429 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
36430 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
36431 echo $ECHO_N "(cached) $ECHO_C" >&6
36433 ac_func_search_save_LIBS=$LIBS
36434 ac_cv_search_initialize_asn1_error_table_r=no
36435 cat >conftest.$ac_ext <<_ACEOF
36438 cat confdefs.h >>conftest.$ac_ext
36439 cat >>conftest.$ac_ext <<_ACEOF
36440 /* end confdefs.h. */
36442 /* Override any gcc2 internal prototype to avoid an error. */
36446 /* We use char because int might match the return type of a gcc2
36447 builtin and then its argument prototype would still apply. */
36448 char initialize_asn1_error_table_r ();
36452 initialize_asn1_error_table_r ();
36457 rm -f conftest.$ac_objext conftest$ac_exeext
36458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36459 (eval $ac_link) 2>conftest.er1
36461 grep -v '^ *+' conftest.er1 >conftest.err
36463 cat conftest.err >&5
36464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465 (exit $ac_status); } &&
36466 { ac_try='test -z "$ac_c_werror_flag"
36467 || test ! -s conftest.err'
36468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36469 (eval $ac_try) 2>&5
36471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472 (exit $ac_status); }; } &&
36473 { ac_try='test -s conftest$ac_exeext'
36474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475 (eval $ac_try) 2>&5
36477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478 (exit $ac_status); }; }; then
36479 ac_cv_search_initialize_asn1_error_table_r="none required"
36481 echo "$as_me: failed program was:" >&5
36482 sed 's/^/| /' conftest.$ac_ext >&5
36485 rm -f conftest.err conftest.$ac_objext \
36486 conftest$ac_exeext conftest.$ac_ext
36487 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
36488 for ac_lib in asn1; do
36489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36490 cat >conftest.$ac_ext <<_ACEOF
36493 cat confdefs.h >>conftest.$ac_ext
36494 cat >>conftest.$ac_ext <<_ACEOF
36495 /* end confdefs.h. */
36497 /* Override any gcc2 internal prototype to avoid an error. */
36501 /* We use char because int might match the return type of a gcc2
36502 builtin and then its argument prototype would still apply. */
36503 char initialize_asn1_error_table_r ();
36507 initialize_asn1_error_table_r ();
36512 rm -f conftest.$ac_objext conftest$ac_exeext
36513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36514 (eval $ac_link) 2>conftest.er1
36516 grep -v '^ *+' conftest.er1 >conftest.err
36518 cat conftest.err >&5
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); } &&
36521 { ac_try='test -z "$ac_c_werror_flag"
36522 || test ! -s conftest.err'
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; } &&
36528 { ac_try='test -s conftest$ac_exeext'
36529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36530 (eval $ac_try) 2>&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); }; }; then
36534 ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
36537 echo "$as_me: failed program was:" >&5
36538 sed 's/^/| /' conftest.$ac_ext >&5
36541 rm -f conftest.err conftest.$ac_objext \
36542 conftest$ac_exeext conftest.$ac_ext
36545 LIBS=$ac_func_search_save_LIBS
36547 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
36548 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
36549 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
36550 test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
36556 # resolv required, but not installed by Heimdal K 0.3d
36558 # resolv MIT K5 1.2.2-beta1
36561 echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
36562 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
36563 if test "${ac_cv_search___dn_expand+set}" = set; then
36564 echo $ECHO_N "(cached) $ECHO_C" >&6
36566 ac_func_search_save_LIBS=$LIBS
36567 ac_cv_search___dn_expand=no
36568 cat >conftest.$ac_ext <<_ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h. */
36575 /* Override any gcc2 internal prototype to avoid an error. */
36579 /* We use char because int might match the return type of a gcc2
36580 builtin and then its argument prototype would still apply. */
36581 char __dn_expand ();
36590 rm -f conftest.$ac_objext conftest$ac_exeext
36591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36592 (eval $ac_link) 2>conftest.er1
36594 grep -v '^ *+' conftest.er1 >conftest.err
36596 cat conftest.err >&5
36597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598 (exit $ac_status); } &&
36599 { ac_try='test -z "$ac_c_werror_flag"
36600 || test ! -s conftest.err'
36601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602 (eval $ac_try) 2>&5
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); }; } &&
36606 { ac_try='test -s conftest$ac_exeext'
36607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36608 (eval $ac_try) 2>&5
36610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611 (exit $ac_status); }; }; then
36612 ac_cv_search___dn_expand="none required"
36614 echo "$as_me: failed program was:" >&5
36615 sed 's/^/| /' conftest.$ac_ext >&5
36618 rm -f conftest.err conftest.$ac_objext \
36619 conftest$ac_exeext conftest.$ac_ext
36620 if test "$ac_cv_search___dn_expand" = no; then
36621 for ac_lib in resolv; do
36622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36623 cat >conftest.$ac_ext <<_ACEOF
36626 cat confdefs.h >>conftest.$ac_ext
36627 cat >>conftest.$ac_ext <<_ACEOF
36628 /* end confdefs.h. */
36630 /* Override any gcc2 internal prototype to avoid an error. */
36634 /* We use char because int might match the return type of a gcc2
36635 builtin and then its argument prototype would still apply. */
36636 char __dn_expand ();
36645 rm -f conftest.$ac_objext conftest$ac_exeext
36646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36647 (eval $ac_link) 2>conftest.er1
36649 grep -v '^ *+' conftest.er1 >conftest.err
36651 cat conftest.err >&5
36652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36653 (exit $ac_status); } &&
36654 { ac_try='test -z "$ac_c_werror_flag"
36655 || test ! -s conftest.err'
36656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36657 (eval $ac_try) 2>&5
36659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 (exit $ac_status); }; } &&
36661 { ac_try='test -s conftest$ac_exeext'
36662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36663 (eval $ac_try) 2>&5
36665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36666 (exit $ac_status); }; }; then
36667 ac_cv_search___dn_expand="-l$ac_lib"
36670 echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36674 rm -f conftest.err conftest.$ac_objext \
36675 conftest$ac_exeext conftest.$ac_ext
36678 LIBS=$ac_func_search_save_LIBS
36680 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
36681 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
36682 if test "$ac_cv_search___dn_expand" != no; then
36683 test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
36689 # crypt Needed by roken under FreeBSD 4.6.
36691 echo "$as_me:$LINENO: checking for library containing crypt" >&5
36692 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
36693 if test "${ac_cv_search_crypt+set}" = set; then
36694 echo $ECHO_N "(cached) $ECHO_C" >&6
36696 ac_func_search_save_LIBS=$LIBS
36697 ac_cv_search_crypt=no
36698 cat >conftest.$ac_ext <<_ACEOF
36701 cat confdefs.h >>conftest.$ac_ext
36702 cat >>conftest.$ac_ext <<_ACEOF
36703 /* end confdefs.h. */
36705 /* Override any gcc2 internal prototype to avoid an error. */
36709 /* We use char because int might match the return type of a gcc2
36710 builtin and then its argument prototype would still apply. */
36720 rm -f conftest.$ac_objext conftest$ac_exeext
36721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36722 (eval $ac_link) 2>conftest.er1
36724 grep -v '^ *+' conftest.er1 >conftest.err
36726 cat conftest.err >&5
36727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728 (exit $ac_status); } &&
36729 { ac_try='test -z "$ac_c_werror_flag"
36730 || test ! -s conftest.err'
36731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732 (eval $ac_try) 2>&5
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); }; } &&
36736 { ac_try='test -s conftest$ac_exeext'
36737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36738 (eval $ac_try) 2>&5
36740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741 (exit $ac_status); }; }; then
36742 ac_cv_search_crypt="none required"
36744 echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36748 rm -f conftest.err conftest.$ac_objext \
36749 conftest$ac_exeext conftest.$ac_ext
36750 if test "$ac_cv_search_crypt" = no; then
36751 for ac_lib in crypt; do
36752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36753 cat >conftest.$ac_ext <<_ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h. */
36760 /* Override any gcc2 internal prototype to avoid an error. */
36764 /* We use char because int might match the return type of a gcc2
36765 builtin and then its argument prototype would still apply. */
36775 rm -f conftest.$ac_objext conftest$ac_exeext
36776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36777 (eval $ac_link) 2>conftest.er1
36779 grep -v '^ *+' conftest.er1 >conftest.err
36781 cat conftest.err >&5
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); } &&
36784 { ac_try='test -z "$ac_c_werror_flag"
36785 || test ! -s conftest.err'
36786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36787 (eval $ac_try) 2>&5
36789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36790 (exit $ac_status); }; } &&
36791 { ac_try='test -s conftest$ac_exeext'
36792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793 (eval $ac_try) 2>&5
36795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; }; then
36797 ac_cv_search_crypt="-l$ac_lib"
36800 echo "$as_me: failed program was:" >&5
36801 sed 's/^/| /' conftest.$ac_ext >&5
36804 rm -f conftest.err conftest.$ac_objext \
36805 conftest$ac_exeext conftest.$ac_ext
36808 LIBS=$ac_func_search_save_LIBS
36810 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
36811 echo "${ECHO_T}$ac_cv_search_crypt" >&6
36812 if test "$ac_cv_search_crypt" != no; then
36813 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
36819 # roken Heimdal K 0.3d -lresolv
36820 # roken FreeBSD 4.6 -lcrypt
36822 echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
36823 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
36824 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
36825 echo $ECHO_N "(cached) $ECHO_C" >&6
36827 ac_func_search_save_LIBS=$LIBS
36828 ac_cv_search_roken_gethostbyaddr=no
36829 cat >conftest.$ac_ext <<_ACEOF
36832 cat confdefs.h >>conftest.$ac_ext
36833 cat >>conftest.$ac_ext <<_ACEOF
36834 /* end confdefs.h. */
36836 /* Override any gcc2 internal prototype to avoid an error. */
36840 /* We use char because int might match the return type of a gcc2
36841 builtin and then its argument prototype would still apply. */
36842 char roken_gethostbyaddr ();
36846 roken_gethostbyaddr ();
36851 rm -f conftest.$ac_objext conftest$ac_exeext
36852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36853 (eval $ac_link) 2>conftest.er1
36855 grep -v '^ *+' conftest.er1 >conftest.err
36857 cat conftest.err >&5
36858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 (exit $ac_status); } &&
36860 { ac_try='test -z "$ac_c_werror_flag"
36861 || test ! -s conftest.err'
36862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36863 (eval $ac_try) 2>&5
36865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866 (exit $ac_status); }; } &&
36867 { ac_try='test -s conftest$ac_exeext'
36868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36869 (eval $ac_try) 2>&5
36871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872 (exit $ac_status); }; }; then
36873 ac_cv_search_roken_gethostbyaddr="none required"
36875 echo "$as_me: failed program was:" >&5
36876 sed 's/^/| /' conftest.$ac_ext >&5
36879 rm -f conftest.err conftest.$ac_objext \
36880 conftest$ac_exeext conftest.$ac_ext
36881 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
36882 for ac_lib in roken; do
36883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36884 cat >conftest.$ac_ext <<_ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h. */
36891 /* Override any gcc2 internal prototype to avoid an error. */
36895 /* We use char because int might match the return type of a gcc2
36896 builtin and then its argument prototype would still apply. */
36897 char roken_gethostbyaddr ();
36901 roken_gethostbyaddr ();
36906 rm -f conftest.$ac_objext conftest$ac_exeext
36907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36908 (eval $ac_link) 2>conftest.er1
36910 grep -v '^ *+' conftest.er1 >conftest.err
36912 cat conftest.err >&5
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); } &&
36915 { ac_try='test -z "$ac_c_werror_flag"
36916 || test ! -s conftest.err'
36917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918 (eval $ac_try) 2>&5
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); }; } &&
36922 { ac_try='test -s conftest$ac_exeext'
36923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36924 (eval $ac_try) 2>&5
36926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927 (exit $ac_status); }; }; then
36928 ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
36931 echo "$as_me: failed program was:" >&5
36932 sed 's/^/| /' conftest.$ac_ext >&5
36935 rm -f conftest.err conftest.$ac_objext \
36936 conftest$ac_exeext conftest.$ac_ext
36939 LIBS=$ac_func_search_save_LIBS
36941 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
36942 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
36943 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
36944 test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
36950 # k5crypto MIT K5 v1.2.2-beta1
36952 echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
36953 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
36954 if test "${ac_cv_search_valid_enctype+set}" = set; then
36955 echo $ECHO_N "(cached) $ECHO_C" >&6
36957 ac_func_search_save_LIBS=$LIBS
36958 ac_cv_search_valid_enctype=no
36959 cat >conftest.$ac_ext <<_ACEOF
36962 cat confdefs.h >>conftest.$ac_ext
36963 cat >>conftest.$ac_ext <<_ACEOF
36964 /* end confdefs.h. */
36966 /* Override any gcc2 internal prototype to avoid an error. */
36970 /* We use char because int might match the return type of a gcc2
36971 builtin and then its argument prototype would still apply. */
36972 char valid_enctype ();
36981 rm -f conftest.$ac_objext conftest$ac_exeext
36982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36983 (eval $ac_link) 2>conftest.er1
36985 grep -v '^ *+' conftest.er1 >conftest.err
36987 cat conftest.err >&5
36988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989 (exit $ac_status); } &&
36990 { ac_try='test -z "$ac_c_werror_flag"
36991 || test ! -s conftest.err'
36992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993 (eval $ac_try) 2>&5
36995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996 (exit $ac_status); }; } &&
36997 { ac_try='test -s conftest$ac_exeext'
36998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36999 (eval $ac_try) 2>&5
37001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); }; }; then
37003 ac_cv_search_valid_enctype="none required"
37005 echo "$as_me: failed program was:" >&5
37006 sed 's/^/| /' conftest.$ac_ext >&5
37009 rm -f conftest.err conftest.$ac_objext \
37010 conftest$ac_exeext conftest.$ac_ext
37011 if test "$ac_cv_search_valid_enctype" = no; then
37012 for ac_lib in k5crypto; do
37013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37014 cat >conftest.$ac_ext <<_ACEOF
37017 cat confdefs.h >>conftest.$ac_ext
37018 cat >>conftest.$ac_ext <<_ACEOF
37019 /* end confdefs.h. */
37021 /* Override any gcc2 internal prototype to avoid an error. */
37025 /* We use char because int might match the return type of a gcc2
37026 builtin and then its argument prototype would still apply. */
37027 char valid_enctype ();
37036 rm -f conftest.$ac_objext conftest$ac_exeext
37037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37038 (eval $ac_link) 2>conftest.er1
37040 grep -v '^ *+' conftest.er1 >conftest.err
37042 cat conftest.err >&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); } &&
37045 { ac_try='test -z "$ac_c_werror_flag"
37046 || test ! -s conftest.err'
37047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37048 (eval $ac_try) 2>&5
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); }; } &&
37052 { ac_try='test -s conftest$ac_exeext'
37053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37054 (eval $ac_try) 2>&5
37056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); }; }; then
37058 ac_cv_search_valid_enctype="-l$ac_lib"
37061 echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37065 rm -f conftest.err conftest.$ac_objext \
37066 conftest$ac_exeext conftest.$ac_ext
37069 LIBS=$ac_func_search_save_LIBS
37071 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
37072 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
37073 if test "$ac_cv_search_valid_enctype" != no; then
37074 test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
37080 # gen ? ? ? Needed on Irix 5.3 with some
37081 # Irix 5.3 version of Kerberos. I'm not
37082 # sure which since Irix didn't
37083 # get any testing this time
37084 # around. Original comment:
37086 # This is necessary on Irix 5.3, in order to link against libkrb5 --
37087 # there, an_to_ln.o refers to things defined only in -lgen.
37089 echo "$as_me:$LINENO: checking for library containing compile" >&5
37090 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
37091 if test "${ac_cv_search_compile+set}" = set; then
37092 echo $ECHO_N "(cached) $ECHO_C" >&6
37094 ac_func_search_save_LIBS=$LIBS
37095 ac_cv_search_compile=no
37096 cat >conftest.$ac_ext <<_ACEOF
37099 cat confdefs.h >>conftest.$ac_ext
37100 cat >>conftest.$ac_ext <<_ACEOF
37101 /* end confdefs.h. */
37103 /* Override any gcc2 internal prototype to avoid an error. */
37107 /* We use char because int might match the return type of a gcc2
37108 builtin and then its argument prototype would still apply. */
37118 rm -f conftest.$ac_objext conftest$ac_exeext
37119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37120 (eval $ac_link) 2>conftest.er1
37122 grep -v '^ *+' conftest.er1 >conftest.err
37124 cat conftest.err >&5
37125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126 (exit $ac_status); } &&
37127 { ac_try='test -z "$ac_c_werror_flag"
37128 || test ! -s conftest.err'
37129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37130 (eval $ac_try) 2>&5
37132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133 (exit $ac_status); }; } &&
37134 { ac_try='test -s conftest$ac_exeext'
37135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37136 (eval $ac_try) 2>&5
37138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37139 (exit $ac_status); }; }; then
37140 ac_cv_search_compile="none required"
37142 echo "$as_me: failed program was:" >&5
37143 sed 's/^/| /' conftest.$ac_ext >&5
37146 rm -f conftest.err conftest.$ac_objext \
37147 conftest$ac_exeext conftest.$ac_ext
37148 if test "$ac_cv_search_compile" = no; then
37149 for ac_lib in gen; do
37150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37151 cat >conftest.$ac_ext <<_ACEOF
37154 cat confdefs.h >>conftest.$ac_ext
37155 cat >>conftest.$ac_ext <<_ACEOF
37156 /* end confdefs.h. */
37158 /* Override any gcc2 internal prototype to avoid an error. */
37162 /* We use char because int might match the return type of a gcc2
37163 builtin and then its argument prototype would still apply. */
37173 rm -f conftest.$ac_objext conftest$ac_exeext
37174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37175 (eval $ac_link) 2>conftest.er1
37177 grep -v '^ *+' conftest.er1 >conftest.err
37179 cat conftest.err >&5
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); } &&
37182 { ac_try='test -z "$ac_c_werror_flag"
37183 || test ! -s conftest.err'
37184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37185 (eval $ac_try) 2>&5
37187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188 (exit $ac_status); }; } &&
37189 { ac_try='test -s conftest$ac_exeext'
37190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37191 (eval $ac_try) 2>&5
37193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194 (exit $ac_status); }; }; then
37195 ac_cv_search_compile="-l$ac_lib"
37198 echo "$as_me: failed program was:" >&5
37199 sed 's/^/| /' conftest.$ac_ext >&5
37202 rm -f conftest.err conftest.$ac_objext \
37203 conftest$ac_exeext conftest.$ac_ext
37206 LIBS=$ac_func_search_save_LIBS
37208 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
37209 echo "${ECHO_T}$ac_cv_search_compile" >&6
37210 if test "$ac_cv_search_compile" != no; then
37211 test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
37217 # krb5 ? ? ? -lgen -l???
37220 # krb5 MIT K5 v1.1.1
37222 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err
37225 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err -lresolv
37227 # krb5 Heimdal K 0.3d -lasn1 -lroken -ldes
37229 echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
37230 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
37231 if test "${ac_cv_search_krb5_free_context+set}" = set; then
37232 echo $ECHO_N "(cached) $ECHO_C" >&6
37234 ac_func_search_save_LIBS=$LIBS
37235 ac_cv_search_krb5_free_context=no
37236 cat >conftest.$ac_ext <<_ACEOF
37239 cat confdefs.h >>conftest.$ac_ext
37240 cat >>conftest.$ac_ext <<_ACEOF
37241 /* end confdefs.h. */
37243 /* Override any gcc2 internal prototype to avoid an error. */
37247 /* We use char because int might match the return type of a gcc2
37248 builtin and then its argument prototype would still apply. */
37249 char krb5_free_context ();
37253 krb5_free_context ();
37258 rm -f conftest.$ac_objext conftest$ac_exeext
37259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37260 (eval $ac_link) 2>conftest.er1
37262 grep -v '^ *+' conftest.er1 >conftest.err
37264 cat conftest.err >&5
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); } &&
37267 { ac_try='test -z "$ac_c_werror_flag"
37268 || test ! -s conftest.err'
37269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37270 (eval $ac_try) 2>&5
37272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273 (exit $ac_status); }; } &&
37274 { ac_try='test -s conftest$ac_exeext'
37275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37276 (eval $ac_try) 2>&5
37278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279 (exit $ac_status); }; }; then
37280 ac_cv_search_krb5_free_context="none required"
37282 echo "$as_me: failed program was:" >&5
37283 sed 's/^/| /' conftest.$ac_ext >&5
37286 rm -f conftest.err conftest.$ac_objext \
37287 conftest$ac_exeext conftest.$ac_ext
37288 if test "$ac_cv_search_krb5_free_context" = no; then
37289 for ac_lib in krb5; do
37290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37291 cat >conftest.$ac_ext <<_ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h. */
37298 /* Override any gcc2 internal prototype to avoid an error. */
37302 /* We use char because int might match the return type of a gcc2
37303 builtin and then its argument prototype would still apply. */
37304 char krb5_free_context ();
37308 krb5_free_context ();
37313 rm -f conftest.$ac_objext conftest$ac_exeext
37314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37315 (eval $ac_link) 2>conftest.er1
37317 grep -v '^ *+' conftest.er1 >conftest.err
37319 cat conftest.err >&5
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); } &&
37322 { ac_try='test -z "$ac_c_werror_flag"
37323 || test ! -s conftest.err'
37324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325 (eval $ac_try) 2>&5
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); }; } &&
37329 { ac_try='test -s conftest$ac_exeext'
37330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37331 (eval $ac_try) 2>&5
37333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334 (exit $ac_status); }; }; then
37335 ac_cv_search_krb5_free_context="-l$ac_lib"
37338 echo "$as_me: failed program was:" >&5
37339 sed 's/^/| /' conftest.$ac_ext >&5
37342 rm -f conftest.err conftest.$ac_objext \
37343 conftest$ac_exeext conftest.$ac_ext
37346 LIBS=$ac_func_search_save_LIBS
37348 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
37349 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
37350 if test "$ac_cv_search_krb5_free_context" != no; then
37351 test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
37357 # gssapi_krb5 Only lib needed with MIT K5 v1.2.1, so find it first in
37358 # order to prefer MIT Kerberos. If both MIT & Heimdal
37359 # Kerberos are installed and in the path, this will leave
37360 # some of the libraries above in LIBS unnecessarily, but
37361 # noone would ever do that, right?
37363 # gssapi_krb5 MIT K5 v1.2.2-beta1 -lkrb5
37365 # gssapi Heimdal K 0.3d -lkrb5
37367 echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
37368 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
37369 if test "${ac_cv_search_gss_import_name+set}" = set; then
37370 echo $ECHO_N "(cached) $ECHO_C" >&6
37372 ac_func_search_save_LIBS=$LIBS
37373 ac_cv_search_gss_import_name=no
37374 cat >conftest.$ac_ext <<_ACEOF
37377 cat confdefs.h >>conftest.$ac_ext
37378 cat >>conftest.$ac_ext <<_ACEOF
37379 /* end confdefs.h. */
37381 /* Override any gcc2 internal prototype to avoid an error. */
37385 /* We use char because int might match the return type of a gcc2
37386 builtin and then its argument prototype would still apply. */
37387 char gss_import_name ();
37391 gss_import_name ();
37396 rm -f conftest.$ac_objext conftest$ac_exeext
37397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37398 (eval $ac_link) 2>conftest.er1
37400 grep -v '^ *+' conftest.er1 >conftest.err
37402 cat conftest.err >&5
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); } &&
37405 { ac_try='test -z "$ac_c_werror_flag"
37406 || test ! -s conftest.err'
37407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37408 (eval $ac_try) 2>&5
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); }; } &&
37412 { ac_try='test -s conftest$ac_exeext'
37413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414 (eval $ac_try) 2>&5
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); }; }; then
37418 ac_cv_search_gss_import_name="none required"
37420 echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37424 rm -f conftest.err conftest.$ac_objext \
37425 conftest$ac_exeext conftest.$ac_ext
37426 if test "$ac_cv_search_gss_import_name" = no; then
37427 for ac_lib in gssapi_krb5 gssapi; do
37428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37429 cat >conftest.$ac_ext <<_ACEOF
37432 cat confdefs.h >>conftest.$ac_ext
37433 cat >>conftest.$ac_ext <<_ACEOF
37434 /* end confdefs.h. */
37436 /* Override any gcc2 internal prototype to avoid an error. */
37440 /* We use char because int might match the return type of a gcc2
37441 builtin and then its argument prototype would still apply. */
37442 char gss_import_name ();
37446 gss_import_name ();
37451 rm -f conftest.$ac_objext conftest$ac_exeext
37452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37453 (eval $ac_link) 2>conftest.er1
37455 grep -v '^ *+' conftest.er1 >conftest.err
37457 cat conftest.err >&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); } &&
37460 { ac_try='test -z "$ac_c_werror_flag"
37461 || test ! -s conftest.err'
37462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463 (eval $ac_try) 2>&5
37465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466 (exit $ac_status); }; } &&
37467 { ac_try='test -s conftest$ac_exeext'
37468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37469 (eval $ac_try) 2>&5
37471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472 (exit $ac_status); }; }; then
37473 ac_cv_search_gss_import_name="-l$ac_lib"
37476 echo "$as_me: failed program was:" >&5
37477 sed 's/^/| /' conftest.$ac_ext >&5
37480 rm -f conftest.err conftest.$ac_objext \
37481 conftest$ac_exeext conftest.$ac_ext
37484 LIBS=$ac_func_search_save_LIBS
37486 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
37487 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
37488 if test "$ac_cv_search_gss_import_name" != no; then
37489 test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
37498 # Use --with-zlib to build with a zlib other than the version distributed
37501 # defaults to the included snapshot of zlib
37504 # Check whether --with-external-zlib or --without-external-zlib was given.
37505 if test "${with_external_zlib+set}" = set; then
37506 withval="$with_external_zlib"
37507 with_external_zlib=$withval
37509 with_external_zlib=no
37513 # Try to locate a ZLIB installation if no location was specified, assuming
37514 # external ZLIB was enabled.
37516 if test -n "$acx_zlib_cv_external_zlib"; then
37517 # Granted, this is a slightly ugly way to print this info, but the
37518 # AC_CHECK_HEADER used in the search for a ZLIB installation makes using
37519 # AC_CACHE_CHECK worse
37520 echo "$as_me:$LINENO: checking for external ZLIB" >&5
37521 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
37523 if test "${acx_zlib_cv_external_zlib+set}" = set; then
37524 echo $ECHO_N "(cached) $ECHO_C" >&6
37528 # --with but no location specified
37529 # assume zlib.h locates our install.
37531 acx_zlib_save_CPPFLAGS=$CPPFLAGS
37532 for acx_zlib_cv_external_zlib in yes /usr/local no; do
37533 if test x$acx_zlib_cv_external_zlib = xno; then
37536 if test x$acx_zlib_cv_external_zlib = xyes; then
37537 echo "$as_me:$LINENO: checking for external ZLIB" >&5
37538 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
37539 echo "$as_me:$LINENO: result: " >&5
37540 echo "${ECHO_T}" >&6
37542 CPPFLAGS="$acx_zlib_save_CPPFLAGS -I$acx_zlib_cv_external_zlib/include"
37543 echo "$as_me:$LINENO: checking for external ZLIB in $acx_zlib_cv_external_zlib" >&5
37544 echo $ECHO_N "checking for external ZLIB in $acx_zlib_cv_external_zlib... $ECHO_C" >&6
37545 echo "$as_me:$LINENO: result: " >&5
37546 echo "${ECHO_T}" >&6
37548 unset ac_cv_header_zlib_h
37550 for ac_header in zlib.h
37552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37554 echo "$as_me:$LINENO: checking for $ac_header" >&5
37555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37557 echo $ECHO_N "(cached) $ECHO_C" >&6
37559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37562 # Is the header compilable?
37563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37565 cat >conftest.$ac_ext <<_ACEOF
37568 cat confdefs.h >>conftest.$ac_ext
37569 cat >>conftest.$ac_ext <<_ACEOF
37570 /* end confdefs.h. */
37571 $ac_includes_default
37572 #include <$ac_header>
37574 rm -f conftest.$ac_objext
37575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37576 (eval $ac_compile) 2>conftest.er1
37578 grep -v '^ *+' conftest.er1 >conftest.err
37580 cat conftest.err >&5
37581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582 (exit $ac_status); } &&
37583 { ac_try='test -z "$ac_c_werror_flag"
37584 || test ! -s conftest.err'
37585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586 (eval $ac_try) 2>&5
37588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); }; } &&
37590 { ac_try='test -s conftest.$ac_objext'
37591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37592 (eval $ac_try) 2>&5
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); }; }; then
37596 ac_header_compiler=yes
37598 echo "$as_me: failed program was:" >&5
37599 sed 's/^/| /' conftest.$ac_ext >&5
37601 ac_header_compiler=no
37603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37605 echo "${ECHO_T}$ac_header_compiler" >&6
37607 # Is the header present?
37608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37610 cat >conftest.$ac_ext <<_ACEOF
37613 cat confdefs.h >>conftest.$ac_ext
37614 cat >>conftest.$ac_ext <<_ACEOF
37615 /* end confdefs.h. */
37616 #include <$ac_header>
37618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37621 grep -v '^ *+' conftest.er1 >conftest.err
37623 cat conftest.err >&5
37624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625 (exit $ac_status); } >/dev/null; then
37626 if test -s conftest.err; then
37627 ac_cpp_err=$ac_c_preproc_warn_flag
37628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37635 if test -z "$ac_cpp_err"; then
37636 ac_header_preproc=yes
37638 echo "$as_me: failed program was:" >&5
37639 sed 's/^/| /' conftest.$ac_ext >&5
37641 ac_header_preproc=no
37643 rm -f conftest.err conftest.$ac_ext
37644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37645 echo "${ECHO_T}$ac_header_preproc" >&6
37647 # So? What about this header?
37648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37654 ac_header_preproc=yes
37657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37671 ## ------------------------------ ##
37672 ## Report this to bug-cvs@gnu.org ##
37673 ## ------------------------------ ##
37676 sed "s/^/$as_me: WARNING: /" >&2
37679 echo "$as_me:$LINENO: checking for $ac_header" >&5
37680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37682 echo $ECHO_N "(cached) $ECHO_C" >&6
37684 eval "$as_ac_Header=\$ac_header_preproc"
37686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37691 cat >>confdefs.h <<_ACEOF
37692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37699 if test "$ac_cv_header_zlib_h" = yes; then
37703 CPPFLAGS=$acx_zlib_save_CPPFLAGS
37704 echo "$as_me:$LINENO: checking for external ZLIB" >&5
37705 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
37708 echo "$as_me:$LINENO: result: $acx_zlib_cv_external_zlib" >&5
37709 echo "${ECHO_T}$acx_zlib_cv_external_zlib" >&6
37713 # Output a pretty message naming our selected ZLIB "external" or "package"
37714 # so that any warnings printed by the version check make more sense.
37716 echo "$as_me:$LINENO: checking selected ZLIB" >&5
37717 echo $ECHO_N "checking selected ZLIB... $ECHO_C" >&6
37718 if test "x$with_external_zlib" = xno; then
37719 echo "$as_me:$LINENO: result: package" >&5
37720 echo "${ECHO_T}package" >&6
37722 echo "$as_me:$LINENO: result: external" >&5
37723 echo "${ECHO_T}external" >&6
37728 # Verify that the ZLIB we aren't using isn't newer than the one we are.
37730 if test "x$acx_zlib_cv_external_zlib" != xno; then
37731 LOCAL_ZLIB_VERSION=`sed -n '/^#define ZLIB_VERSION ".*"$/{
37732 s/^#define ZLIB_VERSION "\(.*\)"$/\1/;
37733 p;}' <$srcdir/zlib/zlib.h 2>&5`
37734 cat >conftest.$ac_ext <<_ACEOF
37737 cat confdefs.h >>conftest.$ac_ext
37738 cat >>conftest.$ac_ext <<_ACEOF
37739 /* end confdefs.h. */
37743 ac_extract_cpp_result=`(eval "$ac_cpp -dM conftest.$ac_ext") 2>&5 |
37744 sed -n "/^#define ZLIB_VERSION /{
37745 s/^#define ZLIB_VERSION //;
37749 if test -n "$ac_extract_cpp_result"; then
37750 ZLIB_VERSION=$ac_extract_cpp_result
37754 ZLIB_VERSION=`echo "$ZLIB_VERSION" |sed 's/"//g'`
37755 if test "x$LOCAL_ZLIB_VERSION" = "x$ZLIB_VERSION"; then
37756 # the strings are equal. run ACTION-IF-EQUAL and bail
37759 # first unletter the versions
37760 # this only works for a single trailing letter
37761 asx_version_1=`echo "$LOCAL_ZLIB_VERSION" |
37762 sed 's/\(abcedfghi\)/.\1/;
37763 s/\(jklmnopqrs\)/.1\1/;
37764 s/\(tuvwxyz\)/.2\1/;
37765 y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
37766 asx_version_2=`echo "$ZLIB_VERSION" |
37767 sed 's/\(abcedfghi\)/.\1/;
37768 s/\(jklmnopqrs\)/.1\1/;
37769 s/\(tuvwxyz\)/.2\1/;
37770 y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
37775 for vsub1 in $asx_version_1; do
37776 vsub2=`echo "$asx_version_2" |awk -F. "{print \\\$$asx_count}"`
37777 if test -z "$vsub2" || test $vsub1 -gt $vsub2; then
37780 elif test $vsub1 -lt $vsub2; then
37783 asx_count=`expr $asx_count + 1`
37786 if test $asx_retval -eq -1; then
37787 if test "x$with_external_zlib" = xno; then
37788 { echo "$as_me:$LINENO: WARNING: Found external ZLIB with a more recent version than the
37789 package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION). configure with the
37790 --with-external-zlib option to select the more recent version." >&5
37791 echo "$as_me: WARNING: Found external ZLIB with a more recent version than the
37792 package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION). configure with the
37793 --with-external-zlib option to select the more recent version." >&2;}
37796 if test "x$with_external_zlib" != xno; then
37797 { echo "$as_me:$LINENO: WARNING: Package ZLIB is more recent than requested external version
37798 ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION). configure with the --without-external-zlib
37799 option to select the more recent version." >&5
37800 echo "$as_me: WARNING: Package ZLIB is more recent than requested external version
37801 ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION). configure with the --without-external-zlib
37802 option to select the more recent version." >&2;}
37811 # Now set with_external_zlib to our discovered value or the user specified
37812 # value, as appropriate.
37813 if test x$with_external_zlib = xyes; then
37814 with_external_zlib=$acx_zlib_cv_external_zlib
37816 # $with_external_zlib could still be "no"
37820 # Set up ZLIB includes for later use.
37822 if test x$with_external_zlib != xyes \
37823 && test x$with_external_zlib != no; then
37824 if test -z "$CPPFLAGS"; then
37825 CPPFLAGS="-I$with_external_zlib/include"
37827 CPPFLAGS="$CPPFLAGS -I$with_external_zlib/include"
37829 if test -z "$LDFLAGS"; then
37830 LDFLAGS="-L$with_external_zlib/lib"
37832 LDFLAGS="$LDFLAGS -L$with_external_zlib/lib"
37839 if test x$with_external_zlib = xno; then
37840 # We need ZLIB_CPPFLAGS so that later executions of cpp from configure
37841 # don't try to interpret $(top_srcdir)
37842 ZLIB_CPPFLAGS='-I$(top_srcdir)/zlib'
37843 ZLIB_LIBS='$(top_builddir)/zlib/libz.a'
37844 # ZLIB_SUBDIRS is only used in the top level Makefiles.
37847 # We know what to do now, so set up the CPPFLAGS, LDFLAGS, and LIBS for later
37849 if test -z "$LIBS"; then
37856 # Verify external installed zlib works
37858 # Ideally, we would also check that the version is newer
37860 echo "$as_me:$LINENO: checking that ZLIB library works" >&5
37861 echo $ECHO_N "checking that ZLIB library works... $ECHO_C" >&6
37862 cat >conftest.$ac_ext <<_ACEOF
37865 cat confdefs.h >>conftest.$ac_ext
37866 cat >>conftest.$ac_ext <<_ACEOF
37867 /* end confdefs.h. */
37872 int i = Z_OK; const char *version = zlibVersion();
37877 rm -f conftest.$ac_objext conftest$ac_exeext
37878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37879 (eval $ac_link) 2>conftest.er1
37881 grep -v '^ *+' conftest.er1 >conftest.err
37883 cat conftest.err >&5
37884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885 (exit $ac_status); } &&
37886 { ac_try='test -z "$ac_c_werror_flag"
37887 || test ! -s conftest.err'
37888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37889 (eval $ac_try) 2>&5
37891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892 (exit $ac_status); }; } &&
37893 { ac_try='test -s conftest$ac_exeext'
37894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37895 (eval $ac_try) 2>&5
37897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37898 (exit $ac_status); }; }; then
37899 echo "$as_me:$LINENO: result: yes" >&5
37900 echo "${ECHO_T}yes" >&6
37902 echo "$as_me: failed program was:" >&5
37903 sed 's/^/| /' conftest.$ac_ext >&5
37905 echo "$as_me:$LINENO: result: no" >&5
37906 echo "${ECHO_T}no" >&6
37907 { { echo "$as_me:$LINENO: error: ZLIB failed to link" >&5
37908 echo "$as_me: error: ZLIB failed to link" >&2;}
37909 { (exit 1); exit 1; }; }
37911 rm -f conftest.err conftest.$ac_objext \
37912 conftest$ac_exeext conftest.$ac_ext
37918 # What remote shell transport should our client cvs default to using?
37920 # Check whether --with-rsh or --without-rsh was given.
37921 if test "${with_rsh+set}" = set; then
37922 withval="$with_rsh"
37928 if test no = "$with_rsh"; then
37929 { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
37930 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
37932 elif test yes = "$with_rsh"; then
37933 # Make --with-rsh mean the same thing as --with-rsh=rsh
37937 if echo $with_rsh |grep ^/ >/dev/null; then
37938 # If $with_rsh is an absolute path, issue a warning if the executable
37939 # doesn't exist or isn't usable, but then trust the user and use it
37941 with_default_rsh=$with_rsh
37942 echo "$as_me:$LINENO: checking for a remote shell" >&5
37943 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6
37944 if ! test -f $with_rsh \
37945 || ! test -x $with_rsh; then
37946 # warn the user that they may encounter problems
37947 { echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
37948 echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
37951 # Search for a remote shell
37952 for ac_prog in $with_rsh
37954 # Extract the first word of "$ac_prog", so it can be a program name with args.
37955 set dummy $ac_prog; ac_word=$2
37956 echo "$as_me:$LINENO: checking for $ac_word" >&5
37957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37958 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
37959 echo $ECHO_N "(cached) $ECHO_C" >&6
37961 if test -n "$with_default_rsh"; then
37962 ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
37964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37965 for as_dir in $PATH
37968 test -z "$as_dir" && as_dir=.
37969 for ac_exec_ext in '' $ac_executable_extensions; do
37970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37971 ac_cv_prog_with_default_rsh="$ac_prog"
37972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37980 with_default_rsh=$ac_cv_prog_with_default_rsh
37981 if test -n "$with_default_rsh"; then
37982 echo "$as_me:$LINENO: result: $with_default_rsh" >&5
37983 echo "${ECHO_T}$with_default_rsh" >&6
37985 echo "$as_me:$LINENO: result: no" >&5
37986 echo "${ECHO_T}no" >&6
37989 test -n "$with_default_rsh" && break
37991 test -n "$with_default_rsh" || with_default_rsh=""rsh""
37996 cat >>confdefs.h <<_ACEOF
37997 #define RSH_DFLT "$with_default_rsh"
38000 RSH_DFLT=$with_default_rsh
38006 # Let the confiscator request a specific editor
38008 # Check whether --with-editor or --without-editor was given.
38009 if test "${with_editor+set}" = set; then
38010 withval="$with_editor"
38016 # If --with-editor was supplied with an argument, let it override $EDITOR from
38017 # the user's environment. We need to unset EDITOR here because AC_CHECK_PROGS
38018 # will let the value of EDITOR ride when it is set rather than searching. We
38019 # ignore the --without-editor case since it will be caught below.
38020 if test -n "$EDITOR" && test yes != $with_editor; then
38021 $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
38024 # Set the default when --with-editor wasn't supplied or when it was supplied
38025 # without an argument.
38026 if test yes = $with_editor; then
38027 with_editor="vim vi emacs nano pico edit"
38030 if echo $with_editor |grep ^/ >/dev/null; then
38031 # If $with_editor is an absolute path, issue a warning if the executable
38032 # doesn't exist or isn't usable, but then trust the user and use it
38034 EDITOR=$with_editor
38035 echo "$as_me:$LINENO: checking for an editor" >&5
38036 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
38037 echo "$as_me:$LINENO: result: $EDITOR" >&5
38038 echo "${ECHO_T}$EDITOR" >&6
38039 if ! test -f $with_editor \
38040 || ! test -x $with_editor; then
38041 # warn the user that they may encounter problems
38042 { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
38043 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
38045 elif test no != "${with_editor}"; then
38046 # Search for an editor
38047 for ac_prog in $with_editor
38049 # Extract the first word of "$ac_prog", so it can be a program name with args.
38050 set dummy $ac_prog; ac_word=$2
38051 echo "$as_me:$LINENO: checking for $ac_word" >&5
38052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38053 if test "${ac_cv_prog_EDITOR+set}" = set; then
38054 echo $ECHO_N "(cached) $ECHO_C" >&6
38056 if test -n "$EDITOR"; then
38057 ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
38059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38060 for as_dir in $PATH
38063 test -z "$as_dir" && as_dir=.
38064 for ac_exec_ext in '' $ac_executable_extensions; do
38065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38066 ac_cv_prog_EDITOR="$ac_prog"
38067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38075 EDITOR=$ac_cv_prog_EDITOR
38076 if test -n "$EDITOR"; then
38077 echo "$as_me:$LINENO: result: $EDITOR" >&5
38078 echo "${ECHO_T}$EDITOR" >&6
38080 echo "$as_me:$LINENO: result: no" >&5
38081 echo "${ECHO_T}no" >&6
38084 test -n "$EDITOR" && break
38086 test -n "$EDITOR" || EDITOR="no"
38088 if test no = "${EDITOR}"; then
38089 { { echo "$as_me:$LINENO: error:
38090 Failed to find a text file editor. CVS cannot be compiled
38091 without a default log message editor. Searched for
38092 \`$with_editor'. Try \`configure --with-editor'." >&5
38093 echo "$as_me: error:
38094 Failed to find a text file editor. CVS cannot be compiled
38095 without a default log message editor. Searched for
38096 \`$with_editor'. Try \`configure --with-editor'." >&2;}
38097 { (exit 1); exit 1; }; }
38100 { { echo "$as_me:$LINENO: error:
38101 CVS cannot be compiled without a default log message editor.
38102 Try \`configure --with-editor'." >&5
38103 echo "$as_me: error:
38104 CVS cannot be compiled without a default log message editor.
38105 Try \`configure --with-editor'." >&2;}
38106 { (exit 1); exit 1; }; }
38110 cat >>confdefs.h <<_ACEOF
38111 #define EDITOR_DFLT "$EDITOR"
38119 # Check whether --with-hardcoded-pam-service-name or --without-hardcoded-pam-service-name was given.
38120 if test "${with_hardcoded_pam_service_name+set}" = set; then
38121 withval="$with_hardcoded_pam_service_name"
38124 with_hardcoded_pam_service_name=cvs
38127 if test "x$with_hardcoded_pam_service_name" = xno ||
38128 test "x$with_hardcoded_pam_service_name" = xprogram_name; then
38130 cat >>confdefs.h <<\_ACEOF
38131 #define PAM_SERVICE_NAME program_name
38135 if test x"$with_hardcoded_pam_service_name" = xyes; then
38136 with_hardcoded_pam_service_name=cvs
38138 cat >>confdefs.h <<_ACEOF
38139 #define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name"
38147 # Check whether --with-tmpdir or --without-tmpdir was given.
38148 if test "${with_tmpdir+set}" = set; then
38149 withval="$with_tmpdir"
38153 echo "$as_me:$LINENO: checking for temporary directory" >&5
38154 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
38155 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
38156 for with_tmpdir in /tmp /var/tmp no; do
38157 if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
38158 && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
38162 if test no = "$with_tmpdir"; then
38163 { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&5
38164 echo "$as_me: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&2;}
38167 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
38168 echo "${ECHO_T}$with_tmpdir" >&6
38169 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
38170 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
38171 echo "${ECHO_T}$with_tmpdir" >&6
38172 { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
38173 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
38174 { (exit 1); exit 1; }; }
38175 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
38176 || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
38177 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
38178 echo "${ECHO_T}$with_tmpdir" >&6
38179 { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
38180 exist or lacks sufficient permissions for read/write." >&5
38181 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
38182 exist or lacks sufficient permissions for read/write." >&2;}
38186 cat >>confdefs.h <<_ACEOF
38187 #define TMPDIR_DFLT "$with_tmpdir"
38195 # Check whether --with-umask or --without-umask was given.
38196 if test "${with_umask+set}" = set; then
38197 withval="$with_umask"
38201 if test -z "$with_umask" || test yes = "$with_umask"; then
38203 elif test no = "$with_umask"; then
38208 cat >>confdefs.h <<_ACEOF
38209 #define UMASK_DFLT $with_umask
38215 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
38216 if test "${with_cvs_admin_group+set}" = set; then
38217 withval="$with_cvs_admin_group"
38220 with_cvs_admin_group=cvsadmin
38223 if test yes = "$with_cvs_admin_group"; then
38224 with_cvs_admin_group=cvsadmin
38226 if test no != "$with_cvs_admin_group"; then
38228 cat >>confdefs.h <<_ACEOF
38229 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
38235 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
38236 if test "${enable_cvs_ndbm+set}" = set; then
38237 enableval="$enable_cvs_ndbm"
38240 enable_cvs_ndbm=yes
38242 if test no != "$enable_cvs_ndbm"; then
38244 cat >>confdefs.h <<\_ACEOF
38258 # Check for options requesting client and server feature. If none are
38259 # given and we have connect(), we want the full client & server arrangement.
38260 # Check whether --enable-client or --disable-client was given.
38261 if test "${enable_client+set}" = set; then
38262 enableval="$enable_client"
38265 enable_client=$ac_cv_search_connect
38267 if test no != "$enable_client"; then
38269 cat >>confdefs.h <<\_ACEOF
38270 #define CLIENT_SUPPORT 1
38277 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
38278 if test "${enable_password_authenticated_client+set}" = set; then
38279 enableval="$enable_password_authenticated_client"
38282 enable_password_authenticated_client=$enable_client
38285 if test xno != "x$enable_password_authenticated_client"; then
38286 if test xno != "x$enable_client"; then
38288 cat >>confdefs.h <<\_ACEOF
38289 #define AUTH_CLIENT_SUPPORT 1
38293 { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
38294 the CVS client disabled (--disable-client)" >&5
38295 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
38296 the CVS client disabled (--disable-client)" >&2;}
38303 # Check whether --enable-server or --disable-server was given.
38304 if test "${enable_server+set}" = set; then
38305 enableval="$enable_server"
38308 enable_server=$ac_cv_search_connect
38311 if test no != "$enable_server"; then
38313 cat >>confdefs.h <<\_ACEOF
38314 #define SERVER_SUPPORT 1
38318 echo "$as_me:$LINENO: checking for library containing crypt" >&5
38319 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
38320 if test "${ac_cv_search_crypt+set}" = set; then
38321 echo $ECHO_N "(cached) $ECHO_C" >&6
38323 ac_func_search_save_LIBS=$LIBS
38324 ac_cv_search_crypt=no
38325 cat >conftest.$ac_ext <<_ACEOF
38328 cat confdefs.h >>conftest.$ac_ext
38329 cat >>conftest.$ac_ext <<_ACEOF
38330 /* end confdefs.h. */
38332 /* Override any gcc2 internal prototype to avoid an error. */
38336 /* We use char because int might match the return type of a gcc2
38337 builtin and then its argument prototype would still apply. */
38347 rm -f conftest.$ac_objext conftest$ac_exeext
38348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38349 (eval $ac_link) 2>conftest.er1
38351 grep -v '^ *+' conftest.er1 >conftest.err
38353 cat conftest.err >&5
38354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38355 (exit $ac_status); } &&
38356 { ac_try='test -z "$ac_c_werror_flag"
38357 || test ! -s conftest.err'
38358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359 (eval $ac_try) 2>&5
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); }; } &&
38363 { ac_try='test -s conftest$ac_exeext'
38364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38365 (eval $ac_try) 2>&5
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); }; }; then
38369 ac_cv_search_crypt="none required"
38371 echo "$as_me: failed program was:" >&5
38372 sed 's/^/| /' conftest.$ac_ext >&5
38375 rm -f conftest.err conftest.$ac_objext \
38376 conftest$ac_exeext conftest.$ac_ext
38377 if test "$ac_cv_search_crypt" = no; then
38378 for ac_lib in crypt; do
38379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
38380 cat >conftest.$ac_ext <<_ACEOF
38383 cat confdefs.h >>conftest.$ac_ext
38384 cat >>conftest.$ac_ext <<_ACEOF
38385 /* end confdefs.h. */
38387 /* Override any gcc2 internal prototype to avoid an error. */
38391 /* We use char because int might match the return type of a gcc2
38392 builtin and then its argument prototype would still apply. */
38402 rm -f conftest.$ac_objext conftest$ac_exeext
38403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38404 (eval $ac_link) 2>conftest.er1
38406 grep -v '^ *+' conftest.er1 >conftest.err
38408 cat conftest.err >&5
38409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410 (exit $ac_status); } &&
38411 { ac_try='test -z "$ac_c_werror_flag"
38412 || test ! -s conftest.err'
38413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414 (eval $ac_try) 2>&5
38416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417 (exit $ac_status); }; } &&
38418 { ac_try='test -s conftest$ac_exeext'
38419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38420 (eval $ac_try) 2>&5
38422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423 (exit $ac_status); }; }; then
38424 ac_cv_search_crypt="-l$ac_lib"
38427 echo "$as_me: failed program was:" >&5
38428 sed 's/^/| /' conftest.$ac_ext >&5
38431 rm -f conftest.err conftest.$ac_objext \
38432 conftest$ac_exeext conftest.$ac_ext
38435 LIBS=$ac_func_search_save_LIBS
38437 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
38438 echo "${ECHO_T}$ac_cv_search_crypt" >&6
38439 if test "$ac_cv_search_crypt" != no; then
38440 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
38442 cat >>confdefs.h <<\_ACEOF
38443 #define HAVE_CRYPT 1
38447 cat >>confdefs.h <<\_ACEOF
38448 #define AUTH_SERVER_SUPPORT 1
38453 # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
38454 if test "${enable_server_flow_control+set}" = set; then
38455 enableval="$enable_server_flow_control"
38456 if test yes = $enable_server_flow_control; then
38457 enable_server_flow_control=1M,2M
38460 enable_server_flow_control=1M,2M
38462 if test no != $enable_server_flow_control; then
38463 ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
38464 ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
38465 ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
38466 ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
38467 test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
38468 case $ccvs_lwm_E in
38469 G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
38470 M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
38471 k) ccvs_lwm="$ccvs_lwm * 1024";;
38473 *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
38474 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
38475 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
38476 ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
38477 { (exit 1); exit 1; }; }
38479 ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
38480 ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
38481 test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
38482 case $ccvs_hwm_E in
38483 G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
38484 M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
38485 k) ccvs_hwm="$ccvs_hwm * 1024";;
38486 b | '') ccvs_hwm="$ccvs_hwm";;
38487 *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
38488 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
38489 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
38490 ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
38491 { (exit 1); exit 1; }; }
38495 cat >>confdefs.h <<\_ACEOF
38496 #define SERVER_FLOWCONTROL 1
38500 cat >>confdefs.h <<_ACEOF
38501 #define SERVER_LO_WATER ($ccvs_lwm)
38505 cat >>confdefs.h <<_ACEOF
38506 #define SERVER_HI_WATER ($ccvs_hwm)
38509 fi # enable_server_flow_control
38515 # Check whether --enable-proxy or --disable-proxy was given.
38516 if test "${enable_proxy+set}" = set; then
38517 enableval="$enable_proxy"
38520 if test xno != "x$enable_client" && test xno != "x$enable_server"; then
38527 if test no != "$enable_proxy"; then
38528 if test xno = "x$enable_client" || test xno = "x$enable_server"; then
38529 { echo "$as_me:$LINENO: WARNING: --enable-proxy is meaningless when either the CVS client or the
38530 CVS server is disabled (--disable-client and --disable-server)." >&5
38531 echo "$as_me: WARNING: --enable-proxy is meaningless when either the CVS client or the
38532 CVS server is disabled (--disable-client and --disable-server)." >&2;}
38535 cat >>confdefs.h <<\_ACEOF
38536 #define PROXY_SUPPORT 1
38544 # Check whether --enable-pam or --disable-pam was given.
38545 if test "${enable_pam+set}" = set; then
38546 enableval="$enable_pam"
38553 if test yes = $enable_pam; then
38554 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
38555 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
38556 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
38557 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
38558 echo $ECHO_N "(cached) $ECHO_C" >&6
38560 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
38561 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
38563 # Is the header compilable?
38564 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
38565 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
38566 cat >conftest.$ac_ext <<_ACEOF
38569 cat confdefs.h >>conftest.$ac_ext
38570 cat >>conftest.$ac_ext <<_ACEOF
38571 /* end confdefs.h. */
38572 $ac_includes_default
38573 #include <security/pam_appl.h>
38575 rm -f conftest.$ac_objext
38576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38577 (eval $ac_compile) 2>conftest.er1
38579 grep -v '^ *+' conftest.er1 >conftest.err
38581 cat conftest.err >&5
38582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 (exit $ac_status); } &&
38584 { ac_try='test -z "$ac_c_werror_flag"
38585 || test ! -s conftest.err'
38586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38587 (eval $ac_try) 2>&5
38589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590 (exit $ac_status); }; } &&
38591 { ac_try='test -s conftest.$ac_objext'
38592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38593 (eval $ac_try) 2>&5
38595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596 (exit $ac_status); }; }; then
38597 ac_header_compiler=yes
38599 echo "$as_me: failed program was:" >&5
38600 sed 's/^/| /' conftest.$ac_ext >&5
38602 ac_header_compiler=no
38604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38606 echo "${ECHO_T}$ac_header_compiler" >&6
38608 # Is the header present?
38609 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
38610 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
38611 cat >conftest.$ac_ext <<_ACEOF
38614 cat confdefs.h >>conftest.$ac_ext
38615 cat >>conftest.$ac_ext <<_ACEOF
38616 /* end confdefs.h. */
38617 #include <security/pam_appl.h>
38619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38622 grep -v '^ *+' conftest.er1 >conftest.err
38624 cat conftest.err >&5
38625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626 (exit $ac_status); } >/dev/null; then
38627 if test -s conftest.err; then
38628 ac_cpp_err=$ac_c_preproc_warn_flag
38629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38636 if test -z "$ac_cpp_err"; then
38637 ac_header_preproc=yes
38639 echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38642 ac_header_preproc=no
38644 rm -f conftest.err conftest.$ac_ext
38645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38646 echo "${ECHO_T}$ac_header_preproc" >&6
38648 # So? What about this header?
38649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38651 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
38652 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38653 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
38654 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
38655 ac_header_preproc=yes
38658 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
38659 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
38660 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
38661 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
38662 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
38663 echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
38664 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5
38665 echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;}
38666 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
38667 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
38668 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
38669 echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
38672 ## ------------------------------ ##
38673 ## Report this to bug-cvs@gnu.org ##
38674 ## ------------------------------ ##
38677 sed "s/^/$as_me: WARNING: /" >&2
38680 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
38681 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
38682 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
38683 echo $ECHO_N "(cached) $ECHO_C" >&6
38685 ac_cv_header_security_pam_appl_h=$ac_header_preproc
38687 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
38688 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
38691 if test $ac_cv_header_security_pam_appl_h = yes; then
38693 cat >>confdefs.h <<\_ACEOF
38697 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
38698 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
38699 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
38700 echo $ECHO_N "(cached) $ECHO_C" >&6
38702 ac_check_lib_save_LIBS=$LIBS
38704 cat >conftest.$ac_ext <<_ACEOF
38707 cat confdefs.h >>conftest.$ac_ext
38708 cat >>conftest.$ac_ext <<_ACEOF
38709 /* end confdefs.h. */
38711 /* Override any gcc2 internal prototype to avoid an error. */
38715 /* We use char because int might match the return type of a gcc2
38716 builtin and then its argument prototype would still apply. */
38726 rm -f conftest.$ac_objext conftest$ac_exeext
38727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38728 (eval $ac_link) 2>conftest.er1
38730 grep -v '^ *+' conftest.er1 >conftest.err
38732 cat conftest.err >&5
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); } &&
38735 { ac_try='test -z "$ac_c_werror_flag"
38736 || test ! -s conftest.err'
38737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38738 (eval $ac_try) 2>&5
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); }; } &&
38742 { ac_try='test -s conftest$ac_exeext'
38743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38744 (eval $ac_try) 2>&5
38746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38747 (exit $ac_status); }; }; then
38748 ac_cv_lib_pam_pam_start=yes
38750 echo "$as_me: failed program was:" >&5
38751 sed 's/^/| /' conftest.$ac_ext >&5
38753 ac_cv_lib_pam_pam_start=no
38755 rm -f conftest.err conftest.$ac_objext \
38756 conftest$ac_exeext conftest.$ac_ext
38757 LIBS=$ac_check_lib_save_LIBS
38759 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
38760 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
38761 if test $ac_cv_lib_pam_pam_start = yes; then
38762 LIBS="${LIBS} -lpam"
38764 { { echo "$as_me:$LINENO: error: Could not find PAM libraries but the headers exist.
38765 Give the --disable-pam option to compile without PAM support (or fix
38766 your broken configuration)" >&5
38767 echo "$as_me: error: Could not find PAM libraries but the headers exist.
38768 Give the --disable-pam option to compile without PAM support (or fix
38769 your broken configuration)" >&2;}
38770 { (exit 1); exit 1; }; }
38775 { { echo "$as_me:$LINENO: error: Could not find PAM headers" >&5
38776 echo "$as_me: error: Could not find PAM headers" >&2;}
38777 { (exit 1); exit 1; }; }
38787 # Check whether --enable-case-sensitivity or --disable-case-sensitivity was given.
38788 if test "${enable_case_sensitivity+set}" = set; then
38789 enableval="$enable_case_sensitivity"
38790 case "$enable_case_sensitivity" in
38791 yes | no | auto) ;;
38793 { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'. Acceptable values are \`yes', \`no', and \`auto'." >&5
38794 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'. Acceptable values are \`yes', \`no', and \`auto'." >&2;}
38795 { (exit 1); exit 1; }; }
38799 enable_case_sensitivity=auto
38802 acx_forced=' (forced)'
38803 echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
38804 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6
38805 if test $enable_case_sensitivity = auto; then
38806 if test "${acx_cv_case_sensitive+set}" = set; then
38807 echo $ECHO_N "(cached) $ECHO_C" >&6
38809 rm -f ac_TEST_filenames_CASE_sensitive
38810 echo foo >ac_test_filenames_case_sensitive
38811 if test -f ac_TEST_filenames_CASE_sensitive; then
38812 acx_cv_case_sensitive=no
38814 acx_cv_case_sensitive=yes
38816 rm ac_test_filenames_case_sensitive
38820 enable_case_sensitivity=$acx_cv_case_sensitive
38823 echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
38824 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6
38825 if test $enable_case_sensitivity = no; then
38827 cat >>confdefs.h <<\_ACEOF
38828 #define FILENAMES_CASE_INSENSITIVE 1
38832 "fncase.$ac_objext" | \
38833 *" fncase.$ac_objext" | \
38834 "fncase.$ac_objext "* | \
38835 *" fncase.$ac_objext "* ) ;;
38836 *) LIBOBJS="$LIBOBJS fncase.$ac_objext" ;;
38844 # Check whether --enable-encryption or --disable-encryption was given.
38845 if test "${enable_encryption+set}" = set; then
38846 enableval="$enable_encryption"
38849 enable_encryption=no
38851 if test "x$enable_encryption" = xyes; then
38852 if test xno = "x$with_client" && test xno = "x$with_server"; then
38853 { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
38854 nor the CVS server is enabled (--disable-client and --disable-server)." >&5
38855 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
38856 nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
38859 cat >>confdefs.h <<\_ACEOF
38860 #define ENCRYPTION 1
38869 # Check whether --enable-force-editor or --disable-force-editor was given.
38870 if test "${enable_force_editor+set}" = set; then
38871 enableval="$enable_force_editor"
38874 enable_force_editor=no
38877 if test yes = "$enable_force_editor"; then
38879 cat >>confdefs.h <<\_ACEOF
38880 #define FORCE_USE_EDITOR 1
38888 # Check for options requesting client and server feature. If none are
38889 # given and we have connect(), we want the full client & server arrangement.
38890 # Check whether --enable-lock-compatibility or --disable-lock-compatibility was given.
38891 if test "${enable_lock_compatibility+set}" = set; then
38892 enableval="$enable_lock_compatibility"
38895 enable_lock_compatibility=yes
38898 if test x$enable_lock_compatibility = xyes; then
38900 cat >>confdefs.h <<\_ACEOF
38901 #define LOCK_COMPATIBILITY 1
38909 # Check whether --enable-rootcommit or --disable-rootcommit was given.
38910 if test "${enable_rootcommit+set}" = set; then
38911 enableval="$enable_rootcommit"
38914 enable_rootcommit=no
38916 if test "$enable_rootcommit" = no; then
38918 cat >>confdefs.h <<\_ACEOF
38919 #define CVS_BADROOT 1
38925 # Check whether --enable-old-info-support or --disable-old-info-support was given.
38926 if test "${enable_old_info_support+set}" = set; then
38927 enableval="$enable_old_info_support"
38930 enable_old_info_format_support=yes
38932 if test "$enable_old_info_format_support" = yes; then
38934 cat >>confdefs.h <<\_ACEOF
38935 #define SUPPORT_OLD_INFO_FMT_STRINGS 1
38947 echo "$as_me:$LINENO: checking for cygwin32" >&5
38948 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
38949 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
38950 echo $ECHO_N "(cached) $ECHO_C" >&6
38952 cat >conftest.$ac_ext <<_ACEOF
38955 cat confdefs.h >>conftest.$ac_ext
38956 cat >>conftest.$ac_ext <<_ACEOF
38957 /* end confdefs.h. */
38962 return __CYGWIN32__;
38967 rm -f conftest.$ac_objext
38968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38969 (eval $ac_compile) 2>conftest.er1
38971 grep -v '^ *+' conftest.er1 >conftest.err
38973 cat conftest.err >&5
38974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38975 (exit $ac_status); } &&
38976 { ac_try='test -z "$ac_c_werror_flag"
38977 || test ! -s conftest.err'
38978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38979 (eval $ac_try) 2>&5
38981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38982 (exit $ac_status); }; } &&
38983 { ac_try='test -s conftest.$ac_objext'
38984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38985 (eval $ac_try) 2>&5
38987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38988 (exit $ac_status); }; }; then
38989 ccvs_cv_sys_cygwin32=yes
38991 echo "$as_me: failed program was:" >&5
38992 sed 's/^/| /' conftest.$ac_ext >&5
38994 ccvs_cv_sys_cygwin32=no
38996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38998 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
38999 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
39000 if test $ccvs_cv_sys_cygwin32 = yes; then
39001 LIBS="$LIBS -ladvapi32"
39004 cat >>confdefs.h <<\_ACEOF
39005 #define UTIME_EXPECTS_WRITABLE 1
39010 cat >>confdefs.h <<\_ACEOF
39011 #define USE_SETMODE_STDOUT 1
39015 cat >>confdefs.h <<\_ACEOF
39016 #define HAVE_SETMODE 1
39021 ac_config_files="$ac_config_files contrib/validate_repo"
39023 ac_config_files="$ac_config_files contrib/clmerge"
39025 ac_config_files="$ac_config_files contrib/cln_hist"
39027 ac_config_files="$ac_config_files contrib/commit_prep"
39029 ac_config_files="$ac_config_files contrib/cvs_acls"
39031 ac_config_files="$ac_config_files contrib/log"
39033 ac_config_files="$ac_config_files contrib/log_accum"
39035 ac_config_files="$ac_config_files contrib/mfpipe"
39037 ac_config_files="$ac_config_files contrib/pvcs2rcs"
39039 ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
39041 ac_config_files="$ac_config_files contrib/rcslock"
39043 ac_config_files="$ac_config_files contrib/sccs2rcs"
39045 ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl"
39047 ac_config_files="$ac_config_files src/cvsbug"
39050 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/pam/Makefile cvs.spec diff/Makefile doc/Makefile doc/i18n/Makefile doc/i18n/pt_BR/Makefile emx/Makefile lib/Makefile maint-aux/Makefile man/Makefile os2/Makefile src/Makefile src/sanity.config.sh tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
39053 cat >confcache <<\_ACEOF
39054 # This file is a shell script that caches the results of configure
39055 # tests run on this system so they can be shared between configure
39056 # scripts and configure runs, see configure's option --config-cache.
39057 # It is not useful on other systems. If it contains results you don't
39058 # want to keep, you may remove or edit it.
39060 # config.status only pays attention to the cache file if you give it
39061 # the --recheck option to rerun configure.
39063 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39064 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39065 # following values.
39069 # The following way of writing the cache mishandles newlines in values,
39070 # but we know of no workaround that is simple, portable, and efficient.
39071 # So, don't put newlines in cache variables' values.
39072 # Ultrix sh set writes to stderr and can't be redirected directly,
39073 # and sets the high bit in the cache file unless we assign to the vars.
39076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39078 # `set' does not quote correctly, so add quotes (double-quote
39079 # substitution turns \\\\ into \\, and sed turns \\ into \).
39082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39085 # `set' quotes correctly as required by POSIX, so do not add quotes.
39087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39098 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39099 if test -w $cache_file; then
39100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39101 cat confcache >$cache_file
39103 echo "not updating unwritable cache $cache_file"
39108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39109 # Let make expand exec_prefix.
39110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39114 # trailing colons and then remove the whole line if VPATH becomes empty
39115 # (actually we leave an empty line to preserve line numbers).
39116 if test "x$srcdir" = x.; then
39117 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39118 s/:*\$(srcdir):*/:/;
39119 s/:*\${srcdir}:*/:/;
39121 s/^\([^=]*=[ ]*\):*/\1/;
39127 DEFS=-DHAVE_CONFIG_H
39131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39132 # 1. Remove the extension, and $U if already installed.
39133 ac_i=`echo "$ac_i" |
39134 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39136 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39137 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39139 LIBOBJS=$ac_libobjs
39141 LTLIBOBJS=$ac_ltlibobjs
39144 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39145 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
39146 Usually this means the macro was only invoked conditionally." >&5
39147 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
39148 Usually this means the macro was only invoked conditionally." >&2;}
39149 { (exit 1); exit 1; }; }
39151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39152 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39153 Usually this means the macro was only invoked conditionally." >&5
39154 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39155 Usually this means the macro was only invoked conditionally." >&2;}
39156 { (exit 1); exit 1; }; }
39158 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39159 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39160 Usually this means the macro was only invoked conditionally." >&5
39161 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39162 Usually this means the macro was only invoked conditionally." >&2;}
39163 { (exit 1); exit 1; }; }
39165 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39166 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39167 Usually this means the macro was only invoked conditionally." >&5
39168 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39169 Usually this means the macro was only invoked conditionally." >&2;}
39170 { (exit 1); exit 1; }; }
39172 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
39173 { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
39174 Usually this means the macro was only invoked conditionally." >&5
39175 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
39176 Usually this means the macro was only invoked conditionally." >&2;}
39177 { (exit 1); exit 1; }; }
39180 : ${CONFIG_STATUS=./config.status}
39181 ac_clean_files_save=$ac_clean_files
39182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39183 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39184 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39185 cat >$CONFIG_STATUS <<_ACEOF
39187 # Generated by $as_me.
39188 # Run this file to recreate the current configuration.
39189 # Compiler output produced by configure, useful for debugging
39190 # configure, is in config.log if it exists.
39193 ac_cs_recheck=false
39195 SHELL=\${CONFIG_SHELL-$SHELL}
39198 cat >>$CONFIG_STATUS <<\_ACEOF
39199 ## --------------------- ##
39200 ## M4sh Initialization. ##
39201 ## --------------------- ##
39203 # Be Bourne compatible
39204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39208 # is contrary to our usage. Disable this feature.
39209 alias -g '${1+"$@"}'='"$@"'
39210 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39213 DUALCASE=1; export DUALCASE # for MKS sh
39215 # Support unset when possible.
39216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39223 # Work around bugs in pre-3.0 UWIN ksh.
39224 $as_unset ENV MAIL MAILPATH
39231 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39232 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39233 LC_TELEPHONE LC_TIME
39235 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39236 eval $as_var=C; export $as_var
39242 # Required to use basename.
39243 if expr a : '\(a\)' >/dev/null 2>&1; then
39249 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39250 as_basename=basename
39256 # Name of the executable.
39257 as_me=`$as_basename "$0" ||
39258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39259 X"$0" : 'X\(//\)$' \| \
39260 X"$0" : 'X\(/\)$' \| \
39261 . : '\(.\)' 2>/dev/null ||
39263 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39264 /^X\/\(\/\/\)$/{ s//\1/; q; }
39265 /^X\/\(\/\).*/{ s//\1/; q; }
39269 # PATH needs CR, and LINENO needs CR and PATH.
39270 # Avoid depending upon Character Ranges.
39271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39274 as_cr_digits='0123456789'
39275 as_cr_alnum=$as_cr_Letters$as_cr_digits
39277 # The user is always right.
39278 if test "${PATH_SEPARATOR+set}" != set; then
39279 echo "#! /bin/sh" >conf$$.sh
39280 echo "exit 0" >>conf$$.sh
39282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39291 as_lineno_1=$LINENO
39292 as_lineno_2=$LINENO
39293 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39294 test "x$as_lineno_1" != "x$as_lineno_2" &&
39295 test "x$as_lineno_3" = "x$as_lineno_2" || {
39296 # Find who we are. Look in the path if we contain no path at all
39299 *[\\/]* ) as_myself=$0 ;;
39300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39301 for as_dir in $PATH
39304 test -z "$as_dir" && as_dir=.
39305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39310 # We did not find ourselves, most probably we were run as `sh COMMAND'
39311 # in which case we are not to be found in the path.
39312 if test "x$as_myself" = x; then
39315 if test ! -f "$as_myself"; then
39316 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39317 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39318 { (exit 1); exit 1; }; }
39320 case $CONFIG_SHELL in
39322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39323 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39326 test -z "$as_dir" && as_dir=.
39327 for as_base in sh bash ksh sh5; do
39330 if ("$as_dir/$as_base" -c '
39331 as_lineno_1=$LINENO
39332 as_lineno_2=$LINENO
39333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39334 test "x$as_lineno_1" != "x$as_lineno_2" &&
39335 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39336 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39337 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39338 CONFIG_SHELL=$as_dir/$as_base
39339 export CONFIG_SHELL
39340 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39349 # uniformly replaced by the line number. The first 'sed' inserts a
39350 # line-number line before each line; the second 'sed' does the real
39351 # work. The second script uses 'N' to pair each line-number line
39352 # with the numbered line, and appends trailing '-' during
39353 # substitution so that $LINENO is not a special case at line end.
39354 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39355 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39356 sed '=' <$as_myself |
39361 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39364 s,^['$as_cr_digits']*\n,,
39365 ' >$as_me.lineno &&
39366 chmod +x $as_me.lineno ||
39367 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39368 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39369 { (exit 1); exit 1; }; }
39371 # Don't try to exec as it changes $[0], causing all sort of problems
39372 # (the dirname of $[0] is not the place where we might find the
39373 # original and so on. Autoconf is especially sensible to this).
39375 # Exit status is that of the last command.
39380 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39381 *c*,-n*) ECHO_N= ECHO_C='
39383 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39384 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39387 if expr a : '\(a\)' >/dev/null 2>&1; then
39393 rm -f conf$$ conf$$.exe conf$$.file
39395 if ln -s conf$$.file conf$$ 2>/dev/null; then
39396 # We could just check for DJGPP; but this test a) works b) is more generic
39397 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39398 if test -f conf$$.exe; then
39399 # Don't use ln at all; we don't have any links
39404 elif ln conf$$.file conf$$ 2>/dev/null; then
39409 rm -f conf$$ conf$$.exe conf$$.file
39411 if mkdir -p . 2>/dev/null; then
39414 test -d ./-p && rmdir ./-p
39418 as_executable_p="test -f"
39420 # Sed expression to map a string onto a valid CPP name.
39421 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39423 # Sed expression to map a string onto a valid variable name.
39424 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39428 # We need space, tab and new line, in precisely that order.
39438 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39439 # report actual input values of CONFIG_FILES etc. instead of their
39440 # values after options handling. Logging --version etc. is OK.
39444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39445 ## Running $as_me. ##
39450 This file was extended by Concurrent Versions System (CVS) $as_me 1.12.12, which was
39451 generated by GNU Autoconf 2.59. Invocation command line was
39453 CONFIG_FILES = $CONFIG_FILES
39454 CONFIG_HEADERS = $CONFIG_HEADERS
39455 CONFIG_LINKS = $CONFIG_LINKS
39456 CONFIG_COMMANDS = $CONFIG_COMMANDS
39460 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39464 # Files that config.status was made for.
39465 if test -n "$ac_config_files"; then
39466 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39469 if test -n "$ac_config_headers"; then
39470 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39473 if test -n "$ac_config_links"; then
39474 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39477 if test -n "$ac_config_commands"; then
39478 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39481 cat >>$CONFIG_STATUS <<\_ACEOF
39484 \`$as_me' instantiates files from templates according to the
39485 current configuration.
39487 Usage: $0 [OPTIONS] [FILE]...
39489 -h, --help print this help, then exit
39490 -V, --version print version number, then exit
39491 -q, --quiet do not print progress messages
39492 -d, --debug don't remove temporary files
39493 --recheck update $as_me by reconfiguring in the same conditions
39494 --file=FILE[:TEMPLATE]
39495 instantiate the configuration file FILE
39496 --header=FILE[:TEMPLATE]
39497 instantiate the configuration header FILE
39499 Configuration files:
39502 Configuration headers:
39505 Configuration commands:
39508 Report bugs to <bug-autoconf@gnu.org>."
39511 cat >>$CONFIG_STATUS <<_ACEOF
39513 Concurrent Versions System (CVS) config.status 1.12.12
39514 configured by $0, generated by GNU Autoconf 2.59,
39515 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39517 Copyright (C) 2003 Free Software Foundation, Inc.
39518 This config.status script is free software; the Free Software Foundation
39519 gives unlimited permission to copy, distribute and modify it."
39524 cat >>$CONFIG_STATUS <<\_ACEOF
39525 # If no file are specified by the user, then we need to provide default
39526 # value. By we need to know if files were specified by the user.
39532 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39533 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39541 *) # This is not an option, so the user has probably given explicit
39544 ac_need_defaults=false;;
39548 # Handling of the options.
39550 cat >>$CONFIG_STATUS <<\_ACEOF
39551 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39553 --version | --vers* | -V )
39554 echo "$ac_cs_version"; exit 0 ;;
39556 # Conflict between --help and --header
39557 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39558 Try \`$0 --help' for more information." >&5
39559 echo "$as_me: error: ambiguous option: $1
39560 Try \`$0 --help' for more information." >&2;}
39561 { (exit 1); exit 1; }; };;
39562 --help | --hel | -h )
39563 echo "$ac_cs_usage"; exit 0 ;;
39564 --debug | --d* | -d )
39566 --file | --fil | --fi | --f )
39568 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39569 ac_need_defaults=false;;
39570 --header | --heade | --head | --hea )
39572 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39573 ac_need_defaults=false;;
39574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39578 # This is an error.
39579 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39580 Try \`$0 --help' for more information." >&5
39581 echo "$as_me: error: unrecognized option: $1
39582 Try \`$0 --help' for more information." >&2;}
39583 { (exit 1); exit 1; }; } ;;
39585 *) ac_config_targets="$ac_config_targets $1" ;;
39591 ac_configure_extra_args=
39593 if $ac_cs_silent; then
39595 ac_configure_extra_args="$ac_configure_extra_args --silent"
39599 cat >>$CONFIG_STATUS <<_ACEOF
39600 if \$ac_cs_recheck; then
39601 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39602 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39607 cat >>$CONFIG_STATUS <<_ACEOF
39609 # INIT-COMMANDS section.
39612 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39613 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
39614 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
39616 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
39617 # Capture the value of LINGUAS because we need it to compute CATALOGS.
39618 LINGUAS="${LINGUAS-%UNSET%}"
39625 cat >>$CONFIG_STATUS <<\_ACEOF
39626 for ac_config_target in $ac_config_targets
39628 case "$ac_config_target" in
39629 # Handling of arguments.
39630 "contrib/validate_repo" ) CONFIG_FILES="$CONFIG_FILES contrib/validate_repo" ;;
39631 "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
39632 "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
39633 "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
39634 "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
39635 "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
39636 "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
39637 "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
39638 "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
39639 "contrib/rcs2log" ) CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
39640 "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
39641 "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
39642 "doc/mkman" ) CONFIG_FILES="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;;
39643 "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
39644 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39645 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
39646 "contrib/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/pam/Makefile" ;;
39647 "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
39648 "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
39649 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
39650 "doc/i18n/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/i18n/Makefile" ;;
39651 "doc/i18n/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/i18n/pt_BR/Makefile" ;;
39652 "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
39653 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
39654 "maint-aux/Makefile" ) CONFIG_FILES="$CONFIG_FILES maint-aux/Makefile" ;;
39655 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
39656 "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
39657 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39658 "src/sanity.config.sh" ) CONFIG_FILES="$CONFIG_FILES src/sanity.config.sh" ;;
39659 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
39660 "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
39661 "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
39662 "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
39663 "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
39664 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39665 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
39666 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39667 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39669 { (exit 1); exit 1; }; };;
39673 # If the user did not use the arguments to specify the items to instantiate,
39674 # then the envvar interface is used. Set only those that are not.
39675 # We use the long form for the default assignment because of an extremely
39676 # bizarre bug on SunOS 4.1.3.
39677 if $ac_need_defaults; then
39678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39683 # Have a temporary directory for convenience. Make it in the build tree
39684 # simply because there is no reason to put it here, and in addition,
39685 # creating and moving files from /tmp can sometimes cause problems.
39686 # Create a temporary directory, and hook for its removal unless debugging.
39689 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39690 trap '{ (exit 1); exit 1; }' 1 2 13 15
39693 # Create a (secure) tmp directory for tmp files.
39696 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39697 test -n "$tmp" && test -d "$tmp"
39700 tmp=./confstat$$-$RANDOM
39701 (umask 077 && mkdir $tmp)
39704 echo "$me: cannot create a temporary directory in ." >&2
39705 { (exit 1); exit 1; }
39710 cat >>$CONFIG_STATUS <<_ACEOF
39713 # CONFIG_FILES section.
39716 # No need to generate the scripts if there are no CONFIG_FILES.
39717 # This happens for instance when ./config.status config.h
39718 if test -n "\$CONFIG_FILES"; then
39719 # Protect against being on the right side of a sed subst in config.status.
39720 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39721 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39722 s,@SHELL@,$SHELL,;t t
39723 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39724 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39725 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39726 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39727 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39728 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39729 s,@exec_prefix@,$exec_prefix,;t t
39730 s,@prefix@,$prefix,;t t
39731 s,@program_transform_name@,$program_transform_name,;t t
39732 s,@bindir@,$bindir,;t t
39733 s,@sbindir@,$sbindir,;t t
39734 s,@libexecdir@,$libexecdir,;t t
39735 s,@datadir@,$datadir,;t t
39736 s,@sysconfdir@,$sysconfdir,;t t
39737 s,@sharedstatedir@,$sharedstatedir,;t t
39738 s,@localstatedir@,$localstatedir,;t t
39739 s,@libdir@,$libdir,;t t
39740 s,@includedir@,$includedir,;t t
39741 s,@oldincludedir@,$oldincludedir,;t t
39742 s,@infodir@,$infodir,;t t
39743 s,@mandir@,$mandir,;t t
39744 s,@build_alias@,$build_alias,;t t
39745 s,@host_alias@,$host_alias,;t t
39746 s,@target_alias@,$target_alias,;t t
39747 s,@DEFS@,$DEFS,;t t
39748 s,@ECHO_C@,$ECHO_C,;t t
39749 s,@ECHO_N@,$ECHO_N,;t t
39750 s,@ECHO_T@,$ECHO_T,;t t
39751 s,@LIBS@,$LIBS,;t t
39752 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39753 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39754 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39755 s,@CYGPATH_W@,$CYGPATH_W,;t t
39756 s,@PACKAGE@,$PACKAGE,;t t
39757 s,@VERSION@,$VERSION,;t t
39758 s,@ACLOCAL@,$ACLOCAL,;t t
39759 s,@AUTOCONF@,$AUTOCONF,;t t
39760 s,@AUTOMAKE@,$AUTOMAKE,;t t
39761 s,@AUTOHEADER@,$AUTOHEADER,;t t
39762 s,@MAKEINFO@,$MAKEINFO,;t t
39763 s,@install_sh@,$install_sh,;t t
39764 s,@STRIP@,$STRIP,;t t
39765 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39766 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39767 s,@mkdir_p@,$mkdir_p,;t t
39769 s,@SET_MAKE@,$SET_MAKE,;t t
39770 s,@am__leading_dot@,$am__leading_dot,;t t
39771 s,@AMTAR@,$AMTAR,;t t
39772 s,@am__tar@,$am__tar,;t t
39773 s,@am__untar@,$am__untar,;t t
39774 s,@ac_prefix_program@,$ac_prefix_program,;t t
39775 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
39776 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
39777 s,@MAINT@,$MAINT,;t t
39779 s,@CFLAGS@,$CFLAGS,;t t
39780 s,@LDFLAGS@,$LDFLAGS,;t t
39781 s,@CPPFLAGS@,$CPPFLAGS,;t t
39782 s,@ac_ct_CC@,$ac_ct_CC,;t t
39783 s,@EXEEXT@,$EXEEXT,;t t
39784 s,@OBJEXT@,$OBJEXT,;t t
39785 s,@DEPDIR@,$DEPDIR,;t t
39786 s,@am__include@,$am__include,;t t
39787 s,@am__quote@,$am__quote,;t t
39788 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39789 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39790 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39791 s,@CCDEPMODE@,$CCDEPMODE,;t t
39792 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39793 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39795 s,@EGREP@,$EGREP,;t t
39796 s,@RANLIB@,$RANLIB,;t t
39797 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39798 s,@LN_S@,$LN_S,;t t
39799 s,@PERL@,$PERL,;t t
39801 s,@MKTEMP@,$MKTEMP,;t t
39802 s,@SENDMAIL@,$SENDMAIL,;t t
39804 s,@ROFF@,$ROFF,;t t
39805 s,@PS2PDF@,$PS2PDF,;t t
39806 s,@TEXI2DVI@,$TEXI2DVI,;t t
39807 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
39808 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
39809 s,@LIBOBJS@,$LIBOBJS,;t t
39810 s,@ALLOCA@,$ALLOCA,;t t
39811 s,@ALLOCA_H@,$ALLOCA_H,;t t
39812 s,@STDBOOL_H@,$STDBOOL_H,;t t
39813 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
39814 s,@FNMATCH_H@,$FNMATCH_H,;t t
39815 s,@YACC@,$YACC,;t t
39816 s,@YFLAGS@,$YFLAGS,;t t
39817 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
39818 s,@GETOPT_H@,$GETOPT_H,;t t
39819 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
39820 s,@HAVE_LONG_64BIT@,$HAVE_LONG_64BIT,;t t
39821 s,@HAVE_LONG_LONG_64BIT@,$HAVE_LONG_LONG_64BIT,;t t
39822 s,@STDINT_H@,$STDINT_H,;t t
39823 s,@EOVERFLOW@,$EOVERFLOW,;t t
39824 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
39825 s,@USE_NLS@,$USE_NLS,;t t
39826 s,@MSGFMT@,$MSGFMT,;t t
39827 s,@GMSGFMT@,$GMSGFMT,;t t
39828 s,@XGETTEXT@,$XGETTEXT,;t t
39829 s,@MSGMERGE@,$MSGMERGE,;t t
39830 s,@build@,$build,;t t
39831 s,@build_cpu@,$build_cpu,;t t
39832 s,@build_vendor@,$build_vendor,;t t
39833 s,@build_os@,$build_os,;t t
39834 s,@host@,$host,;t t
39835 s,@host_cpu@,$host_cpu,;t t
39836 s,@host_vendor@,$host_vendor,;t t
39837 s,@host_os@,$host_os,;t t
39838 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
39839 s,@LIBICONV@,$LIBICONV,;t t
39840 s,@LTLIBICONV@,$LTLIBICONV,;t t
39841 s,@INTLLIBS@,$INTLLIBS,;t t
39842 s,@LIBINTL@,$LIBINTL,;t t
39843 s,@LTLIBINTL@,$LTLIBINTL,;t t
39844 s,@POSUB@,$POSUB,;t t
39845 s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
39846 s,@cvs_client_objects@,$cvs_client_objects,;t t
39847 s,@KRB4@,$KRB4,;t t
39848 s,@ZLIB_SUBDIRS@,$ZLIB_SUBDIRS,;t t
39849 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
39850 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
39851 s,@with_default_rsh@,$with_default_rsh,;t t
39852 s,@RSH_DFLT@,$RSH_DFLT,;t t
39853 s,@EDITOR@,$EDITOR,;t t
39854 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39855 /@MKTEMP_SH_FUNCTION@/r $MKTEMP_SH_FUNCTION
39856 s,@MKTEMP_SH_FUNCTION@,,;t t
39861 cat >>$CONFIG_STATUS <<\_ACEOF
39862 # Split the substitutions into bite-sized pieces for seds with
39863 # small command number limits, like on Digital OSF/1 and HP-UX.
39864 ac_max_sed_lines=48
39865 ac_sed_frag=1 # Number of current file.
39866 ac_beg=1 # First line for current file.
39867 ac_end=$ac_max_sed_lines # Line after last line for current file.
39870 while $ac_more_lines; do
39871 if test $ac_beg -gt 1; then
39872 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39874 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39876 if test ! -s $tmp/subs.frag; then
39877 ac_more_lines=false
39879 # The purpose of the label and of the branching condition is to
39880 # speed up the sed processing (if there are no `@' at all, there
39881 # is no need to browse any of the substitutions).
39882 # These are the two extra sed commands mentioned above.
39884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39885 if test -z "$ac_sed_cmds"; then
39886 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39888 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39890 ac_sed_frag=`expr $ac_sed_frag + 1`
39892 ac_end=`expr $ac_end + $ac_max_sed_lines`
39895 if test -z "$ac_sed_cmds"; then
39898 fi # test -n "$CONFIG_FILES"
39901 cat >>$CONFIG_STATUS <<\_ACEOF
39902 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39905 - | *:- | *:-:* ) # input from stdin
39907 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39909 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39911 * ) ac_file_in=$ac_file.in ;;
39914 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39915 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39917 X"$ac_file" : 'X\(//\)[^/]' \| \
39918 X"$ac_file" : 'X\(//\)$' \| \
39919 X"$ac_file" : 'X\(/\)' \| \
39920 . : '\(.\)' 2>/dev/null ||
39922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39924 /^X\(\/\/\)$/{ s//\1/; q; }
39925 /^X\(\/\).*/{ s//\1/; q; }
39927 { if $as_mkdir_p; then
39932 while test ! -d "$as_dir"; do
39933 as_dirs="$as_dir $as_dirs"
39934 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39936 X"$as_dir" : 'X\(//\)[^/]' \| \
39937 X"$as_dir" : 'X\(//\)$' \| \
39938 X"$as_dir" : 'X\(/\)' \| \
39939 . : '\(.\)' 2>/dev/null ||
39941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39943 /^X\(\/\/\)$/{ s//\1/; q; }
39944 /^X\(\/\).*/{ s//\1/; q; }
39947 test ! -n "$as_dirs" || mkdir $as_dirs
39948 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39949 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39950 { (exit 1); exit 1; }; }; }
39954 if test "$ac_dir" != .; then
39955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39956 # A "../" for each directory in $ac_dir_suffix.
39957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39959 ac_dir_suffix= ac_top_builddir=
39963 .) # No --srcdir option. We are building in place.
39965 if test -z "$ac_top_builddir"; then
39968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39970 [\\/]* | ?:[\\/]* ) # Absolute path.
39971 ac_srcdir=$srcdir$ac_dir_suffix;
39972 ac_top_srcdir=$srcdir ;;
39973 *) # Relative path.
39974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39978 # Do not use `cd foo && pwd` to compute absolute paths, because
39979 # the directories may not exist.
39981 .) ac_abs_builddir="$ac_dir";;
39984 .) ac_abs_builddir=`pwd`;;
39985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
39989 case $ac_abs_builddir in
39990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39992 case ${ac_top_builddir}. in
39993 .) ac_abs_top_builddir=$ac_abs_builddir;;
39994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39998 case $ac_abs_builddir in
39999 .) ac_abs_srcdir=$ac_srcdir;;
40002 .) ac_abs_srcdir=$ac_abs_builddir;;
40003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40007 case $ac_abs_builddir in
40008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40010 case $ac_top_srcdir in
40011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40020 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40023 if test x"$ac_file" != x-; then
40024 { echo "$as_me:$LINENO: creating $ac_file" >&5
40025 echo "$as_me: creating $ac_file" >&6;}
40028 # Let's still pretend it is `configure' which instantiates (i.e., don't
40029 # use $as_me), people would be surprised to read:
40030 # /* config.h. Generated by config.status. */
40031 if test x"$ac_file" = x-; then
40034 configure_input="$ac_file. "
40036 configure_input=$configure_input"Generated from `echo $ac_file_in |
40037 sed 's,.*/,,'` by configure."
40039 # First look for the input files in the build tree, otherwise in the
40041 ac_file_inputs=`IFS=:
40042 for f in $ac_file_in; do
40044 -) echo $tmp/stdin ;;
40046 # Absolute (can't be DOS-style, as IFS=:)
40047 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40048 echo "$as_me: error: cannot find input file: $f" >&2;}
40049 { (exit 1); exit 1; }; }
40052 if test -f "$f"; then
40055 elif test -f "$srcdir/$f"; then
40060 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40061 echo "$as_me: error: cannot find input file: $f" >&2;}
40062 { (exit 1); exit 1; }; }
40065 done` || { (exit 1); exit 1; }
40067 cat >>$CONFIG_STATUS <<_ACEOF
40071 cat >>$CONFIG_STATUS <<\_ACEOF
40073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40074 s,@configure_input@,$configure_input,;t t
40075 s,@srcdir@,$ac_srcdir,;t t
40076 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40077 s,@top_srcdir@,$ac_top_srcdir,;t t
40078 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40079 s,@builddir@,$ac_builddir,;t t
40080 s,@abs_builddir@,$ac_abs_builddir,;t t
40081 s,@top_builddir@,$ac_top_builddir,;t t
40082 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40083 s,@INSTALL@,$ac_INSTALL,;t t
40084 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40086 if test x"$ac_file" != x-; then
40087 mv $tmp/out $ac_file
40093 # Run the commands associated with the file.
40095 contrib/validate_repo ) chmod +x contrib/validate_repo ;;
40096 contrib/clmerge ) chmod +x contrib/clmerge ;;
40097 contrib/cln_hist ) chmod +x contrib/cln_hist ;;
40098 contrib/commit_prep ) chmod +x contrib/commit_prep ;;
40099 contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
40100 contrib/log ) chmod +x contrib/log ;;
40101 contrib/log_accum ) chmod +x contrib/log_accum ;;
40102 contrib/mfpipe ) chmod +x contrib/mfpipe ;;
40103 contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
40104 contrib/rcs2log ) chmod +x contrib/rcs2log ;;
40105 contrib/rcslock ) chmod +x contrib/rcslock ;;
40106 contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
40107 doc/mkman ) chmod +x doc/mkman ;;
40108 src/cvsbug ) chmod +x src/cvsbug ;;
40112 cat >>$CONFIG_STATUS <<\_ACEOF
40115 # CONFIG_HEADER section.
40118 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40119 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40121 # ac_d sets the value in "#define NAME VALUE" lines.
40122 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40123 ac_dB='[ ].*$,\1#\2'
40126 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40127 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40128 ac_uB='$,\1#\2define\3'
40132 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40135 - | *:- | *:-:* ) # input from stdin
40137 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40139 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40141 * ) ac_file_in=$ac_file.in ;;
40144 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40145 echo "$as_me: creating $ac_file" >&6;}
40147 # First look for the input files in the build tree, otherwise in the
40149 ac_file_inputs=`IFS=:
40150 for f in $ac_file_in; do
40152 -) echo $tmp/stdin ;;
40154 # Absolute (can't be DOS-style, as IFS=:)
40155 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40156 echo "$as_me: error: cannot find input file: $f" >&2;}
40157 { (exit 1); exit 1; }; }
40158 # Do quote $f, to prevent DOS paths from being IFS'd.
40161 if test -f "$f"; then
40164 elif test -f "$srcdir/$f"; then
40169 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40170 echo "$as_me: error: cannot find input file: $f" >&2;}
40171 { (exit 1); exit 1; }; }
40174 done` || { (exit 1); exit 1; }
40175 # Remove the trailing spaces.
40176 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40180 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40181 # `conftest.undefs', that substitutes the proper values into
40182 # config.h.in to produce config.h. The first handles `#define'
40183 # templates, and the second `#undef' templates.
40184 # And first: Protect against being on the right side of a sed subst in
40185 # config.status. Protect against being in an unquoted here document
40186 # in config.status.
40187 rm -f conftest.defines conftest.undefs
40188 # Using a here document instead of a string reduces the quoting nightmare.
40189 # Putting comments in sed scripts is not portable.
40191 # `end' is used to avoid that the second main sed command (meant for
40192 # 0-ary CPP macros) applies to n-ary macro definitions.
40193 # See the Autoconf documentation for `clear'.
40194 cat >confdef2sed.sed <<\_ACEOF
40199 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40201 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40204 # If some macros were called several times there might be several times
40205 # the same #defines, which is useless. Nevertheless, we may not want to
40206 # sort them, since we want the *last* AC-DEFINE to be honored.
40207 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40208 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40209 rm -f confdef2sed.sed
40211 # This sed command replaces #undef with comments. This is necessary, for
40212 # example, in the case of _POSIX_SOURCE, which is predefined and required
40213 # on some systems where configure will not decide to define it.
40214 cat >>conftest.undefs <<\_ACEOF
40215 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40218 # Break up conftest.defines because some shells have a limit on the size
40219 # of here documents, and old seds have small limits too (100 cmds).
40220 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40221 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40222 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40223 echo ' :' >>$CONFIG_STATUS
40224 rm -f conftest.tail
40225 while grep . conftest.defines >/dev/null
40227 # Write a limited-size here document to $tmp/defines.sed.
40228 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40229 # Speed up: don't consider the non `#define' lines.
40230 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40231 # Work around the forget-to-reset-the-flag bug.
40232 echo 't clr' >>$CONFIG_STATUS
40233 echo ': clr' >>$CONFIG_STATUS
40234 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40236 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40238 mv $tmp/out $tmp/in
40240 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40241 rm -f conftest.defines
40242 mv conftest.tail conftest.defines
40244 rm -f conftest.defines
40245 echo ' fi # grep' >>$CONFIG_STATUS
40246 echo >>$CONFIG_STATUS
40248 # Break up conftest.undefs because some shells have a limit on the size
40249 # of here documents, and old seds have small limits too (100 cmds).
40250 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40251 rm -f conftest.tail
40252 while grep . conftest.undefs >/dev/null
40254 # Write a limited-size here document to $tmp/undefs.sed.
40255 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40256 # Speed up: don't consider the non `#undef'
40257 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40258 # Work around the forget-to-reset-the-flag bug.
40259 echo 't clr' >>$CONFIG_STATUS
40260 echo ': clr' >>$CONFIG_STATUS
40261 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40263 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40265 mv $tmp/out $tmp/in
40267 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40268 rm -f conftest.undefs
40269 mv conftest.tail conftest.undefs
40271 rm -f conftest.undefs
40273 cat >>$CONFIG_STATUS <<\_ACEOF
40274 # Let's still pretend it is `configure' which instantiates (i.e., don't
40275 # use $as_me), people would be surprised to read:
40276 # /* config.h. Generated by config.status. */
40277 if test x"$ac_file" = x-; then
40278 echo "/* Generated by configure. */" >$tmp/config.h
40280 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40282 cat $tmp/in >>$tmp/config.h
40284 if test x"$ac_file" != x-; then
40285 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40286 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40287 echo "$as_me: $ac_file is unchanged" >&6;}
40289 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40291 X"$ac_file" : 'X\(//\)[^/]' \| \
40292 X"$ac_file" : 'X\(//\)$' \| \
40293 X"$ac_file" : 'X\(/\)' \| \
40294 . : '\(.\)' 2>/dev/null ||
40296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40298 /^X\(\/\/\)$/{ s//\1/; q; }
40299 /^X\(\/\).*/{ s//\1/; q; }
40301 { if $as_mkdir_p; then
40306 while test ! -d "$as_dir"; do
40307 as_dirs="$as_dir $as_dirs"
40308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40310 X"$as_dir" : 'X\(//\)[^/]' \| \
40311 X"$as_dir" : 'X\(//\)$' \| \
40312 X"$as_dir" : 'X\(/\)' \| \
40313 . : '\(.\)' 2>/dev/null ||
40315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40317 /^X\(\/\/\)$/{ s//\1/; q; }
40318 /^X\(\/\).*/{ s//\1/; q; }
40321 test ! -n "$as_dirs" || mkdir $as_dirs
40322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40324 { (exit 1); exit 1; }; }; }
40327 mv $tmp/config.h $ac_file
40331 rm -f $tmp/config.h
40333 # Compute $ac_file's index in $config_headers.
40335 for _am_header in $config_headers :; do
40336 case $_am_header in
40337 $ac_file | $ac_file:* )
40340 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40343 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40344 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40345 X$ac_file : 'X\(//\)[^/]' \| \
40346 X$ac_file : 'X\(//\)$' \| \
40347 X$ac_file : 'X\(/\)' \| \
40348 . : '\(.\)' 2>/dev/null ||
40350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40352 /^X\(\/\/\)$/{ s//\1/; q; }
40353 /^X\(\/\).*/{ s//\1/; q; }
40354 s/.*/./; q'`/stamp-h$_am_stamp_count
40357 cat >>$CONFIG_STATUS <<\_ACEOF
40360 # CONFIG_COMMANDS section.
40362 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40363 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40364 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40365 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40366 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40367 X"$ac_dest" : 'X\(//\)[^/]' \| \
40368 X"$ac_dest" : 'X\(//\)$' \| \
40369 X"$ac_dest" : 'X\(/\)' \| \
40370 . : '\(.\)' 2>/dev/null ||
40372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40374 /^X\(\/\/\)$/{ s//\1/; q; }
40375 /^X\(\/\).*/{ s//\1/; q; }
40377 { if $as_mkdir_p; then
40382 while test ! -d "$as_dir"; do
40383 as_dirs="$as_dir $as_dirs"
40384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40386 X"$as_dir" : 'X\(//\)[^/]' \| \
40387 X"$as_dir" : 'X\(//\)$' \| \
40388 X"$as_dir" : 'X\(/\)' \| \
40389 . : '\(.\)' 2>/dev/null ||
40391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40393 /^X\(\/\/\)$/{ s//\1/; q; }
40394 /^X\(\/\).*/{ s//\1/; q; }
40397 test ! -n "$as_dirs" || mkdir $as_dirs
40398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40399 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40400 { (exit 1); exit 1; }; }; }
40404 if test "$ac_dir" != .; then
40405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40406 # A "../" for each directory in $ac_dir_suffix.
40407 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40409 ac_dir_suffix= ac_top_builddir=
40413 .) # No --srcdir option. We are building in place.
40415 if test -z "$ac_top_builddir"; then
40418 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40420 [\\/]* | ?:[\\/]* ) # Absolute path.
40421 ac_srcdir=$srcdir$ac_dir_suffix;
40422 ac_top_srcdir=$srcdir ;;
40423 *) # Relative path.
40424 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40425 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40428 # Do not use `cd foo && pwd` to compute absolute paths, because
40429 # the directories may not exist.
40431 .) ac_abs_builddir="$ac_dir";;
40434 .) ac_abs_builddir=`pwd`;;
40435 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40436 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40439 case $ac_abs_builddir in
40440 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40442 case ${ac_top_builddir}. in
40443 .) ac_abs_top_builddir=$ac_abs_builddir;;
40444 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40445 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40448 case $ac_abs_builddir in
40449 .) ac_abs_srcdir=$ac_srcdir;;
40452 .) ac_abs_srcdir=$ac_abs_builddir;;
40453 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40454 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40457 case $ac_abs_builddir in
40458 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40460 case $ac_top_srcdir in
40461 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40462 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40463 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40468 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40469 echo "$as_me: executing $ac_dest commands" >&6;}
40471 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40472 # Strip MF so we end up with the name of the file.
40473 mf=`echo "$mf" | sed -e 's/:.*$//'`
40474 # Check whether this is an Automake generated Makefile or not.
40475 # We used to match only the files named `Makefile.in', but
40476 # some people rename them; so instead we look at the file content.
40477 # Grep'ing the first line is not enough: some people post-process
40478 # each Makefile.in and add a new line on top of each file to say so.
40479 # So let's grep whole file.
40480 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40481 dirpart=`(dirname "$mf") 2>/dev/null ||
40482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40483 X"$mf" : 'X\(//\)[^/]' \| \
40484 X"$mf" : 'X\(//\)$' \| \
40485 X"$mf" : 'X\(/\)' \| \
40486 . : '\(.\)' 2>/dev/null ||
40488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40490 /^X\(\/\/\)$/{ s//\1/; q; }
40491 /^X\(\/\).*/{ s//\1/; q; }
40496 # Extract the definition of DEPDIR, am__include, and am__quote
40497 # from the Makefile without running `make'.
40498 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40499 test -z "$DEPDIR" && continue
40500 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40501 test -z "am__include" && continue
40502 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40503 # When using ansi2knr, U may be empty or an underscore; expand it
40504 U=`sed -n 's/^U = //p' < "$mf"`
40505 # Find all dependency output files, they are included files with
40506 # $(DEPDIR) in their names. We invoke sed twice because it is the
40507 # simplest approach to changing $(DEPDIR) to its actual value in the
40509 for file in `sed -n "
40510 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40511 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40512 # Make sure the directory exists.
40513 test -f "$dirpart/$file" && continue
40514 fdir=`(dirname "$file") 2>/dev/null ||
40515 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40516 X"$file" : 'X\(//\)[^/]' \| \
40517 X"$file" : 'X\(//\)$' \| \
40518 X"$file" : 'X\(/\)' \| \
40519 . : '\(.\)' 2>/dev/null ||
40521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40523 /^X\(\/\/\)$/{ s//\1/; q; }
40524 /^X\(\/\).*/{ s//\1/; q; }
40526 { if $as_mkdir_p; then
40527 mkdir -p $dirpart/$fdir
40529 as_dir=$dirpart/$fdir
40531 while test ! -d "$as_dir"; do
40532 as_dirs="$as_dir $as_dirs"
40533 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40535 X"$as_dir" : 'X\(//\)[^/]' \| \
40536 X"$as_dir" : 'X\(//\)$' \| \
40537 X"$as_dir" : 'X\(/\)' \| \
40538 . : '\(.\)' 2>/dev/null ||
40540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40542 /^X\(\/\/\)$/{ s//\1/; q; }
40543 /^X\(\/\).*/{ s//\1/; q; }
40546 test ! -n "$as_dirs" || mkdir $as_dirs
40547 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40548 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40549 { (exit 1); exit 1; }; }; }
40551 # echo "creating $dirpart/$file"
40552 echo '# dummy' > "$dirpart/$file"
40557 for ac_file in $CONFIG_FILES; do
40558 # Support "outfile[:infile[:infile...]]"
40560 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
40562 # PO directories have a Makefile.in generated from Makefile.in.in.
40563 case "$ac_file" in */Makefile.in)
40564 # Adjust a relative srcdir.
40565 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
40566 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
40567 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
40568 # In autoconf-2.13 it is called $ac_given_srcdir.
40569 # In autoconf-2.50 it is called $srcdir.
40570 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
40571 case "$ac_given_srcdir" in
40572 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
40573 /*) top_srcdir="$ac_given_srcdir" ;;
40574 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
40576 # Treat a directory as a PO directory if and only if it has a
40577 # POTFILES.in file. This allows packages to have multiple PO
40578 # directories under different names or in different locations.
40579 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
40580 rm -f "$ac_dir/POTFILES"
40581 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
40582 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
40583 POMAKEFILEDEPS="POTFILES.in"
40584 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
40585 # on $ac_dir but don't depend on user-specified configuration
40587 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
40588 # The LINGUAS file contains the set of available languages.
40589 if test -n "$OBSOLETE_ALL_LINGUAS"; then
40590 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
40592 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
40593 # Hide the ALL_LINGUAS assigment from automake.
40594 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
40595 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
40597 # The set of available languages was given in configure.in.
40598 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
40601 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
40602 # Compute UPDATEPOFILES
40603 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
40604 # Compute DUMMYPOFILES
40605 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
40607 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
40608 case "$ac_given_srcdir" in
40610 *) srcdirpre='$(srcdir)/' ;;
40616 for lang in $ALL_LINGUAS; do
40617 POFILES="$POFILES $srcdirpre$lang.po"
40618 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
40619 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
40620 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
40622 # CATALOGS depends on both $ac_dir and the user's LINGUAS
40623 # environment variable.
40625 if test -n "$ALL_LINGUAS"; then
40626 for presentlang in $ALL_LINGUAS; do
40628 if test "%UNSET%" != "$LINGUAS"; then
40629 desiredlanguages="$LINGUAS"
40631 desiredlanguages="$ALL_LINGUAS"
40633 for desiredlang in $desiredlanguages; do
40634 # Use the presentlang catalog if desiredlang is
40635 # a. equal to presentlang, or
40636 # b. a variant of presentlang (because in this case,
40637 # presentlang can be used as a fallback for messages
40638 # which are not translated in the desiredlang catalog).
40639 case "$desiredlang" in
40640 "$presentlang"*) useit=yes;;
40643 if test $useit = yes; then
40644 INST_LINGUAS="$INST_LINGUAS $presentlang"
40649 if test -n "$INST_LINGUAS"; then
40650 for lang in $INST_LINGUAS; do
40651 CATALOGS="$CATALOGS $lang.gmo"
40654 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
40655 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
40656 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
40657 if test -f "$f"; then
40659 *.orig | *.bak | *~) ;;
40660 *) cat "$f" >> "$ac_dir/Makefile" ;;
40672 cat >>$CONFIG_STATUS <<\_ACEOF
40674 { (exit 0); exit 0; }
40676 chmod +x $CONFIG_STATUS
40677 ac_clean_files=$ac_clean_files_save
40680 # configure is writing to config.log, and then calls config.status.
40681 # config.status does its own redirection, appending to config.log.
40682 # Unfortunately, on DOS this fails, as config.log is still kept open
40683 # by configure, so config.status won't be able to write to it; its
40684 # output is simply discarded. So we exec the FD to /dev/null,
40685 # effectively closing config.log, so it can be properly (re)opened and
40686 # appended to by config.status. When coming back to configure, we
40687 # need to make the FD available again.
40688 if test "$no_create" != yes; then
40690 ac_config_status_args=
40691 test "$silent" = yes &&
40692 ac_config_status_args="$ac_config_status_args --quiet"
40694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40697 # would make configure fail if this is the last instruction.
40698 $ac_cs_success || { (exit 1); exit 1; }
40704 # Report the state of this version of CVS if this is from dev.