2 # From configure.in for Bash 3.1, version 3.182.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for bash 3.1-rc2.
6 # Report bugs to <bug-bash@gnu.org>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
272 PACKAGE_TARNAME='bash'
273 PACKAGE_VERSION='3.1-rc2'
274 PACKAGE_STRING='bash 3.1-rc2'
275 PACKAGE_BUGREPORT='bug-bash@gnu.org'
277 ac_unique_file="shell.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EMACS lispdir DEBUGGER_START_FILE TESTSCRIPT PURIFY MALLOC_TARGET MALLOC_SRC MALLOC_LIB MALLOC_LIBRARY MALLOC_LDFLAGS MALLOC_DEP htmldir HELPDIR HELPDIRDEFINE HELPINSTALL HELPSTRINGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILE SIGNAMES_H CC_FOR_BUILD STATIC_LD CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD RL_VERSION RL_MAJOR RL_MINOR READLINE_LIB READLINE_DEP RL_LIBDIR RL_INCLUDEDIR RL_INCLUDE HISTORY_LIB HISTORY_DEP HIST_LIBDIR TILDE_LIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL SIZE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS INTL_DEP INTL_INC LIBINTL_H SIGLIST_O TERMCAP_LIB TERMCAP_DEP JOBS_O SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS PROFILE_FLAGS incdir BUILD_DIR ARFLAGS BASHVERS RELSTATUS DEBUG MALLOC_DEBUG LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
757 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
758 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
759 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
760 ac_env_CC_set=${CC+set}
762 ac_cv_env_CC_set=${CC+set}
763 ac_cv_env_CC_value=$CC
764 ac_env_CFLAGS_set=${CFLAGS+set}
765 ac_env_CFLAGS_value=$CFLAGS
766 ac_cv_env_CFLAGS_set=${CFLAGS+set}
767 ac_cv_env_CFLAGS_value=$CFLAGS
768 ac_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_env_LDFLAGS_value=$LDFLAGS
770 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_cv_env_LDFLAGS_value=$LDFLAGS
772 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_env_CPPFLAGS_value=$CPPFLAGS
774 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures bash 3.1-rc2 to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of bash 3.1-rc2:";;
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-minimal-config a minimal sh-like configuration
857 --enable-alias enable shell aliases
858 --enable-arith-for-command
859 enable arithmetic for command
860 --enable-array-variables
861 include shell array variables
862 --enable-bang-history turn on csh-style history substitution
863 --enable-brace-expansion
864 include brace expansion
865 --enable-command-timing enable the time reserved word and command timing
866 --enable-cond-command enable the conditional command
867 --enable-cond-regexp enable extgended regular expression matching in
869 --enable-debugger enable support for bash debugger
870 --enable-directory-stack
871 enable builtins pushd/popd/dirs
872 --enable-disabled-builtins
873 allow disabled builtins to still be invoked
874 --enable-dparen-arithmetic
875 include ((...)) command
876 --enable-extended-glob include ksh-style extended pattern matching
877 --enable-help-builtin include the help builtin
878 --enable-history turn on command history
879 --enable-job-control enable job control features
880 --enable-multibyte enable multibyte characters if OS supports them
881 --enable-net-redirections
882 enable /dev/tcp/host/port redirection
883 --enable-process-substitution
884 enable process substitution
885 --enable-progcomp enable programmable completion and the complete
887 --enable-prompt-string-decoding
888 turn on escape character decoding in prompts
889 --enable-readline turn on command line editing
890 --enable-restricted enable a restricted shell
891 --enable-select include select command
892 --enable-separate-helpfiles
893 use external files for help builtin documentation
894 --enable-single-help-strings
895 store help documentation as a single string to ease
897 --enable-strict-posix-default
898 configure bash to be posix-conformant by default
899 --enable-usg-echo-default
900 a synonym for --enable-xpg-echo-default
901 --enable-xpg-echo-default
902 make the echo builtin expand escape sequences by
904 --enable-mem-scramble scramble memory on calls to malloc and free
905 --enable-profiling allow profiling with gprof
906 --enable-static-link link bash statically, for use as a root shell
907 --disable-largefile omit support for large files
908 --disable-nls do not use Native Language Support
909 --disable-rpath do not hardcode runtime library paths
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --with-lispdir override the default lisp directory
915 --with-afs if you are running AFS
916 --with-bash-malloc use the Bash version of malloc
917 --with-curses use the curses library instead of the termcap
919 --with-gnu-malloc synonym for --with-bash-malloc
920 --with-installed-readline
921 use a version of the readline library that is
923 --with-purecov configure to postprocess with pure coverage
924 --with-purify configure to postprocess with purify
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search for libiconv in includedir and libdir
928 --with-included-gettext use the GNU gettext library included here
929 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
930 --without-libintl-prefix don't search for libintl in includedir and libdir
932 Some influential environment variables:
934 location of bash debugger initialization file
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
943 Use these variables to override the choices made by `configure' or to help
944 it to find libraries and programs with nonstandard names/locations.
946 Report bugs to <bug-bash@gnu.org>.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1042 bash configure 3.1-rc2
1043 generated by GNU Autoconf 2.59
1045 Copyright (C) 2003 Free Software Foundation, Inc.
1046 This configure script is free software; the Free Software Foundation
1047 gives unlimited permission to copy, distribute and modify it.
1053 This file contains any messages produced by compilers while
1054 running configure, to aid debugging if configure makes a mistake.
1056 It was created by bash $as_me 3.1-rc2, which was
1057 generated by GNU Autoconf 2.59. Invocation command line was
1068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1075 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1077 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1078 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1080 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1081 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1082 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1083 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1091 test -z "$as_dir" && as_dir=.
1092 echo "PATH: $as_dir"
1107 # Keep a trace of the command line.
1108 # Strip out --no-create and --no-recursion so they do not pile up.
1109 # Strip out --silent because we don't want to record it for future runs.
1110 # Also quote any args containing shell meta-characters.
1111 # Make two passes to allow for proper duplicate-argument suppression.
1116 ac_must_keep_next=false
1122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1126 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1130 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1132 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133 if test $ac_must_keep_next = true; then
1134 ac_must_keep_next=false # Got value, back to normal.
1137 *=* | --config-cache | -C | -disable-* | --disable-* \
1138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140 | -with-* | --with-* | -without-* | --without-* | --x)
1141 case "$ac_configure_args0 " in
1142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1145 -* ) ac_must_keep_next=true ;;
1148 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149 # Get rid of the leading space.
1155 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1158 # When interrupted or exit'd, cleanup temporary files, and complete
1159 # config.log. We remove comments because anyway the quotes in there
1160 # would cause problems or look ugly.
1161 # WARNING: Be sure not to use single quotes in there, as some shells,
1162 # such as our DU 5.0 friend, will then `close' the trap.
1163 trap 'exit_status=$?
1164 # Save into config.log some information that might help in debugging.
1169 ## ---------------- ##
1170 ## Cache variables. ##
1171 ## ---------------- ##
1174 # The following way of writing the cache mishandles newlines in values,
1177 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1180 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1185 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1192 ## ----------------- ##
1193 ## Output variables. ##
1194 ## ----------------- ##
1197 for ac_var in $ac_subst_vars
1199 eval ac_val=$`echo $ac_var`
1200 echo "$ac_var='"'"'$ac_val'"'"'"
1204 if test -n "$ac_subst_files"; then
1211 for ac_var in $ac_subst_files
1213 eval ac_val=$`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1219 if test -s confdefs.h; then
1226 sed "/^$/d" confdefs.h | sort
1229 test "$ac_signal" != 0 &&
1230 echo "$as_me: caught signal $ac_signal"
1231 echo "$as_me: exit $exit_status"
1233 rm -f core *.core &&
1234 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1237 for ac_signal in 1 2 13 15; do
1238 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1243 rm -rf conftest* confdefs.h
1244 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1247 # Predefined preprocessor variables.
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_NAME "$PACKAGE_NAME"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_STRING "$PACKAGE_STRING"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1274 # Let the site file select an alternate cache file if it wants to.
1275 # Prefer explicitly selected file to automatically selected ones.
1276 if test -z "$CONFIG_SITE"; then
1277 if test "x$prefix" != xNONE; then
1278 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1280 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1283 for ac_site_file in $CONFIG_SITE; do
1284 if test -r "$ac_site_file"; then
1285 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1286 echo "$as_me: loading site script $ac_site_file" >&6;}
1287 sed 's/^/| /' "$ac_site_file" >&5
1292 if test -r "$cache_file"; then
1293 # Some versions of bash will fail to source /dev/null (special
1294 # files actually), so we avoid doing that.
1295 if test -f "$cache_file"; then
1296 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1297 echo "$as_me: loading cache $cache_file" >&6;}
1299 [\\/]* | ?:[\\/]* ) . $cache_file;;
1300 *) . ./$cache_file;;
1304 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1305 echo "$as_me: creating cache $cache_file" >&6;}
1309 # Check that the precious variables saved in the cache have kept the same
1311 ac_cache_corrupted=false
1312 for ac_var in `(set) 2>&1 |
1313 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315 eval ac_new_set=\$ac_env_${ac_var}_set
1316 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317 eval ac_new_val="\$ac_env_${ac_var}_value"
1318 case $ac_old_set,$ac_new_set in
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1324 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1325 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326 ac_cache_corrupted=: ;;
1329 if test "x$ac_old_val" != "x$ac_new_val"; then
1330 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1331 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1332 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1333 echo "$as_me: former value: $ac_old_val" >&2;}
1334 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1335 echo "$as_me: current value: $ac_new_val" >&2;}
1336 ac_cache_corrupted=:
1339 # Pass precious variables to config.status.
1340 if test "$ac_new_set" = set; then
1342 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1343 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1344 *) ac_arg=$ac_var=$ac_new_val ;;
1346 case " $ac_configure_args " in
1347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1348 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1352 if $ac_cache_corrupted; then
1353 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1354 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1355 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1356 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357 { (exit 1); exit 1; }; }
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 for ac_dir in ./support $srcdir/./support; do
1398 if test -f $ac_dir/install-sh; then
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1402 elif test -f $ac_dir/install.sh; then
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1406 elif test -f $ac_dir/shtool; then
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1412 if test -z "$ac_aux_dir"; then
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1415 { (exit 1); exit 1; }; }
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1421 ac_config_headers="$ac_config_headers config.h"
1427 case "$RELSTATUS" in
1428 alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1429 *) DEBUG= MALLOC_DEBUG= ;;
1432 # Make sure we can run config.sub.
1433 $ac_config_sub sun4 >/dev/null 2>&1 ||
1434 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1435 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1436 { (exit 1); exit 1; }; }
1438 echo "$as_me:$LINENO: checking build system type" >&5
1439 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1440 if test "${ac_cv_build+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 ac_cv_build_alias=$build_alias
1444 test -z "$ac_cv_build_alias" &&
1445 ac_cv_build_alias=`$ac_config_guess`
1446 test -z "$ac_cv_build_alias" &&
1447 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1449 { (exit 1); exit 1; }; }
1450 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1457 echo "${ECHO_T}$ac_cv_build" >&6
1459 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking host system type" >&5
1465 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1466 if test "${ac_cv_host+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_host_alias=$host_alias
1470 test -z "$ac_cv_host_alias" &&
1471 ac_cv_host_alias=$ac_cv_build_alias
1472 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1479 echo "${ECHO_T}$ac_cv_host" >&6
1481 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492 opt_with_installed_readline=no
1496 case "${host_cpu}-${host_os}" in
1497 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1498 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1499 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1500 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1501 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
1502 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1503 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1504 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
1505 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
1506 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
1507 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
1508 *-aix*) opt_bash_malloc=no ;; # AIX machines
1509 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
1510 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1511 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1512 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
1513 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1514 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
1515 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1516 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1517 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
1518 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1519 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
1522 # memory scrambling on free()
1523 case "${host_os}" in
1524 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
1525 *) opt_memscramble=yes ;;
1529 # Check whether --with-lispdir or --without-lispdir was given.
1530 if test "${with_lispdir+set}" = set; then
1531 withval="$with_lispdir"
1533 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1534 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1535 echo "$as_me:$LINENO: result: $lispdir" >&5
1536 echo "${ECHO_T}$lispdir" >&6
1539 # If set to t, that means we are running in a shell under Emacs.
1540 # If you have an Emacs named "t", then use the full path.
1541 test x"$EMACS" = xt && EMACS=
1542 for ac_prog in emacs xemacs
1544 # Extract the first word of "$ac_prog", so it can be a program name with args.
1545 set dummy $ac_prog; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_EMACS+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$EMACS"; then
1552 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_EMACS="$ac_prog"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 EMACS=$ac_cv_prog_EMACS
1571 if test -n "$EMACS"; then
1572 echo "$as_me:$LINENO: result: $EMACS" >&5
1573 echo "${ECHO_T}$EMACS" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1579 test -n "$EMACS" && break
1581 test -n "$EMACS" || EMACS="no"
1583 if test $EMACS != "no"; then
1584 if test x${lispdir+set} != xset; then
1585 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1586 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1587 if test "${am_cv_lispdir+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
1591 if test -z "$am_cv_lispdir"; then
1592 am_cv_lispdir='${datadir}/emacs/site-lisp'
1596 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1597 echo "${ECHO_T}$am_cv_lispdir" >&6
1598 lispdir="$am_cv_lispdir"
1608 # Check whether --with-afs or --without-afs was given.
1609 if test "${with_afs+set}" = set; then
1614 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1615 if test "${with_bash_malloc+set}" = set; then
1616 withval="$with_bash_malloc"
1617 opt_bash_malloc=$withval
1620 # Check whether --with-curses or --without-curses was given.
1621 if test "${with_curses+set}" = set; then
1622 withval="$with_curses"
1626 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1627 if test "${with_gnu_malloc+set}" = set; then
1628 withval="$with_gnu_malloc"
1629 opt_bash_malloc=$withval
1632 # Check whether --with-installed-readline or --without-installed-readline was given.
1633 if test "${with_installed_readline+set}" = set; then
1634 withval="$with_installed_readline"
1635 opt_with_installed_readline=$withval
1638 # Check whether --with-purecov or --without-purecov was given.
1639 if test "${with_purecov+set}" = set; then
1640 withval="$with_purecov"
1641 opt_purecov=$withval
1644 # Check whether --with-purify or --without-purify was given.
1645 if test "${with_purify+set}" = set; then
1646 withval="$with_purify"
1650 if test "$opt_bash_malloc" = yes; then
1651 MALLOC_TARGET=malloc
1654 MALLOC_LIB='-lmalloc'
1655 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1656 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1657 MALLOC_DEP='$(MALLOC_LIBRARY)'
1659 cat >>confdefs.h <<\_ACEOF
1660 #define USING_BASH_MALLOC 1
1670 if test "$opt_purify" = yes; then
1672 cat >>confdefs.h <<\_ACEOF
1673 #define DISABLE_MALLOC_WRAPPERS 1
1680 if test "$opt_purecov" = yes; then
1681 PURIFY="${PURIFY}purecov"
1684 if test "$opt_afs" = yes; then
1685 cat >>confdefs.h <<\_ACEOF
1691 if test "$opt_curses" = yes; then
1695 if test -z "${DEBUGGER_START_FILE}"; then
1696 DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1699 opt_minimal_config=no
1705 opt_bang_history=yes
1708 opt_process_subst=yes
1709 opt_prompt_decoding=yes
1712 opt_array_variables=yes
1713 opt_dparen_arith=yes
1714 opt_extended_glob=yes
1715 opt_brace_expansion=yes
1716 opt_disabled_builtins=no
1717 opt_command_timing=yes
1720 opt_cond_command=yes
1722 opt_arith_for_command=yes
1725 opt_separate_help=no
1728 opt_single_longdoc_strings=yes
1733 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1734 if test "${enable_minimal_config+set}" = set; then
1735 enableval="$enable_minimal_config"
1736 opt_minimal_config=$enableval
1739 if test $opt_minimal_config = yes; then
1740 opt_job_control=no opt_alias=no opt_readline=no
1741 opt_history=no opt_bang_history=no opt_dirstack=no
1742 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1743 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1744 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1745 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1746 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1747 opt_multibyte=yes opt_cond_regexp=no
1750 # Check whether --enable-alias or --disable-alias was given.
1751 if test "${enable_alias+set}" = set; then
1752 enableval="$enable_alias"
1753 opt_alias=$enableval
1755 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1756 if test "${enable_arith_for_command+set}" = set; then
1757 enableval="$enable_arith_for_command"
1758 opt_arith_for_command=$enableval
1760 # Check whether --enable-array-variables or --disable-array-variables was given.
1761 if test "${enable_array_variables+set}" = set; then
1762 enableval="$enable_array_variables"
1763 opt_array_variables=$enableval
1765 # Check whether --enable-bang-history or --disable-bang-history was given.
1766 if test "${enable_bang_history+set}" = set; then
1767 enableval="$enable_bang_history"
1768 opt_bang_history=$enableval
1770 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1771 if test "${enable_brace_expansion+set}" = set; then
1772 enableval="$enable_brace_expansion"
1773 opt_brace_expansion=$enableval
1775 # Check whether --enable-command-timing or --disable-command-timing was given.
1776 if test "${enable_command_timing+set}" = set; then
1777 enableval="$enable_command_timing"
1778 opt_command_timing=$enableval
1780 # Check whether --enable-cond-command or --disable-cond-command was given.
1781 if test "${enable_cond_command+set}" = set; then
1782 enableval="$enable_cond_command"
1783 opt_cond_command=$enableval
1785 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1786 if test "${enable_cond_regexp+set}" = set; then
1787 enableval="$enable_cond_regexp"
1788 opt_cond_regexp=$enableval
1790 # Check whether --enable-debugger or --disable-debugger was given.
1791 if test "${enable_debugger+set}" = set; then
1792 enableval="$enable_debugger"
1793 opt_debugger=$enableval
1795 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1796 if test "${enable_directory_stack+set}" = set; then
1797 enableval="$enable_directory_stack"
1798 opt_dirstack=$enableval
1800 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1801 if test "${enable_disabled_builtins+set}" = set; then
1802 enableval="$enable_disabled_builtins"
1803 opt_disabled_builtins=$enableval
1805 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1806 if test "${enable_dparen_arithmetic+set}" = set; then
1807 enableval="$enable_dparen_arithmetic"
1808 opt_dparen_arith=$enableval
1810 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1811 if test "${enable_extended_glob+set}" = set; then
1812 enableval="$enable_extended_glob"
1813 opt_extended_glob=$enableval
1815 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1816 if test "${enable_help_builtin+set}" = set; then
1817 enableval="$enable_help_builtin"
1820 # Check whether --enable-history or --disable-history was given.
1821 if test "${enable_history+set}" = set; then
1822 enableval="$enable_history"
1823 opt_history=$enableval
1825 # Check whether --enable-job-control or --disable-job-control was given.
1826 if test "${enable_job_control+set}" = set; then
1827 enableval="$enable_job_control"
1828 opt_job_control=$enableval
1830 # Check whether --enable-multibyte or --disable-multibyte was given.
1831 if test "${enable_multibyte+set}" = set; then
1832 enableval="$enable_multibyte"
1833 opt_multibyte=$enableval
1835 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1836 if test "${enable_net_redirections+set}" = set; then
1837 enableval="$enable_net_redirections"
1838 opt_net_redirs=$enableval
1840 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1841 if test "${enable_process_substitution+set}" = set; then
1842 enableval="$enable_process_substitution"
1843 opt_process_subst=$enableval
1845 # Check whether --enable-progcomp or --disable-progcomp was given.
1846 if test "${enable_progcomp+set}" = set; then
1847 enableval="$enable_progcomp"
1848 opt_progcomp=$enableval
1850 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1851 if test "${enable_prompt_string_decoding+set}" = set; then
1852 enableval="$enable_prompt_string_decoding"
1853 opt_prompt_decoding=$enableval
1855 # Check whether --enable-readline or --disable-readline was given.
1856 if test "${enable_readline+set}" = set; then
1857 enableval="$enable_readline"
1858 opt_readline=$enableval
1860 # Check whether --enable-restricted or --disable-restricted was given.
1861 if test "${enable_restricted+set}" = set; then
1862 enableval="$enable_restricted"
1863 opt_restricted=$enableval
1865 # Check whether --enable-select or --disable-select was given.
1866 if test "${enable_select+set}" = set; then
1867 enableval="$enable_select"
1868 opt_select=$enableval
1870 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1871 if test "${enable_separate_helpfiles+set}" = set; then
1872 enableval="$enable_separate_helpfiles"
1873 opt_separate_help=$enableval
1875 # Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1876 if test "${enable_single_help_strings+set}" = set; then
1877 enableval="$enable_single_help_strings"
1878 opt_single_longdoc_strings=$enableval
1880 # Check whether --enable-strict-posix-default or --disable-strict-posix-default was given.
1881 if test "${enable_strict_posix_default+set}" = set; then
1882 enableval="$enable_strict_posix_default"
1883 opt_strict_posix=$enableval
1885 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1886 if test "${enable_usg_echo_default+set}" = set; then
1887 enableval="$enable_usg_echo_default"
1888 opt_xpg_echo=$enableval
1890 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1891 if test "${enable_xpg_echo_default+set}" = set; then
1892 enableval="$enable_xpg_echo_default"
1893 opt_xpg_echo=$enableval
1896 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1897 if test "${enable_mem_scramble+set}" = set; then
1898 enableval="$enable_mem_scramble"
1899 opt_memscramble=$enableval
1901 # Check whether --enable-profiling or --disable-profiling was given.
1902 if test "${enable_profiling+set}" = set; then
1903 enableval="$enable_profiling"
1904 opt_profiling=$enableval
1906 # Check whether --enable-static-link or --disable-static-link was given.
1907 if test "${enable_static_link+set}" = set; then
1908 enableval="$enable_static_link"
1909 opt_static_link=$enableval
1914 if test $opt_alias = yes; then
1915 cat >>confdefs.h <<\_ACEOF
1920 if test $opt_dirstack = yes; then
1921 cat >>confdefs.h <<\_ACEOF
1922 #define PUSHD_AND_POPD 1
1926 if test $opt_restricted = yes; then
1927 cat >>confdefs.h <<\_ACEOF
1928 #define RESTRICTED_SHELL 1
1932 if test $opt_process_subst = yes; then
1933 cat >>confdefs.h <<\_ACEOF
1934 #define PROCESS_SUBSTITUTION 1
1938 if test $opt_prompt_decoding = yes; then
1939 cat >>confdefs.h <<\_ACEOF
1940 #define PROMPT_STRING_DECODE 1
1944 if test $opt_select = yes; then
1945 cat >>confdefs.h <<\_ACEOF
1946 #define SELECT_COMMAND 1
1950 if test $opt_help = yes; then
1951 cat >>confdefs.h <<\_ACEOF
1952 #define HELP_BUILTIN 1
1956 if test $opt_array_variables = yes; then
1957 cat >>confdefs.h <<\_ACEOF
1958 #define ARRAY_VARS 1
1962 if test $opt_dparen_arith = yes; then
1963 cat >>confdefs.h <<\_ACEOF
1964 #define DPAREN_ARITHMETIC 1
1968 if test $opt_brace_expansion = yes; then
1969 cat >>confdefs.h <<\_ACEOF
1970 #define BRACE_EXPANSION 1
1974 if test $opt_disabled_builtins = yes; then
1975 cat >>confdefs.h <<\_ACEOF
1976 #define DISABLED_BUILTINS 1
1980 if test $opt_command_timing = yes; then
1981 cat >>confdefs.h <<\_ACEOF
1982 #define COMMAND_TIMING 1
1986 if test $opt_xpg_echo = yes ; then
1987 cat >>confdefs.h <<\_ACEOF
1988 #define DEFAULT_ECHO_TO_XPG 1
1992 if test $opt_strict_posix = yes; then
1993 cat >>confdefs.h <<\_ACEOF
1994 #define STRICT_POSIX 1
1998 if test $opt_extended_glob = yes ; then
1999 cat >>confdefs.h <<\_ACEOF
2000 #define EXTENDED_GLOB 1
2004 if test $opt_cond_command = yes ; then
2005 cat >>confdefs.h <<\_ACEOF
2006 #define COND_COMMAND 1
2010 if test $opt_cond_regexp = yes ; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define COND_REGEXP 1
2016 if test $opt_arith_for_command = yes; then
2017 cat >>confdefs.h <<\_ACEOF
2018 #define ARITH_FOR_COMMAND 1
2022 if test $opt_net_redirs = yes; then
2023 cat >>confdefs.h <<\_ACEOF
2024 #define NETWORK_REDIRECTIONS 1
2028 if test $opt_progcomp = yes; then
2029 cat >>confdefs.h <<\_ACEOF
2030 #define PROGRAMMABLE_COMPLETION 1
2034 if test $opt_multibyte = no; then
2035 cat >>confdefs.h <<\_ACEOF
2036 #define NO_MULTIBYTE_SUPPORT 1
2040 if test $opt_debugger = yes; then
2041 cat >>confdefs.h <<\_ACEOF
2047 if test $opt_memscramble = yes; then
2048 cat >>confdefs.h <<\_ACEOF
2049 #define MEMSCRAMBLE 1
2054 if test "$opt_minimal_config" = yes; then
2055 TESTSCRIPT=run-minimal
2060 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2061 if test "$opt_separate_help" != no; then
2062 if test "$opt_separate_help" = "yes" ; then
2063 HELPDIR='${datadir}/bash'
2065 HELPDIR=$opt_separate_help
2067 HELPDIRDEFINE='-H ${HELPDIR}'
2068 HELPINSTALL='install-help'
2071 if test "$opt_single_longdoc_strings" != "yes"; then
2093 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 if test -n "$CC"; then
2110 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 if test -n "$CC"; then
2130 echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6
2133 echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2138 if test -z "$ac_cv_prog_CC"; then
2140 # Extract the first word of "gcc", so it can be a program name with args.
2141 set dummy gcc; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$ac_ct_CC"; then
2148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_ac_ct_CC="gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2180 if test -z "$CC"; then
2181 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2183 set dummy ${ac_tool_prefix}cc; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="${ac_tool_prefix}cc"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 if test -n "$CC"; then
2210 echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2213 echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2218 if test -z "$ac_cv_prog_CC"; then
2220 # Extract the first word of "cc", so it can be a program name with args.
2221 set dummy cc; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 if test -n "$ac_ct_CC"; then
2228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_ac_ct_CC="cc"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2247 if test -n "$ac_ct_CC"; then
2248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2249 echo "${ECHO_T}$ac_ct_CC" >&6
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2261 if test -z "$CC"; then
2262 # Extract the first word of "cc", so it can be a program name with args.
2263 set dummy cc; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281 ac_prog_rejected=yes
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 if test $ac_prog_rejected = yes; then
2292 # We found a bogon in the path, so make sure we never use it.
2293 set dummy $ac_cv_prog_CC
2295 if test $# != 0; then
2296 # We chose a different compiler from the bogus one.
2297 # However, it has the same basename, so the bogon will be chosen
2298 # first if we set CC to just the basename; use the full file name.
2300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2306 if test -n "$CC"; then
2307 echo "$as_me:$LINENO: result: $CC" >&5
2308 echo "${ECHO_T}$CC" >&6
2310 echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2315 if test -z "$CC"; then
2316 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 if test -n "$CC"; then
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 if test -n "$CC"; then
2347 echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2354 test -n "$CC" && break
2357 if test -z "$CC"; then
2361 # Extract the first word of "$ac_prog", so it can be a program name with args.
2362 set dummy $ac_prog; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="$ac_prog"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6
2392 echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2396 test -n "$ac_ct_CC" && break
2405 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2411 # Provide some information about the compiler.
2412 echo "$as_me:$LINENO:" \
2413 "checking for C compiler version" >&5
2414 ac_compiler=`set X $ac_compile; echo $2`
2415 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2416 (eval $ac_compiler --version </dev/null >&5) 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2420 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2421 (eval $ac_compiler -v </dev/null >&5) 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }
2425 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2426 (eval $ac_compiler -V </dev/null >&5) 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2446 ac_clean_files_save=$ac_clean_files
2447 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2448 # Try to create an executable without -o first, disregard a.out.
2449 # It will help us diagnose broken compilers, and finding out an intuition
2451 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2452 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2453 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2454 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2455 (eval $ac_link_default) 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 # Find the output, starting from the most likely. This scheme is
2460 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2463 # Be careful to initialize this variable, since it used to be cached.
2464 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2466 # b.out is created by i960 compilers.
2467 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2469 test -f "$ac_file" || continue
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2474 # This is the source file.
2477 # We found the default executable, but exeext='' is most
2481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 # FIXME: I believe we export ac_cv_exeext for Libtool,
2483 # but it would be cool to find out if it's true. Does anybody
2484 # maintain Libtool? --akim.
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: C compiler cannot create executables
2498 See \`config.log' for more details." >&2;}
2499 { (exit 77); exit 77; }; }
2502 ac_exeext=$ac_cv_exeext
2503 echo "$as_me:$LINENO: result: $ac_file" >&5
2504 echo "${ECHO_T}$ac_file" >&6
2506 # Check the compiler produces executables we can run. If not, either
2507 # the compiler is broken, or we cross compile.
2508 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2509 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2510 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2511 # If not cross compiling, check that we can run a simple program.
2512 if test "$cross_compiling" != yes; then
2513 if { ac_try='./$ac_file'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2521 if test "$cross_compiling" = maybe; then
2524 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot run C compiled programs.
2528 If you meant to cross compile, use \`--host'.
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2537 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2538 ac_clean_files=$ac_clean_files_save
2539 # Check the compiler produces executables we can run. If not, either
2540 # the compiler is broken, or we cross compile.
2541 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2543 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2544 echo "${ECHO_T}$cross_compiling" >&6
2546 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2555 # work properly (i.e., refer to `conftest.exe'), while it won't with
2557 for ac_file in conftest.exe conftest conftest.*; do
2558 test -f "$ac_file" || continue
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2575 rm -f conftest$ac_cv_exeext
2576 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2577 echo "${ECHO_T}$ac_cv_exeext" >&6
2579 rm -f conftest.$ac_ext
2580 EXEEXT=$ac_cv_exeext
2582 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2583 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2584 if test "${ac_cv_objext+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 cat >conftest.$ac_ext <<_ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h. */
2602 rm -f conftest.o conftest.obj
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; then
2608 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2622 See \`config.log' for more details." >&2;}
2623 { (exit 1); exit 1; }; }
2626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2628 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2629 echo "${ECHO_T}$ac_cv_objext" >&6
2630 OBJEXT=$ac_cv_objext
2632 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 cat >conftest.$ac_ext <<_ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2688 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2689 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2690 GCC=`test $ac_compiler_gnu = yes && echo yes`
2691 ac_test_CFLAGS=${CFLAGS+set}
2692 ac_save_CFLAGS=$CFLAGS
2694 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2695 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2696 if test "${ac_cv_prog_cc_g+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2718 grep -v '^ *+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2747 if test "$ac_test_CFLAGS" = set; then
2748 CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
2756 if test "$GCC" = yes; then
2762 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2763 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 ac_cv_prog_cc_stdc=no
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2793 s = g (p, va_arg (v,int));
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std1 is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std1. */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807 int test (int i, double x);
2808 struct s1 {int (*f) (int a);};
2809 struct s2 {int (*f) (double a);};
2810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2821 # Don't try gcc -ansi; that turns off useful extensions and
2822 # breaks some systems' header files.
2823 # AIX -qlanglvl=ansi
2824 # Ultrix and OSF/1 -std1
2825 # HP-UX 10.20 and later -Ae
2826 # HP-UX older versions -Aa -D_HPUX_SOURCE
2827 # SVR4 -Xc -D__EXTENSIONS__
2828 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2830 CC="$ac_save_CC $ac_arg"
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_prog_cc_stdc=$ac_arg
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext
2862 rm -f conftest.$ac_ext conftest.$ac_objext
2867 case "x$ac_cv_prog_cc_stdc" in
2869 echo "$as_me:$LINENO: result: none needed" >&5
2870 echo "${ECHO_T}none needed" >&6 ;;
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2874 CC="$CC $ac_cv_prog_cc_stdc" ;;
2877 # Some people use a C++ compiler to compile C. Since we use `exit',
2878 # in C++ we need to declare it. In case someone uses the same compiler
2879 # for both compiling C and C++ we need to have the C++ compiler decide
2880 # the declaration of exit, since it's the most demanding environment.
2881 cat >conftest.$ac_ext <<_ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 for ac_declaration in \
2910 'extern "C" void std::exit (int) throw (); using std::exit;' \
2911 'extern "C" void std::exit (int); using std::exit;' \
2912 'extern "C" void exit (int) throw ();' \
2913 'extern "C" void exit (int);' \
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 cat >conftest.$ac_ext <<_ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2981 grep -v '^ *+' conftest.er1 >conftest.err
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3008 if test -n "$ac_declaration"; then
3009 echo '#ifdef __cplusplus' >>confdefs.h
3010 echo $ac_declaration >>confdefs.h
3011 echo '#endif' >>confdefs.h
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3030 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3031 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 ac_check_lib_save_LIBS=$LIBS
3035 LIBS="-lcposix $LIBS"
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3043 /* Override any gcc2 internal prototype to avoid an error. */
3047 /* We use char because int might match the return type of a gcc2
3048 builtin and then its argument prototype would still apply. */
3058 rm -f conftest.$ac_objext conftest$ac_exeext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060 (eval $ac_link) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest$ac_exeext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_lib_cposix_strerror=yes
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_cv_lib_cposix_strerror=no
3087 rm -f conftest.err conftest.$ac_objext \
3088 conftest$ac_exeext conftest.$ac_ext
3089 LIBS=$ac_check_lib_save_LIBS
3091 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3092 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3093 if test $ac_cv_lib_cposix_strerror = yes; then
3094 LIBS="$LIBS -lcposix"
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3110 if test -z "$CPP"; then
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3118 for ac_c_preproc_warn_flag in '' yes
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3133 # include <limits.h>
3135 # include <assert.h>
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156 if test -z "$ac_cpp_err"; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 # Broken: fails on valid input.
3165 rm -f conftest.err conftest.$ac_ext
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175 #include <ac_nonexistent.h>
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
3187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194 if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 # Passes both tests.
3205 rm -f conftest.err conftest.$ac_ext
3208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209 rm -f conftest.err conftest.$ac_ext
3210 if $ac_preproc_ok; then
3222 echo "$as_me:$LINENO: result: $CPP" >&5
3223 echo "${ECHO_T}$CPP" >&6
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 if test -z "$ac_cpp_err"; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 # Broken: fails on valid input.
3272 rm -f conftest.err conftest.$ac_ext
3274 # OK, works on sane cases. Now check whether non-existent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <ac_nonexistent.h>
3284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 # Passes both tests.
3312 rm -f conftest.err conftest.$ac_ext
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.err conftest.$ac_ext
3317 if $ac_preproc_ok; then
3320 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&5
3322 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3323 See \`config.log' for more details." >&2;}
3324 { (exit 1); exit 1; }; }
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 echo "$as_me:$LINENO: checking for egrep" >&5
3335 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3336 if test "${ac_cv_prog_egrep+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3340 then ac_cv_prog_egrep='grep -E'
3341 else ac_cv_prog_egrep='egrep'
3344 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3345 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3346 EGREP=$ac_cv_prog_egrep
3349 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3351 if test "${ac_cv_header_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_cv_header_stdc=yes
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 ac_cv_header_stdc=no
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3404 if test $ac_cv_header_stdc = yes; then
3405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 $EGREP "memchr" >/dev/null 2>&1; then
3419 ac_cv_header_stdc=no
3425 if test $ac_cv_header_stdc = yes; then
3426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 $EGREP "free" >/dev/null 2>&1; then
3440 ac_cv_header_stdc=no
3446 if test $ac_cv_header_stdc = yes; then
3447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3448 if test "$cross_compiling" = yes; then
3451 cat >conftest.$ac_ext <<_ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3458 #if ((' ' & 0x0FF) == 0x020)
3459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3462 # define ISLOWER(c) \
3463 (('a' <= (c) && (c) <= 'i') \
3464 || ('j' <= (c) && (c) <= 'r') \
3465 || ('s' <= (c) && (c) <= 'z'))
3466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3474 for (i = 0; i < 256; i++)
3475 if (XOR (islower (i), ISLOWER (i))
3476 || toupper (i) != TOUPPER (i))
3481 rm -f conftest$ac_exeext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483 (eval $ac_link) 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3494 echo "$as_me: program exited with status $ac_status" >&5
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3499 ac_cv_header_stdc=no
3501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3505 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3506 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3507 if test $ac_cv_header_stdc = yes; then
3509 cat >>confdefs.h <<\_ACEOF
3510 #define STDC_HEADERS 1
3515 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3526 inttypes.h stdint.h unistd.h
3528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529 echo "$as_me:$LINENO: checking for $ac_header" >&5
3530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 $ac_includes_default
3542 #include <$ac_header>
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_c_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 eval "$as_ac_Header=yes"
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 eval "$as_ac_Header=no"
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3578 cat >>confdefs.h <<_ACEOF
3579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3587 if test "${ac_cv_header_minix_config_h+set}" = set; then
3588 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3589 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3590 if test "${ac_cv_header_minix_config_h+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3594 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3596 # Is the header compilable?
3597 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3598 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_includes_default
3606 #include <minix/config.h>
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_header_compiler=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_header_compiler=no
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3639 echo "${ECHO_T}$ac_header_compiler" >&6
3641 # Is the header present?
3642 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3643 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <minix/config.h>
3652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } >/dev/null; then
3660 if test -s conftest.err; then
3661 ac_cpp_err=$ac_c_preproc_warn_flag
3662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3669 if test -z "$ac_cpp_err"; then
3670 ac_header_preproc=yes
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_header_preproc=no
3677 rm -f conftest.err conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3679 echo "${ECHO_T}$ac_header_preproc" >&6
3681 # So? What about this header?
3682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3684 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3685 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3686 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3687 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3688 ac_header_preproc=yes
3691 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3692 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3694 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3695 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3696 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3698 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3700 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3702 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3705 ## ------------------------------- ##
3706 ## Report this to bug-bash@gnu.org ##
3707 ## ------------------------------- ##
3710 sed "s/^/$as_me: WARNING: /" >&2
3713 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3714 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3715 if test "${ac_cv_header_minix_config_h+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 ac_cv_header_minix_config_h=$ac_header_preproc
3720 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3721 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3724 if test $ac_cv_header_minix_config_h = yes; then
3731 if test "$MINIX" = yes; then
3733 cat >>confdefs.h <<\_ACEOF
3734 #define _POSIX_SOURCE 1
3738 cat >>confdefs.h <<\_ACEOF
3739 #define _POSIX_1_SOURCE 2
3743 cat >>confdefs.h <<\_ACEOF
3750 # Check whether --enable-largefile or --disable-largefile was given.
3751 if test "${enable_largefile+set}" = set; then
3752 enableval="$enable_largefile"
3755 if test "$enable_largefile" != no; then
3757 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3758 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3759 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 ac_cv_sys_largefile_CC=no
3763 if test "$GCC" != yes; then
3766 # IRIX 6.2 and later do not support large files by default,
3767 # so use the C compiler's -n32 option if that helps.
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #include <sys/types.h>
3775 /* Check that off_t can represent 2**63 - 1 correctly.
3776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3777 since some C++ compilers masquerading as C compilers
3778 incorrectly reject 9223372036854775807. */
3779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3781 && LARGE_OFF_T % 2147483647 == 1)
3791 rm -f conftest.$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793 (eval $ac_compile) 2>conftest.er1
3795 grep -v '^ *+' conftest.er1 >conftest.err
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3819 rm -f conftest.err conftest.$ac_objext
3821 rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3825 grep -v '^ *+' conftest.er1 >conftest.err
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_cv_sys_largefile_CC=' -n32'; break
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3849 rm -f conftest.err conftest.$ac_objext
3853 rm -f conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3857 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3858 if test "$ac_cv_sys_largefile_CC" != no; then
3859 CC=$CC$ac_cv_sys_largefile_CC
3862 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3863 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3864 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_cv_sys_file_offset_bits=no
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #include <sys/types.h>
3876 /* Check that off_t can represent 2**63 - 1 correctly.
3877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3878 since some C++ compilers masquerading as C compilers
3879 incorrectly reject 9223372036854775807. */
3880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3882 && LARGE_OFF_T % 2147483647 == 1)
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3896 grep -v '^ *+' conftest.er1 >conftest.err
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 #define _FILE_OFFSET_BITS 64
3928 #include <sys/types.h>
3929 /* Check that off_t can represent 2**63 - 1 correctly.
3930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3931 since some C++ compilers masquerading as C compilers
3932 incorrectly reject 9223372036854775807. */
3933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3935 && LARGE_OFF_T % 2147483647 == 1)
3945 rm -f conftest.$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -z "$ac_c_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_cv_sys_file_offset_bits=64; break
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3978 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3979 if test "$ac_cv_sys_file_offset_bits" != no; then
3981 cat >>confdefs.h <<_ACEOF
3982 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3987 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3988 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3989 if test "${ac_cv_sys_large_files+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 ac_cv_sys_large_files=no
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000 #include <sys/types.h>
4001 /* Check that off_t can represent 2**63 - 1 correctly.
4002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4003 since some C++ compilers masquerading as C compilers
4004 incorrectly reject 9223372036854775807. */
4005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4007 && LARGE_OFF_T % 2147483647 == 1)
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #define _LARGE_FILES 1
4053 #include <sys/types.h>
4054 /* Check that off_t can represent 2**63 - 1 correctly.
4055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4056 since some C++ compilers masquerading as C compilers
4057 incorrectly reject 9223372036854775807. */
4058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4060 && LARGE_OFF_T % 2147483647 == 1)
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag"
4080 || test ! -s conftest.err'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_sys_large_files=1; break
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4103 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4104 if test "$ac_cv_sys_large_files" != no; then
4106 cat >>confdefs.h <<_ACEOF
4107 #define _LARGE_FILES $ac_cv_sys_large_files
4116 SIGNAMES_H=lsignames.h
4120 if test "x$cross_compiling" = "xyes"; then
4123 cross_cache=${srcdir}/cross-build/cygwin32.cache
4124 SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
4127 cross_cache=${srcdir}/cross-build/cygwin32.cache
4130 cross_cache=${srcdir}/cross-build/x86-beos.cache
4131 SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
4133 *) echo "configure: cross-compiling for $host is not supported" >&2
4136 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4137 echo "loading cross-build cache file ${cross_cache}"
4141 CROSS_COMPILE='-DCROSS_COMPILING'
4146 if test -z "$CC_FOR_BUILD"; then
4147 if test "x$cross_compiling" = "xno"; then
4148 CC_FOR_BUILD='$(CC)'
4156 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
4158 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
4160 if test "$opt_profiling" = "yes"; then
4164 *) opt_static_link=yes ;;
4166 DEBUG= MALLOC_DEBUG=
4169 if test "$opt_static_link" = yes; then
4170 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4171 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
4175 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
4180 if test "X$cross_compiling" = "Xno"; then
4181 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
4182 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4184 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4185 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4188 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
4199 if test $ac_cv_c_compiler_gnu = yes; then
4200 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4201 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4202 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 ac_pattern="Autoconf.*'x'"
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4217 ac_cv_prog_gcc_traditional=yes
4219 ac_cv_prog_gcc_traditional=no
4224 if test $ac_cv_prog_gcc_traditional = no; then
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4236 ac_cv_prog_gcc_traditional=yes
4242 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4243 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4244 if test $ac_cv_prog_gcc_traditional = yes; then
4245 CC="$CC -traditional"
4251 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4253 # If the user specified --with-installed-readline=PREFIX and PREFIX
4254 # is not `yes', set ac_cv_rl_prefix to PREFIX
4255 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4258 if test "X$bash_cv_termcap_lib" = "X"; then
4261 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4262 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4265 if test "${bash_cv_termcap_lib+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 echo "$as_me:$LINENO: checking for tgetent" >&5
4269 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4270 if test "${ac_cv_func_tgetent+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
4280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4281 #define tgetent innocuous_tgetent
4283 /* System header to define __stub macros and hopefully few prototypes,
4284 which can conflict with char tgetent (); below.
4285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4286 <limits.h> exists even on freestanding compilers. */
4289 # include <limits.h>
4291 # include <assert.h>
4296 /* Override any gcc2 internal prototype to avoid an error. */
4301 /* We use char because int might match the return type of a gcc2
4302 builtin and then its argument prototype would still apply. */
4304 /* The GNU C library defines this for functions which it implements
4305 to always fail with ENOSYS. Some functions are actually named
4306 something starting with __ and the normal name is an alias. */
4307 #if defined (__stub_tgetent) || defined (__stub___tgetent)
4310 char (*f) () = tgetent;
4319 return f != tgetent;
4324 rm -f conftest.$ac_objext conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326 (eval $ac_link) 2>conftest.er1
4328 grep -v '^ *+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest$ac_exeext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_func_tgetent=yes
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4351 ac_cv_func_tgetent=no
4353 rm -f conftest.err conftest.$ac_objext \
4354 conftest$ac_exeext conftest.$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4357 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4358 if test $ac_cv_func_tgetent = yes; then
4359 bash_cv_termcap_lib=libc
4361 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4362 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4363 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-ltermcap $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4375 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>conftest.er1
4394 grep -v '^ *+' conftest.er1 >conftest.err
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag"
4400 || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest$ac_exeext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 ac_cv_lib_termcap_tgetent=yes
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 ac_cv_lib_termcap_tgetent=no
4419 rm -f conftest.err conftest.$ac_objext \
4420 conftest$ac_exeext conftest.$ac_ext
4421 LIBS=$ac_check_lib_save_LIBS
4423 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4424 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4425 if test $ac_cv_lib_termcap_tgetent = yes; then
4426 bash_cv_termcap_lib=libtermcap
4428 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
4429 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4430 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 ac_check_lib_save_LIBS=$LIBS
4434 LIBS="-ltinfo $LIBS"
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4442 /* Override any gcc2 internal prototype to avoid an error. */
4446 /* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_lib_tinfo_tgetent=yes
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_cv_lib_tinfo_tgetent=no
4486 rm -f conftest.err conftest.$ac_objext \
4487 conftest$ac_exeext conftest.$ac_ext
4488 LIBS=$ac_check_lib_save_LIBS
4490 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4491 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4492 if test $ac_cv_lib_tinfo_tgetent = yes; then
4493 bash_cv_termcap_lib=libtinfo
4495 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
4496 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4497 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_check_lib_save_LIBS=$LIBS
4501 LIBS="-lcurses $LIBS"
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4509 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4524 rm -f conftest.$ac_objext conftest$ac_exeext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4526 (eval $ac_link) 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest$ac_exeext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_lib_curses_tgetent=yes
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 ac_cv_lib_curses_tgetent=no
4553 rm -f conftest.err conftest.$ac_objext \
4554 conftest$ac_exeext conftest.$ac_ext
4555 LIBS=$ac_check_lib_save_LIBS
4557 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4558 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4559 if test $ac_cv_lib_curses_tgetent = yes; then
4560 bash_cv_termcap_lib=libcurses
4562 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4563 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4564 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 ac_check_lib_save_LIBS=$LIBS
4568 LIBS="-lncurses $LIBS"
4569 cat >conftest.$ac_ext <<_ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4576 /* Override any gcc2 internal prototype to avoid an error. */
4580 /* We use char because int might match the return type of a gcc2
4581 builtin and then its argument prototype would still apply. */
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593 (eval $ac_link) 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest$ac_exeext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_lib_ncurses_tgetent=yes
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_lib_ncurses_tgetent=no
4620 rm -f conftest.err conftest.$ac_objext \
4621 conftest$ac_exeext conftest.$ac_ext
4622 LIBS=$ac_check_lib_save_LIBS
4624 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4625 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4626 if test $ac_cv_lib_ncurses_tgetent = yes; then
4627 bash_cv_termcap_lib=libncurses
4629 bash_cv_termcap_lib=gnutermcap
4642 if test "X$_bash_needmsg" = "Xyes"; then
4643 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4644 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4646 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4647 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4648 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4649 LDFLAGS="$LDFLAGS -L./lib/termcap"
4650 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4651 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4652 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4653 TERMCAP_LIB=-ltermcap
4655 elif test $bash_cv_termcap_lib = libtinfo; then
4658 elif test $bash_cv_termcap_lib = libncurses; then
4659 TERMCAP_LIB=-lncurses
4661 elif test $bash_cv_termcap_lib = libc; then
4665 TERMCAP_LIB=-lcurses
4672 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4673 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4675 # What a pain in the ass this is.
4677 # save cpp and ld options
4678 _save_CFLAGS="$CFLAGS"
4679 _save_LDFLAGS="$LDFLAGS"
4682 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
4683 # allows the caller to do something like $_rl_prefix=$withval if the user
4684 # specifies --with-installed-readline=PREFIX as an argument to configure
4686 if test -z "$ac_cv_rl_prefix"; then
4687 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4690 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4691 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4693 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4694 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4695 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4697 if test "${ac_cv_rl_version+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test "$cross_compiling" = yes; then
4701 ac_cv_rl_version='4.2'
4703 cat >conftest.$ac_ext <<_ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4711 #include <readline/readline.h>
4713 extern int rl_gnu_readline_p;
4718 fp = fopen("conftest.rlv", "w");
4721 if (rl_gnu_readline_p != 1)
4722 fprintf(fp, "0.0\n");
4724 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4730 rm -f conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_rl_version=`cat conftest.rlv`
4743 echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_cv_rl_version='0.0'
4750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 CFLAGS="$_save_CFLAGS"
4756 LDFLAGS="$_save_LDFLAGS"
4763 case "$ac_cv_rl_version" in
4764 2*|3*|4*|5*|6*|7*|8*|9*)
4765 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4766 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4772 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
4773 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
4779 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
4780 [0-9]) _RL_MINOR=0$RL_MINOR ;;
4784 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4786 # Readline versions greater than 4.2 have these defines in readline.h
4788 if test $ac_cv_rl_version = '0.0' ; then
4789 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4790 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4791 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4792 # set these for use by the caller
4793 RL_PREFIX=$ac_cv_rl_prefix
4794 RL_LIBDIR=$ac_cv_rl_libdir
4795 RL_INCLUDEDIR=$ac_cv_rl_includedir
4796 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4797 echo "${ECHO_T}$ac_cv_rl_version" >&6
4801 cat >>confdefs.h <<_ACEOF
4802 #define RL_READLINE_VERSION $RL_VERSION
4806 cat >>confdefs.h <<_ACEOF
4807 #define RL_VERSION_MAJOR $RL_MAJOR
4811 cat >>confdefs.h <<_ACEOF
4812 #define RL_VERSION_MINOR $RL_MINOR
4820 # set these for use by the caller
4821 RL_PREFIX=$ac_cv_rl_prefix
4822 RL_LIBDIR=$ac_cv_rl_libdir
4823 RL_INCLUDEDIR=$ac_cv_rl_includedir
4825 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4826 echo "${ECHO_T}$ac_cv_rl_version" >&6
4831 case "$ac_cv_rl_version" in
4833 *) opt_with_installed_readline=no
4834 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4835 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4836 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4837 echo "$as_me: WARNING: using private bash version" >&2;}
4843 if test $opt_readline = yes; then
4844 cat >>confdefs.h <<\_ACEOF
4848 if test "$opt_with_installed_readline" != "no" ; then
4849 case "$opt_with_installed_readline" in
4851 *) case "$RL_INCLUDEDIR" in
4853 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4858 READLINE_LIB=-lreadline
4859 # section for OS versions that don't allow unresolved symbols
4860 # to be compiled into dynamic libraries.
4862 cygwin*) TILDE_LIB= ;;
4865 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4866 READLINE_DEP='$(READLINE_LIBRARY)'
4867 # section for OS versions that ship an older/broken version of
4868 # readline as a standard dynamic library and don't allow a
4869 # static version specified as -llibname to override the
4871 case "${host_os}" in
4872 darwin8*) READLINE_LIB='${READLINE_LIBRARY}' ;;
4873 *) READLINE_LIB=-lreadline ;;
4877 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4878 READLINE_LIB= READLINE_DEP=
4880 if test $opt_history = yes || test $opt_bang_history = yes; then
4881 if test $opt_history = yes; then
4882 cat >>confdefs.h <<\_ACEOF
4887 if test $opt_bang_history = yes; then
4888 cat >>confdefs.h <<\_ACEOF
4889 #define BANG_HISTORY 1
4893 if test "$opt_with_installed_readline" != "no"; then
4894 HIST_LIBDIR=$RL_LIBDIR
4896 HISTORY_LIB=-lhistory
4897 case "$opt_with_installed_readline" in
4899 *) case "$RL_INCLUDEDIR" in
4901 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4906 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4907 HISTORY_DEP='$(HISTORY_LIBRARY)'
4908 # section for OS versions that ship an older version of
4909 # readline as a standard dynamic library and don't allow a
4910 # static version specified as -llibname to override the
4912 case "${host_os}" in
4913 darwin8*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4914 *) HISTORY_LIB=-lhistory ;;
4918 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4919 HISTORY_LIB= HISTORY_DEP=
4932 # Find a good install program. We prefer a C program (faster),
4933 # so one script is as good as another. But avoid the broken or
4934 # incompatible versions:
4935 # SysV /etc/install, /usr/sbin/install
4936 # SunOS /usr/etc/install
4937 # IRIX /sbin/install
4939 # AmigaOS /C/install, which installs bootblocks on floppy discs
4940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4943 # OS/2's system install, which has a completely different semantic
4944 # ./install, which can be erroneously created by make from ./install.sh.
4945 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4947 if test -z "$INSTALL"; then
4948 if test "${ac_cv_path_install+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 # Account for people who put trailing slashes in PATH elements.
4958 ./ | .// | /cC/* | \
4959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4960 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4963 # OSF1 and SCO ODT 3.0 have their own names for install.
4964 # Don't use installbsd from OSF since it installs stuff as root
4966 for ac_prog in ginstall scoinst install; do
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4969 if test $ac_prog = install &&
4970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4971 # AIX install. It has an incompatible calling convention.
4973 elif test $ac_prog = install &&
4974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4975 # program-specific install script used by HP pwplus--don't use.
4978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4990 if test "${ac_cv_path_install+set}" = set; then
4991 INSTALL=$ac_cv_path_install
4993 # As a last resort, use the slow shell script. We don't cache a
4994 # path for INSTALL within a source directory, because that will
4995 # break other packages using the cache if that directory is
4996 # removed, or if the path is relative.
4997 INSTALL=$ac_install_sh
5000 echo "$as_me:$LINENO: result: $INSTALL" >&5
5001 echo "${ECHO_T}$INSTALL" >&6
5003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5004 # It thinks the first close brace ends the variable substitution.
5005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5011 # Extract the first word of "ar", so it can be a program name with args.
5012 set dummy ar; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_AR+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$AR"; then
5019 ac_cv_prog_AR="$AR" # Let the user override the test.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5039 if test -n "$AR"; then
5040 echo "$as_me:$LINENO: result: $AR" >&5
5041 echo "${ECHO_T}$AR" >&6
5043 echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6
5047 test -n "$ARFLAGS" || ARFLAGS="cr"
5048 if test -n "$ac_tool_prefix"; then
5049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_prog_RANLIB+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -n "$RANLIB"; then
5057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 RANLIB=$ac_cv_prog_RANLIB
5076 if test -n "$RANLIB"; then
5077 echo "$as_me:$LINENO: result: $RANLIB" >&5
5078 echo "${ECHO_T}$RANLIB" >&6
5080 echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5085 if test -z "$ac_cv_prog_RANLIB"; then
5086 ac_ct_RANLIB=$RANLIB
5087 # Extract the first word of "ranlib", so it can be a program name with args.
5088 set dummy ranlib; ac_word=$2
5089 echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 if test -n "$ac_ct_RANLIB"; then
5095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_ac_ct_RANLIB="ranlib"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5115 if test -n "$ac_ct_RANLIB"; then
5116 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5117 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5119 echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5123 RANLIB=$ac_ct_RANLIB
5125 RANLIB="$ac_cv_prog_RANLIB"
5128 for ac_prog in 'bison -y' byacc
5130 # Extract the first word of "$ac_prog", so it can be a program name with args.
5131 set dummy $ac_prog; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_prog_YACC+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 if test -n "$YACC"; then
5138 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_YACC="$ac_prog"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 YACC=$ac_cv_prog_YACC
5157 if test -n "$YACC"; then
5158 echo "$as_me:$LINENO: result: $YACC" >&5
5159 echo "${ECHO_T}$YACC" >&6
5161 echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5165 test -n "$YACC" && break
5167 test -n "$YACC" || YACC="yacc"
5169 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5170 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5171 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5172 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 cat >conftest.make <<\_ACEOF
5177 @echo 'ac_maketemp="$(MAKE)"'
5179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5180 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5181 if test -n "$ac_maketemp"; then
5182 eval ac_cv_prog_make_${ac_make}_set=yes
5184 eval ac_cv_prog_make_${ac_make}_set=no
5188 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5189 echo "$as_me:$LINENO: result: yes" >&5
5190 echo "${ECHO_T}yes" >&6
5193 echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5195 SET_MAKE="MAKE=${MAKE-make}"
5200 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5201 *) MAKE_SHELL=/bin/sh ;;
5205 if test x$SIZE = x; then
5206 if test x$ac_tool_prefix = x; then
5209 SIZE=${ac_tool_prefix}size
5210 save_IFS=$IFS ; IFS=:
5212 for dir in $PATH; do
5213 if test -x $dir/$SIZE ; then
5218 if test $size_found -eq 0; then
5226 cat >>confdefs.h <<\_ACEOF
5227 #define _GNU_SOURCE 1
5231 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5233 if test "${ac_cv_c_const+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 cat >conftest.$ac_ext <<_ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5246 /* FIXME: Include the comments suggested by Paul. */
5248 /* Ultrix mips cc rejects this. */
5249 typedef int charset[2];
5251 /* SunOS 4.1.1 cc rejects this. */
5252 char const *const *ccp;
5254 /* NEC SVR4.0.2 mips cc rejects this. */
5255 struct point {int x, y;};
5256 static struct point const zero = {0,0};
5257 /* AIX XL C 1.02.0.0 rejects this.
5258 It does not let you subtract one const X* pointer from another in
5259 an arm of an if-expression whose if-part is not a constant
5261 const char *g = "string";
5262 ccp = &g + (g ? g-g : 0);
5263 /* HPUX 7.0 cc rejects these. */
5266 ccp = (char const *const *) p;
5267 { /* SCO 3.2v4 cc rejects this. */
5269 char const *s = 0 ? (char *) 0 : (char const *) 0;
5273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5275 const int *foo = &x[0];
5278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5279 typedef const int *iptr;
5283 { /* AIX XL C 1.02.0.0 rejects this saying
5284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5285 struct s { int j; const int *ap[3]; };
5286 struct s *b; b->j = 5;
5288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5297 rm -f conftest.$ac_objext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>conftest.er1
5301 grep -v '^ *+' conftest.er1 >conftest.err
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try='test -z "$ac_c_werror_flag"
5307 || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5328 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5329 echo "${ECHO_T}$ac_cv_c_const" >&6
5330 if test $ac_cv_c_const = no; then
5332 cat >>confdefs.h <<\_ACEOF
5338 echo "$as_me:$LINENO: checking for inline" >&5
5339 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5340 if test "${ac_cv_c_inline+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 for ac_kw in inline __inline__ __inline; do
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5353 static $ac_kw foo_t static_foo () {return 0; }
5354 $ac_kw foo_t foo () {return 0; }
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_cv_c_inline=$ac_kw; break
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5390 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5391 echo "${ECHO_T}$ac_cv_c_inline" >&6
5394 case $ac_cv_c_inline in
5397 case $ac_cv_c_inline in
5399 *) ac_val=$ac_cv_c_inline;;
5401 cat >>confdefs.h <<_ACEOF
5403 #define inline $ac_val
5409 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5410 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5411 if test "${ac_cv_c_bigendian+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 # See if sys/param.h defines the BYTE_ORDER macro.
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <sys/types.h>
5422 #include <sys/param.h>
5427 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5435 rm -f conftest.$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>conftest.er1
5439 grep -v '^ *+' conftest.er1 >conftest.err
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_c_werror_flag"
5445 || test ! -s conftest.err'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; } &&
5451 { ac_try='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 # It does; now see whether it defined to BIG_ENDIAN or not.
5458 cat >conftest.$ac_ext <<_ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <sys/types.h>
5465 #include <sys/param.h>
5470 #if BYTE_ORDER != BIG_ENDIAN
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480 (eval $ac_compile) 2>conftest.er1
5482 grep -v '^ *+' conftest.er1 >conftest.err
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -z "$ac_c_werror_flag"
5488 || test ! -s conftest.err'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; } &&
5494 { ac_try='test -s conftest.$ac_objext'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 ac_cv_c_bigendian=yes
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_cv_c_bigendian=no
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 # It does not; compile a test program.
5513 if test "$cross_compiling" = yes; then
5514 # try to guess the endianness by grepping values into an object file
5515 ac_cv_c_bigendian=unknown
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5523 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5524 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5525 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5526 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5527 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5531 _ascii (); _ebcdic ();
5536 rm -f conftest.$ac_objext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest.$ac_objext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5559 ac_cv_c_bigendian=yes
5561 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5562 if test "$ac_cv_c_bigendian" = unknown; then
5563 ac_cv_c_bigendian=no
5565 # finding both strings is unlikely to happen, but who knows?
5566 ac_cv_c_bigendian=unknown
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5585 /* Are we little or big endian? From Harbison&Steele. */
5589 char c[sizeof (long)];
5592 exit (u.c[sizeof (long) - 1] == 1);
5595 rm -f conftest$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_c_bigendian=no
5608 echo "$as_me: program exited with status $ac_status" >&5
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_cv_c_bigendian=yes
5615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5621 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5622 case $ac_cv_c_bigendian in
5625 cat >>confdefs.h <<\_ACEOF
5626 #define WORDS_BIGENDIAN 1
5632 { { echo "$as_me:$LINENO: error: unknown endianness
5633 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5634 echo "$as_me: error: unknown endianness
5635 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5636 { (exit 1); exit 1; }; } ;;
5639 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5640 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5641 if test "${ac_cv_c_stringize+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5652 char *s = x(teststring);
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 $EGREP "#teststring" >/dev/null 2>&1; then
5656 ac_cv_c_stringize=no
5658 ac_cv_c_stringize=yes
5663 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5664 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5665 if test $ac_cv_c_stringize = yes; then
5667 cat >>confdefs.h <<\_ACEOF
5668 #define HAVE_STRINGIZE 1
5673 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5674 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5675 if test "${ac_cv_c_long_double+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5685 long double foo = 0.0;
5689 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5690 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5691 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700 (eval $ac_compile) 2>conftest.er1
5702 grep -v '^ *+' conftest.er1 >conftest.err
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest.$ac_objext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_cv_c_long_double=yes
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 ac_cv_c_long_double=no
5727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5730 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5731 if test $ac_cv_c_long_double = yes; then
5733 cat >>confdefs.h <<\_ACEOF
5734 #define HAVE_LONG_DOUBLE 1
5739 echo "$as_me:$LINENO: checking for function prototypes" >&5
5740 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5741 if test "$ac_cv_prog_cc_stdc" != no; then
5742 echo "$as_me:$LINENO: result: yes" >&5
5743 echo "${ECHO_T}yes" >&6
5745 cat >>confdefs.h <<\_ACEOF
5746 #define PROTOTYPES 1
5750 cat >>confdefs.h <<\_ACEOF
5751 #define __PROTOTYPES 1
5755 echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5760 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5761 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5762 if test "${ac_cv_c_char_unsigned+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 $ac_includes_default
5775 static int test_array [1 - 2 * !(((char) -1) < 0)];
5782 rm -f conftest.$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_c_char_unsigned=no
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_cv_c_char_unsigned=yes
5811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5814 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5815 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5816 cat >>confdefs.h <<\_ACEOF
5817 #define __CHAR_UNSIGNED__ 1
5825 if test -n "$ac_aux_dir"; then
5826 case "$ac_aux_dir" in
5827 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5828 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5831 if test -z "$MKINSTALLDIRS"; then
5832 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5837 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5838 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5839 # Check whether --enable-nls or --disable-nls was given.
5840 if test "${enable_nls+set}" = set; then
5841 enableval="$enable_nls"
5846 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5847 echo "${ECHO_T}$USE_NLS" >&6
5854 # Prepare PATH_SEPARATOR.
5855 # The user is always right.
5856 if test "${PATH_SEPARATOR+set}" != set; then
5857 echo "#! /bin/sh" >conf$$.sh
5858 echo "exit 0" >>conf$$.sh
5860 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5868 # Find out how to test for executable files. Don't use a zero-byte file,
5869 # as systems may use methods other than mode bits to determine executability.
5870 cat >conf$$.file <<_ASEOF
5874 chmod +x conf$$.file
5875 if test -x conf$$.file >/dev/null 2>&1; then
5876 ac_executable_p="test -x"
5878 ac_executable_p="test -f"
5882 # Extract the first word of "msgfmt", so it can be a program name with args.
5883 set dummy msgfmt; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_path_MSGFMT+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5894 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5895 for ac_dir in $PATH; do
5897 test -z "$ac_dir" && ac_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5900 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5901 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5902 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5909 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5913 MSGFMT="$ac_cv_path_MSGFMT"
5914 if test "$MSGFMT" != ":"; then
5915 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5916 echo "${ECHO_T}$MSGFMT" >&6
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5922 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5923 set dummy gmsgfmt; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5952 GMSGFMT=$ac_cv_path_GMSGFMT
5954 if test -n "$GMSGFMT"; then
5955 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5956 echo "${ECHO_T}$GMSGFMT" >&6
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5964 # Prepare PATH_SEPARATOR.
5965 # The user is always right.
5966 if test "${PATH_SEPARATOR+set}" != set; then
5967 echo "#! /bin/sh" >conf$$.sh
5968 echo "exit 0" >>conf$$.sh
5970 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5978 # Find out how to test for executable files. Don't use a zero-byte file,
5979 # as systems may use methods other than mode bits to determine executability.
5980 cat >conf$$.file <<_ASEOF
5984 chmod +x conf$$.file
5985 if test -x conf$$.file >/dev/null 2>&1; then
5986 ac_executable_p="test -x"
5988 ac_executable_p="test -f"
5992 # Extract the first word of "xgettext", so it can be a program name with args.
5993 set dummy xgettext; ac_word=$2
5994 echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5996 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6004 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6005 for ac_dir in $PATH; do
6007 test -z "$ac_dir" && ac_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6010 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6011 (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
6012 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6019 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6023 XGETTEXT="$ac_cv_path_XGETTEXT"
6024 if test "$XGETTEXT" != ":"; then
6025 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6026 echo "${ECHO_T}$XGETTEXT" >&6
6028 echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6035 # Prepare PATH_SEPARATOR.
6036 # The user is always right.
6037 if test "${PATH_SEPARATOR+set}" != set; then
6038 echo "#! /bin/sh" >conf$$.sh
6039 echo "exit 0" >>conf$$.sh
6041 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6049 # Find out how to test for executable files. Don't use a zero-byte file,
6050 # as systems may use methods other than mode bits to determine executability.
6051 cat >conf$$.file <<_ASEOF
6055 chmod +x conf$$.file
6056 if test -x conf$$.file >/dev/null 2>&1; then
6057 ac_executable_p="test -x"
6059 ac_executable_p="test -f"
6063 # Extract the first word of "msgmerge", so it can be a program name with args.
6064 set dummy msgmerge; ac_word=$2
6065 echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6067 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6075 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6076 for ac_dir in $PATH; do
6078 test -z "$ac_dir" && ac_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6081 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6082 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6089 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6093 MSGMERGE="$ac_cv_path_MSGMERGE"
6094 if test "$MSGMERGE" != ":"; then
6095 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6096 echo "${ECHO_T}$MSGMERGE" >&6
6098 echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6
6103 if test "$GMSGFMT" != ":"; then
6104 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6105 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6108 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6109 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6110 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6115 if test "$XGETTEXT" != ":"; then
6116 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6117 (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
6120 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6121 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6127 ac_config_commands="$ac_config_commands default-1"
6130 echo "$as_me:$LINENO: checking for off_t" >&5
6131 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6132 if test "${ac_cv_type_off_t+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 $ac_includes_default
6153 rm -f conftest.$ac_objext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6155 (eval $ac_compile) 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -z "$ac_c_werror_flag"
6163 || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_cv_type_off_t=yes
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6184 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6185 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6186 if test $ac_cv_type_off_t = yes; then
6190 cat >>confdefs.h <<_ACEOF
6196 echo "$as_me:$LINENO: checking for size_t" >&5
6197 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6198 if test "${ac_cv_type_size_t+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 $ac_includes_default
6213 if (sizeof (size_t))
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221 (eval $ac_compile) 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -z "$ac_c_werror_flag"
6229 || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_type_size_t=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_type_size_t=no
6248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6250 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6251 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6252 if test $ac_cv_type_size_t = yes; then
6256 cat >>confdefs.h <<_ACEOF
6257 #define size_t unsigned
6262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6263 # for constant arguments. Useless!
6264 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6265 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6266 if test "${ac_cv_working_alloca_h+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6279 char *p = (char *) alloca (2 * sizeof (int));
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286 (eval $ac_link) 2>conftest.er1
6288 grep -v '^ *+' conftest.er1 >conftest.err
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -z "$ac_c_werror_flag"
6294 || test ! -s conftest.err'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_working_alloca_h=yes
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_cv_working_alloca_h=no
6313 rm -f conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6317 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6318 if test $ac_cv_working_alloca_h = yes; then
6320 cat >>confdefs.h <<\_ACEOF
6321 #define HAVE_ALLOCA_H 1
6326 echo "$as_me:$LINENO: checking for alloca" >&5
6327 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6328 if test "${ac_cv_func_alloca_works+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6338 # define alloca __builtin_alloca
6341 # include <malloc.h>
6342 # define alloca _alloca
6345 # include <alloca.h>
6350 # ifndef alloca /* predefined by HP cc +Olibcalls */
6361 char *p = (char *) alloca (1);
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368 (eval $ac_link) 2>conftest.er1
6370 grep -v '^ *+' conftest.er1 >conftest.err
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest$ac_exeext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_cv_func_alloca_works=yes
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6393 ac_cv_func_alloca_works=no
6395 rm -f conftest.err conftest.$ac_objext \
6396 conftest$ac_exeext conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6399 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6401 if test $ac_cv_func_alloca_works = yes; then
6403 cat >>confdefs.h <<\_ACEOF
6404 #define HAVE_ALLOCA 1
6408 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6409 # that cause trouble. Some versions do not even contain alloca or
6410 # contain a buggy version. If you still want to use their alloca,
6411 # use ar to extract alloca.o from them instead of compiling alloca.c.
6413 ALLOCA=alloca.$ac_objext
6415 cat >>confdefs.h <<\_ACEOF
6420 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6421 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6422 if test "${ac_cv_os_cray+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 cat >conftest.$ac_ext <<_ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #if defined(CRAY) && ! defined(CRAY2)
6438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6439 $EGREP "webecray" >/dev/null 2>&1; then
6447 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6448 echo "${ECHO_T}$ac_cv_os_cray" >&6
6449 if test $ac_cv_os_cray = yes; then
6450 for ac_func in _getb67 GETB67 getb67; do
6451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6452 echo "$as_me:$LINENO: checking for $ac_func" >&5
6453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_var+set}\" = set"; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6465 #define $ac_func innocuous_$ac_func
6467 /* System header to define __stub macros and hopefully few prototypes,
6468 which can conflict with char $ac_func (); below.
6469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6470 <limits.h> exists even on freestanding compilers. */
6473 # include <limits.h>
6475 # include <assert.h>
6480 /* Override any gcc2 internal prototype to avoid an error. */
6485 /* We use char because int might match the return type of a gcc2
6486 builtin and then its argument prototype would still apply. */
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6494 char (*f) () = $ac_func;
6503 return f != $ac_func;
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510 (eval $ac_link) 2>conftest.er1
6512 grep -v '^ *+' conftest.er1 >conftest.err
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 eval "$as_ac_var=yes"
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 eval "$as_ac_var=no"
6537 rm -f conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6542 if test `eval echo '${'$as_ac_var'}'` = yes; then
6544 cat >>confdefs.h <<_ACEOF
6545 #define CRAY_STACKSEG_END $ac_func
6554 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6555 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6556 if test "${ac_cv_c_stack_direction+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 if test "$cross_compiling" = yes; then
6560 ac_cv_c_stack_direction=0
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6569 find_stack_direction ()
6571 static char *addr = 0;
6576 return find_stack_direction ();
6579 return (&dummy > addr) ? 1 : -1;
6585 exit (find_stack_direction () < 0);
6588 rm -f conftest$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_cv_c_stack_direction=1
6601 echo "$as_me: program exited with status $ac_status" >&5
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_cv_c_stack_direction=-1
6608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6611 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6612 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6614 cat >>confdefs.h <<_ACEOF
6615 #define STACK_DIRECTION $ac_cv_c_stack_direction
6623 for ac_header in stdlib.h unistd.h
6625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6627 echo "$as_me:$LINENO: checking for $ac_header" >&5
6628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6635 # Is the header compilable?
6636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6638 cat >conftest.$ac_ext <<_ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 $ac_includes_default
6645 #include <$ac_header>
6647 rm -f conftest.$ac_objext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649 (eval $ac_compile) 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -z "$ac_c_werror_flag"
6657 || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest.$ac_objext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_header_compiler=yes
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_header_compiler=no
6676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6678 echo "${ECHO_T}$ac_header_compiler" >&6
6680 # Is the header present?
6681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6683 cat >conftest.$ac_ext <<_ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <$ac_header>
6691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6694 grep -v '^ *+' conftest.er1 >conftest.err
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } >/dev/null; then
6699 if test -s conftest.err; then
6700 ac_cpp_err=$ac_c_preproc_warn_flag
6701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6708 if test -z "$ac_cpp_err"; then
6709 ac_header_preproc=yes
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 ac_header_preproc=no
6716 rm -f conftest.err conftest.$ac_ext
6717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6718 echo "${ECHO_T}$ac_header_preproc" >&6
6720 # So? What about this header?
6721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6727 ac_header_preproc=yes
6730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6744 ## ------------------------------- ##
6745 ## Report this to bug-bash@gnu.org ##
6746 ## ------------------------------- ##
6749 sed "s/^/$as_me: WARNING: /" >&2
6752 echo "$as_me:$LINENO: checking for $ac_header" >&5
6753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 eval "$as_ac_Header=\$ac_header_preproc"
6759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6764 cat >>confdefs.h <<_ACEOF
6765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6773 for ac_func in getpagesize
6775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6776 echo "$as_me:$LINENO: checking for $ac_func" >&5
6777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6778 if eval "test \"\${$as_ac_var+set}\" = set"; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 cat >conftest.$ac_ext <<_ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6789 #define $ac_func innocuous_$ac_func
6791 /* System header to define __stub macros and hopefully few prototypes,
6792 which can conflict with char $ac_func (); below.
6793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6794 <limits.h> exists even on freestanding compilers. */
6797 # include <limits.h>
6799 # include <assert.h>
6804 /* Override any gcc2 internal prototype to avoid an error. */
6809 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6812 /* The GNU C library defines this for functions which it implements
6813 to always fail with ENOSYS. Some functions are actually named
6814 something starting with __ and the normal name is an alias. */
6815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6818 char (*f) () = $ac_func;
6827 return f != $ac_func;
6832 rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834 (eval $ac_link) 2>conftest.er1
6836 grep -v '^ *+' conftest.er1 >conftest.err
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try='test -z "$ac_c_werror_flag"
6842 || test ! -s conftest.err'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; } &&
6848 { ac_try='test -s conftest$ac_exeext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 eval "$as_ac_var=yes"
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6859 eval "$as_ac_var=no"
6861 rm -f conftest.err conftest.$ac_objext \
6862 conftest$ac_exeext conftest.$ac_ext
6864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6866 if test `eval echo '${'$as_ac_var'}'` = yes; then
6867 cat >>confdefs.h <<_ACEOF
6868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6874 echo "$as_me:$LINENO: checking for working mmap" >&5
6875 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6876 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 if test "$cross_compiling" = yes; then
6880 ac_cv_func_mmap_fixed_mapped=no
6882 cat >conftest.$ac_ext <<_ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 $ac_includes_default
6889 /* malloc might have been renamed as rpl_malloc. */
6892 /* Thanks to Mike Haertel and Jim Avera for this test.
6893 Here is a matrix of mmap possibilities:
6894 mmap private not fixed
6895 mmap private fixed at somewhere currently unmapped
6896 mmap private fixed at somewhere already mapped
6897 mmap shared not fixed
6898 mmap shared fixed at somewhere currently unmapped
6899 mmap shared fixed at somewhere already mapped
6900 For private mappings, we should verify that changes cannot be read()
6901 back from the file, nor mmap's back from the file at a different
6902 address. (There have been systems where private was not correctly
6903 implemented like the infamous i386 svr4.0, and systems where the
6904 VM page cache was not coherent with the file system buffer cache
6905 like early versions of FreeBSD and possibly contemporary NetBSD.)
6906 For shared mappings, we should conversely verify that changes get
6907 propagated back to all the places they're supposed to be.
6909 Grep wants private fixed already mapped.
6910 The main things grep needs to know about mmap are:
6911 * does it exist and is it safe to write into the mmap'd area
6912 * how to use it (BSD variants) */
6915 #include <sys/mman.h>
6917 #if !STDC_HEADERS && !HAVE_STDLIB_H
6921 /* This mess was copied from the GNU getpagesize.h. */
6922 #if !HAVE_GETPAGESIZE
6923 /* Assume that all systems that can run configure have sys/param.h. */
6924 # if !HAVE_SYS_PARAM_H
6925 # define HAVE_SYS_PARAM_H 1
6928 # ifdef _SC_PAGESIZE
6929 # define getpagesize() sysconf(_SC_PAGESIZE)
6930 # else /* no _SC_PAGESIZE */
6931 # if HAVE_SYS_PARAM_H
6932 # include <sys/param.h>
6933 # ifdef EXEC_PAGESIZE
6934 # define getpagesize() EXEC_PAGESIZE
6935 # else /* no EXEC_PAGESIZE */
6937 # define getpagesize() NBPG * CLSIZE
6940 # endif /* no CLSIZE */
6941 # else /* no NBPG */
6943 # define getpagesize() NBPC
6944 # else /* no NBPC */
6946 # define getpagesize() PAGESIZE
6947 # endif /* PAGESIZE */
6948 # endif /* no NBPC */
6949 # endif /* no NBPG */
6950 # endif /* no EXEC_PAGESIZE */
6951 # else /* no HAVE_SYS_PARAM_H */
6952 # define getpagesize() 8192 /* punt totally */
6953 # endif /* no HAVE_SYS_PARAM_H */
6954 # endif /* no _SC_PAGESIZE */
6956 #endif /* no HAVE_GETPAGESIZE */
6961 char *data, *data2, *data3;
6965 pagesize = getpagesize ();
6967 /* First, make a file with some known garbage in it. */
6968 data = (char *) malloc (pagesize);
6971 for (i = 0; i < pagesize; ++i)
6972 *(data + i) = rand ();
6974 fd = creat ("conftest.mmap", 0600);
6977 if (write (fd, data, pagesize) != pagesize)
6981 /* Next, try to mmap the file at a fixed address which already has
6982 something else allocated at it. If we can, also make sure that
6983 we see the same garbage. */
6984 fd = open ("conftest.mmap", O_RDWR);
6987 data2 = (char *) malloc (2 * pagesize);
6990 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6991 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6992 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6994 for (i = 0; i < pagesize; ++i)
6995 if (*(data + i) != *(data2 + i))
6998 /* Finally, make sure that changes to the mapped area do not
6999 percolate back to the file as seen by read(). (This is a bug on
7000 some variants of i386 svr4.0.) */
7001 for (i = 0; i < pagesize; ++i)
7002 *(data2 + i) = *(data2 + i) + 1;
7003 data3 = (char *) malloc (pagesize);
7006 if (read (fd, data3, pagesize) != pagesize)
7008 for (i = 0; i < pagesize; ++i)
7009 if (*(data + i) != *(data3 + i))
7015 rm -f conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_func_mmap_fixed_mapped=yes
7028 echo "$as_me: program exited with status $ac_status" >&5
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_cv_func_mmap_fixed_mapped=no
7035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7038 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7039 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7040 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7042 cat >>confdefs.h <<\_ACEOF
7050 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7051 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7052 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7062 #include <features.h>
7063 #ifdef __GNU_LIBRARY__
7064 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7072 ac_cv_gnu_library_2_1=yes
7074 ac_cv_gnu_library_2_1=no
7081 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7082 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7084 GLIBC21="$ac_cv_gnu_library_2_1"
7089 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7090 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7091 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 if test "$cross_compiling" = yes; then
7097 # Guess based on the CPU.
7099 alpha* | i3456786 | m68k | s390*)
7100 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7102 gt_cv_int_divbyzero_sigfpe="guessing no";;
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7118 sigfpe_handler (int sig)
7120 sigfpe_handler (sig) int sig;
7123 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7124 exit (sig != SIGFPE);
7134 signal (SIGFPE, sigfpe_handler);
7135 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7136 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7137 signal (SIGTRAP, sigfpe_handler);
7139 /* Linux/SPARC yields signal SIGILL. */
7140 #if defined (__sparc__) && defined (__linux__)
7141 signal (SIGILL, sigfpe_handler);
7150 rm -f conftest$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152 (eval $ac_link) 2>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 gt_cv_int_divbyzero_sigfpe=yes
7163 echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7168 gt_cv_int_divbyzero_sigfpe=no
7170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7174 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7175 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7176 case "$gt_cv_int_divbyzero_sigfpe" in
7181 cat >>confdefs.h <<_ACEOF
7182 #define INTDIV0_RAISES_SIGFPE $value
7187 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7188 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7189 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.$ac_ext <<_ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <sys/types.h>
7199 #include <inttypes.h>
7203 uintmax_t i = (uintmax_t) -1;
7208 rm -f conftest.$ac_objext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210 (eval $ac_compile) 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } &&
7217 { ac_try='test -z "$ac_c_werror_flag"
7218 || test ! -s conftest.err'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; } &&
7224 { ac_try='test -s conftest.$ac_objext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 jm_ac_cv_header_inttypes_h=yes
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 jm_ac_cv_header_inttypes_h=no
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7240 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7241 if test $jm_ac_cv_header_inttypes_h = yes; then
7243 cat >>confdefs.h <<_ACEOF
7244 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7250 echo "$as_me:$LINENO: checking for stdint.h" >&5
7251 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7252 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 cat >conftest.$ac_ext <<_ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 #include <sys/types.h>
7266 uintmax_t i = (uintmax_t) -1;
7271 rm -f conftest.$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273 (eval $ac_compile) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest.$ac_objext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 jm_ac_cv_header_stdint_h=yes
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 jm_ac_cv_header_stdint_h=no
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7303 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7304 if test $jm_ac_cv_header_stdint_h = yes; then
7306 cat >>confdefs.h <<_ACEOF
7307 #define HAVE_STDINT_H_WITH_UINTMAX 1
7313 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7314 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7315 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 cat >conftest.$ac_ext <<_ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 unsigned long long ull = 1; int i = 63;
7328 unsigned long long ullmax = (unsigned long long) -1;
7329 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336 (eval $ac_link) 2>conftest.er1
7338 grep -v '^ *+' conftest.er1 >conftest.err
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag"
7344 || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest$ac_exeext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_type_unsigned_long_long=yes
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 ac_cv_type_unsigned_long_long=no
7363 rm -f conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7366 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7367 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7368 if test $ac_cv_type_unsigned_long_long = yes; then
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_UNSIGNED_LONG_LONG 1
7379 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7381 test $ac_cv_type_unsigned_long_long = yes \
7382 && ac_type='unsigned long long' \
7383 || ac_type='unsigned long'
7385 cat >>confdefs.h <<_ACEOF
7386 #define uintmax_t $ac_type
7391 cat >>confdefs.h <<\_ACEOF
7392 #define HAVE_UINTMAX_T 1
7398 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7399 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7400 if test "${gt_cv_header_inttypes_h+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 #include <sys/types.h>
7411 #include <inttypes.h>
7420 rm -f conftest.$ac_objext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422 (eval $ac_compile) 2>conftest.er1
7424 grep -v '^ *+' conftest.er1 >conftest.err
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -z "$ac_c_werror_flag"
7430 || test ! -s conftest.err'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; } &&
7436 { ac_try='test -s conftest.$ac_objext'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; }; then
7442 gt_cv_header_inttypes_h=yes
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7447 gt_cv_header_inttypes_h=no
7449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7452 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7453 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7454 if test $gt_cv_header_inttypes_h = yes; then
7456 cat >>confdefs.h <<_ACEOF
7457 #define HAVE_INTTYPES_H 1
7464 if test $gt_cv_header_inttypes_h = yes; then
7465 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7466 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7467 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 cat >conftest.$ac_ext <<_ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 #include <inttypes.h>
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>conftest.er1
7494 grep -v '^ *+' conftest.er1 >conftest.err
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest.$ac_objext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 gt_cv_inttypes_pri_broken=no
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7517 gt_cv_inttypes_pri_broken=yes
7519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7522 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7523 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7525 if test "$gt_cv_inttypes_pri_broken" = yes; then
7527 cat >>confdefs.h <<_ACEOF
7528 #define PRI_MACROS_BROKEN 1
7534 if test "X$prefix" = "XNONE"; then
7535 acl_final_prefix="$ac_default_prefix"
7537 acl_final_prefix="$prefix"
7539 if test "X$exec_prefix" = "XNONE"; then
7540 acl_final_exec_prefix='${prefix}'
7542 acl_final_exec_prefix="$exec_prefix"
7544 acl_save_prefix="$prefix"
7545 prefix="$acl_final_prefix"
7546 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7547 prefix="$acl_save_prefix"
7550 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7551 if test "${with_gnu_ld+set}" = set; then
7552 withval="$with_gnu_ld"
7553 test "$withval" = no || with_gnu_ld=yes
7557 # Prepare PATH_SEPARATOR.
7558 # The user is always right.
7559 if test "${PATH_SEPARATOR+set}" != set; then
7560 echo "#! /bin/sh" >conf$$.sh
7561 echo "exit 0" >>conf$$.sh
7563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7571 if test "$GCC" = yes; then
7572 # Check if gcc -print-prog-name=ld gives a path.
7573 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7574 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7577 # gcc leaves a trailing carriage return which upsets mingw
7578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7583 # Accept absolute paths.
7584 [\\/]* | [A-Za-z]:[\\/]*)
7585 re_direlt='/[^/][^/]*/\.\./'
7586 # Canonicalize the path of ld
7587 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7588 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7589 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7591 test -z "$LD" && LD="$ac_prog"
7594 # If it fails, then pretend we aren't using GCC.
7598 # If it is relative, then search for the first ld in PATH.
7602 elif test "$with_gnu_ld" = yes; then
7603 echo "$as_me:$LINENO: checking for GNU ld" >&5
7604 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7606 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7607 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7609 if test "${acl_cv_path_LD+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 if test -z "$LD"; then
7613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7614 for ac_dir in $PATH; do
7615 test -z "$ac_dir" && ac_dir=.
7616 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7617 acl_cv_path_LD="$ac_dir/$ac_prog"
7618 # Check to see if the program is GNU ld. I'd rather use --version,
7619 # but apparently some GNU ld's only accept -v.
7620 # Break only if it was the GNU/non-GNU ld that we prefer.
7621 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7622 test "$with_gnu_ld" != no && break
7624 test "$with_gnu_ld" != yes && break
7630 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7634 LD="$acl_cv_path_LD"
7635 if test -n "$LD"; then
7636 echo "$as_me:$LINENO: result: $LD" >&5
7637 echo "${ECHO_T}$LD" >&6
7639 echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6
7642 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7643 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7644 { (exit 1); exit 1; }; }
7645 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7646 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7647 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7651 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7652 acl_cv_prog_gnu_ld=yes
7654 acl_cv_prog_gnu_ld=no
7657 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7658 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7659 with_gnu_ld=$acl_cv_prog_gnu_ld
7663 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7664 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7665 if test "${acl_cv_rpath+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7670 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7676 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7677 echo "${ECHO_T}$acl_cv_rpath" >&6
7679 libext="$acl_cv_libext"
7680 shlibext="$acl_cv_shlibext"
7681 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7682 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7683 hardcode_direct="$acl_cv_hardcode_direct"
7684 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7685 # Check whether --enable-rpath or --disable-rpath was given.
7686 if test "${enable_rpath+set}" = set; then
7687 enableval="$enable_rpath"
7701 acl_save_prefix="$prefix"
7702 prefix="$acl_final_prefix"
7703 acl_save_exec_prefix="$exec_prefix"
7704 exec_prefix="$acl_final_exec_prefix"
7706 eval additional_includedir=\"$includedir\"
7707 eval additional_libdir=\"$libdir\"
7709 exec_prefix="$acl_save_exec_prefix"
7710 prefix="$acl_save_prefix"
7713 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7714 if test "${with_libiconv_prefix+set}" = set; then
7715 withval="$with_libiconv_prefix"
7717 if test "X$withval" = "Xno"; then
7720 if test "X$withval" = "X"; then
7722 acl_save_prefix="$prefix"
7723 prefix="$acl_final_prefix"
7724 acl_save_exec_prefix="$exec_prefix"
7725 exec_prefix="$acl_final_exec_prefix"
7727 eval additional_includedir=\"$includedir\"
7728 eval additional_libdir=\"$libdir\"
7730 exec_prefix="$acl_save_exec_prefix"
7731 prefix="$acl_save_prefix"
7734 additional_includedir="$withval/include"
7735 additional_libdir="$withval/lib"
7745 names_already_handled=
7746 names_next_round='iconv '
7747 while test -n "$names_next_round"; do
7748 names_this_round="$names_next_round"
7750 for name in $names_this_round; do
7752 for n in $names_already_handled; do
7753 if test "$n" = "$name"; then
7758 if test -z "$already_handled"; then
7759 names_already_handled="$names_already_handled $name"
7760 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7761 eval value=\"\$HAVE_LIB$uppername\"
7762 if test -n "$value"; then
7763 if test "$value" = yes; then
7764 eval value=\"\$LIB$uppername\"
7765 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7766 eval value=\"\$LTLIB$uppername\"
7767 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7776 if test $use_additional = yes; then
7777 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7778 found_dir="$additional_libdir"
7779 found_so="$additional_libdir/lib$name.$shlibext"
7780 if test -f "$additional_libdir/lib$name.la"; then
7781 found_la="$additional_libdir/lib$name.la"
7784 if test -f "$additional_libdir/lib$name.$libext"; then
7785 found_dir="$additional_libdir"
7786 found_a="$additional_libdir/lib$name.$libext"
7787 if test -f "$additional_libdir/lib$name.la"; then
7788 found_la="$additional_libdir/lib$name.la"
7793 if test "X$found_dir" = "X"; then
7794 for x in $LDFLAGS $LTLIBICONV; do
7796 acl_save_prefix="$prefix"
7797 prefix="$acl_final_prefix"
7798 acl_save_exec_prefix="$exec_prefix"
7799 exec_prefix="$acl_final_exec_prefix"
7801 exec_prefix="$acl_save_exec_prefix"
7802 prefix="$acl_save_prefix"
7806 dir=`echo "X$x" | sed -e 's/^X-L//'`
7807 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7809 found_so="$dir/lib$name.$shlibext"
7810 if test -f "$dir/lib$name.la"; then
7811 found_la="$dir/lib$name.la"
7814 if test -f "$dir/lib$name.$libext"; then
7816 found_a="$dir/lib$name.$libext"
7817 if test -f "$dir/lib$name.la"; then
7818 found_la="$dir/lib$name.la"
7824 if test "X$found_dir" != "X"; then
7829 if test "X$found_dir" != "X"; then
7830 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7831 if test "X$found_so" != "X"; then
7832 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7833 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7836 for x in $ltrpathdirs; do
7837 if test "X$x" = "X$found_dir"; then
7842 if test -z "$haveit"; then
7843 ltrpathdirs="$ltrpathdirs $found_dir"
7845 if test "$hardcode_direct" = yes; then
7846 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7848 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7851 for x in $rpathdirs; do
7852 if test "X$x" = "X$found_dir"; then
7857 if test -z "$haveit"; then
7858 rpathdirs="$rpathdirs $found_dir"
7862 for x in $LDFLAGS $LIBICONV; do
7864 acl_save_prefix="$prefix"
7865 prefix="$acl_final_prefix"
7866 acl_save_exec_prefix="$exec_prefix"
7867 exec_prefix="$acl_final_exec_prefix"
7869 exec_prefix="$acl_save_exec_prefix"
7870 prefix="$acl_save_prefix"
7872 if test "X$x" = "X-L$found_dir"; then
7877 if test -z "$haveit"; then
7878 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7880 if test "$hardcode_minus_L" != no; then
7881 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7883 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7889 if test "X$found_a" != "X"; then
7890 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7892 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7895 additional_includedir=
7896 case "$found_dir" in
7898 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7899 additional_includedir="$basedir/include"
7902 if test "X$additional_includedir" != "X"; then
7903 if test "X$additional_includedir" != "X/usr/include"; then
7905 if test "X$additional_includedir" = "X/usr/local/include"; then
7906 if test -n "$GCC"; then
7908 linux*) haveit=yes;;
7912 if test -z "$haveit"; then
7913 for x in $CPPFLAGS $INCICONV; do
7915 acl_save_prefix="$prefix"
7916 prefix="$acl_final_prefix"
7917 acl_save_exec_prefix="$exec_prefix"
7918 exec_prefix="$acl_final_exec_prefix"
7920 exec_prefix="$acl_save_exec_prefix"
7921 prefix="$acl_save_prefix"
7923 if test "X$x" = "X-I$additional_includedir"; then
7928 if test -z "$haveit"; then
7929 if test -d "$additional_includedir"; then
7930 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7936 if test -n "$found_la"; then
7937 save_libdir="$libdir"
7939 */* | *\\*) . "$found_la" ;;
7940 *) . "./$found_la" ;;
7942 libdir="$save_libdir"
7943 for dep in $dependency_libs; do
7946 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7947 if test "X$additional_libdir" != "X/usr/lib"; then
7949 if test "X$additional_libdir" = "X/usr/local/lib"; then
7950 if test -n "$GCC"; then
7952 linux*) haveit=yes;;
7956 if test -z "$haveit"; then
7958 for x in $LDFLAGS $LIBICONV; do
7960 acl_save_prefix="$prefix"
7961 prefix="$acl_final_prefix"
7962 acl_save_exec_prefix="$exec_prefix"
7963 exec_prefix="$acl_final_exec_prefix"
7965 exec_prefix="$acl_save_exec_prefix"
7966 prefix="$acl_save_prefix"
7968 if test "X$x" = "X-L$additional_libdir"; then
7973 if test -z "$haveit"; then
7974 if test -d "$additional_libdir"; then
7975 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7979 for x in $LDFLAGS $LTLIBICONV; do
7981 acl_save_prefix="$prefix"
7982 prefix="$acl_final_prefix"
7983 acl_save_exec_prefix="$exec_prefix"
7984 exec_prefix="$acl_final_exec_prefix"
7986 exec_prefix="$acl_save_exec_prefix"
7987 prefix="$acl_save_prefix"
7989 if test "X$x" = "X-L$additional_libdir"; then
7994 if test -z "$haveit"; then
7995 if test -d "$additional_libdir"; then
7996 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8003 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8004 if test "$enable_rpath" != no; then
8006 for x in $rpathdirs; do
8007 if test "X$x" = "X$dir"; then
8012 if test -z "$haveit"; then
8013 rpathdirs="$rpathdirs $dir"
8016 for x in $ltrpathdirs; do
8017 if test "X$x" = "X$dir"; then
8022 if test -z "$haveit"; then
8023 ltrpathdirs="$ltrpathdirs $dir"
8028 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8031 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8034 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8035 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8041 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8042 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8048 if test "X$rpathdirs" != "X"; then
8049 if test -n "$hardcode_libdir_separator"; then
8051 for found_dir in $rpathdirs; do
8052 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8054 acl_save_libdir="$libdir"
8056 eval flag=\"$hardcode_libdir_flag_spec\"
8057 libdir="$acl_save_libdir"
8058 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8060 for found_dir in $rpathdirs; do
8061 acl_save_libdir="$libdir"
8063 eval flag=\"$hardcode_libdir_flag_spec\"
8064 libdir="$acl_save_libdir"
8065 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8069 if test "X$ltrpathdirs" != "X"; then
8070 for found_dir in $ltrpathdirs; do
8071 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8088 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8089 stdlib.h string.h unistd.h sys/param.h
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo "$as_me:$LINENO: checking for $ac_header" >&5
8094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8101 # Is the header compilable?
8102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 $ac_includes_default
8111 #include <$ac_header>
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest.$ac_objext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_header_compiler=yes
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 ac_header_compiler=no
8142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8144 echo "${ECHO_T}$ac_header_compiler" >&6
8146 # Is the header present?
8147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 #include <$ac_header>
8157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160 grep -v '^ *+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } >/dev/null; then
8165 if test -s conftest.err; then
8166 ac_cpp_err=$ac_c_preproc_warn_flag
8167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8174 if test -z "$ac_cpp_err"; then
8175 ac_header_preproc=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_header_preproc=no
8182 rm -f conftest.err conftest.$ac_ext
8183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8184 echo "${ECHO_T}$ac_header_preproc" >&6
8186 # So? What about this header?
8187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8193 ac_header_preproc=yes
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8210 ## ------------------------------- ##
8211 ## Report this to bug-bash@gnu.org ##
8212 ## ------------------------------- ##
8215 sed "s/^/$as_me: WARNING: /" >&2
8218 echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 eval "$as_ac_Header=\$ac_header_preproc"
8225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8230 cat >>confdefs.h <<_ACEOF
8231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8260 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8261 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8262 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8266 echo "$as_me:$LINENO: checking for $ac_func" >&5
8267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8268 if eval "test \"\${$as_ac_var+set}\" = set"; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8279 #define $ac_func innocuous_$ac_func
8281 /* System header to define __stub macros and hopefully few prototypes,
8282 which can conflict with char $ac_func (); below.
8283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284 <limits.h> exists even on freestanding compilers. */
8287 # include <limits.h>
8289 # include <assert.h>
8294 /* Override any gcc2 internal prototype to avoid an error. */
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8302 /* The GNU C library defines this for functions which it implements
8303 to always fail with ENOSYS. Some functions are actually named
8304 something starting with __ and the normal name is an alias. */
8305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8308 char (*f) () = $ac_func;
8317 return f != $ac_func;
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 eval "$as_ac_var=yes"
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 eval "$as_ac_var=no"
8351 rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8356 if test `eval echo '${'$as_ac_var'}'` = yes; then
8357 cat >>confdefs.h <<_ACEOF
8358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8370 am_save_CPPFLAGS="$CPPFLAGS"
8372 for element in $INCICONV; do
8374 for x in $CPPFLAGS; do
8376 acl_save_prefix="$prefix"
8377 prefix="$acl_final_prefix"
8378 acl_save_exec_prefix="$exec_prefix"
8379 exec_prefix="$acl_final_exec_prefix"
8381 exec_prefix="$acl_save_exec_prefix"
8382 prefix="$acl_save_prefix"
8384 if test "X$x" = "X$element"; then
8389 if test -z "$haveit"; then
8390 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8395 echo "$as_me:$LINENO: checking for iconv" >&5
8396 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8397 if test "${am_cv_func_iconv+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 am_cv_func_iconv="no, consider installing GNU libiconv"
8403 cat >conftest.$ac_ext <<_ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8414 iconv_t cd = iconv_open("","");
8415 iconv(cd,NULL,NULL,NULL,NULL);
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 am_cv_func_iconv=yes
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8449 rm -f conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 if test "$am_cv_func_iconv" != yes; then
8452 am_save_LIBS="$LIBS"
8453 LIBS="$LIBS $LIBICONV"
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8465 iconv_t cd = iconv_open("","");
8466 iconv(cd,NULL,NULL,NULL,NULL);
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8474 (eval $ac_link) 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag"
8482 || test ! -s conftest.err'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; } &&
8488 { ac_try='test -s conftest$ac_exeext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8495 am_cv_func_iconv=yes
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8501 rm -f conftest.err conftest.$ac_objext \
8502 conftest$ac_exeext conftest.$ac_ext
8503 LIBS="$am_save_LIBS"
8507 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8508 echo "${ECHO_T}$am_cv_func_iconv" >&6
8509 if test "$am_cv_func_iconv" = yes; then
8511 cat >>confdefs.h <<\_ACEOF
8512 #define HAVE_ICONV 1
8516 if test "$am_cv_lib_iconv" = yes; then
8517 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8518 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8519 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8520 echo "${ECHO_T}$LIBICONV" >&6
8522 CPPFLAGS="$am_save_CPPFLAGS"
8529 if test "$am_cv_func_iconv" = yes; then
8530 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8531 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8532 if test "${am_cv_proto_iconv+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8549 #if defined(__STDC__) || defined(__cplusplus)
8550 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8563 rm -f conftest.$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>conftest.er1
8567 grep -v '^ *+' conftest.er1 >conftest.err
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag"
8573 || test ! -s conftest.err'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; } &&
8579 { ac_try='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 am_cv_proto_iconv_arg1=""
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 am_cv_proto_iconv_arg1="const"
8592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8596 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8597 echo "$as_me:$LINENO: result: ${ac_t:-
8598 }$am_cv_proto_iconv" >&5
8599 echo "${ECHO_T}${ac_t:-
8600 }$am_cv_proto_iconv" >&6
8602 cat >>confdefs.h <<_ACEOF
8603 #define ICONV_CONST $am_cv_proto_iconv_arg1
8609 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8610 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8611 if test "${am_cv_langinfo_codeset+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 cat >conftest.$ac_ext <<_ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <langinfo.h>
8624 char* cs = nl_langinfo(CODESET);
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631 (eval $ac_link) 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -z "$ac_c_werror_flag"
8639 || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 am_cv_langinfo_codeset=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 am_cv_langinfo_codeset=no
8658 rm -f conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8662 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8663 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8664 if test $am_cv_langinfo_codeset = yes; then
8666 cat >>confdefs.h <<\_ACEOF
8667 #define HAVE_LANGINFO_CODESET 1
8672 if test $ac_cv_header_locale_h = yes; then
8674 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8675 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8676 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 cat >conftest.$ac_ext <<_ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>conftest.er1
8698 grep -v '^ *+' conftest.er1 >conftest.err
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag"
8704 || test ! -s conftest.err'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; } &&
8710 { ac_try='test -s conftest$ac_exeext'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 am_cv_val_LC_MESSAGES=yes
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8721 am_cv_val_LC_MESSAGES=no
8723 rm -f conftest.err conftest.$ac_objext \
8724 conftest$ac_exeext conftest.$ac_ext
8726 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8727 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8728 if test $am_cv_val_LC_MESSAGES = yes; then
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_LC_MESSAGES 1
8738 for ac_prog in bison
8740 # Extract the first word of "$ac_prog", so it can be a program name with args.
8741 set dummy $ac_prog; ac_word=$2
8742 echo "$as_me:$LINENO: checking for $ac_word" >&5
8743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8744 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 if test -n "$INTLBISON"; then
8748 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_INTLBISON="$ac_prog"
8758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 INTLBISON=$ac_cv_prog_INTLBISON
8767 if test -n "$INTLBISON"; then
8768 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8769 echo "${ECHO_T}$INTLBISON" >&6
8771 echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8775 test -n "$INTLBISON" && break
8778 if test -z "$INTLBISON"; then
8781 echo "$as_me:$LINENO: checking version of bison" >&5
8782 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8783 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8784 case $ac_prog_version in
8785 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8786 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8787 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8788 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8790 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8791 echo "${ECHO_T}$ac_prog_version" >&6
8793 if test $ac_verc_fail = yes; then
8812 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8813 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8814 # Check whether --enable-nls or --disable-nls was given.
8815 if test "${enable_nls+set}" = set; then
8816 enableval="$enable_nls"
8821 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8822 echo "${ECHO_T}$USE_NLS" >&6
8827 BUILD_INCLUDED_LIBINTL=no
8828 USE_INCLUDED_LIBINTL=no
8834 if test "$USE_NLS" = "yes"; then
8835 gt_use_preinstalled_gnugettext=no
8837 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8838 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8840 # Check whether --with-included-gettext or --without-included-gettext was given.
8841 if test "${with_included_gettext+set}" = set; then
8842 withval="$with_included_gettext"
8843 nls_cv_force_use_gnu_gettext=$withval
8845 nls_cv_force_use_gnu_gettext=no
8847 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8848 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8850 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8851 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8858 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8859 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8860 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 #include <libintl.h>
8870 extern int _nl_msg_cat_cntr;
8871 extern int *_nl_domain_bindings;
8875 bindtextdomain ("", "");
8876 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>conftest.er1
8885 grep -v '^ *+' conftest.er1 >conftest.err
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag"
8891 || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 gt_cv_func_gnugettext2_libc=yes
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 gt_cv_func_gnugettext2_libc=no
8910 rm -f conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8914 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8916 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8922 acl_save_prefix="$prefix"
8923 prefix="$acl_final_prefix"
8924 acl_save_exec_prefix="$exec_prefix"
8925 exec_prefix="$acl_final_exec_prefix"
8927 eval additional_includedir=\"$includedir\"
8928 eval additional_libdir=\"$libdir\"
8930 exec_prefix="$acl_save_exec_prefix"
8931 prefix="$acl_save_prefix"
8934 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8935 if test "${with_libintl_prefix+set}" = set; then
8936 withval="$with_libintl_prefix"
8938 if test "X$withval" = "Xno"; then
8941 if test "X$withval" = "X"; then
8943 acl_save_prefix="$prefix"
8944 prefix="$acl_final_prefix"
8945 acl_save_exec_prefix="$exec_prefix"
8946 exec_prefix="$acl_final_exec_prefix"
8948 eval additional_includedir=\"$includedir\"
8949 eval additional_libdir=\"$libdir\"
8951 exec_prefix="$acl_save_exec_prefix"
8952 prefix="$acl_save_prefix"
8955 additional_includedir="$withval/include"
8956 additional_libdir="$withval/lib"
8966 names_already_handled=
8967 names_next_round='intl '
8968 while test -n "$names_next_round"; do
8969 names_this_round="$names_next_round"
8971 for name in $names_this_round; do
8973 for n in $names_already_handled; do
8974 if test "$n" = "$name"; then
8979 if test -z "$already_handled"; then
8980 names_already_handled="$names_already_handled $name"
8981 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8982 eval value=\"\$HAVE_LIB$uppername\"
8983 if test -n "$value"; then
8984 if test "$value" = yes; then
8985 eval value=\"\$LIB$uppername\"
8986 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8987 eval value=\"\$LTLIB$uppername\"
8988 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8997 if test $use_additional = yes; then
8998 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8999 found_dir="$additional_libdir"
9000 found_so="$additional_libdir/lib$name.$shlibext"
9001 if test -f "$additional_libdir/lib$name.la"; then
9002 found_la="$additional_libdir/lib$name.la"
9005 if test -f "$additional_libdir/lib$name.$libext"; then
9006 found_dir="$additional_libdir"
9007 found_a="$additional_libdir/lib$name.$libext"
9008 if test -f "$additional_libdir/lib$name.la"; then
9009 found_la="$additional_libdir/lib$name.la"
9014 if test "X$found_dir" = "X"; then
9015 for x in $LDFLAGS $LTLIBINTL; do
9017 acl_save_prefix="$prefix"
9018 prefix="$acl_final_prefix"
9019 acl_save_exec_prefix="$exec_prefix"
9020 exec_prefix="$acl_final_exec_prefix"
9022 exec_prefix="$acl_save_exec_prefix"
9023 prefix="$acl_save_prefix"
9027 dir=`echo "X$x" | sed -e 's/^X-L//'`
9028 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9030 found_so="$dir/lib$name.$shlibext"
9031 if test -f "$dir/lib$name.la"; then
9032 found_la="$dir/lib$name.la"
9035 if test -f "$dir/lib$name.$libext"; then
9037 found_a="$dir/lib$name.$libext"
9038 if test -f "$dir/lib$name.la"; then
9039 found_la="$dir/lib$name.la"
9045 if test "X$found_dir" != "X"; then
9050 if test "X$found_dir" != "X"; then
9051 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9052 if test "X$found_so" != "X"; then
9053 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9057 for x in $ltrpathdirs; do
9058 if test "X$x" = "X$found_dir"; then
9063 if test -z "$haveit"; then
9064 ltrpathdirs="$ltrpathdirs $found_dir"
9066 if test "$hardcode_direct" = yes; then
9067 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9069 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9070 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9072 for x in $rpathdirs; do
9073 if test "X$x" = "X$found_dir"; then
9078 if test -z "$haveit"; then
9079 rpathdirs="$rpathdirs $found_dir"
9083 for x in $LDFLAGS $LIBINTL; do
9085 acl_save_prefix="$prefix"
9086 prefix="$acl_final_prefix"
9087 acl_save_exec_prefix="$exec_prefix"
9088 exec_prefix="$acl_final_exec_prefix"
9090 exec_prefix="$acl_save_exec_prefix"
9091 prefix="$acl_save_prefix"
9093 if test "X$x" = "X-L$found_dir"; then
9098 if test -z "$haveit"; then
9099 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9101 if test "$hardcode_minus_L" != no; then
9102 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9104 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9110 if test "X$found_a" != "X"; then
9111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9113 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9116 additional_includedir=
9117 case "$found_dir" in
9119 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9120 additional_includedir="$basedir/include"
9123 if test "X$additional_includedir" != "X"; then
9124 if test "X$additional_includedir" != "X/usr/include"; then
9126 if test "X$additional_includedir" = "X/usr/local/include"; then
9127 if test -n "$GCC"; then
9129 linux*) haveit=yes;;
9133 if test -z "$haveit"; then
9134 for x in $CPPFLAGS $INCINTL; do
9136 acl_save_prefix="$prefix"
9137 prefix="$acl_final_prefix"
9138 acl_save_exec_prefix="$exec_prefix"
9139 exec_prefix="$acl_final_exec_prefix"
9141 exec_prefix="$acl_save_exec_prefix"
9142 prefix="$acl_save_prefix"
9144 if test "X$x" = "X-I$additional_includedir"; then
9149 if test -z "$haveit"; then
9150 if test -d "$additional_includedir"; then
9151 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9157 if test -n "$found_la"; then
9158 save_libdir="$libdir"
9160 */* | *\\*) . "$found_la" ;;
9161 *) . "./$found_la" ;;
9163 libdir="$save_libdir"
9164 for dep in $dependency_libs; do
9167 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9168 if test "X$additional_libdir" != "X/usr/lib"; then
9170 if test "X$additional_libdir" = "X/usr/local/lib"; then
9171 if test -n "$GCC"; then
9173 linux*) haveit=yes;;
9177 if test -z "$haveit"; then
9179 for x in $LDFLAGS $LIBINTL; do
9181 acl_save_prefix="$prefix"
9182 prefix="$acl_final_prefix"
9183 acl_save_exec_prefix="$exec_prefix"
9184 exec_prefix="$acl_final_exec_prefix"
9186 exec_prefix="$acl_save_exec_prefix"
9187 prefix="$acl_save_prefix"
9189 if test "X$x" = "X-L$additional_libdir"; then
9194 if test -z "$haveit"; then
9195 if test -d "$additional_libdir"; then
9196 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9200 for x in $LDFLAGS $LTLIBINTL; do
9202 acl_save_prefix="$prefix"
9203 prefix="$acl_final_prefix"
9204 acl_save_exec_prefix="$exec_prefix"
9205 exec_prefix="$acl_final_exec_prefix"
9207 exec_prefix="$acl_save_exec_prefix"
9208 prefix="$acl_save_prefix"
9210 if test "X$x" = "X-L$additional_libdir"; then
9215 if test -z "$haveit"; then
9216 if test -d "$additional_libdir"; then
9217 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9224 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9225 if test "$enable_rpath" != no; then
9227 for x in $rpathdirs; do
9228 if test "X$x" = "X$dir"; then
9233 if test -z "$haveit"; then
9234 rpathdirs="$rpathdirs $dir"
9237 for x in $ltrpathdirs; do
9238 if test "X$x" = "X$dir"; then
9243 if test -z "$haveit"; then
9244 ltrpathdirs="$ltrpathdirs $dir"
9249 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9252 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9255 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9256 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9262 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9269 if test "X$rpathdirs" != "X"; then
9270 if test -n "$hardcode_libdir_separator"; then
9272 for found_dir in $rpathdirs; do
9273 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9275 acl_save_libdir="$libdir"
9277 eval flag=\"$hardcode_libdir_flag_spec\"
9278 libdir="$acl_save_libdir"
9279 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9281 for found_dir in $rpathdirs; do
9282 acl_save_libdir="$libdir"
9284 eval flag=\"$hardcode_libdir_flag_spec\"
9285 libdir="$acl_save_libdir"
9286 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9290 if test "X$ltrpathdirs" != "X"; then
9291 for found_dir in $ltrpathdirs; do
9292 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9296 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9297 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9298 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 gt_save_CPPFLAGS="$CPPFLAGS"
9302 CPPFLAGS="$CPPFLAGS $INCINTL"
9303 gt_save_LIBS="$LIBS"
9304 LIBS="$LIBS $LIBINTL"
9305 cat >conftest.$ac_ext <<_ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 #include <libintl.h>
9312 extern int _nl_msg_cat_cntr;
9317 const char *_nl_expand_alias ();
9321 bindtextdomain ("", "");
9322 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9327 rm -f conftest.$ac_objext conftest$ac_exeext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9329 (eval $ac_link) 2>conftest.er1
9331 grep -v '^ *+' conftest.er1 >conftest.err
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } &&
9336 { ac_try='test -z "$ac_c_werror_flag"
9337 || test ! -s conftest.err'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest$ac_exeext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 gt_cv_func_gnugettext2_libintl=yes
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 gt_cv_func_gnugettext2_libintl=no
9356 rm -f conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9359 LIBS="$LIBS $LIBICONV"
9360 cat >conftest.$ac_ext <<_ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 #include <libintl.h>
9367 extern int _nl_msg_cat_cntr;
9372 const char *_nl_expand_alias ();
9376 bindtextdomain ("", "");
9377 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9382 rm -f conftest.$ac_objext conftest$ac_exeext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384 (eval $ac_link) 2>conftest.er1
9386 grep -v '^ *+' conftest.er1 >conftest.err
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag"
9392 || test ! -s conftest.err'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; } &&
9398 { ac_try='test -s conftest$ac_exeext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 LIBINTL="$LIBINTL $LIBICONV"
9405 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9406 gt_cv_func_gnugettext2_libintl=yes
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9413 rm -f conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9416 CPPFLAGS="$gt_save_CPPFLAGS"
9417 LIBS="$gt_save_LIBS"
9419 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9420 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9423 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9424 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9425 && test "$PACKAGE" != gettext-runtime \
9426 && test "$PACKAGE" != gettext-tools; }; then
9427 gt_use_preinstalled_gnugettext=yes
9435 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9436 nls_cv_use_gnu_gettext=yes
9440 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9441 BUILD_INCLUDED_LIBINTL=yes
9442 USE_INCLUDED_LIBINTL=yes
9443 LIBINTL="lib/intl/libintl.a $LIBICONV"
9444 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
9445 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9448 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9449 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9454 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9455 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9457 cat >>confdefs.h <<\_ACEOF
9458 #define ENABLE_NLS 1
9466 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9467 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9468 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9469 echo "${ECHO_T}$USE_NLS" >&6
9470 if test "$USE_NLS" = "yes"; then
9471 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9472 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9473 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9474 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9475 gt_source="external libintl"
9480 gt_source="included intl directory"
9482 echo "$as_me:$LINENO: result: $gt_source" >&5
9483 echo "${ECHO_T}$gt_source" >&6
9486 if test "$USE_NLS" = "yes"; then
9488 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9489 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9490 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9491 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9492 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9493 echo "${ECHO_T}$LIBINTL" >&6
9495 for element in $INCINTL; do
9497 for x in $CPPFLAGS; do
9499 acl_save_prefix="$prefix"
9500 prefix="$acl_final_prefix"
9501 acl_save_exec_prefix="$exec_prefix"
9502 exec_prefix="$acl_final_exec_prefix"
9504 exec_prefix="$acl_save_exec_prefix"
9505 prefix="$acl_save_prefix"
9507 if test "X$x" = "X$element"; then
9512 if test -z "$haveit"; then
9513 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_GETTEXT 1
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_DCGETTEXT 1
9535 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9536 BUILD_INCLUDED_LIBINTL=yes
9544 nls_cv_header_libgt=
9555 if test "$USE_INCLUDED_LIBINTL" = yes; then
9556 INTLOBJS="\$(GETTOBJS)"
9560 INTL_LIBTOOL_SUFFIX_PREFIX=
9578 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9579 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9580 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9581 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 cat >conftest.$ac_ext <<_ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 #include <sys/types.h>
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest.$ac_objext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 eval "$as_ac_Header=yes"
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 eval "$as_ac_Header=no"
9632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9637 cat >>confdefs.h <<_ACEOF
9638 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9641 ac_header_dirent=$ac_hdr; break
9645 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9646 if test $ac_header_dirent = dirent.h; then
9647 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9648 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9649 if test "${ac_cv_search_opendir+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 ac_func_search_save_LIBS=$LIBS
9653 ac_cv_search_opendir=no
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9661 /* Override any gcc2 internal prototype to avoid an error. */
9665 /* We use char because int might match the return type of a gcc2
9666 builtin and then its argument prototype would still apply. */
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag"
9686 || test ! -s conftest.err'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_search_opendir="none required"
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9704 rm -f conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 if test "$ac_cv_search_opendir" = no; then
9707 for ac_lib in dir; do
9708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9709 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9716 /* Override any gcc2 internal prototype to avoid an error. */
9720 /* We use char because int might match the return type of a gcc2
9721 builtin and then its argument prototype would still apply. */
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_search_opendir="-l$ac_lib"
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9760 rm -f conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_func_search_save_LIBS
9766 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9767 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9768 if test "$ac_cv_search_opendir" != no; then
9769 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9774 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9776 if test "${ac_cv_search_opendir+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 ac_func_search_save_LIBS=$LIBS
9780 ac_cv_search_opendir=no
9781 cat >conftest.$ac_ext <<_ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9788 /* Override any gcc2 internal prototype to avoid an error. */
9792 /* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_cv_search_opendir="none required"
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9831 rm -f conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 if test "$ac_cv_search_opendir" = no; then
9835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any gcc2 internal prototype to avoid an error. */
9847 /* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest$ac_exeext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_search_opendir="-l$ac_lib"
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9887 rm -f conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_func_search_save_LIBS
9893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9894 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9895 if test "$ac_cv_search_opendir" != no; then
9896 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9902 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9903 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9904 if test "${ac_cv_header_time+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 #include <sys/types.h>
9914 #include <sys/time.h>
9920 if ((struct tm *) 0)
9926 rm -f conftest.$ac_objext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9928 (eval $ac_compile) 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -z "$ac_c_werror_flag"
9936 || test ! -s conftest.err'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; } &&
9942 { ac_try='test -s conftest.$ac_objext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_header_time=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_header_time=no
9955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9957 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9958 echo "${ECHO_T}$ac_cv_header_time" >&6
9959 if test $ac_cv_header_time = yes; then
9961 cat >>confdefs.h <<\_ACEOF
9962 #define TIME_WITH_SYS_TIME 1
9970 for ac_header in inttypes.h
9972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9974 echo "$as_me:$LINENO: checking for $ac_header" >&5
9975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9982 # Is the header compilable?
9983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 $ac_includes_default
9992 #include <$ac_header>
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996 (eval $ac_compile) 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag"
10004 || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try='test -s conftest.$ac_objext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 ac_header_compiler=yes
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 ac_header_compiler=no
10023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10025 echo "${ECHO_T}$ac_header_compiler" >&6
10027 # Is the header present?
10028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10030 cat >conftest.$ac_ext <<_ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10036 #include <$ac_header>
10038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } >/dev/null; then
10046 if test -s conftest.err; then
10047 ac_cpp_err=$ac_c_preproc_warn_flag
10048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10055 if test -z "$ac_cpp_err"; then
10056 ac_header_preproc=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_header_preproc=no
10063 rm -f conftest.err conftest.$ac_ext
10064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10065 echo "${ECHO_T}$ac_header_preproc" >&6
10067 # So? What about this header?
10068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10074 ac_header_preproc=yes
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10091 ## ------------------------------- ##
10092 ## Report this to bug-bash@gnu.org ##
10093 ## ------------------------------- ##
10096 sed "s/^/$as_me: WARNING: /" >&2
10099 echo "$as_me:$LINENO: checking for $ac_header" >&5
10100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 eval "$as_ac_Header=\$ac_header_preproc"
10106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10111 cat >>confdefs.h <<_ACEOF
10112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10140 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
10141 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
10142 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
10144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10146 echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10154 # Is the header compilable?
10155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 $ac_includes_default
10164 #include <$ac_header>
10166 rm -f conftest.$ac_objext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10168 (eval $ac_compile) 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag"
10176 || test ! -s conftest.err'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try='test -s conftest.$ac_objext'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 ac_header_compiler=yes
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 ac_header_compiler=no
10195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10197 echo "${ECHO_T}$ac_header_compiler" >&6
10199 # Is the header present?
10200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10202 cat >conftest.$ac_ext <<_ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 #include <$ac_header>
10210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } >/dev/null; then
10218 if test -s conftest.err; then
10219 ac_cpp_err=$ac_c_preproc_warn_flag
10220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10227 if test -z "$ac_cpp_err"; then
10228 ac_header_preproc=yes
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10233 ac_header_preproc=no
10235 rm -f conftest.err conftest.$ac_ext
10236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10237 echo "${ECHO_T}$ac_header_preproc" >&6
10239 # So? What about this header?
10240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10246 ac_header_preproc=yes
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10263 ## ------------------------------- ##
10264 ## Report this to bug-bash@gnu.org ##
10265 ## ------------------------------- ##
10268 sed "s/^/$as_me: WARNING: /" >&2
10271 echo "$as_me:$LINENO: checking for $ac_header" >&5
10272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 eval "$as_ac_Header=\$ac_header_preproc"
10278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10283 cat >>confdefs.h <<_ACEOF
10284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10303 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
10304 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
10305 sys/time.h sys/times.h sys/types.h sys/wait.h
10307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10309 echo "$as_me:$LINENO: checking for $ac_header" >&5
10310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10317 # Is the header compilable?
10318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 $ac_includes_default
10327 #include <$ac_header>
10329 rm -f conftest.$ac_objext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10331 (eval $ac_compile) 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag"
10339 || test ! -s conftest.err'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; } &&
10345 { ac_try='test -s conftest.$ac_objext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_header_compiler=yes
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_header_compiler=no
10358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10360 echo "${ECHO_T}$ac_header_compiler" >&6
10362 # Is the header present?
10363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 #include <$ac_header>
10373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10376 grep -v '^ *+' conftest.er1 >conftest.err
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } >/dev/null; then
10381 if test -s conftest.err; then
10382 ac_cpp_err=$ac_c_preproc_warn_flag
10383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10390 if test -z "$ac_cpp_err"; then
10391 ac_header_preproc=yes
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ac_header_preproc=no
10398 rm -f conftest.err conftest.$ac_ext
10399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10400 echo "${ECHO_T}$ac_header_preproc" >&6
10402 # So? What about this header?
10403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10409 ac_header_preproc=yes
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10426 ## ------------------------------- ##
10427 ## Report this to bug-bash@gnu.org ##
10428 ## ------------------------------- ##
10431 sed "s/^/$as_me: WARNING: /" >&2
10434 echo "$as_me:$LINENO: checking for $ac_header" >&5
10435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 eval "$as_ac_Header=\$ac_header_preproc"
10441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10446 cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10456 for ac_header in netinet/in.h arpa/inet.h
10458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10460 echo "$as_me:$LINENO: checking for $ac_header" >&5
10461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10468 # Is the header compilable?
10469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 $ac_includes_default
10478 #include <$ac_header>
10480 rm -f conftest.$ac_objext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482 (eval $ac_compile) 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try='test -z "$ac_c_werror_flag"
10490 || test ! -s conftest.err'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; } &&
10496 { ac_try='test -s conftest.$ac_objext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_header_compiler=yes
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 ac_header_compiler=no
10509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10511 echo "${ECHO_T}$ac_header_compiler" >&6
10513 # Is the header present?
10514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 #include <$ac_header>
10524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10527 grep -v '^ *+' conftest.er1 >conftest.err
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } >/dev/null; then
10532 if test -s conftest.err; then
10533 ac_cpp_err=$ac_c_preproc_warn_flag
10534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10541 if test -z "$ac_cpp_err"; then
10542 ac_header_preproc=yes
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_header_preproc=no
10549 rm -f conftest.err conftest.$ac_ext
10550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10551 echo "${ECHO_T}$ac_header_preproc" >&6
10553 # So? What about this header?
10554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10560 ac_header_preproc=yes
10563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10577 ## ------------------------------- ##
10578 ## Report this to bug-bash@gnu.org ##
10579 ## ------------------------------- ##
10582 sed "s/^/$as_me: WARNING: /" >&2
10585 echo "$as_me:$LINENO: checking for $ac_header" >&5
10586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 eval "$as_ac_Header=\$ac_header_preproc"
10592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10597 cat >>confdefs.h <<_ACEOF
10598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10606 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10607 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10608 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10618 #if HAVE_SYS_STREAM_H
10619 # include <sys/stream.h>
10623 #include <sys/ptem.h>
10625 rm -f conftest.$ac_objext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10627 (eval $ac_compile) 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -z "$ac_c_werror_flag"
10635 || test ! -s conftest.err'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; } &&
10641 { ac_try='test -s conftest.$ac_objext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_header_sys_ptem_h=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_cv_header_sys_ptem_h=no
10654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10656 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10657 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10661 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10662 # for constant arguments. Useless!
10663 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10664 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10665 if test "${ac_cv_working_alloca_h+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 cat >conftest.$ac_ext <<_ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 #include <alloca.h>
10678 char *p = (char *) alloca (2 * sizeof (int));
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10685 (eval $ac_link) 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_c_werror_flag"
10693 || test ! -s conftest.err'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; } &&
10699 { ac_try='test -s conftest$ac_exeext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_cv_working_alloca_h=yes
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10710 ac_cv_working_alloca_h=no
10712 rm -f conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10715 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10716 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10717 if test $ac_cv_working_alloca_h = yes; then
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_ALLOCA_H 1
10725 echo "$as_me:$LINENO: checking for alloca" >&5
10726 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10727 if test "${ac_cv_func_alloca_works+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 cat >conftest.$ac_ext <<_ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10737 # define alloca __builtin_alloca
10740 # include <malloc.h>
10741 # define alloca _alloca
10744 # include <alloca.h>
10749 # ifndef alloca /* predefined by HP cc +Olibcalls */
10760 char *p = (char *) alloca (1);
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10767 (eval $ac_link) 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag"
10775 || test ! -s conftest.err'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; } &&
10781 { ac_try='test -s conftest$ac_exeext'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 ac_cv_func_alloca_works=yes
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ac_cv_func_alloca_works=no
10794 rm -f conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10797 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10798 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10800 if test $ac_cv_func_alloca_works = yes; then
10802 cat >>confdefs.h <<\_ACEOF
10803 #define HAVE_ALLOCA 1
10807 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10808 # that cause trouble. Some versions do not even contain alloca or
10809 # contain a buggy version. If you still want to use their alloca,
10810 # use ar to extract alloca.o from them instead of compiling alloca.c.
10812 ALLOCA=alloca.$ac_objext
10814 cat >>confdefs.h <<\_ACEOF
10819 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10820 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10821 if test "${ac_cv_os_cray+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #if defined(CRAY) && ! defined(CRAY2)
10837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10838 $EGREP "webecray" >/dev/null 2>&1; then
10846 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10847 echo "${ECHO_T}$ac_cv_os_cray" >&6
10848 if test $ac_cv_os_cray = yes; then
10849 for ac_func in _getb67 GETB67 getb67; do
10850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10851 echo "$as_me:$LINENO: checking for $ac_func" >&5
10852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10853 if eval "test \"\${$as_ac_var+set}\" = set"; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 cat >conftest.$ac_ext <<_ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10864 #define $ac_func innocuous_$ac_func
10866 /* System header to define __stub macros and hopefully few prototypes,
10867 which can conflict with char $ac_func (); below.
10868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10869 <limits.h> exists even on freestanding compilers. */
10872 # include <limits.h>
10874 # include <assert.h>
10879 /* Override any gcc2 internal prototype to avoid an error. */
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10887 /* The GNU C library defines this for functions which it implements
10888 to always fail with ENOSYS. Some functions are actually named
10889 something starting with __ and the normal name is an alias. */
10890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10893 char (*f) () = $ac_func;
10902 return f != $ac_func;
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -z "$ac_c_werror_flag"
10917 || test ! -s conftest.err'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; } &&
10923 { ac_try='test -s conftest$ac_exeext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 eval "$as_ac_var=yes"
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 eval "$as_ac_var=no"
10936 rm -f conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10941 if test `eval echo '${'$as_ac_var'}'` = yes; then
10943 cat >>confdefs.h <<_ACEOF
10944 #define CRAY_STACKSEG_END $ac_func
10953 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10954 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10955 if test "${ac_cv_c_stack_direction+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 if test "$cross_compiling" = yes; then
10959 ac_cv_c_stack_direction=0
10961 cat >conftest.$ac_ext <<_ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10968 find_stack_direction ()
10970 static char *addr = 0;
10975 return find_stack_direction ();
10978 return (&dummy > addr) ? 1 : -1;
10984 exit (find_stack_direction () < 0);
10987 rm -f conftest$ac_exeext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989 (eval $ac_link) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_c_stack_direction=1
11000 echo "$as_me: program exited with status $ac_status" >&5
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ( exit $ac_status )
11005 ac_cv_c_stack_direction=-1
11007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11010 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11011 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11013 cat >>confdefs.h <<_ACEOF
11014 #define STACK_DIRECTION $ac_cv_c_stack_direction
11020 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11021 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11022 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 # Use it with a single arg.
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 $ac_includes_default
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag"
11051 || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_func_getpgrp_void=no
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_cv_func_getpgrp_void=yes
11070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11073 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11074 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11075 if test $ac_cv_func_getpgrp_void = yes; then
11077 cat >>confdefs.h <<\_ACEOF
11078 #define GETPGRP_VOID 1
11083 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11084 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
11085 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_cv_func_setvbuf_reversed=no
11089 cat >conftest.$ac_ext <<_ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11097 int (setvbuf) (FILE *, int, char *, size_t);
11102 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>conftest.er1
11111 grep -v '^ *+' conftest.er1 >conftest.err
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } &&
11116 { ac_try='test -z "$ac_c_werror_flag"
11117 || test ! -s conftest.err'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; } &&
11123 { ac_try='test -s conftest$ac_exeext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11137 int (setvbuf) (FILE *, int, char *, size_t);
11142 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>conftest.er1
11151 grep -v '^ *+' conftest.er1 >conftest.err
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -z "$ac_c_werror_flag"
11157 || test ! -s conftest.err'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 # It compiles and links either way, so it must not be declared
11170 # with a prototype and most likely this is a K&R C compiler.
11172 if test "$cross_compiling" = yes; then
11173 : # Assume setvbuf is not reversed when cross-compiling.
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11185 /* This call has the arguments reversed.
11186 A reversed system may check and see that the address of buf
11187 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11189 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11192 exit (0); /* Non-reversed systems SEGV here. */
11197 rm -f conftest$ac_exeext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199 (eval $ac_link) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 ac_cv_func_setvbuf_reversed=yes
11210 echo "$as_me: program exited with status $ac_status" >&5
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 ( exit $ac_status )
11217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11219 ac_cv_func_setvbuf_reversed=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11225 rm -f conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11232 rm -f conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext conftest.$ac_ext
11235 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11236 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
11237 if test $ac_cv_func_setvbuf_reversed = yes; then
11239 cat >>confdefs.h <<\_ACEOF
11240 #define SETVBUF_REVERSED 1
11246 for ac_func in vprintf
11248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11249 echo "$as_me:$LINENO: checking for $ac_func" >&5
11250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11251 if eval "test \"\${$as_ac_var+set}\" = set"; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11262 #define $ac_func innocuous_$ac_func
11264 /* System header to define __stub macros and hopefully few prototypes,
11265 which can conflict with char $ac_func (); below.
11266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11267 <limits.h> exists even on freestanding compilers. */
11270 # include <limits.h>
11272 # include <assert.h>
11277 /* Override any gcc2 internal prototype to avoid an error. */
11282 /* We use char because int might match the return type of a gcc2
11283 builtin and then its argument prototype would still apply. */
11285 /* The GNU C library defines this for functions which it implements
11286 to always fail with ENOSYS. Some functions are actually named
11287 something starting with __ and the normal name is an alias. */
11288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11291 char (*f) () = $ac_func;
11300 return f != $ac_func;
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307 (eval $ac_link) 2>conftest.er1
11309 grep -v '^ *+' conftest.er1 >conftest.err
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -z "$ac_c_werror_flag"
11315 || test ! -s conftest.err'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 eval "$as_ac_var=yes"
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 eval "$as_ac_var=no"
11334 rm -f conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11339 if test `eval echo '${'$as_ac_var'}'` = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344 echo "$as_me:$LINENO: checking for _doprnt" >&5
11345 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11346 if test "${ac_cv_func__doprnt+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11357 #define _doprnt innocuous__doprnt
11359 /* System header to define __stub macros and hopefully few prototypes,
11360 which can conflict with char _doprnt (); below.
11361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11362 <limits.h> exists even on freestanding compilers. */
11365 # include <limits.h>
11367 # include <assert.h>
11372 /* Override any gcc2 internal prototype to avoid an error. */
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11380 /* The GNU C library defines this for functions which it implements
11381 to always fail with ENOSYS. Some functions are actually named
11382 something starting with __ and the normal name is an alias. */
11383 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11386 char (*f) () = _doprnt;
11395 return f != _doprnt;
11400 rm -f conftest.$ac_objext conftest$ac_exeext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11402 (eval $ac_link) 2>conftest.er1
11404 grep -v '^ *+' conftest.er1 >conftest.err
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
11409 { ac_try='test -z "$ac_c_werror_flag"
11410 || test ! -s conftest.err'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest$ac_exeext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_cv_func__doprnt=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_cv_func__doprnt=no
11429 rm -f conftest.err conftest.$ac_objext \
11430 conftest$ac_exeext conftest.$ac_ext
11432 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11433 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11434 if test $ac_cv_func__doprnt = yes; then
11436 cat >>confdefs.h <<\_ACEOF
11437 #define HAVE_DOPRNT 1
11446 echo "$as_me:$LINENO: checking for working strcoll" >&5
11447 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11448 if test "${ac_cv_func_strcoll_works+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 if test "$cross_compiling" = yes; then
11452 ac_cv_func_strcoll_works=no
11454 cat >conftest.$ac_ext <<_ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 $ac_includes_default
11464 exit (strcoll ("abc", "def") >= 0 ||
11465 strcoll ("ABC", "DEF") >= 0 ||
11466 strcoll ("123", "456") >= 0)
11471 rm -f conftest$ac_exeext
11472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11473 (eval $ac_link) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_func_strcoll_works=yes
11484 echo "$as_me: program exited with status $ac_status" >&5
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 ( exit $ac_status )
11489 ac_cv_func_strcoll_works=no
11491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11494 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11495 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11496 if test $ac_cv_func_strcoll_works = yes; then
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE_STRCOLL 1
11506 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
11507 MALLOC_TARGET=alloca
11508 MALLOC_SRC=alloca.c
11510 MALLOC_LIB='-lmalloc'
11511 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
11512 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
11513 MALLOC_DEP='$(MALLOC_LIBRARY)'
11516 if test "$ac_cv_func_vprintf" = no; then
11517 echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
11518 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
11519 cat >conftest.$ac_ext <<_ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11529 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
11530 ac_cv_func_vprintf=yes
11534 echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
11535 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
11536 if test $ac_cv_func_vprintf = yes; then
11537 cat >>confdefs.h <<\_ACEOF
11538 #define HAVE_VPRINTF 1
11544 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
11546 "vprint.$ac_objext" | \
11547 *" vprint.$ac_objext" | \
11548 "vprint.$ac_objext "* | \
11549 *" vprint.$ac_objext "* ) ;;
11550 *) LIBOBJS="$LIBOBJS vprint.$ac_objext" ;;
11555 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11556 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11557 if test "${ac_cv_type_signal+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 cat >conftest.$ac_ext <<_ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11566 #include <sys/types.h>
11567 #include <signal.h>
11572 extern "C" void (*signal (int, void (*)(int)))(int);
11574 void (*signal ()) ();
11585 rm -f conftest.$ac_objext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11587 (eval $ac_compile) 2>conftest.er1
11589 grep -v '^ *+' conftest.er1 >conftest.err
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -z "$ac_c_werror_flag"
11595 || test ! -s conftest.err'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; } &&
11601 { ac_try='test -s conftest.$ac_objext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607 ac_cv_type_signal=void
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11612 ac_cv_type_signal=int
11614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11616 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11617 echo "${ECHO_T}$ac_cv_type_signal" >&6
11619 cat >>confdefs.h <<_ACEOF
11620 #define RETSIGTYPE $ac_cv_type_signal
11625 echo "$as_me:$LINENO: checking for __setostype" >&5
11626 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
11627 if test "${ac_cv_func___setostype+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
11637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11638 #define __setostype innocuous___setostype
11640 /* System header to define __stub macros and hopefully few prototypes,
11641 which can conflict with char __setostype (); below.
11642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11643 <limits.h> exists even on freestanding compilers. */
11646 # include <limits.h>
11648 # include <assert.h>
11653 /* Override any gcc2 internal prototype to avoid an error. */
11658 /* We use char because int might match the return type of a gcc2
11659 builtin and then its argument prototype would still apply. */
11660 char __setostype ();
11661 /* The GNU C library defines this for functions which it implements
11662 to always fail with ENOSYS. Some functions are actually named
11663 something starting with __ and the normal name is an alias. */
11664 #if defined (__stub___setostype) || defined (__stub_____setostype)
11667 char (*f) () = __setostype;
11676 return f != __setostype;
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683 (eval $ac_link) 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_c_werror_flag"
11691 || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_func___setostype=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_cv_func___setostype=no
11710 rm -f conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
11714 echo "${ECHO_T}$ac_cv_func___setostype" >&6
11715 if test $ac_cv_func___setostype = yes; then
11716 cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_SETOSTYPE 1
11722 echo "$as_me:$LINENO: checking for wait3" >&5
11723 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
11724 if test "${ac_cv_func_wait3+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 cat >conftest.$ac_ext <<_ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
11734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11735 #define wait3 innocuous_wait3
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char wait3 (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11743 # include <limits.h>
11745 # include <assert.h>
11750 /* Override any gcc2 internal prototype to avoid an error. */
11755 /* We use char because int might match the return type of a gcc2
11756 builtin and then its argument prototype would still apply. */
11758 /* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761 #if defined (__stub_wait3) || defined (__stub___wait3)
11764 char (*f) () = wait3;
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_func_wait3=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_cv_func_wait3=no
11807 rm -f conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11810 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
11811 echo "${ECHO_T}$ac_cv_func_wait3" >&6
11812 if test $ac_cv_func_wait3 = yes; then
11813 cat >>confdefs.h <<\_ACEOF
11814 #define HAVE_WAIT3 1
11819 echo "$as_me:$LINENO: checking for isinf" >&5
11820 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11821 if test "${ac_cv_func_isinf+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
11831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11832 #define isinf innocuous_isinf
11834 /* System header to define __stub macros and hopefully few prototypes,
11835 which can conflict with char isinf (); below.
11836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837 <limits.h> exists even on freestanding compilers. */
11840 # include <limits.h>
11842 # include <assert.h>
11847 /* Override any gcc2 internal prototype to avoid an error. */
11852 /* We use char because int might match the return type of a gcc2
11853 builtin and then its argument prototype would still apply. */
11855 /* The GNU C library defines this for functions which it implements
11856 to always fail with ENOSYS. Some functions are actually named
11857 something starting with __ and the normal name is an alias. */
11858 #if defined (__stub_isinf) || defined (__stub___isinf)
11861 char (*f) () = isinf;
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_func_isinf=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_func_isinf=no
11904 rm -f conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11907 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11908 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11909 if test $ac_cv_func_isinf = yes; then
11910 cat >>confdefs.h <<\_ACEOF
11911 #define HAVE_ISINF_IN_LIBC 1
11917 echo "$as_me:$LINENO: checking for mkfifo" >&5
11918 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
11919 if test "${ac_cv_func_mkfifo+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
11929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11930 #define mkfifo innocuous_mkfifo
11932 /* System header to define __stub macros and hopefully few prototypes,
11933 which can conflict with char mkfifo (); below.
11934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11935 <limits.h> exists even on freestanding compilers. */
11938 # include <limits.h>
11940 # include <assert.h>
11945 /* Override any gcc2 internal prototype to avoid an error. */
11950 /* We use char because int might match the return type of a gcc2
11951 builtin and then its argument prototype would still apply. */
11953 /* The GNU C library defines this for functions which it implements
11954 to always fail with ENOSYS. Some functions are actually named
11955 something starting with __ and the normal name is an alias. */
11956 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
11959 char (*f) () = mkfifo;
11968 return f != mkfifo;
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>conftest.er1
11977 grep -v '^ *+' conftest.er1 >conftest.err
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest$ac_exeext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_func_mkfifo=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_cv_func_mkfifo=no
12002 rm -f conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12005 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
12006 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
12007 if test $ac_cv_func_mkfifo = yes; then
12008 cat >>confdefs.h <<\_ACEOF
12009 #define HAVE_MKFIFO 1
12013 cat >>confdefs.h <<\_ACEOF
12014 #define MKFIFO_MISSING 1
12041 for ac_func in dup2 fcntl getdtablesize getgroups gethostname getpagesize \
12042 getpeername getrlimit getrusage gettimeofday kill killpg \
12043 lstat readlink sbrk select setdtablesize tcgetpgrp uname \
12046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12047 echo "$as_me:$LINENO: checking for $ac_func" >&5
12048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12049 if eval "test \"\${$as_ac_var+set}\" = set"; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12060 #define $ac_func innocuous_$ac_func
12062 /* System header to define __stub macros and hopefully few prototypes,
12063 which can conflict with char $ac_func (); below.
12064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 <limits.h> exists even on freestanding compilers. */
12068 # include <limits.h>
12070 # include <assert.h>
12075 /* Override any gcc2 internal prototype to avoid an error. */
12080 /* We use char because int might match the return type of a gcc2
12081 builtin and then its argument prototype would still apply. */
12083 /* The GNU C library defines this for functions which it implements
12084 to always fail with ENOSYS. Some functions are actually named
12085 something starting with __ and the normal name is an alias. */
12086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12089 char (*f) () = $ac_func;
12098 return f != $ac_func;
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105 (eval $ac_link) 2>conftest.er1
12107 grep -v '^ *+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 eval "$as_ac_var=yes"
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12130 eval "$as_ac_var=no"
12132 rm -f conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12137 if test `eval echo '${'$as_ac_var'}'` = yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12146 for ac_func in rename
12148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12149 echo "$as_me:$LINENO: checking for $ac_func" >&5
12150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12151 if eval "test \"\${$as_ac_var+set}\" = set"; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12162 #define $ac_func innocuous_$ac_func
12164 /* System header to define __stub macros and hopefully few prototypes,
12165 which can conflict with char $ac_func (); below.
12166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167 <limits.h> exists even on freestanding compilers. */
12170 # include <limits.h>
12172 # include <assert.h>
12177 /* Override any gcc2 internal prototype to avoid an error. */
12182 /* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12185 /* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12191 char (*f) () = $ac_func;
12200 return f != $ac_func;
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207 (eval $ac_link) 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag"
12215 || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest$ac_exeext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 eval "$as_ac_var=yes"
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 eval "$as_ac_var=no"
12234 rm -f conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12239 if test `eval echo '${'$as_ac_var'}'` = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246 "$ac_func.$ac_objext" | \
12247 *" $ac_func.$ac_objext" | \
12248 "$ac_func.$ac_objext "* | \
12249 *" $ac_func.$ac_objext "* ) ;;
12250 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12285 for ac_func in bcopy bzero confstr fnmatch \
12286 getaddrinfo gethostbyname getservbyname getservent inet_aton \
12287 memmove pathconf putenv raise regcomp regexec \
12288 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
12289 sysconf tcgetattr times ttyname tzset unsetenv
12291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12292 echo "$as_me:$LINENO: checking for $ac_func" >&5
12293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12294 if eval "test \"\${$as_ac_var+set}\" = set"; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 cat >conftest.$ac_ext <<_ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12305 #define $ac_func innocuous_$ac_func
12307 /* System header to define __stub macros and hopefully few prototypes,
12308 which can conflict with char $ac_func (); below.
12309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12310 <limits.h> exists even on freestanding compilers. */
12313 # include <limits.h>
12315 # include <assert.h>
12320 /* Override any gcc2 internal prototype to avoid an error. */
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12328 /* The GNU C library defines this for functions which it implements
12329 to always fail with ENOSYS. Some functions are actually named
12330 something starting with __ and the normal name is an alias. */
12331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12334 char (*f) () = $ac_func;
12343 return f != $ac_func;
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag"
12358 || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest$ac_exeext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 eval "$as_ac_var=yes"
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 eval "$as_ac_var=no"
12377 rm -f conftest.err conftest.$ac_objext \
12378 conftest$ac_exeext conftest.$ac_ext
12380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12382 if test `eval echo '${'$as_ac_var'}'` = yes; then
12383 cat >>confdefs.h <<_ACEOF
12384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12395 for ac_func in vsnprintf snprintf vasprintf asprintf
12397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12398 echo "$as_me:$LINENO: checking for $ac_func" >&5
12399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12400 if eval "test \"\${$as_ac_var+set}\" = set"; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12411 #define $ac_func innocuous_$ac_func
12413 /* System header to define __stub macros and hopefully few prototypes,
12414 which can conflict with char $ac_func (); below.
12415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416 <limits.h> exists even on freestanding compilers. */
12419 # include <limits.h>
12421 # include <assert.h>
12426 /* Override any gcc2 internal prototype to avoid an error. */
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12434 /* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12440 char (*f) () = $ac_func;
12449 return f != $ac_func;
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 eval "$as_ac_var=yes"
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 eval "$as_ac_var=no"
12483 rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12488 if test `eval echo '${'$as_ac_var'}'` = yes; then
12489 cat >>confdefs.h <<_ACEOF
12490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12502 for ac_func in isascii isblank isgraph isprint isspace isxdigit
12504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505 echo "$as_me:$LINENO: checking for $ac_func" >&5
12506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12507 if eval "test \"\${$as_ac_var+set}\" = set"; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 cat >conftest.$ac_ext <<_ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12518 #define $ac_func innocuous_$ac_func
12520 /* System header to define __stub macros and hopefully few prototypes,
12521 which can conflict with char $ac_func (); below.
12522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12523 <limits.h> exists even on freestanding compilers. */
12526 # include <limits.h>
12528 # include <assert.h>
12533 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12541 /* The GNU C library defines this for functions which it implements
12542 to always fail with ENOSYS. Some functions are actually named
12543 something starting with __ and the normal name is an alias. */
12544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12547 char (*f) () = $ac_func;
12556 return f != $ac_func;
12561 rm -f conftest.$ac_objext conftest$ac_exeext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12563 (eval $ac_link) 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag"
12571 || test ! -s conftest.err'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest$ac_exeext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 eval "$as_ac_var=yes"
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 eval "$as_ac_var=no"
12590 rm -f conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12595 if test `eval echo '${'$as_ac_var'}'` = yes; then
12596 cat >>confdefs.h <<_ACEOF
12597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12606 for ac_func in getpwent getpwnam getpwuid
12608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12609 echo "$as_me:$LINENO: checking for $ac_func" >&5
12610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12611 if eval "test \"\${$as_ac_var+set}\" = set"; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 cat >conftest.$ac_ext <<_ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12622 #define $ac_func innocuous_$ac_func
12624 /* System header to define __stub macros and hopefully few prototypes,
12625 which can conflict with char $ac_func (); below.
12626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12627 <limits.h> exists even on freestanding compilers. */
12630 # include <limits.h>
12632 # include <assert.h>
12637 /* Override any gcc2 internal prototype to avoid an error. */
12642 /* We use char because int might match the return type of a gcc2
12643 builtin and then its argument prototype would still apply. */
12645 /* The GNU C library defines this for functions which it implements
12646 to always fail with ENOSYS. Some functions are actually named
12647 something starting with __ and the normal name is an alias. */
12648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12651 char (*f) () = $ac_func;
12660 return f != $ac_func;
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12667 (eval $ac_link) 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 eval "$as_ac_var=yes"
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 eval "$as_ac_var=no"
12694 rm -f conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
12697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12699 if test `eval echo '${'$as_ac_var'}'` = yes; then
12700 cat >>confdefs.h <<_ACEOF
12701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12715 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
12717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12720 if eval "test \"\${$as_ac_var+set}\" = set"; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731 #define $ac_func innocuous_$ac_func
12733 /* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12739 # include <limits.h>
12741 # include <assert.h>
12746 /* Override any gcc2 internal prototype to avoid an error. */
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12754 /* The GNU C library defines this for functions which it implements
12755 to always fail with ENOSYS. Some functions are actually named
12756 something starting with __ and the normal name is an alias. */
12757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12760 char (*f) () = $ac_func;
12769 return f != $ac_func;
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>conftest.er1
12778 grep -v '^ *+' conftest.er1 >conftest.err
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 eval "$as_ac_var=yes"
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12801 eval "$as_ac_var=no"
12803 rm -f conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext conftest.$ac_ext
12806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12808 if test `eval echo '${'$as_ac_var'}'` = yes; then
12809 cat >>confdefs.h <<_ACEOF
12810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12815 "$ac_func.$ac_objext" | \
12816 *" $ac_func.$ac_objext" | \
12817 "$ac_func.$ac_objext "* | \
12818 *" $ac_func.$ac_objext "* ) ;;
12819 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12833 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
12835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12836 echo "$as_me:$LINENO: checking for $ac_func" >&5
12837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12838 if eval "test \"\${$as_ac_var+set}\" = set"; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 cat >conftest.$ac_ext <<_ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12849 #define $ac_func innocuous_$ac_func
12851 /* System header to define __stub macros and hopefully few prototypes,
12852 which can conflict with char $ac_func (); below.
12853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12854 <limits.h> exists even on freestanding compilers. */
12857 # include <limits.h>
12859 # include <assert.h>
12864 /* Override any gcc2 internal prototype to avoid an error. */
12869 /* We use char because int might match the return type of a gcc2
12870 builtin and then its argument prototype would still apply. */
12872 /* The GNU C library defines this for functions which it implements
12873 to always fail with ENOSYS. Some functions are actually named
12874 something starting with __ and the normal name is an alias. */
12875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12878 char (*f) () = $ac_func;
12887 return f != $ac_func;
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12894 (eval $ac_link) 2>conftest.er1
12896 grep -v '^ *+' conftest.er1 >conftest.err
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag"
12902 || test ! -s conftest.err'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest$ac_exeext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_var=yes"
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 eval "$as_ac_var=no"
12921 rm -f conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12926 if test `eval echo '${'$as_ac_var'}'` = yes; then
12927 cat >>confdefs.h <<_ACEOF
12928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12933 "$ac_func.$ac_objext" | \
12934 *" $ac_func.$ac_objext" | \
12935 "$ac_func.$ac_objext "* | \
12936 *" $ac_func.$ac_objext "* ) ;;
12937 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12945 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
12946 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
12947 if test "${ac_cv_have_decl_confstr+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 cat >conftest.$ac_ext <<_ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12956 $ac_includes_default
12961 char *p = (char *) confstr;
12968 rm -f conftest.$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12972 grep -v '^ *+' conftest.er1 >conftest.err
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag"
12978 || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest.$ac_objext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_cv_have_decl_confstr=yes
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ac_cv_have_decl_confstr=no
12997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12999 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
13000 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
13001 if test $ac_cv_have_decl_confstr = yes; then
13003 cat >>confdefs.h <<_ACEOF
13004 #define HAVE_DECL_CONFSTR 1
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_DECL_CONFSTR 0
13017 echo "$as_me:$LINENO: checking whether printf is declared" >&5
13018 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
13019 if test "${ac_cv_have_decl_printf+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 cat >conftest.$ac_ext <<_ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 $ac_includes_default
13033 char *p = (char *) printf;
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>conftest.er1
13044 grep -v '^ *+' conftest.er1 >conftest.err
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_have_decl_printf=yes
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_cv_have_decl_printf=no
13069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13071 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
13072 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
13073 if test $ac_cv_have_decl_printf = yes; then
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_DECL_PRINTF 1
13081 cat >>confdefs.h <<_ACEOF
13082 #define HAVE_DECL_PRINTF 0
13089 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13090 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13091 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 cat >conftest.$ac_ext <<_ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 $ac_includes_default
13105 char *p = (char *) sbrk;
13112 rm -f conftest.$ac_objext
13113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114 (eval $ac_compile) 2>conftest.er1
13116 grep -v '^ *+' conftest.er1 >conftest.err
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -z "$ac_c_werror_flag"
13122 || test ! -s conftest.err'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_cv_have_decl_sbrk=yes
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13139 ac_cv_have_decl_sbrk=no
13141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13143 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13144 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13145 if test $ac_cv_have_decl_sbrk = yes; then
13147 cat >>confdefs.h <<_ACEOF
13148 #define HAVE_DECL_SBRK 1
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_DECL_SBRK 0
13161 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
13162 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
13163 if test "${ac_cv_have_decl_strcpy+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 $ac_includes_default
13177 char *p = (char *) strcpy;
13184 rm -f conftest.$ac_objext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13186 (eval $ac_compile) 2>conftest.er1
13188 grep -v '^ *+' conftest.er1 >conftest.err
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } &&
13193 { ac_try='test -z "$ac_c_werror_flag"
13194 || test ! -s conftest.err'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; } &&
13200 { ac_try='test -s conftest.$ac_objext'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 ac_cv_have_decl_strcpy=yes
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 ac_cv_have_decl_strcpy=no
13213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13215 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
13216 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
13217 if test $ac_cv_have_decl_strcpy = yes; then
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_DECL_STRCPY 1
13225 cat >>confdefs.h <<_ACEOF
13226 #define HAVE_DECL_STRCPY 0
13233 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
13234 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
13235 if test "${ac_cv_have_decl_strsignal+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 cat >conftest.$ac_ext <<_ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13249 char *p = (char *) strsignal;
13256 rm -f conftest.$ac_objext
13257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13258 (eval $ac_compile) 2>conftest.er1
13260 grep -v '^ *+' conftest.er1 >conftest.err
13262 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -z "$ac_c_werror_flag"
13266 || test ! -s conftest.err'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; } &&
13272 { ac_try='test -s conftest.$ac_objext'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 ac_cv_have_decl_strsignal=yes
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13283 ac_cv_have_decl_strsignal=no
13285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
13288 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
13289 if test $ac_cv_have_decl_strsignal = yes; then
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_DECL_STRSIGNAL 1
13297 cat >>confdefs.h <<_ACEOF
13298 #define HAVE_DECL_STRSIGNAL 0
13306 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
13307 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
13308 if test "${ac_cv_have_decl_strtold+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 cat >conftest.$ac_ext <<_ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 $ac_includes_default
13322 char *p = (char *) strtold;
13329 rm -f conftest.$ac_objext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>conftest.er1
13333 grep -v '^ *+' conftest.er1 >conftest.err
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
13338 { ac_try='test -z "$ac_c_werror_flag"
13339 || test ! -s conftest.err'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13351 ac_cv_have_decl_strtold=yes
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 ac_cv_have_decl_strtold=no
13358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
13361 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
13362 if test $ac_cv_have_decl_strtold = yes; then
13364 cat >>confdefs.h <<_ACEOF
13365 #define HAVE_DECL_STRTOLD 1
13369 echo "$as_me:$LINENO: checking for broken strtold" >&5
13370 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
13371 if test "${bash_cv_strtold_broken+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13380 #include <stdlib.h>
13384 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
13389 rm -f conftest.$ac_objext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391 (eval $ac_compile) 2>conftest.er1
13393 grep -v '^ *+' conftest.er1 >conftest.err
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try='test -z "$ac_c_werror_flag"
13399 || test ! -s conftest.err'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; } &&
13405 { ac_try='test -s conftest.$ac_objext'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 bash_cv_strtold_broken=no
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13416 bash_cv_strtold_broken=yes
13418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13423 echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
13424 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
13425 if test "$bash_cv_strtold_broken" = "yes" ; then
13426 cat >>confdefs.h <<\_ACEOF
13427 #define STRTOLD_BROKEN 1
13433 cat >>confdefs.h <<_ACEOF
13434 #define HAVE_DECL_STRTOLD 0
13446 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
13447 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
13448 if test "${bash_cv_decl_strtoimax+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 cat >conftest.$ac_ext <<_ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13459 # include <stdlib.h>
13461 #if HAVE_INTTYPES_H
13462 # include <inttypes.h>
13473 rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13475 (eval $ac_link) 2>conftest.er1
13477 grep -v '^ *+' conftest.er1 >conftest.err
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag"
13483 || test ! -s conftest.err'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 bash_cv_decl_strtoimax=yes
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 bash_cv_decl_strtoimax=no
13502 rm -f conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13505 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
13506 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
13507 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13508 if test $bash_cv_decl_strtoimax = yes; then
13509 cat >>confdefs.h <<_ACEOF
13510 #define $bash_tr_func 1
13514 cat >>confdefs.h <<_ACEOF
13515 #define $bash_tr_func 0
13523 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
13524 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
13525 if test "${bash_cv_decl_strtol+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13536 # include <stdlib.h>
13538 #if HAVE_INTTYPES_H
13539 # include <inttypes.h>
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552 (eval $ac_link) 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag"
13560 || test ! -s conftest.err'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest$ac_exeext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 bash_cv_decl_strtol=yes
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 bash_cv_decl_strtol=no
13579 rm -f conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13582 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
13583 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
13584 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13585 if test $bash_cv_decl_strtol = yes; then
13586 cat >>confdefs.h <<_ACEOF
13587 #define $bash_tr_func 1
13591 cat >>confdefs.h <<_ACEOF
13592 #define $bash_tr_func 0
13600 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
13601 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
13602 if test "${bash_cv_decl_strtoll+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13613 # include <stdlib.h>
13615 #if HAVE_INTTYPES_H
13616 # include <inttypes.h>
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629 (eval $ac_link) 2>conftest.er1
13631 grep -v '^ *+' conftest.er1 >conftest.err
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag"
13637 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 bash_cv_decl_strtoll=yes
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 bash_cv_decl_strtoll=no
13656 rm -f conftest.err conftest.$ac_objext \
13657 conftest$ac_exeext conftest.$ac_ext
13659 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
13660 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
13661 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13662 if test $bash_cv_decl_strtoll = yes; then
13663 cat >>confdefs.h <<_ACEOF
13664 #define $bash_tr_func 1
13668 cat >>confdefs.h <<_ACEOF
13669 #define $bash_tr_func 0
13677 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
13678 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
13679 if test "${bash_cv_decl_strtoul+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 cat >conftest.$ac_ext <<_ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13690 # include <stdlib.h>
13692 #if HAVE_INTTYPES_H
13693 # include <inttypes.h>
13704 rm -f conftest.$ac_objext conftest$ac_exeext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13706 (eval $ac_link) 2>conftest.er1
13708 grep -v '^ *+' conftest.er1 >conftest.err
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
13713 { ac_try='test -z "$ac_c_werror_flag"
13714 || test ! -s conftest.err'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest$ac_exeext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 bash_cv_decl_strtoul=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 bash_cv_decl_strtoul=no
13733 rm -f conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13736 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
13737 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
13738 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13739 if test $bash_cv_decl_strtoul = yes; then
13740 cat >>confdefs.h <<_ACEOF
13741 #define $bash_tr_func 1
13745 cat >>confdefs.h <<_ACEOF
13746 #define $bash_tr_func 0
13754 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
13755 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
13756 if test "${bash_cv_decl_strtoull+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13767 # include <stdlib.h>
13769 #if HAVE_INTTYPES_H
13770 # include <inttypes.h>
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13783 (eval $ac_link) 2>conftest.er1
13785 grep -v '^ *+' conftest.er1 >conftest.err
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try='test -z "$ac_c_werror_flag"
13791 || test ! -s conftest.err'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest$ac_exeext'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 bash_cv_decl_strtoull=yes
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 bash_cv_decl_strtoull=no
13810 rm -f conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13813 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
13814 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
13815 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13816 if test $bash_cv_decl_strtoull = yes; then
13817 cat >>confdefs.h <<_ACEOF
13818 #define $bash_tr_func 1
13822 cat >>confdefs.h <<_ACEOF
13823 #define $bash_tr_func 0
13831 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
13832 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
13833 if test "${bash_cv_decl_strtoumax+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 cat >conftest.$ac_ext <<_ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h. */
13844 # include <stdlib.h>
13846 #if HAVE_INTTYPES_H
13847 # include <inttypes.h>
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860 (eval $ac_link) 2>conftest.er1
13862 grep -v '^ *+' conftest.er1 >conftest.err
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_c_werror_flag"
13868 || test ! -s conftest.err'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 bash_cv_decl_strtoumax=yes
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 bash_cv_decl_strtoumax=no
13887 rm -f conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13890 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
13891 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
13892 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13893 if test $bash_cv_decl_strtoumax = yes; then
13894 cat >>confdefs.h <<_ACEOF
13895 #define $bash_tr_func 1
13899 cat >>confdefs.h <<_ACEOF
13900 #define $bash_tr_func 0
13909 for ac_header in stdlib.h sys/time.h unistd.h
13911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13913 echo "$as_me:$LINENO: checking for $ac_header" >&5
13914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13921 # Is the header compilable?
13922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 #include <$ac_header>
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935 (eval $ac_compile) 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag"
13943 || test ! -s conftest.err'
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); }; } &&
13949 { ac_try='test -s conftest.$ac_objext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_header_compiler=yes
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13960 ac_header_compiler=no
13962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13964 echo "${ECHO_T}$ac_header_compiler" >&6
13966 # Is the header present?
13967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13969 cat >conftest.$ac_ext <<_ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 #include <$ac_header>
13977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13980 grep -v '^ *+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev/null; then
13985 if test -s conftest.err; then
13986 ac_cpp_err=$ac_c_preproc_warn_flag
13987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13994 if test -z "$ac_cpp_err"; then
13995 ac_header_preproc=yes
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 ac_header_preproc=no
14002 rm -f conftest.err conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14004 echo "${ECHO_T}$ac_header_preproc" >&6
14006 # So? What about this header?
14007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14013 ac_header_preproc=yes
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14030 ## ------------------------------- ##
14031 ## Report this to bug-bash@gnu.org ##
14032 ## ------------------------------- ##
14035 sed "s/^/$as_me: WARNING: /" >&2
14038 echo "$as_me:$LINENO: checking for $ac_header" >&5
14039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 eval "$as_ac_Header=\$ac_header_preproc"
14045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14050 cat >>confdefs.h <<_ACEOF
14051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14059 for ac_func in alarm
14061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062 echo "$as_me:$LINENO: checking for $ac_func" >&5
14063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14064 if eval "test \"\${$as_ac_var+set}\" = set"; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14075 #define $ac_func innocuous_$ac_func
14077 /* System header to define __stub macros and hopefully few prototypes,
14078 which can conflict with char $ac_func (); below.
14079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14080 <limits.h> exists even on freestanding compilers. */
14083 # include <limits.h>
14085 # include <assert.h>
14090 /* Override any gcc2 internal prototype to avoid an error. */
14095 /* We use char because int might match the return type of a gcc2
14096 builtin and then its argument prototype would still apply. */
14098 /* The GNU C library defines this for functions which it implements
14099 to always fail with ENOSYS. Some functions are actually named
14100 something starting with __ and the normal name is an alias. */
14101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14104 char (*f) () = $ac_func;
14113 return f != $ac_func;
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120 (eval $ac_link) 2>conftest.er1
14122 grep -v '^ *+' conftest.er1 >conftest.err
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_c_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 eval "$as_ac_var=yes"
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 eval "$as_ac_var=no"
14147 rm -f conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14152 if test `eval echo '${'$as_ac_var'}'` = yes; then
14153 cat >>confdefs.h <<_ACEOF
14154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14160 echo "$as_me:$LINENO: checking for working mktime" >&5
14161 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14162 if test "${ac_cv_func_working_mktime+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 if test "$cross_compiling" = yes; then
14166 ac_cv_func_working_mktime=no
14168 cat >conftest.$ac_ext <<_ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14174 /* Test program from Paul Eggert and Tony Leneis. */
14175 #if TIME_WITH_SYS_TIME
14176 # include <sys/time.h>
14179 # if HAVE_SYS_TIME_H
14180 # include <sys/time.h>
14187 # include <stdlib.h>
14191 # include <unistd.h>
14195 # define alarm(X) /* empty */
14198 /* Work around redefinition to rpl_putenv by other config tests. */
14201 static time_t time_t_max;
14202 static time_t time_t_min;
14204 /* Values we'll use to set the TZ environment variable. */
14205 static char *tz_strings[] = {
14206 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14207 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14209 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14211 /* Fail if mktime fails to convert a date in the spring-forward gap.
14212 Based on a problem report from Andreas Jaeger. */
14214 spring_forward_gap ()
14216 /* glibc (up to about 1998-10-07) failed this test. */
14219 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14220 instead of "TZ=America/Vancouver" in order to detect the bug even
14221 on systems that don't support the Olson extension, or don't have the
14222 full zoneinfo tables installed. */
14223 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14232 if (mktime (&tm) == (time_t)-1)
14241 if ((lt = localtime (&now)) && mktime (lt) != now)
14249 mktime_test1 (now);
14250 mktime_test1 ((time_t) (time_t_max - now));
14251 mktime_test1 ((time_t) (time_t_min + now));
14257 /* Based on code from Ariel Faigon. */
14267 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14277 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14278 now = mktime (&tm);
14279 if (now != (time_t) -1)
14281 struct tm *lt = localtime (&now);
14283 && lt->tm_year == tm.tm_year
14284 && lt->tm_mon == tm.tm_mon
14285 && lt->tm_mday == tm.tm_mday
14286 && lt->tm_hour == tm.tm_hour
14287 && lt->tm_min == tm.tm_min
14288 && lt->tm_sec == tm.tm_sec
14289 && lt->tm_yday == tm.tm_yday
14290 && lt->tm_wday == tm.tm_wday
14291 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14292 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14303 /* This test makes some buggy mktime implementations loop.
14304 Give up after 60 seconds; a mktime slower than that
14305 isn't worth using anyway. */
14308 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14311 if ((time_t) -1 < 0)
14312 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14314 delta = time_t_max / 997; /* a suitable prime number */
14315 for (i = 0; i < N_STRINGS; i++)
14318 putenv (tz_strings[i]);
14320 for (t = 0; t <= time_t_max - delta; t += delta)
14322 mktime_test ((time_t) 1);
14323 mktime_test ((time_t) (60 * 60));
14324 mktime_test ((time_t) (60 * 60 * 24));
14326 for (j = 1; 0 < j; j *= 2)
14328 bigtime_test (j - 1);
14331 spring_forward_gap ();
14335 rm -f conftest$ac_exeext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14337 (eval $ac_link) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_cv_func_working_mktime=yes
14348 echo "$as_me: program exited with status $ac_status" >&5
14349 echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14352 ( exit $ac_status )
14353 ac_cv_func_working_mktime=no
14355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14358 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14359 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14360 if test $ac_cv_func_working_mktime = no; then
14362 "mktime.$ac_objext" | \
14363 *" mktime.$ac_objext" | \
14364 "mktime.$ac_objext "* | \
14365 *" mktime.$ac_objext "* ) ;;
14366 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14378 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14382 echo "$as_me:$LINENO: checking for $ac_header" >&5
14383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14390 # Is the header compilable?
14391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14393 cat >conftest.$ac_ext <<_ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 $ac_includes_default
14400 #include <$ac_header>
14402 rm -f conftest.$ac_objext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404 (eval $ac_compile) 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest.$ac_objext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 ac_header_compiler=yes
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 ac_header_compiler=no
14431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14433 echo "${ECHO_T}$ac_header_compiler" >&6
14435 # Is the header present?
14436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14438 cat >conftest.$ac_ext <<_ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 #include <$ac_header>
14446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } >/dev/null; then
14454 if test -s conftest.err; then
14455 ac_cpp_err=$ac_c_preproc_warn_flag
14456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14463 if test -z "$ac_cpp_err"; then
14464 ac_header_preproc=yes
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_header_preproc=no
14471 rm -f conftest.err conftest.$ac_ext
14472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473 echo "${ECHO_T}$ac_header_preproc" >&6
14475 # So? What about this header?
14476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14482 ac_header_preproc=yes
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14499 ## ------------------------------- ##
14500 ## Report this to bug-bash@gnu.org ##
14501 ## ------------------------------- ##
14504 sed "s/^/$as_me: WARNING: /" >&2
14507 echo "$as_me:$LINENO: checking for $ac_header" >&5
14508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 eval "$as_ac_Header=\$ac_header_preproc"
14514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14519 cat >>confdefs.h <<_ACEOF
14520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14530 for ac_header in stdlib.h unistd.h
14532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14534 echo "$as_me:$LINENO: checking for $ac_header" >&5
14535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14542 # Is the header compilable?
14543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 $ac_includes_default
14552 #include <$ac_header>
14554 rm -f conftest.$ac_objext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556 (eval $ac_compile) 2>conftest.er1
14558 grep -v '^ *+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -z "$ac_c_werror_flag"
14564 || test ! -s conftest.err'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest.$ac_objext'
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
14576 ac_header_compiler=yes
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 ac_header_compiler=no
14583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14585 echo "${ECHO_T}$ac_header_compiler" >&6
14587 # Is the header present?
14588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14590 cat >conftest.$ac_ext <<_ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 #include <$ac_header>
14598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } >/dev/null; then
14606 if test -s conftest.err; then
14607 ac_cpp_err=$ac_c_preproc_warn_flag
14608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14615 if test -z "$ac_cpp_err"; then
14616 ac_header_preproc=yes
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 ac_header_preproc=no
14623 rm -f conftest.err conftest.$ac_ext
14624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14625 echo "${ECHO_T}$ac_header_preproc" >&6
14627 # So? What about this header?
14628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14634 ac_header_preproc=yes
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14651 ## ------------------------------- ##
14652 ## Report this to bug-bash@gnu.org ##
14653 ## ------------------------------- ##
14656 sed "s/^/$as_me: WARNING: /" >&2
14659 echo "$as_me:$LINENO: checking for $ac_header" >&5
14660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 eval "$as_ac_Header=\$ac_header_preproc"
14666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14671 cat >>confdefs.h <<_ACEOF
14672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14680 for ac_func in getpagesize
14682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14683 echo "$as_me:$LINENO: checking for $ac_func" >&5
14684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14685 if eval "test \"\${$as_ac_var+set}\" = set"; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 cat >conftest.$ac_ext <<_ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14696 #define $ac_func innocuous_$ac_func
14698 /* System header to define __stub macros and hopefully few prototypes,
14699 which can conflict with char $ac_func (); below.
14700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14701 <limits.h> exists even on freestanding compilers. */
14704 # include <limits.h>
14706 # include <assert.h>
14711 /* Override any gcc2 internal prototype to avoid an error. */
14716 /* We use char because int might match the return type of a gcc2
14717 builtin and then its argument prototype would still apply. */
14719 /* The GNU C library defines this for functions which it implements
14720 to always fail with ENOSYS. Some functions are actually named
14721 something starting with __ and the normal name is an alias. */
14722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14725 char (*f) () = $ac_func;
14734 return f != $ac_func;
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741 (eval $ac_link) 2>conftest.er1
14743 grep -v '^ *+' conftest.er1 >conftest.err
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -z "$ac_c_werror_flag"
14749 || test ! -s conftest.err'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; } &&
14755 { ac_try='test -s conftest$ac_exeext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 eval "$as_ac_var=yes"
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 eval "$as_ac_var=no"
14768 rm -f conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14773 if test `eval echo '${'$as_ac_var'}'` = yes; then
14774 cat >>confdefs.h <<_ACEOF
14775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14781 echo "$as_me:$LINENO: checking for working mmap" >&5
14782 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14783 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 if test "$cross_compiling" = yes; then
14787 ac_cv_func_mmap_fixed_mapped=no
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 $ac_includes_default
14796 /* malloc might have been renamed as rpl_malloc. */
14799 /* Thanks to Mike Haertel and Jim Avera for this test.
14800 Here is a matrix of mmap possibilities:
14801 mmap private not fixed
14802 mmap private fixed at somewhere currently unmapped
14803 mmap private fixed at somewhere already mapped
14804 mmap shared not fixed
14805 mmap shared fixed at somewhere currently unmapped
14806 mmap shared fixed at somewhere already mapped
14807 For private mappings, we should verify that changes cannot be read()
14808 back from the file, nor mmap's back from the file at a different
14809 address. (There have been systems where private was not correctly
14810 implemented like the infamous i386 svr4.0, and systems where the
14811 VM page cache was not coherent with the file system buffer cache
14812 like early versions of FreeBSD and possibly contemporary NetBSD.)
14813 For shared mappings, we should conversely verify that changes get
14814 propagated back to all the places they're supposed to be.
14816 Grep wants private fixed already mapped.
14817 The main things grep needs to know about mmap are:
14818 * does it exist and is it safe to write into the mmap'd area
14819 * how to use it (BSD variants) */
14822 #include <sys/mman.h>
14824 #if !STDC_HEADERS && !HAVE_STDLIB_H
14828 /* This mess was copied from the GNU getpagesize.h. */
14829 #if !HAVE_GETPAGESIZE
14830 /* Assume that all systems that can run configure have sys/param.h. */
14831 # if !HAVE_SYS_PARAM_H
14832 # define HAVE_SYS_PARAM_H 1
14835 # ifdef _SC_PAGESIZE
14836 # define getpagesize() sysconf(_SC_PAGESIZE)
14837 # else /* no _SC_PAGESIZE */
14838 # if HAVE_SYS_PARAM_H
14839 # include <sys/param.h>
14840 # ifdef EXEC_PAGESIZE
14841 # define getpagesize() EXEC_PAGESIZE
14842 # else /* no EXEC_PAGESIZE */
14844 # define getpagesize() NBPG * CLSIZE
14847 # endif /* no CLSIZE */
14848 # else /* no NBPG */
14850 # define getpagesize() NBPC
14851 # else /* no NBPC */
14853 # define getpagesize() PAGESIZE
14854 # endif /* PAGESIZE */
14855 # endif /* no NBPC */
14856 # endif /* no NBPG */
14857 # endif /* no EXEC_PAGESIZE */
14858 # else /* no HAVE_SYS_PARAM_H */
14859 # define getpagesize() 8192 /* punt totally */
14860 # endif /* no HAVE_SYS_PARAM_H */
14861 # endif /* no _SC_PAGESIZE */
14863 #endif /* no HAVE_GETPAGESIZE */
14868 char *data, *data2, *data3;
14872 pagesize = getpagesize ();
14874 /* First, make a file with some known garbage in it. */
14875 data = (char *) malloc (pagesize);
14878 for (i = 0; i < pagesize; ++i)
14879 *(data + i) = rand ();
14881 fd = creat ("conftest.mmap", 0600);
14884 if (write (fd, data, pagesize) != pagesize)
14888 /* Next, try to mmap the file at a fixed address which already has
14889 something else allocated at it. If we can, also make sure that
14890 we see the same garbage. */
14891 fd = open ("conftest.mmap", O_RDWR);
14894 data2 = (char *) malloc (2 * pagesize);
14897 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14901 for (i = 0; i < pagesize; ++i)
14902 if (*(data + i) != *(data2 + i))
14905 /* Finally, make sure that changes to the mapped area do not
14906 percolate back to the file as seen by read(). (This is a bug on
14907 some variants of i386 svr4.0.) */
14908 for (i = 0; i < pagesize; ++i)
14909 *(data2 + i) = *(data2 + i) + 1;
14910 data3 = (char *) malloc (pagesize);
14913 if (read (fd, data3, pagesize) != pagesize)
14915 for (i = 0; i < pagesize; ++i)
14916 if (*(data + i) != *(data3 + i))
14922 rm -f conftest$ac_exeext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14924 (eval $ac_link) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_cv_func_mmap_fixed_mapped=yes
14935 echo "$as_me: program exited with status $ac_status" >&5
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ( exit $ac_status )
14940 ac_cv_func_mmap_fixed_mapped=no
14942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14945 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14946 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14947 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14949 cat >>confdefs.h <<\_ACEOF
14950 #define HAVE_MMAP 1
14954 rm -f conftest.mmap
14965 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
14966 munmap stpcpy strcspn strdup
14968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14969 echo "$as_me:$LINENO: checking for $ac_func" >&5
14970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14971 if eval "test \"\${$as_ac_var+set}\" = set"; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14982 #define $ac_func innocuous_$ac_func
14984 /* System header to define __stub macros and hopefully few prototypes,
14985 which can conflict with char $ac_func (); below.
14986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14987 <limits.h> exists even on freestanding compilers. */
14990 # include <limits.h>
14992 # include <assert.h>
14997 /* Override any gcc2 internal prototype to avoid an error. */
15002 /* We use char because int might match the return type of a gcc2
15003 builtin and then its argument prototype would still apply. */
15005 /* The GNU C library defines this for functions which it implements
15006 to always fail with ENOSYS. Some functions are actually named
15007 something starting with __ and the normal name is an alias. */
15008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011 char (*f) () = $ac_func;
15020 return f != $ac_func;
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15027 (eval $ac_link) 2>conftest.er1
15029 grep -v '^ *+' conftest.er1 >conftest.err
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -z "$ac_c_werror_flag"
15035 || test ! -s conftest.err'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; } &&
15041 { ac_try='test -s conftest$ac_exeext'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 eval "$as_ac_var=yes"
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 eval "$as_ac_var=no"
15054 rm -f conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15059 if test `eval echo '${'$as_ac_var'}'` = yes; then
15060 cat >>confdefs.h <<_ACEOF
15061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15068 INTL_DEP= INTL_INC= LIBINTL_H=
15069 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15070 INTL_DEP='${INTL_LIBDIR}/libintl.a'
15071 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15072 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
15081 for ac_header in wctype.h
15083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15085 echo "$as_me:$LINENO: checking for $ac_header" >&5
15086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15093 # Is the header compilable?
15094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15096 cat >conftest.$ac_ext <<_ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15102 $ac_includes_default
15103 #include <$ac_header>
15105 rm -f conftest.$ac_objext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>conftest.er1
15109 grep -v '^ *+' conftest.er1 >conftest.err
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -z "$ac_c_werror_flag"
15115 || test ! -s conftest.err'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; } &&
15121 { ac_try='test -s conftest.$ac_objext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_header_compiler=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_header_compiler=no
15134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15136 echo "${ECHO_T}$ac_header_compiler" >&6
15138 # Is the header present?
15139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15141 cat >conftest.$ac_ext <<_ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 #include <$ac_header>
15149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15152 grep -v '^ *+' conftest.er1 >conftest.err
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } >/dev/null; then
15157 if test -s conftest.err; then
15158 ac_cpp_err=$ac_c_preproc_warn_flag
15159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15166 if test -z "$ac_cpp_err"; then
15167 ac_header_preproc=yes
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 ac_header_preproc=no
15174 rm -f conftest.err conftest.$ac_ext
15175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15176 echo "${ECHO_T}$ac_header_preproc" >&6
15178 # So? What about this header?
15179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15185 ac_header_preproc=yes
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15202 ## ------------------------------- ##
15203 ## Report this to bug-bash@gnu.org ##
15204 ## ------------------------------- ##
15207 sed "s/^/$as_me: WARNING: /" >&2
15210 echo "$as_me:$LINENO: checking for $ac_header" >&5
15211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 eval "$as_ac_Header=\$ac_header_preproc"
15217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15222 cat >>confdefs.h <<_ACEOF
15223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15231 for ac_header in wchar.h
15233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15235 echo "$as_me:$LINENO: checking for $ac_header" >&5
15236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15243 # Is the header compilable?
15244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 $ac_includes_default
15253 #include <$ac_header>
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257 (eval $ac_compile) 2>conftest.er1
15259 grep -v '^ *+' conftest.er1 >conftest.err
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -z "$ac_c_werror_flag"
15265 || test ! -s conftest.err'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest.$ac_objext'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_header_compiler=yes
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_header_compiler=no
15284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286 echo "${ECHO_T}$ac_header_compiler" >&6
15288 # Is the header present?
15289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <$ac_header>
15299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15302 grep -v '^ *+' conftest.er1 >conftest.err
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } >/dev/null; then
15307 if test -s conftest.err; then
15308 ac_cpp_err=$ac_c_preproc_warn_flag
15309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15316 if test -z "$ac_cpp_err"; then
15317 ac_header_preproc=yes
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_header_preproc=no
15324 rm -f conftest.err conftest.$ac_ext
15325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15326 echo "${ECHO_T}$ac_header_preproc" >&6
15328 # So? What about this header?
15329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15335 ac_header_preproc=yes
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15352 ## ------------------------------- ##
15353 ## Report this to bug-bash@gnu.org ##
15354 ## ------------------------------- ##
15357 sed "s/^/$as_me: WARNING: /" >&2
15360 echo "$as_me:$LINENO: checking for $ac_header" >&5
15361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 eval "$as_ac_Header=\$ac_header_preproc"
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372 cat >>confdefs.h <<_ACEOF
15373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15381 for ac_header in langinfo.h
15383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15385 echo "$as_me:$LINENO: checking for $ac_header" >&5
15386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15393 # Is the header compilable?
15394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 $ac_includes_default
15403 #include <$ac_header>
15405 rm -f conftest.$ac_objext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407 (eval $ac_compile) 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -z "$ac_c_werror_flag"
15415 || test ! -s conftest.err'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; } &&
15421 { ac_try='test -s conftest.$ac_objext'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15427 ac_header_compiler=yes
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_header_compiler=no
15434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6
15438 # Is the header present?
15439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <$ac_header>
15449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } >/dev/null; then
15457 if test -s conftest.err; then
15458 ac_cpp_err=$ac_c_preproc_warn_flag
15459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15466 if test -z "$ac_cpp_err"; then
15467 ac_header_preproc=yes
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_header_preproc=no
15474 rm -f conftest.err conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15476 echo "${ECHO_T}$ac_header_preproc" >&6
15478 # So? What about this header?
15479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15485 ac_header_preproc=yes
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15502 ## ------------------------------- ##
15503 ## Report this to bug-bash@gnu.org ##
15504 ## ------------------------------- ##
15507 sed "s/^/$as_me: WARNING: /" >&2
15510 echo "$as_me:$LINENO: checking for $ac_header" >&5
15511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 eval "$as_ac_Header=\$ac_header_preproc"
15517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15522 cat >>confdefs.h <<_ACEOF
15523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15531 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
15532 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
15533 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
15543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15544 #define mbsrtowcs innocuous_mbsrtowcs
15546 /* System header to define __stub macros and hopefully few prototypes,
15547 which can conflict with char mbsrtowcs (); below.
15548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15549 <limits.h> exists even on freestanding compilers. */
15552 # include <limits.h>
15554 # include <assert.h>
15559 /* Override any gcc2 internal prototype to avoid an error. */
15564 /* We use char because int might match the return type of a gcc2
15565 builtin and then its argument prototype would still apply. */
15567 /* The GNU C library defines this for functions which it implements
15568 to always fail with ENOSYS. Some functions are actually named
15569 something starting with __ and the normal name is an alias. */
15570 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
15573 char (*f) () = mbsrtowcs;
15582 return f != mbsrtowcs;
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>conftest.er1
15591 grep -v '^ *+' conftest.er1 >conftest.err
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -z "$ac_c_werror_flag"
15597 || test ! -s conftest.err'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try='test -s conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_func_mbsrtowcs=yes
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 ac_cv_func_mbsrtowcs=no
15616 rm -f conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15619 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
15620 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
15621 if test $ac_cv_func_mbsrtowcs = yes; then
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_MBSRTOWCS 1
15628 echo "$as_me:$LINENO: checking for mbrtowc" >&5
15629 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
15630 if test "${ac_cv_func_mbrtowc+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 cat >conftest.$ac_ext <<_ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
15640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15641 #define mbrtowc innocuous_mbrtowc
15643 /* System header to define __stub macros and hopefully few prototypes,
15644 which can conflict with char mbrtowc (); below.
15645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15646 <limits.h> exists even on freestanding compilers. */
15649 # include <limits.h>
15651 # include <assert.h>
15656 /* Override any gcc2 internal prototype to avoid an error. */
15661 /* We use char because int might match the return type of a gcc2
15662 builtin and then its argument prototype would still apply. */
15664 /* The GNU C library defines this for functions which it implements
15665 to always fail with ENOSYS. Some functions are actually named
15666 something starting with __ and the normal name is an alias. */
15667 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
15670 char (*f) () = mbrtowc;
15679 return f != mbrtowc;
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15686 (eval $ac_link) 2>conftest.er1
15688 grep -v '^ *+' conftest.er1 >conftest.err
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
15693 { ac_try='test -z "$ac_c_werror_flag"
15694 || test ! -s conftest.err'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_cv_func_mbrtowc=yes
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 ac_cv_func_mbrtowc=no
15713 rm -f conftest.err conftest.$ac_objext \
15714 conftest$ac_exeext conftest.$ac_ext
15716 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
15717 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
15718 if test $ac_cv_func_mbrtowc = yes; then
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_MBRTOWC 1
15725 echo "$as_me:$LINENO: checking for mbrlen" >&5
15726 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
15727 if test "${ac_cv_func_mbrlen+set}" = set; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 cat >conftest.$ac_ext <<_ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
15737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15738 #define mbrlen innocuous_mbrlen
15740 /* System header to define __stub macros and hopefully few prototypes,
15741 which can conflict with char mbrlen (); below.
15742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15743 <limits.h> exists even on freestanding compilers. */
15746 # include <limits.h>
15748 # include <assert.h>
15753 /* Override any gcc2 internal prototype to avoid an error. */
15758 /* We use char because int might match the return type of a gcc2
15759 builtin and then its argument prototype would still apply. */
15761 /* The GNU C library defines this for functions which it implements
15762 to always fail with ENOSYS. Some functions are actually named
15763 something starting with __ and the normal name is an alias. */
15764 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
15767 char (*f) () = mbrlen;
15776 return f != mbrlen;
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15783 (eval $ac_link) 2>conftest.er1
15785 grep -v '^ *+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag"
15791 || test ! -s conftest.err'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15803 ac_cv_func_mbrlen=yes
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15808 ac_cv_func_mbrlen=no
15810 rm -f conftest.err conftest.$ac_objext \
15811 conftest$ac_exeext conftest.$ac_ext
15813 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
15814 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
15815 if test $ac_cv_func_mbrlen = yes; then
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_MBRLEN 1
15822 echo "$as_me:$LINENO: checking for wctomb" >&5
15823 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
15824 if test "${ac_cv_func_wctomb+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 cat >conftest.$ac_ext <<_ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
15834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15835 #define wctomb innocuous_wctomb
15837 /* System header to define __stub macros and hopefully few prototypes,
15838 which can conflict with char wctomb (); below.
15839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15840 <limits.h> exists even on freestanding compilers. */
15843 # include <limits.h>
15845 # include <assert.h>
15850 /* Override any gcc2 internal prototype to avoid an error. */
15855 /* We use char because int might match the return type of a gcc2
15856 builtin and then its argument prototype would still apply. */
15858 /* The GNU C library defines this for functions which it implements
15859 to always fail with ENOSYS. Some functions are actually named
15860 something starting with __ and the normal name is an alias. */
15861 #if defined (__stub_wctomb) || defined (__stub___wctomb)
15864 char (*f) () = wctomb;
15873 return f != wctomb;
15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15880 (eval $ac_link) 2>conftest.er1
15882 grep -v '^ *+' conftest.er1 >conftest.err
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -z "$ac_c_werror_flag"
15888 || test ! -s conftest.err'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; } &&
15894 { ac_try='test -s conftest$ac_exeext'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_cv_func_wctomb=yes
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_cv_func_wctomb=no
15907 rm -f conftest.err conftest.$ac_objext \
15908 conftest$ac_exeext conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
15911 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
15912 if test $ac_cv_func_wctomb = yes; then
15913 cat >>confdefs.h <<\_ACEOF
15914 #define HAVE_WCTOMB 1
15919 echo "$as_me:$LINENO: checking for wcwidth" >&5
15920 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
15921 if test "${ac_cv_func_wcwidth+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 cat >conftest.$ac_ext <<_ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15930 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
15931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15932 #define wcwidth innocuous_wcwidth
15934 /* System header to define __stub macros and hopefully few prototypes,
15935 which can conflict with char wcwidth (); below.
15936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15937 <limits.h> exists even on freestanding compilers. */
15940 # include <limits.h>
15942 # include <assert.h>
15947 /* Override any gcc2 internal prototype to avoid an error. */
15952 /* We use char because int might match the return type of a gcc2
15953 builtin and then its argument prototype would still apply. */
15955 /* The GNU C library defines this for functions which it implements
15956 to always fail with ENOSYS. Some functions are actually named
15957 something starting with __ and the normal name is an alias. */
15958 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
15961 char (*f) () = wcwidth;
15970 return f != wcwidth;
15975 rm -f conftest.$ac_objext conftest$ac_exeext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15977 (eval $ac_link) 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest$ac_exeext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_cv_func_wcwidth=yes
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_cv_func_wcwidth=no
16004 rm -f conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16007 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
16008 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
16009 if test $ac_cv_func_wcwidth = yes; then
16010 cat >>confdefs.h <<\_ACEOF
16011 #define HAVE_WCWIDTH 1
16016 echo "$as_me:$LINENO: checking for wcsdup" >&5
16017 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
16018 if test "${ac_cv_func_wcsdup+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
16028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16029 #define wcsdup innocuous_wcsdup
16031 /* System header to define __stub macros and hopefully few prototypes,
16032 which can conflict with char wcsdup (); below.
16033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16034 <limits.h> exists even on freestanding compilers. */
16037 # include <limits.h>
16039 # include <assert.h>
16044 /* Override any gcc2 internal prototype to avoid an error. */
16049 /* We use char because int might match the return type of a gcc2
16050 builtin and then its argument prototype would still apply. */
16052 /* The GNU C library defines this for functions which it implements
16053 to always fail with ENOSYS. Some functions are actually named
16054 something starting with __ and the normal name is an alias. */
16055 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
16058 char (*f) () = wcsdup;
16067 return f != wcsdup;
16072 rm -f conftest.$ac_objext conftest$ac_exeext
16073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16074 (eval $ac_link) 2>conftest.er1
16076 grep -v '^ *+' conftest.er1 >conftest.err
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try='test -z "$ac_c_werror_flag"
16082 || test ! -s conftest.err'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; } &&
16088 { ac_try='test -s conftest$ac_exeext'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; }; then
16094 ac_cv_func_wcsdup=yes
16096 echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16099 ac_cv_func_wcsdup=no
16101 rm -f conftest.err conftest.$ac_objext \
16102 conftest$ac_exeext conftest.$ac_ext
16104 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
16105 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
16106 if test $ac_cv_func_wcsdup = yes; then
16107 cat >>confdefs.h <<\_ACEOF
16108 #define HAVE_WCSDUP 1
16114 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16115 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16116 if test "${bash_cv_have_mbstate_t+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 cat >conftest.$ac_ext <<_ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16133 psp = (mbstate_t *)0;
16139 rm -f conftest.$ac_objext
16140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16141 (eval $ac_compile) 2>conftest.er1
16143 grep -v '^ *+' conftest.er1 >conftest.err
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
16148 { ac_try='test -z "$ac_c_werror_flag"
16149 || test ! -s conftest.err'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; } &&
16155 { ac_try='test -s conftest.$ac_objext'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 bash_cv_have_mbstate_t=yes
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 bash_cv_have_mbstate_t=no
16168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16170 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
16171 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
16172 if test $bash_cv_have_mbstate_t = yes; then
16173 cat >>confdefs.h <<\_ACEOF
16174 #define HAVE_MBSTATE_T 1
16179 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16180 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16181 if test "${bash_cv_langinfo_codeset+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 #include <langinfo.h>
16194 char* cs = nl_langinfo(CODESET);
16199 rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201 (eval $ac_link) 2>conftest.er1
16203 grep -v '^ *+' conftest.er1 >conftest.err
16205 cat conftest.err >&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try='test -z "$ac_c_werror_flag"
16209 || test ! -s conftest.err'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try='test -s conftest$ac_exeext'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 bash_cv_langinfo_codeset=yes
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 bash_cv_langinfo_codeset=no
16228 rm -f conftest.err conftest.$ac_objext \
16229 conftest$ac_exeext conftest.$ac_ext
16231 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
16232 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
16233 if test $bash_cv_langinfo_codeset = yes; then
16234 cat >>confdefs.h <<\_ACEOF
16235 #define HAVE_LANGINFO_CODESET 1
16242 if test "$opt_static_link" != yes; then
16244 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16245 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 ac_check_lib_save_LIBS=$LIBS
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16258 /* Override any gcc2 internal prototype to avoid an error. */
16262 /* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16277 grep -v '^ *+' conftest.er1 >conftest.err
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag"
16283 || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 ac_cv_lib_dl_dlopen=yes
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 ac_cv_lib_dl_dlopen=no
16302 rm -f conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16304 LIBS=$ac_check_lib_save_LIBS
16306 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16308 if test $ac_cv_lib_dl_dlopen = yes; then
16309 cat >>confdefs.h <<_ACEOF
16310 #define HAVE_LIBDL 1
16320 for ac_func in dlopen dlclose dlsym
16322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16323 echo "$as_me:$LINENO: checking for $ac_func" >&5
16324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16325 if eval "test \"\${$as_ac_var+set}\" = set"; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16336 #define $ac_func innocuous_$ac_func
16338 /* System header to define __stub macros and hopefully few prototypes,
16339 which can conflict with char $ac_func (); below.
16340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16341 <limits.h> exists even on freestanding compilers. */
16344 # include <limits.h>
16346 # include <assert.h>
16351 /* Override any gcc2 internal prototype to avoid an error. */
16356 /* We use char because int might match the return type of a gcc2
16357 builtin and then its argument prototype would still apply. */
16359 /* The GNU C library defines this for functions which it implements
16360 to always fail with ENOSYS. Some functions are actually named
16361 something starting with __ and the normal name is an alias. */
16362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16365 char (*f) () = $ac_func;
16374 return f != $ac_func;
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381 (eval $ac_link) 2>conftest.er1
16383 grep -v '^ *+' conftest.er1 >conftest.err
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } &&
16388 { ac_try='test -z "$ac_c_werror_flag"
16389 || test ! -s conftest.err'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest$ac_exeext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 eval "$as_ac_var=yes"
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16406 eval "$as_ac_var=no"
16408 rm -f conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16413 if test `eval echo '${'$as_ac_var'}'` = yes; then
16414 cat >>confdefs.h <<_ACEOF
16415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16423 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16424 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16425 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 cat >conftest.$ac_ext <<_ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 #include <signal.h>
16435 /* NetBSD declares sys_siglist in unistd.h. */
16437 # include <unistd.h>
16444 #ifndef sys_siglist
16445 char *p = (char *) sys_siglist;
16452 rm -f conftest.$ac_objext
16453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16454 (eval $ac_compile) 2>conftest.er1
16456 grep -v '^ *+' conftest.er1 >conftest.err
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -z "$ac_c_werror_flag"
16462 || test ! -s conftest.err'
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; } &&
16468 { ac_try='test -s conftest.$ac_objext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_have_decl_sys_siglist=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_cv_have_decl_sys_siglist=no
16481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16484 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16485 if test $ac_cv_have_decl_sys_siglist = yes; then
16487 cat >>confdefs.h <<_ACEOF
16488 #define HAVE_DECL_SYS_SIGLIST 1
16493 cat >>confdefs.h <<_ACEOF
16494 #define HAVE_DECL_SYS_SIGLIST 0
16503 if test "$ac_cv_func_inet_aton" != 'yes'; then
16505 echo "$as_me:$LINENO: checking for inet_aton" >&5
16506 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
16507 if test "${bash_cv_func_inet_aton+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16517 #include <sys/types.h>
16518 #include <netinet/in.h>
16519 #include <arpa/inet.h>
16524 inet_aton("127.0.0.1", &ap);
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>conftest.er1
16533 grep -v '^ *+' conftest.er1 >conftest.err
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -z "$ac_c_werror_flag"
16539 || test ! -s conftest.err'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest$ac_exeext'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 bash_cv_func_inet_aton=yes
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16556 bash_cv_func_inet_aton=no
16558 rm -f conftest.err conftest.$ac_objext \
16559 conftest$ac_exeext conftest.$ac_ext
16561 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
16562 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
16563 if test $bash_cv_func_inet_aton = yes; then
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_INET_ATON 1
16570 "inet_aton.$ac_objext" | \
16571 *" inet_aton.$ac_objext" | \
16572 "inet_aton.$ac_objext "* | \
16573 *" inet_aton.$ac_objext "* ) ;;
16574 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
16583 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
16584 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
16585 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 ac_check_lib_save_LIBS=$LIBS
16590 cat >conftest.$ac_ext <<_ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16597 /* Override any gcc2 internal prototype to avoid an error. */
16601 /* We use char because int might match the return type of a gcc2
16602 builtin and then its argument prototype would still apply. */
16612 rm -f conftest.$ac_objext conftest$ac_exeext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614 (eval $ac_link) 2>conftest.er1
16616 grep -v '^ *+' conftest.er1 >conftest.err
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
16621 { ac_try='test -z "$ac_c_werror_flag"
16622 || test ! -s conftest.err'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_lib_sun_getpwent=yes
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 ac_cv_lib_sun_getpwent=no
16641 rm -f conftest.err conftest.$ac_objext \
16642 conftest$ac_exeext conftest.$ac_ext
16643 LIBS=$ac_check_lib_save_LIBS
16645 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
16646 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
16647 if test $ac_cv_lib_sun_getpwent = yes; then
16648 cat >>confdefs.h <<_ACEOF
16649 #define HAVE_LIBSUN 1
16658 if test "$ac_cv_func_getpeername" = no; then
16660 if test "X$bash_cv_have_socklib" = "X"; then
16663 echo "$as_me:$LINENO: checking for socket library" >&5
16664 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
16667 if test "${bash_cv_have_socklib+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
16671 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
16672 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 ac_check_lib_save_LIBS=$LIBS
16676 LIBS="-lsocket -lnsl $LIBS"
16677 cat >conftest.$ac_ext <<_ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16684 /* Override any gcc2 internal prototype to avoid an error. */
16688 /* We use char because int might match the return type of a gcc2
16689 builtin and then its argument prototype would still apply. */
16690 char getpeername ();
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701 (eval $ac_link) 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag"
16709 || test ! -s conftest.err'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_cv_lib_socket_getpeername=yes
16723 echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16726 ac_cv_lib_socket_getpeername=no
16728 rm -f conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16730 LIBS=$ac_check_lib_save_LIBS
16732 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
16733 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
16734 if test $ac_cv_lib_socket_getpeername = yes; then
16735 bash_cv_have_socklib=yes
16737 bash_cv_have_socklib=no
16742 if test "X$_bash_needmsg" = Xyes; then
16743 echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
16744 echo "${ECHO_T}$bash_cv_have_socklib" >&6
16747 if test $bash_cv_have_socklib = yes; then
16748 # check for libnsl, add it to LIBS if present
16749 if test "X$bash_cv_have_libnsl" = "X"; then
16752 echo "$as_me:$LINENO: checking for libnsl" >&5
16753 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
16756 if test "${bash_cv_have_libnsl+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
16760 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
16761 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 ac_check_lib_save_LIBS=$LIBS
16766 cat >conftest.$ac_ext <<_ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16773 /* Override any gcc2 internal prototype to avoid an error. */
16777 /* We use char because int might match the return type of a gcc2
16778 builtin and then its argument prototype would still apply. */
16788 rm -f conftest.$ac_objext conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790 (eval $ac_link) 2>conftest.er1
16792 grep -v '^ *+' conftest.er1 >conftest.err
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
16797 { ac_try='test -z "$ac_c_werror_flag"
16798 || test ! -s conftest.err'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest$ac_exeext'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 ac_cv_lib_nsl_t_open=yes
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ac_cv_lib_nsl_t_open=no
16817 rm -f conftest.err conftest.$ac_objext \
16818 conftest$ac_exeext conftest.$ac_ext
16819 LIBS=$ac_check_lib_save_LIBS
16821 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
16822 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
16823 if test $ac_cv_lib_nsl_t_open = yes; then
16824 bash_cv_have_libnsl=yes
16826 bash_cv_have_libnsl=no
16831 if test "X$_bash_needmsg" = Xyes; then
16832 echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
16833 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
16836 if test $bash_cv_have_libnsl = yes; then
16837 LIBS="-lsocket -lnsl $LIBS"
16839 LIBS="-lsocket $LIBS"
16841 cat >>confdefs.h <<\_ACEOF
16842 #define HAVE_LIBSOCKET 1
16845 cat >>confdefs.h <<\_ACEOF
16846 #define HAVE_GETPEERNAME 1
16852 if test "$ac_cv_func_gethostbyname" = no; then
16853 if test "X$bash_cv_have_gethostbyname" = "X"; then
16856 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
16857 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16860 if test "${bash_cv_have_gethostbyname+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 cat >conftest.$ac_ext <<_ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16873 struct hostent *hp;
16874 hp = gethostbyname("localhost");
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882 (eval $ac_link) 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_c_werror_flag"
16890 || test ! -s conftest.err'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest$ac_exeext'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 bash_cv_have_gethostbyname=yes
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 bash_cv_have_gethostbyname=no
16909 rm -f conftest.err conftest.$ac_objext \
16910 conftest$ac_exeext conftest.$ac_ext
16914 if test "X$_bash_needmsg" = Xyes; then
16915 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
16916 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16918 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
16919 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
16920 if test "$bash_cv_have_gethostbyname" = yes; then
16921 cat >>confdefs.h <<\_ACEOF
16922 #define HAVE_GETHOSTBYNAME 1
16929 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
16930 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
16931 if test "${ac_cv_type_uid_t+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 cat >conftest.$ac_ext <<_ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 #include <sys/types.h>
16943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16944 $EGREP "uid_t" >/dev/null 2>&1; then
16945 ac_cv_type_uid_t=yes
16947 ac_cv_type_uid_t=no
16952 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
16953 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
16954 if test $ac_cv_type_uid_t = no; then
16956 cat >>confdefs.h <<\_ACEOF
16961 cat >>confdefs.h <<\_ACEOF
16967 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
16968 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
16969 if test "${ac_cv_type_getgroups+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 if test "$cross_compiling" = yes; then
16973 ac_cv_type_getgroups=cross
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 /* Thanks to Mike Rendell for this test. */
16982 #include <sys/types.h>
16985 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16990 gid_t gidset[NGID];
16992 union { gid_t gval; long lval; } val;
16995 for (i = 0; i < NGID; i++)
16996 gidset[i] = val.gval;
16997 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16999 /* Exit non-zero if getgroups seems to require an array of ints. This
17000 happens when gid_t is short but getgroups modifies an array of ints. */
17001 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
17004 rm -f conftest$ac_exeext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006 (eval $ac_link) 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
17015 ac_cv_type_getgroups=gid_t
17017 echo "$as_me: program exited with status $ac_status" >&5
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17021 ( exit $ac_status )
17022 ac_cv_type_getgroups=int
17024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17026 if test $ac_cv_type_getgroups = cross; then
17027 cat >conftest.$ac_ext <<_ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 #include <unistd.h>
17036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17037 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
17038 ac_cv_type_getgroups=gid_t
17040 ac_cv_type_getgroups=int
17046 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
17047 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
17049 cat >>confdefs.h <<_ACEOF
17050 #define GETGROUPS_T $ac_cv_type_getgroups
17054 echo "$as_me:$LINENO: checking for off_t" >&5
17055 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17056 if test "${ac_cv_type_off_t+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 cat >conftest.$ac_ext <<_ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17065 $ac_includes_default
17071 if (sizeof (off_t))
17077 rm -f conftest.$ac_objext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17079 (eval $ac_compile) 2>conftest.er1
17081 grep -v '^ *+' conftest.er1 >conftest.err
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -z "$ac_c_werror_flag"
17087 || test ! -s conftest.err'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_cv_type_off_t=yes
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_cv_type_off_t=no
17106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17108 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17109 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17110 if test $ac_cv_type_off_t = yes; then
17114 cat >>confdefs.h <<_ACEOF
17120 echo "$as_me:$LINENO: checking for mode_t" >&5
17121 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17122 if test "${ac_cv_type_mode_t+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 cat >conftest.$ac_ext <<_ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h. */
17131 $ac_includes_default
17137 if (sizeof (mode_t))
17143 rm -f conftest.$ac_objext
17144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17145 (eval $ac_compile) 2>conftest.er1
17147 grep -v '^ *+' conftest.er1 >conftest.err
17149 cat conftest.err >&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } &&
17152 { ac_try='test -z "$ac_c_werror_flag"
17153 || test ! -s conftest.err'
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest.$ac_objext'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_cv_type_mode_t=yes
17167 echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17170 ac_cv_type_mode_t=no
17172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17174 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17175 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17176 if test $ac_cv_type_mode_t = yes; then
17180 cat >>confdefs.h <<_ACEOF
17186 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
17187 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17188 if test "${ac_cv_type_uid_t+set}" = set; then
17189 echo $ECHO_N "(cached) $ECHO_C" >&6
17191 cat >conftest.$ac_ext <<_ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 #include <sys/types.h>
17200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17201 $EGREP "uid_t" >/dev/null 2>&1; then
17202 ac_cv_type_uid_t=yes
17204 ac_cv_type_uid_t=no
17209 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
17210 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17211 if test $ac_cv_type_uid_t = no; then
17213 cat >>confdefs.h <<\_ACEOF
17218 cat >>confdefs.h <<\_ACEOF
17224 echo "$as_me:$LINENO: checking for pid_t" >&5
17225 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17226 if test "${ac_cv_type_pid_t+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 cat >conftest.$ac_ext <<_ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 $ac_includes_default
17241 if (sizeof (pid_t))
17247 rm -f conftest.$ac_objext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249 (eval $ac_compile) 2>conftest.er1
17251 grep -v '^ *+' conftest.er1 >conftest.err
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -z "$ac_c_werror_flag"
17257 || test ! -s conftest.err'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest.$ac_objext'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_cv_type_pid_t=yes
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ac_cv_type_pid_t=no
17276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17278 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17279 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17280 if test $ac_cv_type_pid_t = yes; then
17284 cat >>confdefs.h <<_ACEOF
17290 echo "$as_me:$LINENO: checking for size_t" >&5
17291 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17292 if test "${ac_cv_type_size_t+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 cat >conftest.$ac_ext <<_ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 $ac_includes_default
17307 if (sizeof (size_t))
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315 (eval $ac_compile) 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest.$ac_objext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_type_size_t=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_type_size_t=no
17342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17344 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17345 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17346 if test $ac_cv_type_size_t = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define size_t unsigned
17356 echo "$as_me:$LINENO: checking for ssize_t" >&5
17357 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17358 if test "${ac_cv_type_ssize_t+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 $ac_includes_default
17373 if (sizeof (ssize_t))
17379 rm -f conftest.$ac_objext
17380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17381 (eval $ac_compile) 2>conftest.er1
17383 grep -v '^ *+' conftest.er1 >conftest.err
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
17388 { ac_try='test -z "$ac_c_werror_flag"
17389 || test ! -s conftest.err'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest.$ac_objext'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 ac_cv_type_ssize_t=yes
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 ac_cv_type_ssize_t=no
17408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17410 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17411 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17412 if test $ac_cv_type_ssize_t = yes; then
17416 cat >>confdefs.h <<_ACEOF
17417 #define ssize_t int
17422 echo "$as_me:$LINENO: checking for time_t" >&5
17423 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
17424 if test "${ac_cv_type_time_t+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 $ac_includes_default
17439 if (sizeof (time_t))
17445 rm -f conftest.$ac_objext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447 (eval $ac_compile) 2>conftest.er1
17449 grep -v '^ *+' conftest.er1 >conftest.err
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
17454 { ac_try='test -z "$ac_c_werror_flag"
17455 || test ! -s conftest.err'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest.$ac_objext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_cv_type_time_t=yes
17469 echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17472 ac_cv_type_time_t=no
17474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17476 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
17477 echo "${ECHO_T}$ac_cv_type_time_t" >&6
17478 if test $ac_cv_type_time_t = yes; then
17482 cat >>confdefs.h <<_ACEOF
17483 #define time_t long
17490 echo "$as_me:$LINENO: checking for long long" >&5
17491 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17492 if test "${bash_cv_type_long_long+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 cat >conftest.$ac_ext <<_ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17502 long long ll = 1; int i = 63;
17507 long long llm = (long long) -1;
17508 return ll << i | ll >> i | llm / ll | llm % ll;
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516 (eval $ac_link) 2>conftest.er1
17518 grep -v '^ *+' conftest.er1 >conftest.err
17520 cat conftest.err >&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } &&
17523 { ac_try='test -z "$ac_c_werror_flag"
17524 || test ! -s conftest.err'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; } &&
17530 { ac_try='test -s conftest$ac_exeext'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 bash_cv_type_long_long='long long'
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 bash_cv_type_long_long='long'
17543 rm -f conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
17546 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
17547 echo "${ECHO_T}$bash_cv_type_long_long" >&6
17548 if test "$bash_cv_type_long_long" = 'long long'; then
17549 cat >>confdefs.h <<\_ACEOF
17550 #define HAVE_LONG_LONG 1
17556 echo "$as_me:$LINENO: checking for unsigned long long" >&5
17557 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
17558 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 cat >conftest.$ac_ext <<_ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17568 unsigned long long ull = 1; int i = 63;
17573 unsigned long long ullmax = (unsigned long long) -1;
17574 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582 (eval $ac_link) 2>conftest.er1
17584 grep -v '^ *+' conftest.er1 >conftest.err
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -z "$ac_c_werror_flag"
17590 || test ! -s conftest.err'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; } &&
17596 { ac_try='test -s conftest$ac_exeext'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 bash_cv_type_unsigned_long_long='unsigned long long'
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17607 bash_cv_type_unsigned_long_long='unsigned long'
17609 rm -f conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17612 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
17613 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
17614 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
17615 cat >>confdefs.h <<\_ACEOF
17616 #define HAVE_UNSIGNED_LONG_LONG 1
17622 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17623 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17624 if test "${ac_cv_type_signal+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 #include <sys/types.h>
17634 #include <signal.h>
17639 extern "C" void (*signal (int, void (*)(int)))(int);
17641 void (*signal ()) ();
17652 rm -f conftest.$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654 (eval $ac_compile) 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_type_signal=void
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_cv_type_signal=int
17681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17683 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17684 echo "${ECHO_T}$ac_cv_type_signal" >&6
17686 cat >>confdefs.h <<_ACEOF
17687 #define RETSIGTYPE $ac_cv_type_signal
17692 echo "$as_me:$LINENO: checking for char" >&5
17693 echo $ECHO_N "checking for char... $ECHO_C" >&6
17694 if test "${ac_cv_type_char+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17697 cat >conftest.$ac_ext <<_ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h. */
17703 $ac_includes_default
17715 rm -f conftest.$ac_objext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17717 (eval $ac_compile) 2>conftest.er1
17719 grep -v '^ *+' conftest.er1 >conftest.err
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -z "$ac_c_werror_flag"
17725 || test ! -s conftest.err'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest.$ac_objext'
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17737 ac_cv_type_char=yes
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17746 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17747 echo "${ECHO_T}$ac_cv_type_char" >&6
17749 echo "$as_me:$LINENO: checking size of char" >&5
17750 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17751 if test "${ac_cv_sizeof_char+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 if test "$ac_cv_type_char" = yes; then
17755 # The cast to unsigned long works around a bug in the HP C Compiler
17756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17758 # This bug is HP SR number 8606223364.
17759 if test "$cross_compiling" = yes; then
17760 # Depending upon the size, compute the lo and hi bounds.
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 $ac_includes_default
17771 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>conftest.er1
17782 grep -v '^ *+' conftest.er1 >conftest.err
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest.$ac_objext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17802 cat >conftest.$ac_ext <<_ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 $ac_includes_default
17812 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17819 rm -f conftest.$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_hi=$ac_mid; break
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_lo=`expr $ac_mid + 1`
17847 if test $ac_lo -le $ac_mid; then
17851 ac_mid=`expr 2 '*' $ac_mid + 1`
17853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17859 cat >conftest.$ac_ext <<_ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 $ac_includes_default
17869 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17876 rm -f conftest.$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878 (eval $ac_compile) 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17900 cat >conftest.$ac_ext <<_ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 $ac_includes_default
17910 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17917 rm -f conftest.$ac_objext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17919 (eval $ac_compile) 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_lo=$ac_mid; break
17941 echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17944 ac_hi=`expr '(' $ac_mid ')' - 1`
17945 if test $ac_mid -le $ac_hi; then
17949 ac_mid=`expr 2 '*' $ac_mid`
17951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17962 # Binary search between lo and hi bounds.
17963 while test "x$ac_lo" != "x$ac_hi"; do
17964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17975 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17982 rm -f conftest.$ac_objext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984 (eval $ac_compile) 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag"
17992 || test ! -s conftest.err'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_lo=`expr '(' $ac_mid ')' + 1`
18011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18014 ?*) ac_cv_sizeof_char=$ac_lo;;
18015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18016 See \`config.log' for more details." >&5
18017 echo "$as_me: error: cannot compute sizeof (char), 77
18018 See \`config.log' for more details." >&2;}
18019 { (exit 1); exit 1; }; } ;;
18022 if test "$cross_compiling" = yes; then
18023 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18024 See \`config.log' for more details." >&5
18025 echo "$as_me: error: cannot run test program while cross compiling
18026 See \`config.log' for more details." >&2;}
18027 { (exit 1); exit 1; }; }
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 $ac_includes_default
18036 long longval () { return (long) (sizeof (char)); }
18037 unsigned long ulongval () { return (long) (sizeof (char)); }
18039 #include <stdlib.h>
18044 FILE *f = fopen ("conftest.val", "w");
18047 if (((long) (sizeof (char))) < 0)
18049 long i = longval ();
18050 if (i != ((long) (sizeof (char))))
18052 fprintf (f, "%ld\n", i);
18056 unsigned long i = ulongval ();
18057 if (i != ((long) (sizeof (char))))
18059 fprintf (f, "%lu\n", i);
18061 exit (ferror (f) || fclose (f) != 0);
18067 rm -f conftest$ac_exeext
18068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18069 (eval $ac_link) 2>&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 ac_cv_sizeof_char=`cat conftest.val`
18080 echo "$as_me: program exited with status $ac_status" >&5
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 ( exit $ac_status )
18085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18086 See \`config.log' for more details." >&5
18087 echo "$as_me: error: cannot compute sizeof (char), 77
18088 See \`config.log' for more details." >&2;}
18089 { (exit 1); exit 1; }; }
18091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18096 ac_cv_sizeof_char=0
18099 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18100 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18101 cat >>confdefs.h <<_ACEOF
18102 #define SIZEOF_CHAR $ac_cv_sizeof_char
18106 echo "$as_me:$LINENO: checking for short" >&5
18107 echo $ECHO_N "checking for short... $ECHO_C" >&6
18108 if test "${ac_cv_type_short+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 cat >conftest.$ac_ext <<_ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 $ac_includes_default
18123 if (sizeof (short))
18129 rm -f conftest.$ac_objext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_type_short=yes
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_cv_type_short=no
18158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18160 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18161 echo "${ECHO_T}$ac_cv_type_short" >&6
18163 echo "$as_me:$LINENO: checking size of short" >&5
18164 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18165 if test "${ac_cv_sizeof_short+set}" = set; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 if test "$ac_cv_type_short" = yes; then
18169 # The cast to unsigned long works around a bug in the HP C Compiler
18170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18172 # This bug is HP SR number 8606223364.
18173 if test "$cross_compiling" = yes; then
18174 # Depending upon the size, compute the lo and hi bounds.
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 $ac_includes_default
18185 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18192 rm -f conftest.$ac_objext
18193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18194 (eval $ac_compile) 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -z "$ac_c_werror_flag"
18202 || test ! -s conftest.err'
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest.$ac_objext'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18216 cat >conftest.$ac_ext <<_ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18222 $ac_includes_default
18226 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18233 rm -f conftest.$ac_objext
18234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18235 (eval $ac_compile) 2>conftest.er1
18237 grep -v '^ *+' conftest.er1 >conftest.err
18239 cat conftest.err >&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } &&
18242 { ac_try='test -z "$ac_c_werror_flag"
18243 || test ! -s conftest.err'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; } &&
18249 { ac_try='test -s conftest.$ac_objext'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; }; then
18255 ac_hi=$ac_mid; break
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 ac_lo=`expr $ac_mid + 1`
18261 if test $ac_lo -le $ac_mid; then
18265 ac_mid=`expr 2 '*' $ac_mid + 1`
18267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 cat >conftest.$ac_ext <<_ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 $ac_includes_default
18283 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18290 rm -f conftest.$ac_objext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18292 (eval $ac_compile) 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag"
18300 || test ! -s conftest.err'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest.$ac_objext'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18314 cat >conftest.$ac_ext <<_ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 $ac_includes_default
18324 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18331 rm -f conftest.$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333 (eval $ac_compile) 2>conftest.er1
18335 grep -v '^ *+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_lo=$ac_mid; break
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_hi=`expr '(' $ac_mid ')' - 1`
18359 if test $ac_mid -le $ac_hi; then
18363 ac_mid=`expr 2 '*' $ac_mid`
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18376 # Binary search between lo and hi bounds.
18377 while test "x$ac_lo" != "x$ac_hi"; do
18378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 $ac_includes_default
18389 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18396 rm -f conftest.$ac_objext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18398 (eval $ac_compile) 2>conftest.er1
18400 grep -v '^ *+' conftest.er1 >conftest.err
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -z "$ac_c_werror_flag"
18406 || test ! -s conftest.err'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; } &&
18412 { ac_try='test -s conftest.$ac_objext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 ac_lo=`expr '(' $ac_mid ')' + 1`
18425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18428 ?*) ac_cv_sizeof_short=$ac_lo;;
18429 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18430 See \`config.log' for more details." >&5
18431 echo "$as_me: error: cannot compute sizeof (short), 77
18432 See \`config.log' for more details." >&2;}
18433 { (exit 1); exit 1; }; } ;;
18436 if test "$cross_compiling" = yes; then
18437 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18438 See \`config.log' for more details." >&5
18439 echo "$as_me: error: cannot run test program while cross compiling
18440 See \`config.log' for more details." >&2;}
18441 { (exit 1); exit 1; }; }
18443 cat >conftest.$ac_ext <<_ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 $ac_includes_default
18450 long longval () { return (long) (sizeof (short)); }
18451 unsigned long ulongval () { return (long) (sizeof (short)); }
18453 #include <stdlib.h>
18458 FILE *f = fopen ("conftest.val", "w");
18461 if (((long) (sizeof (short))) < 0)
18463 long i = longval ();
18464 if (i != ((long) (sizeof (short))))
18466 fprintf (f, "%ld\n", i);
18470 unsigned long i = ulongval ();
18471 if (i != ((long) (sizeof (short))))
18473 fprintf (f, "%lu\n", i);
18475 exit (ferror (f) || fclose (f) != 0);
18481 rm -f conftest$ac_exeext
18482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18483 (eval $ac_link) 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_cv_sizeof_short=`cat conftest.val`
18494 echo "$as_me: program exited with status $ac_status" >&5
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 ( exit $ac_status )
18499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18500 See \`config.log' for more details." >&5
18501 echo "$as_me: error: cannot compute sizeof (short), 77
18502 See \`config.log' for more details." >&2;}
18503 { (exit 1); exit 1; }; }
18505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18510 ac_cv_sizeof_short=0
18513 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18514 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18515 cat >>confdefs.h <<_ACEOF
18516 #define SIZEOF_SHORT $ac_cv_sizeof_short
18520 echo "$as_me:$LINENO: checking for int" >&5
18521 echo $ECHO_N "checking for int... $ECHO_C" >&6
18522 if test "${ac_cv_type_int+set}" = set; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 $ac_includes_default
18543 rm -f conftest.$ac_objext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18545 (eval $ac_compile) 2>conftest.er1
18547 grep -v '^ *+' conftest.er1 >conftest.err
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } &&
18552 { ac_try='test -z "$ac_c_werror_flag"
18553 || test ! -s conftest.err'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } &&
18559 { ac_try='test -s conftest.$ac_objext'
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18574 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18575 echo "${ECHO_T}$ac_cv_type_int" >&6
18577 echo "$as_me:$LINENO: checking size of int" >&5
18578 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18579 if test "${ac_cv_sizeof_int+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 if test "$ac_cv_type_int" = yes; then
18583 # The cast to unsigned long works around a bug in the HP C Compiler
18584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18586 # This bug is HP SR number 8606223364.
18587 if test "$cross_compiling" = yes; then
18588 # Depending upon the size, compute the lo and hi bounds.
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18595 $ac_includes_default
18599 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18606 rm -f conftest.$ac_objext
18607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18608 (eval $ac_compile) 2>conftest.er1
18610 grep -v '^ *+' conftest.er1 >conftest.err
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try='test -z "$ac_c_werror_flag"
18616 || test ! -s conftest.err'
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest.$ac_objext'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 $ac_includes_default
18640 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18647 rm -f conftest.$ac_objext
18648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18649 (eval $ac_compile) 2>conftest.er1
18651 grep -v '^ *+' conftest.er1 >conftest.err
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag"
18657 || test ! -s conftest.err'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; } &&
18663 { ac_try='test -s conftest.$ac_objext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_hi=$ac_mid; break
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18674 ac_lo=`expr $ac_mid + 1`
18675 if test $ac_lo -le $ac_mid; then
18679 ac_mid=`expr 2 '*' $ac_mid + 1`
18681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 cat >conftest.$ac_ext <<_ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 $ac_includes_default
18697 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18704 rm -f conftest.$ac_objext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706 (eval $ac_compile) 2>conftest.er1
18708 grep -v '^ *+' conftest.er1 >conftest.err
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_c_werror_flag"
18714 || test ! -s conftest.err'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest.$ac_objext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18728 cat >conftest.$ac_ext <<_ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 $ac_includes_default
18738 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747 (eval $ac_compile) 2>conftest.er1
18749 grep -v '^ *+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_c_werror_flag"
18755 || test ! -s conftest.err'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 ac_lo=$ac_mid; break
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18772 ac_hi=`expr '(' $ac_mid ')' - 1`
18773 if test $ac_mid -le $ac_hi; then
18777 ac_mid=`expr 2 '*' $ac_mid`
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18790 # Binary search between lo and hi bounds.
18791 while test "x$ac_lo" != "x$ac_hi"; do
18792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18803 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18810 rm -f conftest.$ac_objext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812 (eval $ac_compile) 2>conftest.er1
18814 grep -v '^ *+' conftest.er1 >conftest.err
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18837 ac_lo=`expr '(' $ac_mid ')' + 1`
18839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18842 ?*) ac_cv_sizeof_int=$ac_lo;;
18843 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18844 See \`config.log' for more details." >&5
18845 echo "$as_me: error: cannot compute sizeof (int), 77
18846 See \`config.log' for more details." >&2;}
18847 { (exit 1); exit 1; }; } ;;
18850 if test "$cross_compiling" = yes; then
18851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18852 See \`config.log' for more details." >&5
18853 echo "$as_me: error: cannot run test program while cross compiling
18854 See \`config.log' for more details." >&2;}
18855 { (exit 1); exit 1; }; }
18857 cat >conftest.$ac_ext <<_ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 $ac_includes_default
18864 long longval () { return (long) (sizeof (int)); }
18865 unsigned long ulongval () { return (long) (sizeof (int)); }
18867 #include <stdlib.h>
18872 FILE *f = fopen ("conftest.val", "w");
18875 if (((long) (sizeof (int))) < 0)
18877 long i = longval ();
18878 if (i != ((long) (sizeof (int))))
18880 fprintf (f, "%ld\n", i);
18884 unsigned long i = ulongval ();
18885 if (i != ((long) (sizeof (int))))
18887 fprintf (f, "%lu\n", i);
18889 exit (ferror (f) || fclose (f) != 0);
18895 rm -f conftest$ac_exeext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18897 (eval $ac_link) 2>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_cv_sizeof_int=`cat conftest.val`
18908 echo "$as_me: program exited with status $ac_status" >&5
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ( exit $ac_status )
18913 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18914 See \`config.log' for more details." >&5
18915 echo "$as_me: error: cannot compute sizeof (int), 77
18916 See \`config.log' for more details." >&2;}
18917 { (exit 1); exit 1; }; }
18919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18927 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18928 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18929 cat >>confdefs.h <<_ACEOF
18930 #define SIZEOF_INT $ac_cv_sizeof_int
18934 echo "$as_me:$LINENO: checking for long" >&5
18935 echo $ECHO_N "checking for long... $ECHO_C" >&6
18936 if test "${ac_cv_type_long+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945 $ac_includes_default
18957 rm -f conftest.$ac_objext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18959 (eval $ac_compile) 2>conftest.er1
18961 grep -v '^ *+' conftest.er1 >conftest.err
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -z "$ac_c_werror_flag"
18967 || test ! -s conftest.err'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest.$ac_objext'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 ac_cv_type_long=yes
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18988 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18989 echo "${ECHO_T}$ac_cv_type_long" >&6
18991 echo "$as_me:$LINENO: checking size of long" >&5
18992 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18993 if test "${ac_cv_sizeof_long+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 if test "$ac_cv_type_long" = yes; then
18997 # The cast to unsigned long works around a bug in the HP C Compiler
18998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19000 # This bug is HP SR number 8606223364.
19001 if test "$cross_compiling" = yes; then
19002 # Depending upon the size, compute the lo and hi bounds.
19003 cat >conftest.$ac_ext <<_ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 $ac_includes_default
19013 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19020 rm -f conftest.$ac_objext
19021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19022 (eval $ac_compile) 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag"
19030 || test ! -s conftest.err'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest.$ac_objext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 $ac_includes_default
19054 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19061 rm -f conftest.$ac_objext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063 (eval $ac_compile) 2>conftest.er1
19065 grep -v '^ *+' conftest.er1 >conftest.err
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -z "$ac_c_werror_flag"
19071 || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_hi=$ac_mid; break
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 ac_lo=`expr $ac_mid + 1`
19089 if test $ac_lo -le $ac_mid; then
19093 ac_mid=`expr 2 '*' $ac_mid + 1`
19095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 $ac_includes_default
19111 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120 (eval $ac_compile) 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19142 cat >conftest.$ac_ext <<_ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 $ac_includes_default
19152 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19159 rm -f conftest.$ac_objext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19161 (eval $ac_compile) 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest.$ac_objext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 ac_lo=$ac_mid; break
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_hi=`expr '(' $ac_mid ')' - 1`
19187 if test $ac_mid -le $ac_hi; then
19191 ac_mid=`expr 2 '*' $ac_mid`
19193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19204 # Binary search between lo and hi bounds.
19205 while test "x$ac_lo" != "x$ac_hi"; do
19206 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19207 cat >conftest.$ac_ext <<_ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 $ac_includes_default
19217 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19224 rm -f conftest.$ac_objext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19226 (eval $ac_compile) 2>conftest.er1
19228 grep -v '^ *+' conftest.er1 >conftest.err
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -z "$ac_c_werror_flag"
19234 || test ! -s conftest.err'
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; } &&
19240 { ac_try='test -s conftest.$ac_objext'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19251 ac_lo=`expr '(' $ac_mid ')' + 1`
19253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19256 ?*) ac_cv_sizeof_long=$ac_lo;;
19257 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19258 See \`config.log' for more details." >&5
19259 echo "$as_me: error: cannot compute sizeof (long), 77
19260 See \`config.log' for more details." >&2;}
19261 { (exit 1); exit 1; }; } ;;
19264 if test "$cross_compiling" = yes; then
19265 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19266 See \`config.log' for more details." >&5
19267 echo "$as_me: error: cannot run test program while cross compiling
19268 See \`config.log' for more details." >&2;}
19269 { (exit 1); exit 1; }; }
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19278 long longval () { return (long) (sizeof (long)); }
19279 unsigned long ulongval () { return (long) (sizeof (long)); }
19281 #include <stdlib.h>
19286 FILE *f = fopen ("conftest.val", "w");
19289 if (((long) (sizeof (long))) < 0)
19291 long i = longval ();
19292 if (i != ((long) (sizeof (long))))
19294 fprintf (f, "%ld\n", i);
19298 unsigned long i = ulongval ();
19299 if (i != ((long) (sizeof (long))))
19301 fprintf (f, "%lu\n", i);
19303 exit (ferror (f) || fclose (f) != 0);
19309 rm -f conftest$ac_exeext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311 (eval $ac_link) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 ac_cv_sizeof_long=`cat conftest.val`
19322 echo "$as_me: program exited with status $ac_status" >&5
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 ( exit $ac_status )
19327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19328 See \`config.log' for more details." >&5
19329 echo "$as_me: error: cannot compute sizeof (long), 77
19330 See \`config.log' for more details." >&2;}
19331 { (exit 1); exit 1; }; }
19333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19338 ac_cv_sizeof_long=0
19341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19342 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19343 cat >>confdefs.h <<_ACEOF
19344 #define SIZEOF_LONG $ac_cv_sizeof_long
19348 echo "$as_me:$LINENO: checking for char *" >&5
19349 echo $ECHO_N "checking for char *... $ECHO_C" >&6
19350 if test "${ac_cv_type_char_p+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19353 cat >conftest.$ac_ext <<_ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 $ac_includes_default
19365 if (sizeof (char *))
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_cv_type_char_p=yes
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_cv_type_char_p=no
19400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19402 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
19403 echo "${ECHO_T}$ac_cv_type_char_p" >&6
19405 echo "$as_me:$LINENO: checking size of char *" >&5
19406 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
19407 if test "${ac_cv_sizeof_char_p+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 if test "$ac_cv_type_char_p" = yes; then
19411 # The cast to unsigned long works around a bug in the HP C Compiler
19412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19414 # This bug is HP SR number 8606223364.
19415 if test "$cross_compiling" = yes; then
19416 # Depending upon the size, compute the lo and hi bounds.
19417 cat >conftest.$ac_ext <<_ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 $ac_includes_default
19427 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
19434 rm -f conftest.$ac_objext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19436 (eval $ac_compile) 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag"
19444 || test ! -s conftest.err'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest.$ac_objext'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; }; then
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 $ac_includes_default
19468 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
19475 rm -f conftest.$ac_objext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477 (eval $ac_compile) 2>conftest.er1
19479 grep -v '^ *+' conftest.er1 >conftest.err
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag"
19485 || test ! -s conftest.err'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try='test -s conftest.$ac_objext'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19497 ac_hi=$ac_mid; break
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_lo=`expr $ac_mid + 1`
19503 if test $ac_lo -le $ac_mid; then
19507 ac_mid=`expr 2 '*' $ac_mid + 1`
19509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521 $ac_includes_default
19525 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534 (eval $ac_compile) 2>conftest.er1
19536 grep -v '^ *+' conftest.er1 >conftest.err
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 $ac_includes_default
19566 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
19573 rm -f conftest.$ac_objext
19574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19575 (eval $ac_compile) 2>conftest.er1
19577 grep -v '^ *+' conftest.er1 >conftest.err
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_lo=$ac_mid; break
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19600 ac_hi=`expr '(' $ac_mid ')' - 1`
19601 if test $ac_mid -le $ac_hi; then
19605 ac_mid=`expr 2 '*' $ac_mid`
19607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19618 # Binary search between lo and hi bounds.
19619 while test "x$ac_lo" != "x$ac_hi"; do
19620 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 $ac_includes_default
19631 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
19638 rm -f conftest.$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640 (eval $ac_compile) 2>conftest.er1
19642 grep -v '^ *+' conftest.er1 >conftest.err
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_c_werror_flag"
19648 || test ! -s conftest.err'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest.$ac_objext'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_lo=`expr '(' $ac_mid ')' + 1`
19667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19670 ?*) ac_cv_sizeof_char_p=$ac_lo;;
19671 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19672 See \`config.log' for more details." >&5
19673 echo "$as_me: error: cannot compute sizeof (char *), 77
19674 See \`config.log' for more details." >&2;}
19675 { (exit 1); exit 1; }; } ;;
19678 if test "$cross_compiling" = yes; then
19679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19680 See \`config.log' for more details." >&5
19681 echo "$as_me: error: cannot run test program while cross compiling
19682 See \`config.log' for more details." >&2;}
19683 { (exit 1); exit 1; }; }
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 $ac_includes_default
19692 long longval () { return (long) (sizeof (char *)); }
19693 unsigned long ulongval () { return (long) (sizeof (char *)); }
19695 #include <stdlib.h>
19700 FILE *f = fopen ("conftest.val", "w");
19703 if (((long) (sizeof (char *))) < 0)
19705 long i = longval ();
19706 if (i != ((long) (sizeof (char *))))
19708 fprintf (f, "%ld\n", i);
19712 unsigned long i = ulongval ();
19713 if (i != ((long) (sizeof (char *))))
19715 fprintf (f, "%lu\n", i);
19717 exit (ferror (f) || fclose (f) != 0);
19723 rm -f conftest$ac_exeext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19725 (eval $ac_link) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 ac_cv_sizeof_char_p=`cat conftest.val`
19736 echo "$as_me: program exited with status $ac_status" >&5
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ( exit $ac_status )
19741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19742 See \`config.log' for more details." >&5
19743 echo "$as_me: error: cannot compute sizeof (char *), 77
19744 See \`config.log' for more details." >&2;}
19745 { (exit 1); exit 1; }; }
19747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19752 ac_cv_sizeof_char_p=0
19755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
19756 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
19757 cat >>confdefs.h <<_ACEOF
19758 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19762 echo "$as_me:$LINENO: checking for double" >&5
19763 echo $ECHO_N "checking for double... $ECHO_C" >&6
19764 if test "${ac_cv_type_double+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773 $ac_includes_default
19779 if (sizeof (double))
19785 rm -f conftest.$ac_objext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787 (eval $ac_compile) 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag"
19795 || test ! -s conftest.err'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_type_double=yes
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_cv_type_double=no
19814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19817 echo "${ECHO_T}$ac_cv_type_double" >&6
19819 echo "$as_me:$LINENO: checking size of double" >&5
19820 echo $ECHO_N "checking size of double... $ECHO_C" >&6
19821 if test "${ac_cv_sizeof_double+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 if test "$ac_cv_type_double" = yes; then
19825 # The cast to unsigned long works around a bug in the HP C Compiler
19826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19828 # This bug is HP SR number 8606223364.
19829 if test "$cross_compiling" = yes; then
19830 # Depending upon the size, compute the lo and hi bounds.
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 $ac_includes_default
19841 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
19848 rm -f conftest.$ac_objext
19849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19850 (eval $ac_compile) 2>conftest.er1
19852 grep -v '^ *+' conftest.er1 >conftest.err
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
19857 { ac_try='test -z "$ac_c_werror_flag"
19858 || test ! -s conftest.err'
19859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; } &&
19864 { ac_try='test -s conftest.$ac_objext'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; }; then
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 $ac_includes_default
19882 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
19889 rm -f conftest.$ac_objext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891 (eval $ac_compile) 2>conftest.er1
19893 grep -v '^ *+' conftest.er1 >conftest.err
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
19898 { ac_try='test -z "$ac_c_werror_flag"
19899 || test ! -s conftest.err'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; } &&
19905 { ac_try='test -s conftest.$ac_objext'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
19911 ac_hi=$ac_mid; break
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19916 ac_lo=`expr $ac_mid + 1`
19917 if test $ac_lo -le $ac_mid; then
19921 ac_mid=`expr 2 '*' $ac_mid + 1`
19923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 $ac_includes_default
19939 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
19946 rm -f conftest.$ac_objext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948 (eval $ac_compile) 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag"
19956 || test ! -s conftest.err'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest.$ac_objext'
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976 $ac_includes_default
19980 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>conftest.er1
19991 grep -v '^ *+' conftest.er1 >conftest.err
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_lo=$ac_mid; break
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_hi=`expr '(' $ac_mid ')' - 1`
20015 if test $ac_mid -le $ac_hi; then
20019 ac_mid=`expr 2 '*' $ac_mid`
20021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20032 # Binary search between lo and hi bounds.
20033 while test "x$ac_lo" != "x$ac_hi"; do
20034 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 $ac_includes_default
20045 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
20052 rm -f conftest.$ac_objext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054 (eval $ac_compile) 2>conftest.er1
20056 grep -v '^ *+' conftest.er1 >conftest.err
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
20061 { ac_try='test -z "$ac_c_werror_flag"
20062 || test ! -s conftest.err'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_lo=`expr '(' $ac_mid ')' + 1`
20081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20084 ?*) ac_cv_sizeof_double=$ac_lo;;
20085 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20086 See \`config.log' for more details." >&5
20087 echo "$as_me: error: cannot compute sizeof (double), 77
20088 See \`config.log' for more details." >&2;}
20089 { (exit 1); exit 1; }; } ;;
20092 if test "$cross_compiling" = yes; then
20093 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20094 See \`config.log' for more details." >&5
20095 echo "$as_me: error: cannot run test program while cross compiling
20096 See \`config.log' for more details." >&2;}
20097 { (exit 1); exit 1; }; }
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 $ac_includes_default
20106 long longval () { return (long) (sizeof (double)); }
20107 unsigned long ulongval () { return (long) (sizeof (double)); }
20109 #include <stdlib.h>
20114 FILE *f = fopen ("conftest.val", "w");
20117 if (((long) (sizeof (double))) < 0)
20119 long i = longval ();
20120 if (i != ((long) (sizeof (double))))
20122 fprintf (f, "%ld\n", i);
20126 unsigned long i = ulongval ();
20127 if (i != ((long) (sizeof (double))))
20129 fprintf (f, "%lu\n", i);
20131 exit (ferror (f) || fclose (f) != 0);
20137 rm -f conftest$ac_exeext
20138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20139 (eval $ac_link) 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_cv_sizeof_double=`cat conftest.val`
20150 echo "$as_me: program exited with status $ac_status" >&5
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20154 ( exit $ac_status )
20155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20156 See \`config.log' for more details." >&5
20157 echo "$as_me: error: cannot compute sizeof (double), 77
20158 See \`config.log' for more details." >&2;}
20159 { (exit 1); exit 1; }; }
20161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20166 ac_cv_sizeof_double=0
20169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
20170 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
20171 cat >>confdefs.h <<_ACEOF
20172 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
20176 echo "$as_me:$LINENO: checking for long long" >&5
20177 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20178 if test "${ac_cv_type_long_long+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 $ac_includes_default
20191 if ((long long *) 0)
20193 if (sizeof (long long))
20199 rm -f conftest.$ac_objext
20200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20201 (eval $ac_compile) 2>conftest.er1
20203 grep -v '^ *+' conftest.er1 >conftest.err
20205 cat conftest.err >&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
20208 { ac_try='test -z "$ac_c_werror_flag"
20209 || test ! -s conftest.err'
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; } &&
20215 { ac_try='test -s conftest.$ac_objext'
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; }; then
20221 ac_cv_type_long_long=yes
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 ac_cv_type_long_long=no
20228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20230 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20231 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20233 echo "$as_me:$LINENO: checking size of long long" >&5
20234 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20235 if test "${ac_cv_sizeof_long_long+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 if test "$ac_cv_type_long_long" = yes; then
20239 # The cast to unsigned long works around a bug in the HP C Compiler
20240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20242 # This bug is HP SR number 8606223364.
20243 if test "$cross_compiling" = yes; then
20244 # Depending upon the size, compute the lo and hi bounds.
20245 cat >conftest.$ac_ext <<_ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h. */
20251 $ac_includes_default
20255 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20262 rm -f conftest.$ac_objext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264 (eval $ac_compile) 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag"
20272 || test ! -s conftest.err'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest.$ac_objext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20286 cat >conftest.$ac_ext <<_ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20292 $ac_includes_default
20296 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20303 rm -f conftest.$ac_objext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20305 (eval $ac_compile) 2>conftest.er1
20307 grep -v '^ *+' conftest.er1 >conftest.err
20309 cat conftest.err >&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } &&
20312 { ac_try='test -z "$ac_c_werror_flag"
20313 || test ! -s conftest.err'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try='test -s conftest.$ac_objext'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_hi=$ac_mid; break
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_lo=`expr $ac_mid + 1`
20331 if test $ac_lo -le $ac_mid; then
20335 ac_mid=`expr 2 '*' $ac_mid + 1`
20337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 cat >conftest.$ac_ext <<_ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 $ac_includes_default
20353 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20360 rm -f conftest.$ac_objext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362 (eval $ac_compile) 2>conftest.er1
20364 grep -v '^ *+' conftest.er1 >conftest.err
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20384 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 $ac_includes_default
20394 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag"
20411 || test ! -s conftest.err'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; } &&
20417 { ac_try='test -s conftest.$ac_objext'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 ac_lo=$ac_mid; break
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_hi=`expr '(' $ac_mid ')' - 1`
20429 if test $ac_mid -le $ac_hi; then
20433 ac_mid=`expr 2 '*' $ac_mid`
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20446 # Binary search between lo and hi bounds.
20447 while test "x$ac_lo" != "x$ac_hi"; do
20448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 $ac_includes_default
20459 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20466 rm -f conftest.$ac_objext
20467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20468 (eval $ac_compile) 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } &&
20475 { ac_try='test -z "$ac_c_werror_flag"
20476 || test ! -s conftest.err'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; } &&
20482 { ac_try='test -s conftest.$ac_objext'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 ac_lo=`expr '(' $ac_mid ')' + 1`
20495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20499 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20500 See \`config.log' for more details." >&5
20501 echo "$as_me: error: cannot compute sizeof (long long), 77
20502 See \`config.log' for more details." >&2;}
20503 { (exit 1); exit 1; }; } ;;
20506 if test "$cross_compiling" = yes; then
20507 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20508 See \`config.log' for more details." >&5
20509 echo "$as_me: error: cannot run test program while cross compiling
20510 See \`config.log' for more details." >&2;}
20511 { (exit 1); exit 1; }; }
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 $ac_includes_default
20520 long longval () { return (long) (sizeof (long long)); }
20521 unsigned long ulongval () { return (long) (sizeof (long long)); }
20523 #include <stdlib.h>
20528 FILE *f = fopen ("conftest.val", "w");
20531 if (((long) (sizeof (long long))) < 0)
20533 long i = longval ();
20534 if (i != ((long) (sizeof (long long))))
20536 fprintf (f, "%ld\n", i);
20540 unsigned long i = ulongval ();
20541 if (i != ((long) (sizeof (long long))))
20543 fprintf (f, "%lu\n", i);
20545 exit (ferror (f) || fclose (f) != 0);
20551 rm -f conftest$ac_exeext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; }; then
20562 ac_cv_sizeof_long_long=`cat conftest.val`
20564 echo "$as_me: program exited with status $ac_status" >&5
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 ( exit $ac_status )
20569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20570 See \`config.log' for more details." >&5
20571 echo "$as_me: error: cannot compute sizeof (long long), 77
20572 See \`config.log' for more details." >&2;}
20573 { (exit 1); exit 1; }; }
20575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20580 ac_cv_sizeof_long_long=0
20583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20584 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20585 cat >>confdefs.h <<_ACEOF
20586 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20591 echo "$as_me:$LINENO: checking for u_int" >&5
20592 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
20593 if test "${ac_cv_type_u_int+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 cat >conftest.$ac_ext <<_ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 $ac_includes_default
20608 if (sizeof (u_int))
20614 rm -f conftest.$ac_objext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20616 (eval $ac_compile) 2>conftest.er1
20618 grep -v '^ *+' conftest.er1 >conftest.err
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag"
20624 || test ! -s conftest.err'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest.$ac_objext'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_type_u_int=yes
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 ac_cv_type_u_int=no
20643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20645 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
20646 echo "${ECHO_T}$ac_cv_type_u_int" >&6
20647 if test $ac_cv_type_u_int = yes; then
20651 cat >>confdefs.h <<_ACEOF
20652 #define u_int unsigned int
20657 echo "$as_me:$LINENO: checking for u_long" >&5
20658 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
20659 if test "${ac_cv_type_u_long+set}" = set; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20668 $ac_includes_default
20674 if (sizeof (u_long))
20680 rm -f conftest.$ac_objext
20681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20682 (eval $ac_compile) 2>conftest.er1
20684 grep -v '^ *+' conftest.er1 >conftest.err
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
20689 { ac_try='test -z "$ac_c_werror_flag"
20690 || test ! -s conftest.err'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest.$ac_objext'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20702 ac_cv_type_u_long=yes
20704 echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20707 ac_cv_type_u_long=no
20709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20711 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
20712 echo "${ECHO_T}$ac_cv_type_u_long" >&6
20713 if test $ac_cv_type_u_long = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define u_long unsigned long
20725 if test "$ac_cv_sizeof_short" = 2; then
20726 echo "$as_me:$LINENO: checking for bits16_t" >&5
20727 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20728 if test "${ac_cv_type_bits16_t+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20731 cat >conftest.$ac_ext <<_ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20737 $ac_includes_default
20741 if ((bits16_t *) 0)
20743 if (sizeof (bits16_t))
20749 rm -f conftest.$ac_objext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751 (eval $ac_compile) 2>conftest.er1
20753 grep -v '^ *+' conftest.er1 >conftest.err
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
20758 { ac_try='test -z "$ac_c_werror_flag"
20759 || test ! -s conftest.err'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; } &&
20765 { ac_try='test -s conftest.$ac_objext'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 ac_cv_type_bits16_t=yes
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_cv_type_bits16_t=no
20778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20780 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20781 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20782 if test $ac_cv_type_bits16_t = yes; then
20786 cat >>confdefs.h <<_ACEOF
20787 #define bits16_t short
20792 elif test "$ac_cv_sizeof_char" = 2; then
20793 echo "$as_me:$LINENO: checking for bits16_t" >&5
20794 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20795 if test "${ac_cv_type_bits16_t+set}" = set; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 cat >conftest.$ac_ext <<_ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 $ac_includes_default
20808 if ((bits16_t *) 0)
20810 if (sizeof (bits16_t))
20816 rm -f conftest.$ac_objext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20818 (eval $ac_compile) 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -z "$ac_c_werror_flag"
20826 || test ! -s conftest.err'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest.$ac_objext'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; }; then
20838 ac_cv_type_bits16_t=yes
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_cv_type_bits16_t=no
20845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20847 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20848 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20849 if test $ac_cv_type_bits16_t = yes; then
20853 cat >>confdefs.h <<_ACEOF
20854 #define bits16_t char
20860 echo "$as_me:$LINENO: checking for bits16_t" >&5
20861 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20862 if test "${ac_cv_type_bits16_t+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 cat >conftest.$ac_ext <<_ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 $ac_includes_default
20875 if ((bits16_t *) 0)
20877 if (sizeof (bits16_t))
20883 rm -f conftest.$ac_objext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20885 (eval $ac_compile) 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } &&
20892 { ac_try='test -z "$ac_c_werror_flag"
20893 || test ! -s conftest.err'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; } &&
20899 { ac_try='test -s conftest.$ac_objext'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_cv_type_bits16_t=yes
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20910 ac_cv_type_bits16_t=no
20912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20914 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20915 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20916 if test $ac_cv_type_bits16_t = yes; then
20920 cat >>confdefs.h <<_ACEOF
20921 #define bits16_t short
20929 if test "$ac_cv_sizeof_short" = 2; then
20930 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
20931 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20932 if test "${ac_cv_type_u_bits16_t+set}" = set; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 $ac_includes_default
20945 if ((u_bits16_t *) 0)
20947 if (sizeof (u_bits16_t))
20953 rm -f conftest.$ac_objext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20955 (eval $ac_compile) 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
20962 { ac_try='test -z "$ac_c_werror_flag"
20963 || test ! -s conftest.err'
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest.$ac_objext'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; }; then
20975 ac_cv_type_u_bits16_t=yes
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_cv_type_u_bits16_t=no
20982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20984 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
20985 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
20986 if test $ac_cv_type_u_bits16_t = yes; then
20990 cat >>confdefs.h <<_ACEOF
20991 #define u_bits16_t unsigned short
20996 elif test "$ac_cv_sizeof_char" = 2; then
20997 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
20998 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20999 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 $ac_includes_default
21012 if ((u_bits16_t *) 0)
21014 if (sizeof (u_bits16_t))
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022 (eval $ac_compile) 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -z "$ac_c_werror_flag"
21030 || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_type_u_bits16_t=yes
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21047 ac_cv_type_u_bits16_t=no
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21052 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21053 if test $ac_cv_type_u_bits16_t = yes; then
21057 cat >>confdefs.h <<_ACEOF
21058 #define u_bits16_t unsigned char
21064 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21065 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21066 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 cat >conftest.$ac_ext <<_ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21075 $ac_includes_default
21079 if ((u_bits16_t *) 0)
21081 if (sizeof (u_bits16_t))
21087 rm -f conftest.$ac_objext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21089 (eval $ac_compile) 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag"
21097 || test ! -s conftest.err'
21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; } &&
21103 { ac_try='test -s conftest.$ac_objext'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 ac_cv_type_u_bits16_t=yes
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_cv_type_u_bits16_t=no
21116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21118 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21119 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21120 if test $ac_cv_type_u_bits16_t = yes; then
21124 cat >>confdefs.h <<_ACEOF
21125 #define u_bits16_t unsigned short
21133 if test "$ac_cv_sizeof_int" = 4; then
21134 echo "$as_me:$LINENO: checking for bits32_t" >&5
21135 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21136 if test "${ac_cv_type_bits32_t+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 $ac_includes_default
21149 if ((bits32_t *) 0)
21151 if (sizeof (bits32_t))
21157 rm -f conftest.$ac_objext
21158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21159 (eval $ac_compile) 2>conftest.er1
21161 grep -v '^ *+' conftest.er1 >conftest.err
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } &&
21166 { ac_try='test -z "$ac_c_werror_flag"
21167 || test ! -s conftest.err'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; } &&
21173 { ac_try='test -s conftest.$ac_objext'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 ac_cv_type_bits32_t=yes
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21184 ac_cv_type_bits32_t=no
21186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21188 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21189 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21190 if test $ac_cv_type_bits32_t = yes; then
21194 cat >>confdefs.h <<_ACEOF
21195 #define bits32_t int
21200 elif test "$ac_cv_sizeof_long" = 4; then
21201 echo "$as_me:$LINENO: checking for bits32_t" >&5
21202 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21203 if test "${ac_cv_type_bits32_t+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21212 $ac_includes_default
21216 if ((bits32_t *) 0)
21218 if (sizeof (bits32_t))
21224 rm -f conftest.$ac_objext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226 (eval $ac_compile) 2>conftest.er1
21228 grep -v '^ *+' conftest.er1 >conftest.err
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -z "$ac_c_werror_flag"
21234 || test ! -s conftest.err'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 ac_cv_type_bits32_t=yes
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ac_cv_type_bits32_t=no
21253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21255 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21256 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21257 if test $ac_cv_type_bits32_t = yes; then
21261 cat >>confdefs.h <<_ACEOF
21262 #define bits32_t long
21268 echo "$as_me:$LINENO: checking for bits32_t" >&5
21269 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21270 if test "${ac_cv_type_bits32_t+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 cat >conftest.$ac_ext <<_ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279 $ac_includes_default
21283 if ((bits32_t *) 0)
21285 if (sizeof (bits32_t))
21291 rm -f conftest.$ac_objext
21292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21293 (eval $ac_compile) 2>conftest.er1
21295 grep -v '^ *+' conftest.er1 >conftest.err
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } &&
21300 { ac_try='test -z "$ac_c_werror_flag"
21301 || test ! -s conftest.err'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; } &&
21307 { ac_try='test -s conftest.$ac_objext'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; }; then
21313 ac_cv_type_bits32_t=yes
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_cv_type_bits32_t=no
21320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21322 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21323 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21324 if test $ac_cv_type_bits32_t = yes; then
21328 cat >>confdefs.h <<_ACEOF
21329 #define bits32_t int
21337 if test "$ac_cv_sizeof_int" = 4; then
21338 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21339 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21340 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 cat >conftest.$ac_ext <<_ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 $ac_includes_default
21353 if ((u_bits32_t *) 0)
21355 if (sizeof (u_bits32_t))
21361 rm -f conftest.$ac_objext
21362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21363 (eval $ac_compile) 2>conftest.er1
21365 grep -v '^ *+' conftest.er1 >conftest.err
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } &&
21370 { ac_try='test -z "$ac_c_werror_flag"
21371 || test ! -s conftest.err'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; } &&
21377 { ac_try='test -s conftest.$ac_objext'
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; }; then
21383 ac_cv_type_u_bits32_t=yes
21385 echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21388 ac_cv_type_u_bits32_t=no
21390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21392 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21393 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21394 if test $ac_cv_type_u_bits32_t = yes; then
21398 cat >>confdefs.h <<_ACEOF
21399 #define u_bits32_t unsigned int
21404 elif test "$ac_cv_sizeof_long" = 4; then
21405 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21406 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21407 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 $ac_includes_default
21420 if ((u_bits32_t *) 0)
21422 if (sizeof (u_bits32_t))
21428 rm -f conftest.$ac_objext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21430 (eval $ac_compile) 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
21437 { ac_try='test -z "$ac_c_werror_flag"
21438 || test ! -s conftest.err'
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; } &&
21444 { ac_try='test -s conftest.$ac_objext'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ac_cv_type_u_bits32_t=yes
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 ac_cv_type_u_bits32_t=no
21457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21459 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21460 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21461 if test $ac_cv_type_u_bits32_t = yes; then
21465 cat >>confdefs.h <<_ACEOF
21466 #define u_bits32_t unsigned long
21472 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21473 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21474 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483 $ac_includes_default
21487 if ((u_bits32_t *) 0)
21489 if (sizeof (u_bits32_t))
21495 rm -f conftest.$ac_objext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21497 (eval $ac_compile) 2>conftest.er1
21499 grep -v '^ *+' conftest.er1 >conftest.err
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } &&
21504 { ac_try='test -z "$ac_c_werror_flag"
21505 || test ! -s conftest.err'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; } &&
21511 { ac_try='test -s conftest.$ac_objext'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 ac_cv_type_u_bits32_t=yes
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 ac_cv_type_u_bits32_t=no
21524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21526 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21527 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21528 if test $ac_cv_type_u_bits32_t = yes; then
21532 cat >>confdefs.h <<_ACEOF
21533 #define u_bits32_t unsigned int
21541 if test "$ac_cv_sizeof_char_p" = 8; then
21542 echo "$as_me:$LINENO: checking for bits64_t" >&5
21543 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21544 if test "${ac_cv_type_bits64_t+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21557 if ((bits64_t *) 0)
21559 if (sizeof (bits64_t))
21565 rm -f conftest.$ac_objext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21567 (eval $ac_compile) 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
21574 { ac_try='test -z "$ac_c_werror_flag"
21575 || test ! -s conftest.err'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest.$ac_objext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 ac_cv_type_bits64_t=yes
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_cv_type_bits64_t=no
21594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21596 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21597 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21598 if test $ac_cv_type_bits64_t = yes; then
21602 cat >>confdefs.h <<_ACEOF
21603 #define bits64_t char *
21608 elif test "$ac_cv_sizeof_double" = 8; then
21609 echo "$as_me:$LINENO: checking for bits64_t" >&5
21610 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21611 if test "${ac_cv_type_bits64_t+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 $ac_includes_default
21624 if ((bits64_t *) 0)
21626 if (sizeof (bits64_t))
21632 rm -f conftest.$ac_objext
21633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21634 (eval $ac_compile) 2>conftest.er1
21636 grep -v '^ *+' conftest.er1 >conftest.err
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } &&
21641 { ac_try='test -z "$ac_c_werror_flag"
21642 || test ! -s conftest.err'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; } &&
21648 { ac_try='test -s conftest.$ac_objext'
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; }; then
21654 ac_cv_type_bits64_t=yes
21656 echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21659 ac_cv_type_bits64_t=no
21661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21663 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21664 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21665 if test $ac_cv_type_bits64_t = yes; then
21669 cat >>confdefs.h <<_ACEOF
21670 #define bits64_t double
21675 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
21676 echo "$as_me:$LINENO: checking for bits64_t" >&5
21677 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21678 if test "${ac_cv_type_bits64_t+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21681 cat >conftest.$ac_ext <<_ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 $ac_includes_default
21691 if ((bits64_t *) 0)
21693 if (sizeof (bits64_t))
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>conftest.er1
21703 grep -v '^ *+' conftest.er1 >conftest.err
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try='test -z "$ac_c_werror_flag"
21709 || test ! -s conftest.err'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest.$ac_objext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 ac_cv_type_bits64_t=yes
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_cv_type_bits64_t=no
21728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21730 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21731 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21732 if test $ac_cv_type_bits64_t = yes; then
21736 cat >>confdefs.h <<_ACEOF
21737 #define bits64_t long long
21742 elif test "$ac_cv_sizeof_long" = 8; then
21743 echo "$as_me:$LINENO: checking for bits64_t" >&5
21744 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21745 if test "${ac_cv_type_bits64_t+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 cat >conftest.$ac_ext <<_ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21754 $ac_includes_default
21758 if ((bits64_t *) 0)
21760 if (sizeof (bits64_t))
21766 rm -f conftest.$ac_objext
21767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21768 (eval $ac_compile) 2>conftest.er1
21770 grep -v '^ *+' conftest.er1 >conftest.err
21772 cat conftest.err >&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } &&
21775 { ac_try='test -z "$ac_c_werror_flag"
21776 || test ! -s conftest.err'
21777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; } &&
21782 { ac_try='test -s conftest.$ac_objext'
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; }; then
21788 ac_cv_type_bits64_t=yes
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21793 ac_cv_type_bits64_t=no
21795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21797 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21798 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21799 if test $ac_cv_type_bits64_t = yes; then
21803 cat >>confdefs.h <<_ACEOF
21804 #define bits64_t long
21810 echo "$as_me:$LINENO: checking for bits64_t" >&5
21811 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21812 if test "${ac_cv_type_bits64_t+set}" = set; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 $ac_includes_default
21825 if ((bits64_t *) 0)
21827 if (sizeof (bits64_t))
21833 rm -f conftest.$ac_objext
21834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21835 (eval $ac_compile) 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } &&
21842 { ac_try='test -z "$ac_c_werror_flag"
21843 || test ! -s conftest.err'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; } &&
21849 { ac_try='test -s conftest.$ac_objext'
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; }; then
21855 ac_cv_type_bits64_t=yes
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ac_cv_type_bits64_t=no
21862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21864 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21865 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21866 if test $ac_cv_type_bits64_t = yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define bits64_t double
21880 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
21881 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21882 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21883 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 cat >conftest.$ac_ext <<_ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 $ac_includes_default
21896 if ((ptrdiff_t *) 0)
21898 if (sizeof (ptrdiff_t))
21904 rm -f conftest.$ac_objext
21905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21906 (eval $ac_compile) 2>conftest.er1
21908 grep -v '^ *+' conftest.er1 >conftest.err
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } &&
21913 { ac_try='test -z "$ac_c_werror_flag"
21914 || test ! -s conftest.err'
21915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; } &&
21920 { ac_try='test -s conftest.$ac_objext'
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; }; then
21926 ac_cv_type_ptrdiff_t=yes
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 ac_cv_type_ptrdiff_t=no
21933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21935 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21936 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21937 if test $ac_cv_type_ptrdiff_t = yes; then
21941 cat >>confdefs.h <<_ACEOF
21942 #define ptrdiff_t int
21947 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
21948 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21949 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21950 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 $ac_includes_default
21963 if ((ptrdiff_t *) 0)
21965 if (sizeof (ptrdiff_t))
21971 rm -f conftest.$ac_objext
21972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21973 (eval $ac_compile) 2>conftest.er1
21975 grep -v '^ *+' conftest.er1 >conftest.err
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } &&
21980 { ac_try='test -z "$ac_c_werror_flag"
21981 || test ! -s conftest.err'
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; } &&
21987 { ac_try='test -s conftest.$ac_objext'
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; }; then
21993 ac_cv_type_ptrdiff_t=yes
21995 echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21998 ac_cv_type_ptrdiff_t=no
22000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22002 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22003 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22004 if test $ac_cv_type_ptrdiff_t = yes; then
22008 cat >>confdefs.h <<_ACEOF
22009 #define ptrdiff_t long
22014 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
22015 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22016 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22017 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 $ac_includes_default
22030 if ((ptrdiff_t *) 0)
22032 if (sizeof (ptrdiff_t))
22038 rm -f conftest.$ac_objext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22040 (eval $ac_compile) 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } &&
22047 { ac_try='test -z "$ac_c_werror_flag"
22048 || test ! -s conftest.err'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; } &&
22054 { ac_try='test -s conftest.$ac_objext'
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
22060 ac_cv_type_ptrdiff_t=yes
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_cv_type_ptrdiff_t=no
22067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22069 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22070 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22071 if test $ac_cv_type_ptrdiff_t = yes; then
22075 cat >>confdefs.h <<_ACEOF
22076 #define ptrdiff_t long long
22082 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22083 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22084 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 cat >conftest.$ac_ext <<_ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h. */
22093 $ac_includes_default
22097 if ((ptrdiff_t *) 0)
22099 if (sizeof (ptrdiff_t))
22105 rm -f conftest.$ac_objext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22107 (eval $ac_compile) 2>conftest.er1
22109 grep -v '^ *+' conftest.er1 >conftest.err
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
22114 { ac_try='test -z "$ac_c_werror_flag"
22115 || test ! -s conftest.err'
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 ac_cv_type_ptrdiff_t=yes
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_cv_type_ptrdiff_t=no
22134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22136 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22137 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22138 if test $ac_cv_type_ptrdiff_t = yes; then
22142 cat >>confdefs.h <<_ACEOF
22143 #define ptrdiff_t int
22151 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22152 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
22153 if test "${ac_cv_header_stat_broken+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22156 cat >conftest.$ac_ext <<_ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22162 #include <sys/types.h>
22163 #include <sys/stat.h>
22165 #if defined(S_ISBLK) && defined(S_IFDIR)
22166 # if S_ISBLK (S_IFDIR)
22171 #if defined(S_ISBLK) && defined(S_IFCHR)
22172 # if S_ISBLK (S_IFCHR)
22177 #if defined(S_ISLNK) && defined(S_IFREG)
22178 # if S_ISLNK (S_IFREG)
22183 #if defined(S_ISSOCK) && defined(S_IFREG)
22184 # if S_ISSOCK (S_IFREG)
22190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22191 $EGREP "You lose" >/dev/null 2>&1; then
22192 ac_cv_header_stat_broken=yes
22194 ac_cv_header_stat_broken=no
22199 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22200 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
22201 if test $ac_cv_header_stat_broken = yes; then
22203 cat >>confdefs.h <<\_ACEOF
22204 #define STAT_MACROS_BROKEN 1
22210 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
22211 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
22212 if test "${ac_cv_sys_interpreter+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22219 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
22220 if test $? -ne 69; then
22221 ac_cv_sys_interpreter=yes
22223 ac_cv_sys_interpreter=no
22227 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
22228 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
22229 interpval=$ac_cv_sys_interpreter
22231 if test $ac_cv_sys_interpreter = yes; then
22232 cat >>confdefs.h <<\_ACEOF
22233 #define HAVE_HASH_BANG_EXEC 1
22238 if test "$ac_cv_func_lstat" = "no"; then
22239 echo "$as_me:$LINENO: checking for lstat" >&5
22240 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
22241 if test "${bash_cv_func_lstat+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 cat >conftest.$ac_ext <<_ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h. */
22251 #include <sys/types.h>
22252 #include <sys/stat.h>
22257 lstat(".",(struct stat *)0);
22262 rm -f conftest.$ac_objext conftest$ac_exeext
22263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22264 (eval $ac_link) 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
22271 { ac_try='test -z "$ac_c_werror_flag"
22272 || test ! -s conftest.err'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; } &&
22278 { ac_try='test -s conftest$ac_exeext'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; }; then
22284 bash_cv_func_lstat=yes
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22289 bash_cv_func_lstat=no
22291 rm -f conftest.err conftest.$ac_objext \
22292 conftest$ac_exeext conftest.$ac_ext
22294 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
22295 echo "${ECHO_T}$bash_cv_func_lstat" >&6
22296 if test $bash_cv_func_lstat = yes; then
22297 cat >>confdefs.h <<\_ACEOF
22298 #define HAVE_LSTAT 1
22306 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
22307 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
22308 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 if test "$cross_compiling" = yes; then
22312 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
22313 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
22314 bash_cv_func_ctype_nonascii=no
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22324 #ifdef HAVE_LOCALE_H
22325 #include <locale.h>
22338 #ifdef HAVE_SETLOCALE
22339 /* We take a shot here. If that locale is not known, try the
22340 system default. We try this one because '\342' (226) is
22341 known to be a printable character in that locale. */
22342 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
22343 if (deflocale == 0)
22344 deflocale = setlocale(LC_ALL, "");
22351 exit (r1 == 0 || r2 == 0);
22355 rm -f conftest$ac_exeext
22356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22357 (eval $ac_link) 2>&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 bash_cv_func_ctype_nonascii=yes
22368 echo "$as_me: program exited with status $ac_status" >&5
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 ( exit $ac_status )
22373 bash_cv_func_ctype_nonascii=no
22375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22379 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
22380 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
22381 if test $bash_cv_func_ctype_nonascii = yes; then
22382 cat >>confdefs.h <<\_ACEOF
22383 #define CTYPE_NON_ASCII 1
22388 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
22389 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
22390 if test "${bash_cv_dup2_broken+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22393 if test "$cross_compiling" = yes; then
22394 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
22395 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
22396 bash_cv_dup2_broken=no
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22405 #include <sys/types.h>
22410 fd1 = open("/dev/null", 2);
22411 if (fcntl(fd1, 2, 1) < 0)
22413 fd2 = dup2(fd1, 1);
22416 fl = fcntl(fd2, 1, 0);
22417 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
22422 rm -f conftest$ac_exeext
22423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22424 (eval $ac_link) 2>&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; }; then
22433 bash_cv_dup2_broken=yes
22435 echo "$as_me: program exited with status $ac_status" >&5
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ( exit $ac_status )
22440 bash_cv_dup2_broken=no
22442 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22447 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
22448 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
22449 if test $bash_cv_dup2_broken = yes; then
22450 cat >>confdefs.h <<\_ACEOF
22451 #define DUP2_BROKEN 1
22457 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
22458 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
22459 if test "${bash_cv_pgrp_pipe+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22462 if test "$cross_compiling" = yes; then
22463 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
22464 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
22465 bash_cv_pgrp_pipe=no
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22474 #ifdef HAVE_UNISTD_H
22475 # include <unistd.h>
22479 # ifdef GETPGRP_VOID
22480 # define getpgID() getpgrp()
22482 # define getpgID() getpgrp(0)
22483 # define setpgid(x,y) setpgrp(x,y)
22485 int pid1, pid2, fds[2];
22489 switch (pid1 = fork()) {
22493 setpgid(0, getpid());
22496 setpgid(pid1, pid1);
22498 sleep(2); /* let first child die */
22503 switch (pid2 = fork()) {
22508 ok = getpgID() == pid1;
22509 write(fds[1], &ok, 1);
22512 setpgid(pid2, pid1);
22515 if (read(fds[0], &ok, 1) != 1)
22523 rm -f conftest$ac_exeext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22525 (eval $ac_link) 2>&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 bash_cv_pgrp_pipe=no
22536 echo "$as_me: program exited with status $ac_status" >&5
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ( exit $ac_status )
22541 bash_cv_pgrp_pipe=yes
22543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22548 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
22549 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
22550 if test $bash_cv_pgrp_pipe = yes; then
22551 cat >>confdefs.h <<\_ACEOF
22552 #define PGRP_PIPE 1
22558 echo "$as_me:$LINENO: checking for type of signal functions" >&5
22559 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
22560 if test "${bash_cv_signal_vintage+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22564 cat >conftest.$ac_ext <<_ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 #include <signal.h>
22576 struct sigaction sa;
22577 sigemptyset(&ss); sigsuspend(&ss);
22578 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22579 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22585 rm -f conftest.$ac_objext conftest$ac_exeext
22586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22587 (eval $ac_link) 2>conftest.er1
22589 grep -v '^ *+' conftest.er1 >conftest.err
22591 cat conftest.err >&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } &&
22594 { ac_try='test -z "$ac_c_werror_flag"
22595 || test ! -s conftest.err'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; } &&
22601 { ac_try='test -s conftest$ac_exeext'
22602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603 (eval $ac_try) 2>&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); }; }; then
22607 bash_cv_signal_vintage=posix
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22613 cat >conftest.$ac_ext <<_ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h. */
22619 #include <signal.h>
22624 int mask = sigmask(SIGINT);
22625 sigsetmask(mask); sigblock(mask); sigpause(mask);
22631 rm -f conftest.$ac_objext conftest$ac_exeext
22632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22633 (eval $ac_link) 2>conftest.er1
22635 grep -v '^ *+' conftest.er1 >conftest.err
22637 cat conftest.err >&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } &&
22640 { ac_try='test -z "$ac_c_werror_flag"
22641 || test ! -s conftest.err'
22642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643 (eval $ac_try) 2>&5
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); }; } &&
22647 { ac_try='test -s conftest$ac_exeext'
22648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649 (eval $ac_try) 2>&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); }; }; then
22653 bash_cv_signal_vintage=4.2bsd
22655 echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22666 #include <signal.h>
22667 RETSIGTYPE foo() { }
22672 int mask = sigmask(SIGINT);
22673 sigset(SIGINT, foo); sigrelse(SIGINT);
22674 sighold(SIGINT); sigpause(SIGINT);
22680 rm -f conftest.$ac_objext conftest$ac_exeext
22681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22682 (eval $ac_link) 2>conftest.er1
22684 grep -v '^ *+' conftest.er1 >conftest.err
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } &&
22689 { ac_try='test -z "$ac_c_werror_flag"
22690 || test ! -s conftest.err'
22691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692 (eval $ac_try) 2>&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); }; } &&
22696 { ac_try='test -s conftest$ac_exeext'
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; }; then
22702 bash_cv_signal_vintage=svr3
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 bash_cv_signal_vintage=v7
22710 rm -f conftest.err conftest.$ac_objext \
22711 conftest$ac_exeext conftest.$ac_ext
22714 rm -f conftest.err conftest.$ac_objext \
22715 conftest$ac_exeext conftest.$ac_ext
22718 rm -f conftest.err conftest.$ac_objext \
22719 conftest$ac_exeext conftest.$ac_ext
22723 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22724 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22725 if test "$bash_cv_signal_vintage" = posix; then
22726 cat >>confdefs.h <<\_ACEOF
22727 #define HAVE_POSIX_SIGNALS 1
22730 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22731 cat >>confdefs.h <<\_ACEOF
22732 #define HAVE_BSD_SIGNALS 1
22735 elif test "$bash_cv_signal_vintage" = svr3; then
22736 cat >>confdefs.h <<\_ACEOF
22737 #define HAVE_USG_SIGHOLD 1
22743 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
22744 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
22745 if test "${bash_cv_sys_errlist+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22748 cat >conftest.$ac_ext <<_ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h. */
22758 extern char *sys_errlist[];
22759 extern int sys_nerr;
22760 char *msg = sys_errlist[sys_nerr - 1];
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22767 (eval $ac_link) 2>conftest.er1
22769 grep -v '^ *+' conftest.er1 >conftest.err
22771 cat conftest.err >&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } &&
22774 { ac_try='test -z "$ac_c_werror_flag"
22775 || test ! -s conftest.err'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest$ac_exeext'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; }; then
22787 bash_cv_sys_errlist=yes
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22792 bash_cv_sys_errlist=no
22794 rm -f conftest.err conftest.$ac_objext \
22795 conftest$ac_exeext conftest.$ac_ext
22797 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
22798 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
22799 if test $bash_cv_sys_errlist = yes; then
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_SYS_ERRLIST 1
22807 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
22808 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
22809 if test "${bash_cv_sys_siglist+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22812 if test "$cross_compiling" = yes; then
22813 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
22814 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
22815 bash_cv_sys_siglist=no
22817 cat >conftest.$ac_ext <<_ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22824 #include <sys/types.h>
22825 #include <signal.h>
22826 #ifdef HAVE_UNISTD_H
22827 #include <unistd.h>
22829 #ifndef SYS_SIGLIST_DECLARED
22830 extern char *sys_siglist[];
22834 char *msg = sys_siglist[2];
22838 rm -f conftest$ac_exeext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840 (eval $ac_link) 2>&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845 (eval $ac_try) 2>&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; }; then
22849 bash_cv_sys_siglist=yes
22851 echo "$as_me: program exited with status $ac_status" >&5
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 ( exit $ac_status )
22856 bash_cv_sys_siglist=no
22858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22862 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
22863 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
22864 if test $bash_cv_sys_siglist = yes; then
22865 cat >>confdefs.h <<\_ACEOF
22866 #define HAVE_SYS_SIGLIST 1
22871 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
22872 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
22873 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
22874 echo $ECHO_N "(cached) $ECHO_C" >&6
22876 cat >conftest.$ac_ext <<_ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h. */
22883 #include <sys/types.h>
22884 #include <signal.h>
22885 #ifdef HAVE_UNISTD_H
22886 #include <unistd.h>
22891 char *msg = _sys_siglist[2];
22896 rm -f conftest.$ac_objext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22898 (eval $ac_compile) 2>conftest.er1
22900 grep -v '^ *+' conftest.er1 >conftest.err
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } &&
22905 { ac_try='test -z "$ac_c_werror_flag"
22906 || test ! -s conftest.err'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; } &&
22912 { ac_try='test -s conftest.$ac_objext'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 bash_cv_decl_under_sys_siglist=yes
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 bash_cv_decl_under_sys_siglist=no
22925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22927 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
22928 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
22929 if test $bash_cv_decl_under_sys_siglist = yes; then
22930 cat >>confdefs.h <<\_ACEOF
22931 #define UNDER_SYS_SIGLIST_DECLARED 1
22937 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
22938 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
22939 if test "${bash_cv_under_sys_siglist+set}" = set; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22942 if test "$cross_compiling" = yes; then
22943 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
22944 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
22945 bash_cv_under_sys_siglist=no
22947 cat >conftest.$ac_ext <<_ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22954 #include <sys/types.h>
22955 #include <signal.h>
22956 #ifdef HAVE_UNISTD_H
22957 #include <unistd.h>
22959 #ifndef UNDER_SYS_SIGLIST_DECLARED
22960 extern char *_sys_siglist[];
22964 char *msg = (char *)_sys_siglist[2];
22968 rm -f conftest$ac_exeext
22969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22970 (eval $ac_link) 2>&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975 (eval $ac_try) 2>&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; }; then
22979 bash_cv_under_sys_siglist=yes
22981 echo "$as_me: program exited with status $ac_status" >&5
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22985 ( exit $ac_status )
22986 bash_cv_under_sys_siglist=no
22988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22992 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
22993 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
22994 if test $bash_cv_under_sys_siglist = yes; then
22995 cat >>confdefs.h <<\_ACEOF
22996 #define HAVE_UNDER_SYS_SIGLIST 1
23002 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
23003 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
23004 if test "${bash_cv_void_sighandler+set}" = set; then
23005 echo $ECHO_N "(cached) $ECHO_C" >&6
23007 cat >conftest.$ac_ext <<_ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013 #include <sys/types.h>
23014 #include <signal.h>
23021 void (*signal ()) ();
23030 rm -f conftest.$ac_objext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23032 (eval $ac_compile) 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
23039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest.$ac_objext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 bash_cv_void_sighandler=yes
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 bash_cv_void_sighandler=no
23059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23061 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
23062 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
23063 if test $bash_cv_void_sighandler = yes; then
23064 cat >>confdefs.h <<\_ACEOF
23065 #define VOID_SIGHANDLER 1
23072 echo "$as_me:$LINENO: checking for clock_t" >&5
23073 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
23074 if test "${bash_cv_type_clock_t+set}" = set; then
23075 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. */
23083 #include <sys/types.h>
23085 #include <stdlib.h>
23086 #include <stddef.h>
23088 #if HAVE_INTTYPES_H
23089 #include <inttypes.h>
23091 #include <sys/times.h>
23094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23095 $EGREP "clock_t" >/dev/null 2>&1; then
23096 bash_cv_type_clock_t=yes
23098 bash_cv_type_clock_t=no
23104 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
23105 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
23107 if test $bash_cv_type_clock_t = no; then
23108 cat >>confdefs.h <<_ACEOF
23109 #define clock_t long
23116 echo "$as_me:$LINENO: checking for sigset_t" >&5
23117 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
23118 if test "${bash_cv_type_sigset_t+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23127 #include <sys/types.h>
23129 #include <stdlib.h>
23130 #include <stddef.h>
23132 #if HAVE_INTTYPES_H
23133 #include <inttypes.h>
23135 #include <signal.h>
23138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23139 $EGREP "sigset_t" >/dev/null 2>&1; then
23140 bash_cv_type_sigset_t=yes
23142 bash_cv_type_sigset_t=no
23148 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
23149 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
23151 if test $bash_cv_type_sigset_t = no; then
23152 cat >>confdefs.h <<_ACEOF
23153 #define sigset_t int
23160 echo "$as_me:$LINENO: checking for quad_t" >&5
23161 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
23162 if test "${bash_cv_type_quad_t+set}" = set; then
23163 echo $ECHO_N "(cached) $ECHO_C" >&6
23165 cat >conftest.$ac_ext <<_ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23171 #include <sys/types.h>
23173 #include <stdlib.h>
23174 #include <stddef.h>
23176 #if HAVE_INTTYPES_H
23177 #include <inttypes.h>
23182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23183 $EGREP "quad_t" >/dev/null 2>&1; then
23184 bash_cv_type_quad_t=yes
23186 bash_cv_type_quad_t=no
23192 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
23193 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
23194 if test $bash_cv_type_quad_t = yes; then
23195 cat >>confdefs.h <<\_ACEOF
23196 #define HAVE_QUAD_T 1
23200 if test $bash_cv_type_quad_t = no; then
23201 cat >>confdefs.h <<_ACEOF
23202 #define quad_t long
23209 echo "$as_me:$LINENO: checking for intmax_t" >&5
23210 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23211 if test "${bash_cv_type_intmax_t+set}" = set; then
23212 echo $ECHO_N "(cached) $ECHO_C" >&6
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 #include <sys/types.h>
23222 #include <stdlib.h>
23223 #include <stddef.h>
23225 #if HAVE_INTTYPES_H
23226 #include <inttypes.h>
23231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23232 $EGREP "intmax_t" >/dev/null 2>&1; then
23233 bash_cv_type_intmax_t=yes
23235 bash_cv_type_intmax_t=no
23241 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
23242 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
23244 if test $bash_cv_type_intmax_t = no; then
23245 cat >>confdefs.h <<_ACEOF
23246 #define intmax_t $bash_cv_type_long_long
23253 echo "$as_me:$LINENO: checking for uintmax_t" >&5
23254 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
23255 if test "${bash_cv_type_uintmax_t+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 cat >conftest.$ac_ext <<_ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23264 #include <sys/types.h>
23266 #include <stdlib.h>
23267 #include <stddef.h>
23269 #if HAVE_INTTYPES_H
23270 #include <inttypes.h>
23275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23276 $EGREP "uintmax_t" >/dev/null 2>&1; then
23277 bash_cv_type_uintmax_t=yes
23279 bash_cv_type_uintmax_t=no
23285 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
23286 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
23288 if test $bash_cv_type_uintmax_t = no; then
23289 cat >>confdefs.h <<_ACEOF
23290 #define uintmax_t $bash_cv_type_unsigned_long_long
23295 if test "$ac_cv_header_sys_socket_h" = "yes"; then
23298 echo "$as_me:$LINENO: checking for socklen_t" >&5
23299 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23300 if test "${bash_cv_type_socklen_t+set}" = set; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23303 cat >conftest.$ac_ext <<_ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h. */
23309 #include <sys/types.h>
23311 #include <stdlib.h>
23312 #include <stddef.h>
23314 #if HAVE_INTTYPES_H
23315 #include <inttypes.h>
23317 #include <sys/socket.h>
23320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23321 $EGREP "socklen_t" >/dev/null 2>&1; then
23322 bash_cv_type_socklen_t=yes
23324 bash_cv_type_socklen_t=no
23330 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
23331 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
23332 if test $bash_cv_type_socklen_t = yes; then
23333 cat >>confdefs.h <<\_ACEOF
23334 #define HAVE_SOCKLEN_T 1
23338 if test $bash_cv_type_socklen_t = no; then
23339 cat >>confdefs.h <<_ACEOF
23340 #define socklen_t int
23346 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
23347 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
23348 if test "${bash_cv_type_rlimit+set}" = set; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23351 cat >conftest.$ac_ext <<_ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 #include <sys/types.h>
23358 #include <sys/resource.h>
23367 rm -f conftest.$ac_objext
23368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23369 (eval $ac_compile) 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } &&
23376 { ac_try='test -z "$ac_c_werror_flag"
23377 || test ! -s conftest.err'
23378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379 (eval $ac_try) 2>&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; } &&
23383 { ac_try='test -s conftest.$ac_objext'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; }; then
23389 bash_cv_type_rlimit=rlim_t
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23395 if test "$cross_compiling" = yes; then
23396 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
23397 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
23398 bash_cv_type_rlimit=long
23400 cat >conftest.$ac_ext <<_ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h. */
23407 #include <sys/types.h>
23408 #include <sys/time.h>
23409 #include <sys/resource.h>
23414 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
23420 rm -f conftest$ac_exeext
23421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23422 (eval $ac_link) 2>&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427 (eval $ac_try) 2>&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 bash_cv_type_rlimit=quad_t
23433 echo "$as_me: program exited with status $ac_status" >&5
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ( exit $ac_status )
23438 bash_cv_type_rlimit=long
23440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23447 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
23448 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
23449 if test $bash_cv_type_rlimit = quad_t; then
23450 cat >>confdefs.h <<\_ACEOF
23451 #define RLIMTYPE quad_t
23454 elif test $bash_cv_type_rlimit = rlim_t; then
23455 cat >>confdefs.h <<\_ACEOF
23456 #define RLIMTYPE rlim_t
23463 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
23464 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
23465 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23468 cat >conftest.$ac_ext <<_ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h. */
23475 #include <sys/types.h>
23476 #include <termios.h>
23482 static struct termios ac_aggr;
23483 if (ac_aggr.c_line)
23489 rm -f conftest.$ac_objext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23491 (eval $ac_compile) 2>conftest.er1
23493 grep -v '^ *+' conftest.er1 >conftest.err
23495 cat conftest.err >&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } &&
23498 { ac_try='test -z "$ac_c_werror_flag"
23499 || test ! -s conftest.err'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; } &&
23505 { ac_try='test -s conftest.$ac_objext'
23506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507 (eval $ac_try) 2>&5
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); }; }; then
23511 ac_cv_member_struct_termios_c_line=yes
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23523 #include <sys/types.h>
23524 #include <termios.h>
23530 static struct termios ac_aggr;
23531 if (sizeof ac_aggr.c_line)
23537 rm -f conftest.$ac_objext
23538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23539 (eval $ac_compile) 2>conftest.er1
23541 grep -v '^ *+' conftest.er1 >conftest.err
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } &&
23546 { ac_try='test -z "$ac_c_werror_flag"
23547 || test ! -s conftest.err'
23548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549 (eval $ac_try) 2>&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }; } &&
23553 { ac_try='test -s conftest.$ac_objext'
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; }; then
23559 ac_cv_member_struct_termios_c_line=yes
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ac_cv_member_struct_termios_c_line=no
23566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
23571 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
23572 if test $ac_cv_member_struct_termios_c_line = yes; then
23573 cat >>confdefs.h <<\_ACEOF
23574 #define TERMIOS_LDISC 1
23581 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
23582 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
23583 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
23584 echo $ECHO_N "(cached) $ECHO_C" >&6
23586 cat >conftest.$ac_ext <<_ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23593 #include <sys/types.h>
23594 #include <termio.h>
23600 static struct termio ac_aggr;
23601 if (ac_aggr.c_line)
23607 rm -f conftest.$ac_objext
23608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23609 (eval $ac_compile) 2>conftest.er1
23611 grep -v '^ *+' conftest.er1 >conftest.err
23613 cat conftest.err >&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } &&
23616 { ac_try='test -z "$ac_c_werror_flag"
23617 || test ! -s conftest.err'
23618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619 (eval $ac_try) 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; } &&
23623 { ac_try='test -s conftest.$ac_objext'
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 ac_cv_member_struct_termio_c_line=yes
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 cat >conftest.$ac_ext <<_ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23641 #include <sys/types.h>
23642 #include <termio.h>
23648 static struct termio ac_aggr;
23649 if (sizeof ac_aggr.c_line)
23655 rm -f conftest.$ac_objext
23656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23657 (eval $ac_compile) 2>conftest.er1
23659 grep -v '^ *+' conftest.er1 >conftest.err
23661 cat conftest.err >&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } &&
23664 { ac_try='test -z "$ac_c_werror_flag"
23665 || test ! -s conftest.err'
23666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23667 (eval $ac_try) 2>&5
23669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670 (exit $ac_status); }; } &&
23671 { ac_try='test -s conftest.$ac_objext'
23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }; }; then
23677 ac_cv_member_struct_termio_c_line=yes
23679 echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23682 ac_cv_member_struct_termio_c_line=no
23684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23688 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
23689 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
23690 if test $ac_cv_member_struct_termio_c_line = yes; then
23691 cat >>confdefs.h <<\_ACEOF
23692 #define TERMIO_LDISC 1
23699 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
23700 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
23701 if test "${bash_cv_dirent_has_dino+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23712 #include <sys/types.h>
23713 #ifdef HAVE_UNISTD_H
23714 # include <unistd.h>
23715 #endif /* HAVE_UNISTD_H */
23716 #if defined(HAVE_DIRENT_H)
23717 # include <dirent.h>
23719 # define dirent direct
23720 # ifdef HAVE_SYS_NDIR_H
23721 # include <sys/ndir.h>
23722 # endif /* SYSNDIR */
23723 # ifdef HAVE_SYS_DIR_H
23724 # include <sys/dir.h>
23725 # endif /* SYSDIR */
23726 # ifdef HAVE_NDIR_H
23729 #endif /* HAVE_DIRENT_H */
23735 struct dirent d; int z; z = d.d_ino;
23741 rm -f conftest.$ac_objext
23742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23743 (eval $ac_compile) 2>conftest.er1
23745 grep -v '^ *+' conftest.er1 >conftest.err
23747 cat conftest.err >&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); } &&
23750 { ac_try='test -z "$ac_c_werror_flag"
23751 || test ! -s conftest.err'
23752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23753 (eval $ac_try) 2>&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); }; } &&
23757 { ac_try='test -s conftest.$ac_objext'
23758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23759 (eval $ac_try) 2>&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); }; }; then
23763 bash_cv_dirent_has_dino=yes
23765 echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23768 bash_cv_dirent_has_dino=no
23770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23773 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
23774 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
23775 if test $bash_cv_dirent_has_dino = yes; then
23776 cat >>confdefs.h <<\_ACEOF
23777 #define HAVE_STRUCT_DIRENT_D_INO 1
23783 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
23784 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
23785 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23788 cat >conftest.$ac_ext <<_ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h. */
23796 #include <sys/types.h>
23797 #ifdef HAVE_UNISTD_H
23798 # include <unistd.h>
23799 #endif /* HAVE_UNISTD_H */
23800 #if defined(HAVE_DIRENT_H)
23801 # include <dirent.h>
23803 # define dirent direct
23804 # ifdef HAVE_SYS_NDIR_H
23805 # include <sys/ndir.h>
23806 # endif /* SYSNDIR */
23807 # ifdef HAVE_SYS_DIR_H
23808 # include <sys/dir.h>
23809 # endif /* SYSDIR */
23810 # ifdef HAVE_NDIR_H
23813 #endif /* HAVE_DIRENT_H */
23819 struct dirent d; int z; z = d.d_fileno;
23825 rm -f conftest.$ac_objext
23826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23827 (eval $ac_compile) 2>conftest.er1
23829 grep -v '^ *+' conftest.er1 >conftest.err
23831 cat conftest.err >&5
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); } &&
23834 { ac_try='test -z "$ac_c_werror_flag"
23835 || test ! -s conftest.err'
23836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837 (eval $ac_try) 2>&5
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); }; } &&
23841 { ac_try='test -s conftest.$ac_objext'
23842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843 (eval $ac_try) 2>&5
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); }; }; then
23847 bash_cv_dirent_has_d_fileno=yes
23849 echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23852 bash_cv_dirent_has_d_fileno=no
23854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23857 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
23858 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
23859 if test $bash_cv_dirent_has_d_fileno = yes; then
23860 cat >>confdefs.h <<\_ACEOF
23861 #define HAVE_STRUCT_DIRENT_D_FILENO 1
23867 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
23868 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
23869 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23880 #include <sys/types.h>
23881 #ifdef HAVE_UNISTD_H
23882 # include <unistd.h>
23883 #endif /* HAVE_UNISTD_H */
23884 #if defined(HAVE_DIRENT_H)
23885 # include <dirent.h>
23887 # define dirent direct
23888 # ifdef HAVE_SYS_NDIR_H
23889 # include <sys/ndir.h>
23890 # endif /* SYSNDIR */
23891 # ifdef HAVE_SYS_DIR_H
23892 # include <sys/dir.h>
23893 # endif /* SYSDIR */
23894 # ifdef HAVE_NDIR_H
23897 #endif /* HAVE_DIRENT_H */
23903 struct dirent d; int z; z = d.d_namlen;
23909 rm -f conftest.$ac_objext
23910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23911 (eval $ac_compile) 2>conftest.er1
23913 grep -v '^ *+' conftest.er1 >conftest.err
23915 cat conftest.err >&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } &&
23918 { ac_try='test -z "$ac_c_werror_flag"
23919 || test ! -s conftest.err'
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; } &&
23925 { ac_try='test -s conftest.$ac_objext'
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 bash_cv_dirent_has_d_namlen=yes
23933 echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23936 bash_cv_dirent_has_d_namlen=no
23938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23941 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
23942 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
23943 if test $bash_cv_dirent_has_d_namlen = yes; then
23944 cat >>confdefs.h <<\_ACEOF
23945 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
23950 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
23951 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
23952 if test "${bash_cv_struct_winsize_header+set}" = set; then
23953 echo $ECHO_N "(cached) $ECHO_C" >&6
23955 cat >conftest.$ac_ext <<_ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h. */
23961 #include <sys/types.h>
23962 #include <sys/ioctl.h>
23971 rm -f conftest.$ac_objext
23972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23973 (eval $ac_compile) 2>conftest.er1
23975 grep -v '^ *+' conftest.er1 >conftest.err
23977 cat conftest.err >&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } &&
23980 { ac_try='test -z "$ac_c_werror_flag"
23981 || test ! -s conftest.err'
23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; } &&
23987 { ac_try='test -s conftest.$ac_objext'
23988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989 (eval $ac_try) 2>&5
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; }; then
23993 bash_cv_struct_winsize_header=ioctl_h
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23998 cat >conftest.$ac_ext <<_ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h. */
24004 #include <sys/types.h>
24005 #include <termios.h>
24014 rm -f conftest.$ac_objext
24015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24016 (eval $ac_compile) 2>conftest.er1
24018 grep -v '^ *+' conftest.er1 >conftest.err
24020 cat conftest.err >&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); } &&
24023 { ac_try='test -z "$ac_c_werror_flag"
24024 || test ! -s conftest.err'
24025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026 (eval $ac_try) 2>&5
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); }; } &&
24030 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24036 bash_cv_struct_winsize_header=termios_h
24038 echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24041 bash_cv_struct_winsize_header=other
24043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24049 if test $bash_cv_struct_winsize_header = ioctl_h; then
24050 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
24051 echo "${ECHO_T}sys/ioctl.h" >&6
24052 cat >>confdefs.h <<\_ACEOF
24053 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
24056 elif test $bash_cv_struct_winsize_header = termios_h; then
24057 echo "$as_me:$LINENO: result: termios.h" >&5
24058 echo "${ECHO_T}termios.h" >&6
24059 cat >>confdefs.h <<\_ACEOF
24060 #define STRUCT_WINSIZE_IN_TERMIOS 1
24064 echo "$as_me:$LINENO: result: not found" >&5
24065 echo "${ECHO_T}not found" >&6
24068 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
24069 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
24070 if test "${bash_cv_struct_timeval+set}" = set; then
24071 echo $ECHO_N "(cached) $ECHO_C" >&6
24074 cat >conftest.$ac_ext <<_ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24080 #include <sys/time.h>
24083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24084 $EGREP "struct timeval" >/dev/null 2>&1; then
24085 bash_cv_struct_timeval=yes
24087 cat >conftest.$ac_ext <<_ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h. */
24096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24097 $EGREP "struct timeval" >/dev/null 2>&1; then
24098 bash_cv_struct_timeval=yes
24100 bash_cv_struct_timeval=no
24110 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
24111 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
24112 if test $bash_cv_struct_timeval = yes; then
24113 cat >>confdefs.h <<\_ACEOF
24114 #define HAVE_TIMEVAL 1
24119 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
24120 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
24121 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
24122 echo $ECHO_N "(cached) $ECHO_C" >&6
24124 cat >conftest.$ac_ext <<_ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130 $ac_includes_default
24134 static struct stat ac_aggr;
24135 if (ac_aggr.st_blocks)
24141 rm -f conftest.$ac_objext
24142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24143 (eval $ac_compile) 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
24150 { ac_try='test -z "$ac_c_werror_flag"
24151 || test ! -s conftest.err'
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; } &&
24157 { ac_try='test -s conftest.$ac_objext'
24158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159 (eval $ac_try) 2>&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); }; }; then
24163 ac_cv_member_struct_stat_st_blocks=yes
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24168 cat >conftest.$ac_ext <<_ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174 $ac_includes_default
24178 static struct stat ac_aggr;
24179 if (sizeof ac_aggr.st_blocks)
24185 rm -f conftest.$ac_objext
24186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24187 (eval $ac_compile) 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
24194 { ac_try='test -z "$ac_c_werror_flag"
24195 || test ! -s conftest.err'
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; } &&
24201 { ac_try='test -s conftest.$ac_objext'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
24207 ac_cv_member_struct_stat_st_blocks=yes
24209 echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24212 ac_cv_member_struct_stat_st_blocks=no
24214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
24219 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
24220 if test $ac_cv_member_struct_stat_st_blocks = yes; then
24222 cat >>confdefs.h <<_ACEOF
24223 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
24229 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24230 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24231 if test "${ac_cv_struct_tm+set}" = set; then
24232 echo $ECHO_N "(cached) $ECHO_C" >&6
24234 cat >conftest.$ac_ext <<_ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 #include <sys/types.h>
24246 struct tm *tp; tp->tm_sec;
24251 rm -f conftest.$ac_objext
24252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24253 (eval $ac_compile) 2>conftest.er1
24255 grep -v '^ *+' conftest.er1 >conftest.err
24257 cat conftest.err >&5
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); } &&
24260 { ac_try='test -z "$ac_c_werror_flag"
24261 || test ! -s conftest.err'
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; } &&
24267 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24273 ac_cv_struct_tm=time.h
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24278 ac_cv_struct_tm=sys/time.h
24280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24282 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24283 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24284 if test $ac_cv_struct_tm = sys/time.h; then
24286 cat >>confdefs.h <<\_ACEOF
24287 #define TM_IN_SYS_TIME 1
24292 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24293 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24294 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24295 echo $ECHO_N "(cached) $ECHO_C" >&6
24297 cat >conftest.$ac_ext <<_ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24303 #include <sys/types.h>
24304 #include <$ac_cv_struct_tm>
24310 static struct tm ac_aggr;
24311 if (ac_aggr.tm_zone)
24317 rm -f conftest.$ac_objext
24318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24319 (eval $ac_compile) 2>conftest.er1
24321 grep -v '^ *+' conftest.er1 >conftest.err
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } &&
24326 { ac_try='test -z "$ac_c_werror_flag"
24327 || test ! -s conftest.err'
24328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329 (eval $ac_try) 2>&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); }; } &&
24333 { ac_try='test -s conftest.$ac_objext'
24334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335 (eval $ac_try) 2>&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); }; }; then
24339 ac_cv_member_struct_tm_tm_zone=yes
24341 echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24344 cat >conftest.$ac_ext <<_ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 #include <sys/types.h>
24351 #include <$ac_cv_struct_tm>
24357 static struct tm ac_aggr;
24358 if (sizeof ac_aggr.tm_zone)
24364 rm -f conftest.$ac_objext
24365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24366 (eval $ac_compile) 2>conftest.er1
24368 grep -v '^ *+' conftest.er1 >conftest.err
24370 cat conftest.err >&5
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); } &&
24373 { ac_try='test -z "$ac_c_werror_flag"
24374 || test ! -s conftest.err'
24375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24376 (eval $ac_try) 2>&5
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); }; } &&
24380 { ac_try='test -s conftest.$ac_objext'
24381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382 (eval $ac_try) 2>&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); }; }; then
24386 ac_cv_member_struct_tm_tm_zone=yes
24388 echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24391 ac_cv_member_struct_tm_tm_zone=no
24393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24397 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24398 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24399 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24401 cat >>confdefs.h <<_ACEOF
24402 #define HAVE_STRUCT_TM_TM_ZONE 1
24408 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24410 cat >>confdefs.h <<\_ACEOF
24411 #define HAVE_TM_ZONE 1
24415 echo "$as_me:$LINENO: checking for tzname" >&5
24416 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24417 if test "${ac_cv_var_tzname+set}" = set; then
24418 echo $ECHO_N "(cached) $ECHO_C" >&6
24420 cat >conftest.$ac_ext <<_ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h. */
24427 #ifndef tzname /* For SGI. */
24428 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24441 (eval $ac_link) 2>conftest.er1
24443 grep -v '^ *+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } &&
24448 { ac_try='test -z "$ac_c_werror_flag"
24449 || test ! -s conftest.err'
24450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451 (eval $ac_try) 2>&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); }; } &&
24455 { ac_try='test -s conftest$ac_exeext'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; }; then
24461 ac_cv_var_tzname=yes
24463 echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24466 ac_cv_var_tzname=no
24468 rm -f conftest.err conftest.$ac_objext \
24469 conftest$ac_exeext conftest.$ac_ext
24471 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24472 echo "${ECHO_T}$ac_cv_var_tzname" >&6
24473 if test $ac_cv_var_tzname = yes; then
24475 cat >>confdefs.h <<\_ACEOF
24476 #define HAVE_TZNAME 1
24482 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
24483 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
24484 if test "${bash_cv_struct_timezone+set}" = set; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 cat >conftest.$ac_ext <<_ACEOF
24491 cat confdefs.h >>conftest.$ac_ext
24492 cat >>conftest.$ac_ext <<_ACEOF
24493 /* end confdefs.h. */
24494 #include <sys/time.h>
24497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24498 $EGREP "struct timezone" >/dev/null 2>&1; then
24499 bash_cv_struct_timezone=yes
24501 cat >conftest.$ac_ext <<_ACEOF
24504 cat confdefs.h >>conftest.$ac_ext
24505 cat >>conftest.$ac_ext <<_ACEOF
24506 /* end confdefs.h. */
24510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24511 $EGREP "struct timezone" >/dev/null 2>&1; then
24512 bash_cv_struct_timezone=yes
24514 bash_cv_struct_timezone=no
24524 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
24525 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
24526 if test $bash_cv_struct_timezone = yes; then
24527 cat >>confdefs.h <<\_ACEOF
24528 #define HAVE_STRUCT_TIMEZONE 1
24534 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
24535 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
24536 if test "${bash_cv_have_strsignal+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24539 cat >conftest.$ac_ext <<_ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 #include <sys/types.h>
24546 #include <signal.h>
24550 char *s = (char *)strsignal(2);
24555 rm -f conftest.$ac_objext conftest$ac_exeext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24557 (eval $ac_link) 2>conftest.er1
24559 grep -v '^ *+' conftest.er1 >conftest.err
24561 cat conftest.err >&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } &&
24564 { ac_try='test -z "$ac_c_werror_flag"
24565 || test ! -s conftest.err'
24566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567 (eval $ac_try) 2>&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; } &&
24571 { ac_try='test -s conftest$ac_exeext'
24572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573 (eval $ac_try) 2>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 bash_cv_have_strsignal=yes
24579 echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24582 bash_cv_have_strsignal=no
24584 rm -f conftest.err conftest.$ac_objext \
24585 conftest$ac_exeext conftest.$ac_ext
24588 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
24589 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
24590 if test $bash_cv_have_strsignal = yes; then
24591 cat >>confdefs.h <<\_ACEOF
24592 #define HAVE_STRSIGNAL 1
24597 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
24598 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
24599 if test "${bash_cv_opendir_not_robust+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 if test "$cross_compiling" = yes; then
24603 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
24604 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
24605 bash_cv_opendir_not_robust=no
24608 cat >conftest.$ac_ext <<_ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24616 #include <sys/types.h>
24618 #ifdef HAVE_UNISTD_H
24619 # include <unistd.h>
24620 #endif /* HAVE_UNISTD_H */
24621 #if defined(HAVE_DIRENT_H)
24622 # include <dirent.h>
24624 # define dirent direct
24625 # ifdef HAVE_SYS_NDIR_H
24626 # include <sys/ndir.h>
24627 # endif /* SYSNDIR */
24628 # ifdef HAVE_SYS_DIR_H
24629 # include <sys/dir.h>
24630 # endif /* SYSDIR */
24631 # ifdef HAVE_NDIR_H
24634 #endif /* HAVE_DIRENT_H */
24639 err = mkdir("/tmp/bash-aclocal", 0700);
24644 unlink("/tmp/bash-aclocal/not_a_directory");
24645 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
24646 write(fd, "\n", 1);
24648 dir = opendir("/tmp/bash-aclocal/not_a_directory");
24649 unlink("/tmp/bash-aclocal/not_a_directory");
24650 rmdir("/tmp/bash-aclocal");
24654 rm -f conftest$ac_exeext
24655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24656 (eval $ac_link) 2>&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24661 (eval $ac_try) 2>&5
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); }; }; then
24665 bash_cv_opendir_not_robust=yes
24667 echo "$as_me: program exited with status $ac_status" >&5
24668 echo "$as_me: failed program was:" >&5
24669 sed 's/^/| /' conftest.$ac_ext >&5
24671 ( exit $ac_status )
24672 bash_cv_opendir_not_robust=no
24674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24678 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
24679 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
24680 if test $bash_cv_opendir_not_robust = yes; then
24681 cat >>confdefs.h <<\_ACEOF
24682 #define OPENDIR_NOT_ROBUST 1
24687 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
24688 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
24689 if test "${bash_cv_ulimit_maxfds+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 if test "$cross_compiling" = yes; then
24693 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
24694 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
24695 bash_cv_ulimit_maxfds=no
24698 cat >conftest.$ac_ext <<_ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h. */
24707 long maxfds = ulimit(4, 0L);
24708 exit (maxfds == -1L);
24712 rm -f conftest$ac_exeext
24713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24714 (eval $ac_link) 2>&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24719 (eval $ac_try) 2>&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; }; then
24723 bash_cv_ulimit_maxfds=yes
24725 echo "$as_me: program exited with status $ac_status" >&5
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24729 ( exit $ac_status )
24730 bash_cv_ulimit_maxfds=no
24732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24736 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
24737 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
24738 if test $bash_cv_ulimit_maxfds = yes; then
24739 cat >>confdefs.h <<\_ACEOF
24740 #define ULIMIT_MAXFDS 1
24745 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
24746 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
24747 if test "${bash_cv_getenv_redef+set}" = set; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24750 if test "$cross_compiling" = yes; then
24751 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
24752 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
24753 bash_cv_getenv_redef=yes
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24763 #ifdef HAVE_UNISTD_H
24764 # include <unistd.h>
24773 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
24777 #endif /* !__linux__ && !__bsdi__ && !convex */
24784 /* The next allows this program to run, but does not allow bash to link
24785 when it redefines getenv. I'm not really interested in figuring out
24790 s = getenv("ABCDE");
24791 exit(s == 0); /* force optimizer to leave getenv in */
24795 rm -f conftest$ac_exeext
24796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24797 (eval $ac_link) 2>&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802 (eval $ac_try) 2>&5
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); }; }; then
24806 bash_cv_getenv_redef=yes
24808 echo "$as_me: program exited with status $ac_status" >&5
24809 echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24812 ( exit $ac_status )
24813 bash_cv_getenv_redef=no
24815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24819 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
24820 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
24821 if test $bash_cv_getenv_redef = yes; then
24822 cat >>confdefs.h <<\_ACEOF
24823 #define CAN_REDEFINE_GETENV 1
24828 if test "$ac_cv_func_getcwd" = "yes"; then
24829 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
24830 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
24831 if test "${bash_cv_getcwd_malloc+set}" = set; then
24832 echo $ECHO_N "(cached) $ECHO_C" >&6
24834 if test "$cross_compiling" = yes; then
24835 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
24836 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
24837 bash_cv_getcwd_malloc=no
24840 cat >conftest.$ac_ext <<_ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24848 #ifdef HAVE_UNISTD_H
24849 #include <unistd.h>
24855 xpwd = getcwd(0, 0);
24860 rm -f conftest$ac_exeext
24861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24862 (eval $ac_link) 2>&5
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24867 (eval $ac_try) 2>&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); }; }; then
24871 bash_cv_getcwd_malloc=yes
24873 echo "$as_me: program exited with status $ac_status" >&5
24874 echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.$ac_ext >&5
24877 ( exit $ac_status )
24878 bash_cv_getcwd_malloc=no
24880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24884 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
24885 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
24886 if test $bash_cv_getcwd_malloc = no; then
24887 cat >>confdefs.h <<\_ACEOF
24888 #define GETCWD_BROKEN 1
24892 "getcwd.$ac_objext" | \
24893 *" getcwd.$ac_objext" | \
24894 "getcwd.$ac_objext "* | \
24895 *" getcwd.$ac_objext "* ) ;;
24896 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
24903 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
24904 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
24905 if test "${bash_cv_func_sigsetjmp+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 if test "$cross_compiling" = yes; then
24909 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
24910 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
24911 bash_cv_func_sigsetjmp=missing
24914 cat >conftest.$ac_ext <<_ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24921 #ifdef HAVE_UNISTD_H
24922 #include <unistd.h>
24924 #include <sys/types.h>
24925 #include <signal.h>
24926 #include <setjmp.h>
24930 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
24935 sigset_t set, oset;
24940 sigemptyset(&oset);
24941 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
24942 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
24945 code = sigsetjmp(xx, 1);
24947 exit(0); /* could get sigmask and compare to oset here. */
24950 sigaddset(&set, SIGINT);
24951 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
24953 /* and siglongjmp */
24954 siglongjmp(xx, 10);
24959 rm -f conftest$ac_exeext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24961 (eval $ac_link) 2>&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966 (eval $ac_try) 2>&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); }; }; then
24970 bash_cv_func_sigsetjmp=present
24972 echo "$as_me: program exited with status $ac_status" >&5
24973 echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24976 ( exit $ac_status )
24977 bash_cv_func_sigsetjmp=missing
24979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24983 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
24984 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
24985 if test $bash_cv_func_sigsetjmp = present; then
24986 cat >>confdefs.h <<\_ACEOF
24987 #define HAVE_POSIX_SIGSETJMP 1
24993 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
24994 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
24995 if test "${bash_cv_func_strcoll_broken+set}" = set; then
24996 echo $ECHO_N "(cached) $ECHO_C" >&6
24998 if test "$cross_compiling" = yes; then
24999 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
25000 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
25001 bash_cv_func_strcoll_broken=no
25004 cat >conftest.$ac_ext <<_ACEOF
25007 cat confdefs.h >>conftest.$ac_ext
25008 cat >>conftest.$ac_ext <<_ACEOF
25009 /* end confdefs.h. */
25012 #if defined (HAVE_LOCALE_H)
25013 #include <locale.h>
25021 char *deflocale, *defcoll;
25023 #ifdef HAVE_SETLOCALE
25024 deflocale = setlocale(LC_ALL, "");
25025 defcoll = setlocale(LC_COLLATE, "");
25028 #ifdef HAVE_STRCOLL
25029 /* These two values are taken from tests/glob-test. */
25030 r1 = strcoll("abd", "aXd");
25034 r2 = strcmp("abd", "aXd");
25036 /* These two should both be greater than 0. It is permissible for
25037 a system to return different values, as long as the sign is the
25040 /* Exit with 1 (failure) if these two values are both > 0, since
25041 this tests whether strcoll(3) is broken with respect to strcmp(3)
25042 in the default locale. */
25043 exit (r1 > 0 && r2 > 0);
25047 rm -f conftest$ac_exeext
25048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25049 (eval $ac_link) 2>&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054 (eval $ac_try) 2>&5
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; }; then
25058 bash_cv_func_strcoll_broken=yes
25060 echo "$as_me: program exited with status $ac_status" >&5
25061 echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25064 ( exit $ac_status )
25065 bash_cv_func_strcoll_broken=no
25067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25071 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
25072 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
25073 if test $bash_cv_func_strcoll_broken = yes; then
25074 cat >>confdefs.h <<\_ACEOF
25075 #define STRCOLL_BROKEN 1
25082 if test "$ac_cv_func_putenv" = "yes"; then
25086 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
25087 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
25088 if test "${bash_cv_std_putenv+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25091 cat >conftest.$ac_ext <<_ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h. */
25099 #include <stdlib.h>
25100 #include <stddef.h>
25108 extern int putenv (char *);
25110 extern int putenv ();
25116 return (putenv == 0);
25121 rm -f conftest.$ac_objext conftest$ac_exeext
25122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25123 (eval $ac_link) 2>conftest.er1
25125 grep -v '^ *+' conftest.er1 >conftest.err
25127 cat conftest.err >&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } &&
25130 { ac_try='test -z "$ac_c_werror_flag"
25131 || test ! -s conftest.err'
25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133 (eval $ac_try) 2>&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; } &&
25137 { ac_try='test -s conftest$ac_exeext'
25138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139 (eval $ac_try) 2>&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); }; }; then
25143 bash_cv_std_putenv=yes
25145 echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25148 bash_cv_std_putenv=no
25151 rm -f conftest.err conftest.$ac_objext \
25152 conftest$ac_exeext conftest.$ac_ext
25154 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
25155 echo "${ECHO_T}$bash_cv_std_putenv" >&6
25156 if test $bash_cv_std_putenv = yes; then
25157 cat >>confdefs.h <<\_ACEOF
25158 #define HAVE_STD_PUTENV 1
25164 cat >>confdefs.h <<\_ACEOF
25165 #define HAVE_STD_PUTENV 1
25169 if test "$ac_cv_func_unsetenv" = "yes"; then
25173 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
25174 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
25175 if test "${bash_cv_std_unsetenv+set}" = set; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
25178 cat >conftest.$ac_ext <<_ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25186 #include <stdlib.h>
25187 #include <stddef.h>
25195 extern int unsetenv (const char *);
25197 extern int unsetenv ();
25203 return (unsetenv == 0);
25208 rm -f conftest.$ac_objext conftest$ac_exeext
25209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25210 (eval $ac_link) 2>conftest.er1
25212 grep -v '^ *+' conftest.er1 >conftest.err
25214 cat conftest.err >&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } &&
25217 { ac_try='test -z "$ac_c_werror_flag"
25218 || test ! -s conftest.err'
25219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220 (eval $ac_try) 2>&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); }; } &&
25224 { ac_try='test -s conftest$ac_exeext'
25225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226 (eval $ac_try) 2>&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); }; }; then
25230 bash_cv_std_unsetenv=yes
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 bash_cv_std_unsetenv=no
25238 rm -f conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
25241 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
25242 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
25243 if test $bash_cv_std_unsetenv = yes; then
25244 cat >>confdefs.h <<\_ACEOF
25245 #define HAVE_STD_UNSETENV 1
25251 cat >>confdefs.h <<\_ACEOF
25252 #define HAVE_STD_UNSETENV 1
25257 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
25258 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
25259 if test "${bash_cv_printf_a_format+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 if test "$cross_compiling" = yes; then
25263 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
25264 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
25265 bash_cv_printf_a_format=no
25268 cat >conftest.$ac_ext <<_ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h. */
25276 #include <string.h>
25284 sprintf(abuf, "%A", y);
25285 exit(strchr(abuf, 'P') == (char *)0);
25289 rm -f conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291 (eval $ac_link) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25300 bash_cv_printf_a_format=yes
25302 echo "$as_me: program exited with status $ac_status" >&5
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306 ( exit $ac_status )
25307 bash_cv_printf_a_format=no
25309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25313 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
25314 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
25315 if test $bash_cv_printf_a_format = yes; then
25316 cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_PRINTF_A_FORMAT 1
25325 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
25326 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
25327 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
25328 echo $ECHO_N "(cached) $ECHO_C" >&6
25330 if test "$cross_compiling" = yes; then
25331 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
25332 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
25333 bash_cv_must_reinstall_sighandlers=no
25336 cat >conftest.$ac_ext <<_ACEOF
25339 cat confdefs.h >>conftest.$ac_ext
25340 cat >>conftest.$ac_ext <<_ACEOF
25341 /* end confdefs.h. */
25343 #include <signal.h>
25344 #ifdef HAVE_UNISTD_H
25345 #include <unistd.h>
25348 typedef RETSIGTYPE sigfunc();
25352 #ifdef HAVE_POSIX_SIGNALS
25354 set_signal_handler(sig, handler)
25358 struct sigaction act, oact;
25359 act.sa_handler = handler;
25361 sigemptyset (&act.sa_mask);
25362 sigemptyset (&oact.sa_mask);
25363 sigaction (sig, &act, &oact);
25364 return (oact.sa_handler);
25367 #define set_signal_handler(s, h) signal(s, h)
25380 set_signal_handler(SIGINT, sigint);
25381 kill((int)getpid(), SIGINT);
25382 kill((int)getpid(), SIGINT);
25383 exit(nsigint != 2);
25387 rm -f conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389 (eval $ac_link) 2>&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394 (eval $ac_try) 2>&5
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; }; then
25398 bash_cv_must_reinstall_sighandlers=no
25400 echo "$as_me: program exited with status $ac_status" >&5
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25404 ( exit $ac_status )
25405 bash_cv_must_reinstall_sighandlers=yes
25407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25411 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
25412 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
25413 if test $bash_cv_must_reinstall_sighandlers = yes; then
25414 cat >>confdefs.h <<\_ACEOF
25415 #define MUST_REINSTALL_SIGHANDLERS 1
25421 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
25422 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
25423 if test "${bash_cv_job_control_missing+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25426 if test "$cross_compiling" = yes; then
25427 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
25428 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
25429 bash_cv_job_control_missing=missing
25432 cat >conftest.$ac_ext <<_ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25439 #include <sys/types.h>
25440 #ifdef HAVE_SYS_WAIT_H
25441 #include <sys/wait.h>
25443 #ifdef HAVE_UNISTD_H
25444 #include <unistd.h>
25446 #include <signal.h>
25448 /* Add more tests in here as appropriate. */
25452 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
25456 /* signals and tty control. */
25457 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
25461 /* process control */
25462 #if !defined (WNOHANG) || !defined (WUNTRACED)
25466 /* Posix systems have tcgetpgrp and waitpid. */
25467 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
25471 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
25475 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
25476 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
25483 rm -f conftest$ac_exeext
25484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25485 (eval $ac_link) 2>&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25490 (eval $ac_try) 2>&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); }; }; then
25494 bash_cv_job_control_missing=present
25496 echo "$as_me: program exited with status $ac_status" >&5
25497 echo "$as_me: failed program was:" >&5
25498 sed 's/^/| /' conftest.$ac_ext >&5
25500 ( exit $ac_status )
25501 bash_cv_job_control_missing=missing
25503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25507 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
25508 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
25509 if test $bash_cv_job_control_missing = missing; then
25510 cat >>confdefs.h <<\_ACEOF
25511 #define JOB_CONTROL_MISSING 1
25516 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
25517 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
25518 if test "${bash_cv_sys_named_pipes+set}" = set; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
25521 if test "$cross_compiling" = yes; then
25522 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
25523 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
25524 bash_cv_sys_named_pipes=missing
25527 cat >conftest.$ac_ext <<_ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h. */
25534 #include <sys/types.h>
25535 #include <sys/stat.h>
25536 #ifdef HAVE_UNISTD_H
25537 #include <unistd.h>
25540 /* Add more tests in here as appropriate. */
25545 #if defined (HAVE_MKFIFO)
25549 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
25556 err = mkdir("/tmp/bash-aclocal", 0700);
25561 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
25563 rmdir ("/tmp/bash-aclocal");
25567 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
25568 rmdir ("/tmp/bash-aclocal");
25572 rm -f conftest$ac_exeext
25573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25574 (eval $ac_link) 2>&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579 (eval $ac_try) 2>&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; }; then
25583 bash_cv_sys_named_pipes=present
25585 echo "$as_me: program exited with status $ac_status" >&5
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ( exit $ac_status )
25590 bash_cv_sys_named_pipes=missing
25592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25596 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
25597 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
25598 if test $bash_cv_sys_named_pipes = missing; then
25599 cat >>confdefs.h <<\_ACEOF
25600 #define NAMED_PIPES_MISSING 1
25606 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
25607 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
25608 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
25609 echo $ECHO_N "(cached) $ECHO_C" >&6
25611 cat >conftest.$ac_ext <<_ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h. */
25617 #include <sys/types.h>
25618 #include <termios.h>
25624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25625 $EGREP "yes" >/dev/null 2>&1; then
25626 ac_cv_sys_tiocgwinsz_in_termios_h=yes
25628 ac_cv_sys_tiocgwinsz_in_termios_h=no
25633 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
25634 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
25636 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
25637 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
25638 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
25639 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
25640 echo $ECHO_N "(cached) $ECHO_C" >&6
25642 cat >conftest.$ac_ext <<_ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h. */
25648 #include <sys/types.h>
25649 #include <sys/ioctl.h>
25655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25656 $EGREP "yes" >/dev/null 2>&1; then
25657 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
25659 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
25664 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
25665 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
25667 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
25669 cat >>confdefs.h <<\_ACEOF
25670 #define GWINSZ_IN_SYS_IOCTL 1
25676 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
25677 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
25678 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
25679 echo $ECHO_N "(cached) $ECHO_C" >&6
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 #include <sys/types.h>
25688 #include <sys/ioctl.h>
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699 (eval $ac_compile) 2>conftest.er1
25701 grep -v '^ *+' conftest.er1 >conftest.err
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } &&
25706 { ac_try='test -z "$ac_c_werror_flag"
25707 || test ! -s conftest.err'
25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709 (eval $ac_try) 2>&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); }; } &&
25713 { ac_try='test -s conftest.$ac_objext'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 bash_cv_tiocstat_in_ioctl=yes
25721 echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25724 bash_cv_tiocstat_in_ioctl=no
25726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25729 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
25730 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
25731 if test $bash_cv_tiocstat_in_ioctl = yes; then
25732 cat >>confdefs.h <<\_ACEOF
25733 #define TIOCSTAT_IN_SYS_IOCTL 1
25738 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
25739 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
25740 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
25741 echo $ECHO_N "(cached) $ECHO_C" >&6
25743 cat >conftest.$ac_ext <<_ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25749 #include <sys/types.h>
25750 #include <sys/ioctl.h>
25759 rm -f conftest.$ac_objext
25760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25761 (eval $ac_compile) 2>conftest.er1
25763 grep -v '^ *+' conftest.er1 >conftest.err
25765 cat conftest.err >&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } &&
25768 { ac_try='test -z "$ac_c_werror_flag"
25769 || test ! -s conftest.err'
25770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; } &&
25775 { ac_try='test -s conftest.$ac_objext'
25776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777 (eval $ac_try) 2>&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); }; }; then
25781 bash_cv_fionread_in_ioctl=yes
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25786 bash_cv_fionread_in_ioctl=no
25788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25791 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
25792 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
25793 if test $bash_cv_fionread_in_ioctl = yes; then
25794 cat >>confdefs.h <<\_ACEOF
25795 #define FIONREAD_IN_SYS_IOCTL 1
25802 echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
25803 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
25804 if test "${bash_cv_wcontinued_broken+set}" = set; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25807 if test "$cross_compiling" = yes; then
25808 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
25809 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
25810 bash_cv_wcontinued_broken=no
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25820 #include <sys/types.h>
25821 #include <sys/wait.h>
25822 #include <unistd.h>
25832 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
25833 if (x == -1 && errno == EINVAL)
25840 rm -f conftest$ac_exeext
25841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25842 (eval $ac_link) 2>&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; }; then
25851 bash_cv_wcontinued_broken=no
25853 echo "$as_me: program exited with status $ac_status" >&5
25854 echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25857 ( exit $ac_status )
25858 bash_cv_wcontinued_broken=yes
25860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25864 echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
25865 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
25866 if test $bash_cv_wcontinued_broken = yes; then
25867 cat >>confdefs.h <<\_ACEOF
25868 #define WCONTINUED_BROKEN 1
25874 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
25875 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
25876 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25879 cat >conftest.$ac_ext <<_ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 #include <sys/types.h>
25894 rm -f conftest.$ac_objext
25895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25896 (eval $ac_compile) 2>conftest.er1
25898 grep -v '^ *+' conftest.er1 >conftest.err
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } &&
25903 { ac_try='test -z "$ac_c_werror_flag"
25904 || test ! -s conftest.err'
25905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906 (eval $ac_try) 2>&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; } &&
25910 { ac_try='test -s conftest.$ac_objext'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; }; then
25916 bash_cv_speed_t_in_sys_types=yes
25918 echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 bash_cv_speed_t_in_sys_types=no
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
25927 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
25928 if test $bash_cv_speed_t_in_sys_types = yes; then
25929 cat >>confdefs.h <<\_ACEOF
25930 #define SPEED_T_IN_SYS_TYPES 1
25935 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
25936 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
25937 if test "${bash_cv_getpw_declared+set}" = set; then
25938 echo $ECHO_N "(cached) $ECHO_C" >&6
25940 cat >conftest.$ac_ext <<_ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h. */
25947 #include <sys/types.h>
25948 #ifdef HAVE_UNISTD_H
25949 # include <unistd.h>
25954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25955 $EGREP "getpwuid" >/dev/null 2>&1; then
25956 bash_cv_getpw_declared=yes
25958 bash_cv_getpw_declared=no
25964 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
25965 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
25966 if test $bash_cv_getpw_declared = yes; then
25967 cat >>confdefs.h <<\_ACEOF
25968 #define HAVE_GETPW_DECLS 1
25973 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
25974 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
25975 if test "${bash_cv_unusable_rtsigs+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25978 if test "$cross_compiling" = yes; then
25979 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
25980 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
25981 bash_cv_unusable_rtsigs=yes
25984 cat >conftest.$ac_ext <<_ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25991 #include <sys/types.h>
25992 #include <signal.h>
26000 int n_sigs = 2 * NSIG;
26002 int rtmin = SIGRTMIN;
26007 exit(rtmin < n_sigs);
26010 rm -f conftest$ac_exeext
26011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26012 (eval $ac_link) 2>&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 bash_cv_unusable_rtsigs=yes
26023 echo "$as_me: program exited with status $ac_status" >&5
26024 echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26027 ( exit $ac_status )
26028 bash_cv_unusable_rtsigs=no
26030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26034 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
26035 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
26036 if test $bash_cv_unusable_rtsigs = yes; then
26037 cat >>confdefs.h <<\_ACEOF
26038 #define UNUSABLE_RT_SIGNALS 1
26047 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
26048 SIGLIST_O=siglist.o
26056 hpux*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
26057 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
26058 if test "${bash_cv_kernel_rlimit+set}" = set; then
26059 echo $ECHO_N "(cached) $ECHO_C" >&6
26061 cat >conftest.$ac_ext <<_ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26068 #include <sys/types.h>
26069 #include <sys/resource.h>
26082 rm -f conftest.$ac_objext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26084 (eval $ac_compile) 2>conftest.er1
26086 grep -v '^ *+' conftest.er1 >conftest.err
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest.$ac_objext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 bash_cv_kernel_rlimit=no
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26109 cat >conftest.$ac_ext <<_ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26116 #include <sys/types.h>
26118 #include <sys/resource.h>
26132 rm -f conftest.$ac_objext
26133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26134 (eval $ac_compile) 2>conftest.er1
26136 grep -v '^ *+' conftest.er1 >conftest.err
26138 cat conftest.err >&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } &&
26141 { ac_try='test -z "$ac_c_werror_flag"
26142 || test ! -s conftest.err'
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; } &&
26148 { ac_try='test -s conftest.$ac_objext'
26149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26150 (eval $ac_try) 2>&5
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); }; }; then
26154 bash_cv_kernel_rlimit=yes
26156 echo "$as_me: failed program was:" >&5
26157 sed 's/^/| /' conftest.$ac_ext >&5
26159 bash_cv_kernel_rlimit=no
26161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26167 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
26168 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
26169 if test $bash_cv_kernel_rlimit = yes; then
26170 cat >>confdefs.h <<\_ACEOF
26171 #define RLIMIT_NEEDS_KERNEL 1
26178 if test "$opt_readline" = yes; then
26180 aix*) prefer_curses=yes ;;
26183 if test "X$bash_cv_termcap_lib" = "X"; then
26186 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26187 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26190 if test "${bash_cv_termcap_lib+set}" = set; then
26191 echo $ECHO_N "(cached) $ECHO_C" >&6
26193 echo "$as_me:$LINENO: checking for tgetent" >&5
26194 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
26195 if test "${ac_cv_func_tgetent+set}" = set; then
26196 echo $ECHO_N "(cached) $ECHO_C" >&6
26198 cat >conftest.$ac_ext <<_ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h. */
26204 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
26205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26206 #define tgetent innocuous_tgetent
26208 /* System header to define __stub macros and hopefully few prototypes,
26209 which can conflict with char tgetent (); below.
26210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26211 <limits.h> exists even on freestanding compilers. */
26214 # include <limits.h>
26216 # include <assert.h>
26221 /* Override any gcc2 internal prototype to avoid an error. */
26226 /* We use char because int might match the return type of a gcc2
26227 builtin and then its argument prototype would still apply. */
26229 /* The GNU C library defines this for functions which it implements
26230 to always fail with ENOSYS. Some functions are actually named
26231 something starting with __ and the normal name is an alias. */
26232 #if defined (__stub_tgetent) || defined (__stub___tgetent)
26235 char (*f) () = tgetent;
26244 return f != tgetent;
26249 rm -f conftest.$ac_objext conftest$ac_exeext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26251 (eval $ac_link) 2>conftest.er1
26253 grep -v '^ *+' conftest.er1 >conftest.err
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } &&
26258 { ac_try='test -z "$ac_c_werror_flag"
26259 || test ! -s conftest.err'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; } &&
26265 { ac_try='test -s conftest$ac_exeext'
26266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267 (eval $ac_try) 2>&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); }; }; then
26271 ac_cv_func_tgetent=yes
26273 echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26276 ac_cv_func_tgetent=no
26278 rm -f conftest.err conftest.$ac_objext \
26279 conftest$ac_exeext conftest.$ac_ext
26281 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
26282 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
26283 if test $ac_cv_func_tgetent = yes; then
26284 bash_cv_termcap_lib=libc
26286 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26287 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
26288 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26289 echo $ECHO_N "(cached) $ECHO_C" >&6
26291 ac_check_lib_save_LIBS=$LIBS
26292 LIBS="-ltermcap $LIBS"
26293 cat >conftest.$ac_ext <<_ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h. */
26300 /* Override any gcc2 internal prototype to avoid an error. */
26304 /* We use char because int might match the return type of a gcc2
26305 builtin and then its argument prototype would still apply. */
26315 rm -f conftest.$ac_objext conftest$ac_exeext
26316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26317 (eval $ac_link) 2>conftest.er1
26319 grep -v '^ *+' conftest.er1 >conftest.err
26321 cat conftest.err >&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); } &&
26324 { ac_try='test -z "$ac_c_werror_flag"
26325 || test ! -s conftest.err'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; } &&
26331 { ac_try='test -s conftest$ac_exeext'
26332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333 (eval $ac_try) 2>&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; }; then
26337 ac_cv_lib_termcap_tgetent=yes
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ac_cv_lib_termcap_tgetent=no
26344 rm -f conftest.err conftest.$ac_objext \
26345 conftest$ac_exeext conftest.$ac_ext
26346 LIBS=$ac_check_lib_save_LIBS
26348 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26349 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
26350 if test $ac_cv_lib_termcap_tgetent = yes; then
26351 bash_cv_termcap_lib=libtermcap
26353 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26354 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
26355 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26356 echo $ECHO_N "(cached) $ECHO_C" >&6
26358 ac_check_lib_save_LIBS=$LIBS
26359 LIBS="-ltinfo $LIBS"
26360 cat >conftest.$ac_ext <<_ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h. */
26367 /* Override any gcc2 internal prototype to avoid an error. */
26371 /* We use char because int might match the return type of a gcc2
26372 builtin and then its argument prototype would still apply. */
26382 rm -f conftest.$ac_objext conftest$ac_exeext
26383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26384 (eval $ac_link) 2>conftest.er1
26386 grep -v '^ *+' conftest.er1 >conftest.err
26388 cat conftest.err >&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); } &&
26391 { ac_try='test -z "$ac_c_werror_flag"
26392 || test ! -s conftest.err'
26393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394 (eval $ac_try) 2>&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); }; } &&
26398 { ac_try='test -s conftest$ac_exeext'
26399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400 (eval $ac_try) 2>&5
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); }; }; then
26404 ac_cv_lib_tinfo_tgetent=yes
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26409 ac_cv_lib_tinfo_tgetent=no
26411 rm -f conftest.err conftest.$ac_objext \
26412 conftest$ac_exeext conftest.$ac_ext
26413 LIBS=$ac_check_lib_save_LIBS
26415 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26416 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
26417 if test $ac_cv_lib_tinfo_tgetent = yes; then
26418 bash_cv_termcap_lib=libtinfo
26420 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
26421 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
26422 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
26423 echo $ECHO_N "(cached) $ECHO_C" >&6
26425 ac_check_lib_save_LIBS=$LIBS
26426 LIBS="-lcurses $LIBS"
26427 cat >conftest.$ac_ext <<_ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h. */
26434 /* Override any gcc2 internal prototype to avoid an error. */
26438 /* We use char because int might match the return type of a gcc2
26439 builtin and then its argument prototype would still apply. */
26449 rm -f conftest.$ac_objext conftest$ac_exeext
26450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26451 (eval $ac_link) 2>conftest.er1
26453 grep -v '^ *+' conftest.er1 >conftest.err
26455 cat conftest.err >&5
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); } &&
26458 { ac_try='test -z "$ac_c_werror_flag"
26459 || test ! -s conftest.err'
26460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461 (eval $ac_try) 2>&5
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; } &&
26465 { ac_try='test -s conftest$ac_exeext'
26466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467 (eval $ac_try) 2>&5
26469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470 (exit $ac_status); }; }; then
26471 ac_cv_lib_curses_tgetent=yes
26473 echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26476 ac_cv_lib_curses_tgetent=no
26478 rm -f conftest.err conftest.$ac_objext \
26479 conftest$ac_exeext conftest.$ac_ext
26480 LIBS=$ac_check_lib_save_LIBS
26482 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
26483 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
26484 if test $ac_cv_lib_curses_tgetent = yes; then
26485 bash_cv_termcap_lib=libcurses
26487 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
26488 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
26489 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
26490 echo $ECHO_N "(cached) $ECHO_C" >&6
26492 ac_check_lib_save_LIBS=$LIBS
26493 LIBS="-lncurses $LIBS"
26494 cat >conftest.$ac_ext <<_ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h. */
26501 /* Override any gcc2 internal prototype to avoid an error. */
26505 /* We use char because int might match the return type of a gcc2
26506 builtin and then its argument prototype would still apply. */
26516 rm -f conftest.$ac_objext conftest$ac_exeext
26517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26518 (eval $ac_link) 2>conftest.er1
26520 grep -v '^ *+' conftest.er1 >conftest.err
26522 cat conftest.err >&5
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } &&
26525 { ac_try='test -z "$ac_c_werror_flag"
26526 || test ! -s conftest.err'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; } &&
26532 { ac_try='test -s conftest$ac_exeext'
26533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534 (eval $ac_try) 2>&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); }; }; then
26538 ac_cv_lib_ncurses_tgetent=yes
26540 echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26543 ac_cv_lib_ncurses_tgetent=no
26545 rm -f conftest.err conftest.$ac_objext \
26546 conftest$ac_exeext conftest.$ac_ext
26547 LIBS=$ac_check_lib_save_LIBS
26549 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
26550 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
26551 if test $ac_cv_lib_ncurses_tgetent = yes; then
26552 bash_cv_termcap_lib=libncurses
26554 bash_cv_termcap_lib=gnutermcap
26567 if test "X$_bash_needmsg" = "Xyes"; then
26568 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26569 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26571 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
26572 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
26573 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
26574 LDFLAGS="$LDFLAGS -L./lib/termcap"
26575 TERMCAP_LIB="./lib/termcap/libtermcap.a"
26576 TERMCAP_DEP="./lib/termcap/libtermcap.a"
26577 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
26578 TERMCAP_LIB=-ltermcap
26580 elif test $bash_cv_termcap_lib = libtinfo; then
26581 TERMCAP_LIB=-ltinfo
26583 elif test $bash_cv_termcap_lib = libncurses; then
26584 TERMCAP_LIB=-lncurses
26586 elif test $bash_cv_termcap_lib = libc; then
26590 TERMCAP_LIB=-lcurses
26598 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
26599 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
26600 if test "${bash_cv_dev_fd+set}" = set; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26603 if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
26604 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
26606 if test -r /dev/fd/3; then
26607 bash_cv_dev_fd=standard
26609 bash_cv_dev_fd=absent
26612 elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
26613 bash_cv_dev_fd=whacky
26615 bash_cv_dev_fd=absent
26620 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
26621 echo "${ECHO_T}$bash_cv_dev_fd" >&6
26622 if test $bash_cv_dev_fd = "standard"; then
26623 cat >>confdefs.h <<\_ACEOF
26624 #define HAVE_DEV_FD 1
26627 cat >>confdefs.h <<\_ACEOF
26628 #define DEV_FD_PREFIX "/dev/fd/"
26631 elif test $bash_cv_dev_fd = "whacky"; then
26632 cat >>confdefs.h <<\_ACEOF
26633 #define HAVE_DEV_FD 1
26636 cat >>confdefs.h <<\_ACEOF
26637 #define DEV_FD_PREFIX "/proc/self/fd/"
26642 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
26643 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
26644 if test "${bash_cv_dev_stdin+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26647 if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
26648 bash_cv_dev_stdin=present
26649 elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
26650 bash_cv_dev_stdin=present
26652 bash_cv_dev_stdin=absent
26657 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
26658 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
26659 if test $bash_cv_dev_stdin = "present"; then
26660 cat >>confdefs.h <<\_ACEOF
26661 #define HAVE_DEV_STDIN 1
26666 echo "$as_me:$LINENO: checking for default mail directory" >&5
26667 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
26668 if test "${bash_cv_mail_dir+set}" = set; then
26669 echo $ECHO_N "(cached) $ECHO_C" >&6
26671 if test -d /var/mail; then
26672 bash_cv_mail_dir=/var/mail
26673 elif test -d /var/spool/mail; then
26674 bash_cv_mail_dir=/var/spool/mail
26675 elif test -d /usr/mail; then
26676 bash_cv_mail_dir=/usr/mail
26677 elif test -d /usr/spool/mail; then
26678 bash_cv_mail_dir=/usr/spool/mail
26680 bash_cv_mail_dir=unknown
26685 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
26686 echo "${ECHO_T}$bash_cv_mail_dir" >&6
26687 cat >>confdefs.h <<_ACEOF
26688 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
26693 if test "$bash_cv_job_control_missing" = missing; then
26697 if test "$opt_job_control" = yes; then
26698 cat >>confdefs.h <<\_ACEOF
26699 #define JOB_CONTROL 1
26713 case "${host_os}" in
26714 sysv4.2*) cat >>confdefs.h <<\_ACEOF
26718 cat >>confdefs.h <<\_ACEOF
26722 sysv4*) cat >>confdefs.h <<\_ACEOF
26726 sysv5*) cat >>confdefs.h <<\_ACEOF
26730 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
26731 hpux*) LOCAL_CFLAGS=-DHPUX ;;
26732 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
26733 isc*) LOCAL_CFLAGS=-Disc386 ;;
26734 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
26735 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
26736 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
26737 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
26738 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
26739 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
26740 solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
26741 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26742 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26743 case "`uname -r`" in
26744 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
26745 #define PGRP_PIPE 1
26749 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
26750 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
26751 powerux*) LOCAL_LIBS="-lgen" ;;
26752 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26753 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
26756 case "${host_os}-${CC}" in
26757 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
26758 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
26759 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
26762 case "${host_os}" in
26764 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
26765 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26767 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
26768 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
26771 case "$host_cpu" in
26772 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
26775 case "$host_cpu-$host_os" in
26776 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
26779 case "$host_cpu-$host_vendor-$host_os" in
26780 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
26781 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
26785 # Shared object configuration section. These values are generated by
26786 # ${srcdir}/support/shobj-conf
26788 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
26790 echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
26791 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
26792 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
26800 echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
26801 echo "${ECHO_T}$SHOBJ_STATUS" >&6
26804 # try to create a directory tree if the source is elsewhere
26805 # this should be packaged into a script accessible via ${srcdir}/support
26808 *) for d in doc tests support lib examples; do # dirs
26809 test -d $d || mkdir $d
26811 for ld in readline glob tilde malloc sh termcap; do # libdirs
26812 test -d lib/$ld || mkdir lib/$ld
26814 test -d examples/loadables || mkdir examples/loadables # loadable builtins
26815 test -d examples/loadables/perl || mkdir examples/loadables/perl
26820 case "$BUILD_DIR" in
26821 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
26848 #AC_SUBST(ALLOCA_SOURCE)
26849 #AC_SUBST(ALLOCA_OBJECT)
26851 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile pathnames.h"
26852 ac_config_commands="$ac_config_commands default"
26853 cat >confcache <<\_ACEOF
26854 # This file is a shell script that caches the results of configure
26855 # tests run on this system so they can be shared between configure
26856 # scripts and configure runs, see configure's option --config-cache.
26857 # It is not useful on other systems. If it contains results you don't
26858 # want to keep, you may remove or edit it.
26860 # config.status only pays attention to the cache file if you give it
26861 # the --recheck option to rerun configure.
26863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26865 # following values.
26869 # The following way of writing the cache mishandles newlines in values,
26870 # but we know of no workaround that is simple, portable, and efficient.
26871 # So, don't put newlines in cache variables' values.
26872 # Ultrix sh set writes to stderr and can't be redirected directly,
26873 # and sets the high bit in the cache file unless we assign to the vars.
26876 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26878 # `set' does not quote correctly, so add quotes (double-quote
26879 # substitution turns \\\\ into \\, and sed turns \\ into \).
26882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26885 # `set' quotes correctly as required by POSIX, so do not add quotes.
26887 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26896 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26899 if test -w $cache_file; then
26900 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26901 cat confcache >$cache_file
26903 echo "not updating unwritable cache $cache_file"
26908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26909 # Let make expand exec_prefix.
26910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26914 # trailing colons and then remove the whole line if VPATH becomes empty
26915 # (actually we leave an empty line to preserve line numbers).
26916 if test "x$srcdir" = x.; then
26917 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26918 s/:*\$(srcdir):*/:/;
26919 s/:*\${srcdir}:*/:/;
26921 s/^\([^=]*=[ ]*\):*/\1/;
26927 DEFS=-DHAVE_CONFIG_H
26931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26932 # 1. Remove the extension, and $U if already installed.
26933 ac_i=`echo "$ac_i" |
26934 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26936 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26937 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26939 LIBOBJS=$ac_libobjs
26941 LTLIBOBJS=$ac_ltlibobjs
26945 : ${CONFIG_STATUS=./config.status}
26946 ac_clean_files_save=$ac_clean_files
26947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26948 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26949 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26950 cat >$CONFIG_STATUS <<_ACEOF
26952 # Generated by $as_me.
26953 # Run this file to recreate the current configuration.
26954 # Compiler output produced by configure, useful for debugging
26955 # configure, is in config.log if it exists.
26958 ac_cs_recheck=false
26960 SHELL=\${CONFIG_SHELL-$SHELL}
26963 cat >>$CONFIG_STATUS <<\_ACEOF
26964 ## --------------------- ##
26965 ## M4sh Initialization. ##
26966 ## --------------------- ##
26968 # Be Bourne compatible
26969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26972 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26973 # is contrary to our usage. Disable this feature.
26974 alias -g '${1+"$@"}'='"$@"'
26975 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26978 DUALCASE=1; export DUALCASE # for MKS sh
26980 # Support unset when possible.
26981 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26988 # Work around bugs in pre-3.0 UWIN ksh.
26989 $as_unset ENV MAIL MAILPATH
26996 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26997 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26998 LC_TELEPHONE LC_TIME
27000 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27001 eval $as_var=C; export $as_var
27007 # Required to use basename.
27008 if expr a : '\(a\)' >/dev/null 2>&1; then
27014 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27015 as_basename=basename
27021 # Name of the executable.
27022 as_me=`$as_basename "$0" ||
27023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27024 X"$0" : 'X\(//\)$' \| \
27025 X"$0" : 'X\(/\)$' \| \
27026 . : '\(.\)' 2>/dev/null ||
27028 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27029 /^X\/\(\/\/\)$/{ s//\1/; q; }
27030 /^X\/\(\/\).*/{ s//\1/; q; }
27034 # PATH needs CR, and LINENO needs CR and PATH.
27035 # Avoid depending upon Character Ranges.
27036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27039 as_cr_digits='0123456789'
27040 as_cr_alnum=$as_cr_Letters$as_cr_digits
27042 # The user is always right.
27043 if test "${PATH_SEPARATOR+set}" != set; then
27044 echo "#! /bin/sh" >conf$$.sh
27045 echo "exit 0" >>conf$$.sh
27047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27056 as_lineno_1=$LINENO
27057 as_lineno_2=$LINENO
27058 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27059 test "x$as_lineno_1" != "x$as_lineno_2" &&
27060 test "x$as_lineno_3" = "x$as_lineno_2" || {
27061 # Find who we are. Look in the path if we contain no path at all
27064 *[\\/]* ) as_myself=$0 ;;
27065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27066 for as_dir in $PATH
27069 test -z "$as_dir" && as_dir=.
27070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27075 # We did not find ourselves, most probably we were run as `sh COMMAND'
27076 # in which case we are not to be found in the path.
27077 if test "x$as_myself" = x; then
27080 if test ! -f "$as_myself"; then
27081 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27082 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27083 { (exit 1); exit 1; }; }
27085 case $CONFIG_SHELL in
27087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27088 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27091 test -z "$as_dir" && as_dir=.
27092 for as_base in sh bash ksh sh5; do
27095 if ("$as_dir/$as_base" -c '
27096 as_lineno_1=$LINENO
27097 as_lineno_2=$LINENO
27098 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27099 test "x$as_lineno_1" != "x$as_lineno_2" &&
27100 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27101 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27102 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27103 CONFIG_SHELL=$as_dir/$as_base
27104 export CONFIG_SHELL
27105 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27114 # uniformly replaced by the line number. The first 'sed' inserts a
27115 # line-number line before each line; the second 'sed' does the real
27116 # work. The second script uses 'N' to pair each line-number line
27117 # with the numbered line, and appends trailing '-' during
27118 # substitution so that $LINENO is not a special case at line end.
27119 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27120 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27121 sed '=' <$as_myself |
27126 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27129 s,^['$as_cr_digits']*\n,,
27130 ' >$as_me.lineno &&
27131 chmod +x $as_me.lineno ||
27132 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27133 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27134 { (exit 1); exit 1; }; }
27136 # Don't try to exec as it changes $[0], causing all sort of problems
27137 # (the dirname of $[0] is not the place where we might find the
27138 # original and so on. Autoconf is especially sensible to this).
27140 # Exit status is that of the last command.
27145 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27146 *c*,-n*) ECHO_N= ECHO_C='
27148 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27149 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27152 if expr a : '\(a\)' >/dev/null 2>&1; then
27158 rm -f conf$$ conf$$.exe conf$$.file
27160 if ln -s conf$$.file conf$$ 2>/dev/null; then
27161 # We could just check for DJGPP; but this test a) works b) is more generic
27162 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27163 if test -f conf$$.exe; then
27164 # Don't use ln at all; we don't have any links
27169 elif ln conf$$.file conf$$ 2>/dev/null; then
27174 rm -f conf$$ conf$$.exe conf$$.file
27176 if mkdir -p . 2>/dev/null; then
27179 test -d ./-p && rmdir ./-p
27183 as_executable_p="test -f"
27185 # Sed expression to map a string onto a valid CPP name.
27186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27188 # Sed expression to map a string onto a valid variable name.
27189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27193 # We need space, tab and new line, in precisely that order.
27203 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27204 # report actual input values of CONFIG_FILES etc. instead of their
27205 # values after options handling. Logging --version etc. is OK.
27209 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27210 ## Running $as_me. ##
27215 This file was extended by bash $as_me 3.1-rc2, which was
27216 generated by GNU Autoconf 2.59. Invocation command line was
27218 CONFIG_FILES = $CONFIG_FILES
27219 CONFIG_HEADERS = $CONFIG_HEADERS
27220 CONFIG_LINKS = $CONFIG_LINKS
27221 CONFIG_COMMANDS = $CONFIG_COMMANDS
27225 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27229 # Files that config.status was made for.
27230 if test -n "$ac_config_files"; then
27231 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27234 if test -n "$ac_config_headers"; then
27235 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27238 if test -n "$ac_config_links"; then
27239 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27242 if test -n "$ac_config_commands"; then
27243 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27246 cat >>$CONFIG_STATUS <<\_ACEOF
27249 \`$as_me' instantiates files from templates according to the
27250 current configuration.
27252 Usage: $0 [OPTIONS] [FILE]...
27254 -h, --help print this help, then exit
27255 -V, --version print version number, then exit
27256 -q, --quiet do not print progress messages
27257 -d, --debug don't remove temporary files
27258 --recheck update $as_me by reconfiguring in the same conditions
27259 --file=FILE[:TEMPLATE]
27260 instantiate the configuration file FILE
27261 --header=FILE[:TEMPLATE]
27262 instantiate the configuration header FILE
27264 Configuration files:
27267 Configuration headers:
27270 Configuration commands:
27273 Report bugs to <bug-autoconf@gnu.org>."
27276 cat >>$CONFIG_STATUS <<_ACEOF
27278 bash config.status 3.1-rc2
27279 configured by $0, generated by GNU Autoconf 2.59,
27280 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27282 Copyright (C) 2003 Free Software Foundation, Inc.
27283 This config.status script is free software; the Free Software Foundation
27284 gives unlimited permission to copy, distribute and modify it."
27289 cat >>$CONFIG_STATUS <<\_ACEOF
27290 # If no file are specified by the user, then we need to provide default
27291 # value. By we need to know if files were specified by the user.
27297 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27298 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27306 *) # This is not an option, so the user has probably given explicit
27309 ac_need_defaults=false;;
27313 # Handling of the options.
27315 cat >>$CONFIG_STATUS <<\_ACEOF
27316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27318 --version | --vers* | -V )
27319 echo "$ac_cs_version"; exit 0 ;;
27321 # Conflict between --help and --header
27322 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27323 Try \`$0 --help' for more information." >&5
27324 echo "$as_me: error: ambiguous option: $1
27325 Try \`$0 --help' for more information." >&2;}
27326 { (exit 1); exit 1; }; };;
27327 --help | --hel | -h )
27328 echo "$ac_cs_usage"; exit 0 ;;
27329 --debug | --d* | -d )
27331 --file | --fil | --fi | --f )
27333 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27334 ac_need_defaults=false;;
27335 --header | --heade | --head | --hea )
27337 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27338 ac_need_defaults=false;;
27339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27340 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27343 # This is an error.
27344 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27345 Try \`$0 --help' for more information." >&5
27346 echo "$as_me: error: unrecognized option: $1
27347 Try \`$0 --help' for more information." >&2;}
27348 { (exit 1); exit 1; }; } ;;
27350 *) ac_config_targets="$ac_config_targets $1" ;;
27356 ac_configure_extra_args=
27358 if $ac_cs_silent; then
27360 ac_configure_extra_args="$ac_configure_extra_args --silent"
27364 cat >>$CONFIG_STATUS <<_ACEOF
27365 if \$ac_cs_recheck; then
27366 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27367 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27372 cat >>$CONFIG_STATUS <<_ACEOF
27374 # INIT-COMMANDS section.
27377 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27378 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
27380 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27381 # Capture the value of LINGUAS because we need it to compute CATALOGS.
27382 LINGUAS="${LINGUAS-%UNSET%}"
27389 cat >>$CONFIG_STATUS <<\_ACEOF
27390 for ac_config_target in $ac_config_targets
27392 case "$ac_config_target" in
27393 # Handling of arguments.
27394 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27395 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
27396 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
27397 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
27398 "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
27399 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
27400 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
27401 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
27402 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
27403 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27404 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
27405 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27406 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
27407 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
27408 "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
27409 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27410 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27411 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27412 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27413 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27414 { (exit 1); exit 1; }; };;
27418 # If the user did not use the arguments to specify the items to instantiate,
27419 # then the envvar interface is used. Set only those that are not.
27420 # We use the long form for the default assignment because of an extremely
27421 # bizarre bug on SunOS 4.1.3.
27422 if $ac_need_defaults; then
27423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27428 # Have a temporary directory for convenience. Make it in the build tree
27429 # simply because there is no reason to put it here, and in addition,
27430 # creating and moving files from /tmp can sometimes cause problems.
27431 # Create a temporary directory, and hook for its removal unless debugging.
27434 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27435 trap '{ (exit 1); exit 1; }' 1 2 13 15
27438 # Create a (secure) tmp directory for tmp files.
27441 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27442 test -n "$tmp" && test -d "$tmp"
27445 tmp=./confstat$$-$RANDOM
27446 (umask 077 && mkdir $tmp)
27449 echo "$me: cannot create a temporary directory in ." >&2
27450 { (exit 1); exit 1; }
27455 cat >>$CONFIG_STATUS <<_ACEOF
27458 # CONFIG_FILES section.
27461 # No need to generate the scripts if there are no CONFIG_FILES.
27462 # This happens for instance when ./config.status config.h
27463 if test -n "\$CONFIG_FILES"; then
27464 # Protect against being on the right side of a sed subst in config.status.
27465 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27466 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27467 s,@SHELL@,$SHELL,;t t
27468 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27469 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27470 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27471 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27472 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27473 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27474 s,@exec_prefix@,$exec_prefix,;t t
27475 s,@prefix@,$prefix,;t t
27476 s,@program_transform_name@,$program_transform_name,;t t
27477 s,@bindir@,$bindir,;t t
27478 s,@sbindir@,$sbindir,;t t
27479 s,@libexecdir@,$libexecdir,;t t
27480 s,@datadir@,$datadir,;t t
27481 s,@sysconfdir@,$sysconfdir,;t t
27482 s,@sharedstatedir@,$sharedstatedir,;t t
27483 s,@localstatedir@,$localstatedir,;t t
27484 s,@libdir@,$libdir,;t t
27485 s,@includedir@,$includedir,;t t
27486 s,@oldincludedir@,$oldincludedir,;t t
27487 s,@infodir@,$infodir,;t t
27488 s,@mandir@,$mandir,;t t
27489 s,@build_alias@,$build_alias,;t t
27490 s,@host_alias@,$host_alias,;t t
27491 s,@target_alias@,$target_alias,;t t
27492 s,@DEFS@,$DEFS,;t t
27493 s,@ECHO_C@,$ECHO_C,;t t
27494 s,@ECHO_N@,$ECHO_N,;t t
27495 s,@ECHO_T@,$ECHO_T,;t t
27496 s,@LIBS@,$LIBS,;t t
27497 s,@build@,$build,;t t
27498 s,@build_cpu@,$build_cpu,;t t
27499 s,@build_vendor@,$build_vendor,;t t
27500 s,@build_os@,$build_os,;t t
27501 s,@host@,$host,;t t
27502 s,@host_cpu@,$host_cpu,;t t
27503 s,@host_vendor@,$host_vendor,;t t
27504 s,@host_os@,$host_os,;t t
27505 s,@EMACS@,$EMACS,;t t
27506 s,@lispdir@,$lispdir,;t t
27507 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
27508 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
27509 s,@PURIFY@,$PURIFY,;t t
27510 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
27511 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
27512 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
27513 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
27514 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
27515 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
27516 s,@htmldir@,$htmldir,;t t
27517 s,@HELPDIR@,$HELPDIR,;t t
27518 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
27519 s,@HELPINSTALL@,$HELPINSTALL,;t t
27520 s,@HELPSTRINGS@,$HELPSTRINGS,;t t
27522 s,@CFLAGS@,$CFLAGS,;t t
27523 s,@LDFLAGS@,$LDFLAGS,;t t
27524 s,@CPPFLAGS@,$CPPFLAGS,;t t
27525 s,@ac_ct_CC@,$ac_ct_CC,;t t
27526 s,@EXEEXT@,$EXEEXT,;t t
27527 s,@OBJEXT@,$OBJEXT,;t t
27529 s,@EGREP@,$EGREP,;t t
27530 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
27531 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
27532 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
27533 s,@STATIC_LD@,$STATIC_LD,;t t
27534 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
27535 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
27536 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
27537 s,@RL_VERSION@,$RL_VERSION,;t t
27538 s,@RL_MAJOR@,$RL_MAJOR,;t t
27539 s,@RL_MINOR@,$RL_MINOR,;t t
27540 s,@READLINE_LIB@,$READLINE_LIB,;t t
27541 s,@READLINE_DEP@,$READLINE_DEP,;t t
27542 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
27543 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
27544 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
27545 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
27546 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
27547 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
27548 s,@TILDE_LIB@,$TILDE_LIB,;t t
27549 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27550 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27551 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27553 s,@RANLIB@,$RANLIB,;t t
27554 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27555 s,@YACC@,$YACC,;t t
27556 s,@SET_MAKE@,$SET_MAKE,;t t
27557 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
27558 s,@SIZE@,$SIZE,;t t
27559 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
27560 s,@USE_NLS@,$USE_NLS,;t t
27561 s,@MSGFMT@,$MSGFMT,;t t
27562 s,@GMSGFMT@,$GMSGFMT,;t t
27563 s,@XGETTEXT@,$XGETTEXT,;t t
27564 s,@MSGMERGE@,$MSGMERGE,;t t
27565 s,@ALLOCA@,$ALLOCA,;t t
27566 s,@GLIBC21@,$GLIBC21,;t t
27567 s,@LIBICONV@,$LIBICONV,;t t
27568 s,@LTLIBICONV@,$LTLIBICONV,;t t
27569 s,@INTLBISON@,$INTLBISON,;t t
27570 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
27571 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
27572 s,@CATOBJEXT@,$CATOBJEXT,;t t
27573 s,@DATADIRNAME@,$DATADIRNAME,;t t
27574 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
27575 s,@GENCAT@,$GENCAT,;t t
27576 s,@INTLOBJS@,$INTLOBJS,;t t
27577 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
27578 s,@INTLLIBS@,$INTLLIBS,;t t
27579 s,@LIBINTL@,$LIBINTL,;t t
27580 s,@LTLIBINTL@,$LTLIBINTL,;t t
27581 s,@POSUB@,$POSUB,;t t
27582 s,@LIBOBJS@,$LIBOBJS,;t t
27583 s,@INTL_DEP@,$INTL_DEP,;t t
27584 s,@INTL_INC@,$INTL_INC,;t t
27585 s,@LIBINTL_H@,$LIBINTL_H,;t t
27586 s,@SIGLIST_O@,$SIGLIST_O,;t t
27587 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
27588 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
27589 s,@JOBS_O@,$JOBS_O,;t t
27590 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
27591 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
27592 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
27593 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
27594 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
27595 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
27596 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
27597 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
27598 s,@incdir@,$incdir,;t t
27599 s,@BUILD_DIR@,$BUILD_DIR,;t t
27600 s,@ARFLAGS@,$ARFLAGS,;t t
27601 s,@BASHVERS@,$BASHVERS,;t t
27602 s,@RELSTATUS@,$RELSTATUS,;t t
27603 s,@DEBUG@,$DEBUG,;t t
27604 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
27605 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
27606 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
27607 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27608 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
27609 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27614 cat >>$CONFIG_STATUS <<\_ACEOF
27615 # Split the substitutions into bite-sized pieces for seds with
27616 # small command number limits, like on Digital OSF/1 and HP-UX.
27617 ac_max_sed_lines=48
27618 ac_sed_frag=1 # Number of current file.
27619 ac_beg=1 # First line for current file.
27620 ac_end=$ac_max_sed_lines # Line after last line for current file.
27623 while $ac_more_lines; do
27624 if test $ac_beg -gt 1; then
27625 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27627 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27629 if test ! -s $tmp/subs.frag; then
27630 ac_more_lines=false
27632 # The purpose of the label and of the branching condition is to
27633 # speed up the sed processing (if there are no `@' at all, there
27634 # is no need to browse any of the substitutions).
27635 # These are the two extra sed commands mentioned above.
27637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27638 if test -z "$ac_sed_cmds"; then
27639 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27641 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27643 ac_sed_frag=`expr $ac_sed_frag + 1`
27645 ac_end=`expr $ac_end + $ac_max_sed_lines`
27648 if test -z "$ac_sed_cmds"; then
27651 fi # test -n "$CONFIG_FILES"
27654 cat >>$CONFIG_STATUS <<\_ACEOF
27655 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27658 - | *:- | *:-:* ) # input from stdin
27660 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27662 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27664 * ) ac_file_in=$ac_file.in ;;
27667 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27668 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27670 X"$ac_file" : 'X\(//\)[^/]' \| \
27671 X"$ac_file" : 'X\(//\)$' \| \
27672 X"$ac_file" : 'X\(/\)' \| \
27673 . : '\(.\)' 2>/dev/null ||
27675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27677 /^X\(\/\/\)$/{ s//\1/; q; }
27678 /^X\(\/\).*/{ s//\1/; q; }
27680 { if $as_mkdir_p; then
27685 while test ! -d "$as_dir"; do
27686 as_dirs="$as_dir $as_dirs"
27687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27689 X"$as_dir" : 'X\(//\)[^/]' \| \
27690 X"$as_dir" : 'X\(//\)$' \| \
27691 X"$as_dir" : 'X\(/\)' \| \
27692 . : '\(.\)' 2>/dev/null ||
27694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27696 /^X\(\/\/\)$/{ s//\1/; q; }
27697 /^X\(\/\).*/{ s//\1/; q; }
27700 test ! -n "$as_dirs" || mkdir $as_dirs
27701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27703 { (exit 1); exit 1; }; }; }
27707 if test "$ac_dir" != .; then
27708 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27709 # A "../" for each directory in $ac_dir_suffix.
27710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27712 ac_dir_suffix= ac_top_builddir=
27716 .) # No --srcdir option. We are building in place.
27718 if test -z "$ac_top_builddir"; then
27721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27723 [\\/]* | ?:[\\/]* ) # Absolute path.
27724 ac_srcdir=$srcdir$ac_dir_suffix;
27725 ac_top_srcdir=$srcdir ;;
27726 *) # Relative path.
27727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27731 # Do not use `cd foo && pwd` to compute absolute paths, because
27732 # the directories may not exist.
27734 .) ac_abs_builddir="$ac_dir";;
27737 .) ac_abs_builddir=`pwd`;;
27738 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27739 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27742 case $ac_abs_builddir in
27743 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27745 case ${ac_top_builddir}. in
27746 .) ac_abs_top_builddir=$ac_abs_builddir;;
27747 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27748 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27751 case $ac_abs_builddir in
27752 .) ac_abs_srcdir=$ac_srcdir;;
27755 .) ac_abs_srcdir=$ac_abs_builddir;;
27756 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27757 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27760 case $ac_abs_builddir in
27761 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27763 case $ac_top_srcdir in
27764 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27765 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27766 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27772 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27773 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27776 if test x"$ac_file" != x-; then
27777 { echo "$as_me:$LINENO: creating $ac_file" >&5
27778 echo "$as_me: creating $ac_file" >&6;}
27781 # Let's still pretend it is `configure' which instantiates (i.e., don't
27782 # use $as_me), people would be surprised to read:
27783 # /* config.h. Generated by config.status. */
27784 if test x"$ac_file" = x-; then
27787 configure_input="$ac_file. "
27789 configure_input=$configure_input"Generated from `echo $ac_file_in |
27790 sed 's,.*/,,'` by configure."
27792 # First look for the input files in the build tree, otherwise in the
27794 ac_file_inputs=`IFS=:
27795 for f in $ac_file_in; do
27797 -) echo $tmp/stdin ;;
27799 # Absolute (can't be DOS-style, as IFS=:)
27800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27801 echo "$as_me: error: cannot find input file: $f" >&2;}
27802 { (exit 1); exit 1; }; }
27805 if test -f "$f"; then
27808 elif test -f "$srcdir/$f"; then
27813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27814 echo "$as_me: error: cannot find input file: $f" >&2;}
27815 { (exit 1); exit 1; }; }
27818 done` || { (exit 1); exit 1; }
27820 cat >>$CONFIG_STATUS <<_ACEOF
27824 cat >>$CONFIG_STATUS <<\_ACEOF
27826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27827 s,@configure_input@,$configure_input,;t t
27828 s,@srcdir@,$ac_srcdir,;t t
27829 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27830 s,@top_srcdir@,$ac_top_srcdir,;t t
27831 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27832 s,@builddir@,$ac_builddir,;t t
27833 s,@abs_builddir@,$ac_abs_builddir,;t t
27834 s,@top_builddir@,$ac_top_builddir,;t t
27835 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27836 s,@INSTALL@,$ac_INSTALL,;t t
27837 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27839 if test x"$ac_file" != x-; then
27840 mv $tmp/out $ac_file
27848 cat >>$CONFIG_STATUS <<\_ACEOF
27851 # CONFIG_HEADER section.
27854 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27855 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27857 # ac_d sets the value in "#define NAME VALUE" lines.
27858 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27859 ac_dB='[ ].*$,\1#\2'
27862 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27863 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27864 ac_uB='$,\1#\2define\3'
27868 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27871 - | *:- | *:-:* ) # input from stdin
27873 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27875 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27877 * ) ac_file_in=$ac_file.in ;;
27880 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27881 echo "$as_me: creating $ac_file" >&6;}
27883 # First look for the input files in the build tree, otherwise in the
27885 ac_file_inputs=`IFS=:
27886 for f in $ac_file_in; do
27888 -) echo $tmp/stdin ;;
27890 # Absolute (can't be DOS-style, as IFS=:)
27891 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27892 echo "$as_me: error: cannot find input file: $f" >&2;}
27893 { (exit 1); exit 1; }; }
27894 # Do quote $f, to prevent DOS paths from being IFS'd.
27897 if test -f "$f"; then
27900 elif test -f "$srcdir/$f"; then
27905 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27906 echo "$as_me: error: cannot find input file: $f" >&2;}
27907 { (exit 1); exit 1; }; }
27910 done` || { (exit 1); exit 1; }
27911 # Remove the trailing spaces.
27912 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27916 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27917 # `conftest.undefs', that substitutes the proper values into
27918 # config.h.in to produce config.h. The first handles `#define'
27919 # templates, and the second `#undef' templates.
27920 # And first: Protect against being on the right side of a sed subst in
27921 # config.status. Protect against being in an unquoted here document
27922 # in config.status.
27923 rm -f conftest.defines conftest.undefs
27924 # Using a here document instead of a string reduces the quoting nightmare.
27925 # Putting comments in sed scripts is not portable.
27927 # `end' is used to avoid that the second main sed command (meant for
27928 # 0-ary CPP macros) applies to n-ary macro definitions.
27929 # See the Autoconf documentation for `clear'.
27930 cat >confdef2sed.sed <<\_ACEOF
27935 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27937 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27940 # If some macros were called several times there might be several times
27941 # the same #defines, which is useless. Nevertheless, we may not want to
27942 # sort them, since we want the *last* AC-DEFINE to be honored.
27943 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27944 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27945 rm -f confdef2sed.sed
27947 # This sed command replaces #undef with comments. This is necessary, for
27948 # example, in the case of _POSIX_SOURCE, which is predefined and required
27949 # on some systems where configure will not decide to define it.
27950 cat >>conftest.undefs <<\_ACEOF
27951 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27954 # Break up conftest.defines because some shells have a limit on the size
27955 # of here documents, and old seds have small limits too (100 cmds).
27956 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27957 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27958 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27959 echo ' :' >>$CONFIG_STATUS
27960 rm -f conftest.tail
27961 while grep . conftest.defines >/dev/null
27963 # Write a limited-size here document to $tmp/defines.sed.
27964 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27965 # Speed up: don't consider the non `#define' lines.
27966 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27967 # Work around the forget-to-reset-the-flag bug.
27968 echo 't clr' >>$CONFIG_STATUS
27969 echo ': clr' >>$CONFIG_STATUS
27970 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27972 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27974 mv $tmp/out $tmp/in
27976 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27977 rm -f conftest.defines
27978 mv conftest.tail conftest.defines
27980 rm -f conftest.defines
27981 echo ' fi # grep' >>$CONFIG_STATUS
27982 echo >>$CONFIG_STATUS
27984 # Break up conftest.undefs because some shells have a limit on the size
27985 # of here documents, and old seds have small limits too (100 cmds).
27986 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27987 rm -f conftest.tail
27988 while grep . conftest.undefs >/dev/null
27990 # Write a limited-size here document to $tmp/undefs.sed.
27991 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27992 # Speed up: don't consider the non `#undef'
27993 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27994 # Work around the forget-to-reset-the-flag bug.
27995 echo 't clr' >>$CONFIG_STATUS
27996 echo ': clr' >>$CONFIG_STATUS
27997 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27999 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28001 mv $tmp/out $tmp/in
28003 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28004 rm -f conftest.undefs
28005 mv conftest.tail conftest.undefs
28007 rm -f conftest.undefs
28009 cat >>$CONFIG_STATUS <<\_ACEOF
28010 # Let's still pretend it is `configure' which instantiates (i.e., don't
28011 # use $as_me), people would be surprised to read:
28012 # /* config.h. Generated by config.status. */
28013 if test x"$ac_file" = x-; then
28014 echo "/* Generated by configure. */" >$tmp/config.h
28016 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28018 cat $tmp/in >>$tmp/config.h
28020 if test x"$ac_file" != x-; then
28021 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28022 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28023 echo "$as_me: $ac_file is unchanged" >&6;}
28025 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28027 X"$ac_file" : 'X\(//\)[^/]' \| \
28028 X"$ac_file" : 'X\(//\)$' \| \
28029 X"$ac_file" : 'X\(/\)' \| \
28030 . : '\(.\)' 2>/dev/null ||
28032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28034 /^X\(\/\/\)$/{ s//\1/; q; }
28035 /^X\(\/\).*/{ s//\1/; q; }
28037 { if $as_mkdir_p; then
28042 while test ! -d "$as_dir"; do
28043 as_dirs="$as_dir $as_dirs"
28044 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28046 X"$as_dir" : 'X\(//\)[^/]' \| \
28047 X"$as_dir" : 'X\(//\)$' \| \
28048 X"$as_dir" : 'X\(/\)' \| \
28049 . : '\(.\)' 2>/dev/null ||
28051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28053 /^X\(\/\/\)$/{ s//\1/; q; }
28054 /^X\(\/\).*/{ s//\1/; q; }
28057 test ! -n "$as_dirs" || mkdir $as_dirs
28058 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28060 { (exit 1); exit 1; }; }; }
28063 mv $tmp/config.h $ac_file
28067 rm -f $tmp/config.h
28071 cat >>$CONFIG_STATUS <<\_ACEOF
28074 # CONFIG_COMMANDS section.
28076 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28077 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28078 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28079 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28080 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28081 X"$ac_dest" : 'X\(//\)[^/]' \| \
28082 X"$ac_dest" : 'X\(//\)$' \| \
28083 X"$ac_dest" : 'X\(/\)' \| \
28084 . : '\(.\)' 2>/dev/null ||
28086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28088 /^X\(\/\/\)$/{ s//\1/; q; }
28089 /^X\(\/\).*/{ s//\1/; q; }
28091 { if $as_mkdir_p; then
28096 while test ! -d "$as_dir"; do
28097 as_dirs="$as_dir $as_dirs"
28098 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28100 X"$as_dir" : 'X\(//\)[^/]' \| \
28101 X"$as_dir" : 'X\(//\)$' \| \
28102 X"$as_dir" : 'X\(/\)' \| \
28103 . : '\(.\)' 2>/dev/null ||
28105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28107 /^X\(\/\/\)$/{ s//\1/; q; }
28108 /^X\(\/\).*/{ s//\1/; q; }
28111 test ! -n "$as_dirs" || mkdir $as_dirs
28112 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28113 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28114 { (exit 1); exit 1; }; }; }
28118 if test "$ac_dir" != .; then
28119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28120 # A "../" for each directory in $ac_dir_suffix.
28121 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28123 ac_dir_suffix= ac_top_builddir=
28127 .) # No --srcdir option. We are building in place.
28129 if test -z "$ac_top_builddir"; then
28132 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28134 [\\/]* | ?:[\\/]* ) # Absolute path.
28135 ac_srcdir=$srcdir$ac_dir_suffix;
28136 ac_top_srcdir=$srcdir ;;
28137 *) # Relative path.
28138 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28139 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28142 # Do not use `cd foo && pwd` to compute absolute paths, because
28143 # the directories may not exist.
28145 .) ac_abs_builddir="$ac_dir";;
28148 .) ac_abs_builddir=`pwd`;;
28149 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28150 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28153 case $ac_abs_builddir in
28154 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28156 case ${ac_top_builddir}. in
28157 .) ac_abs_top_builddir=$ac_abs_builddir;;
28158 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28159 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28162 case $ac_abs_builddir in
28163 .) ac_abs_srcdir=$ac_srcdir;;
28166 .) ac_abs_srcdir=$ac_abs_builddir;;
28167 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28168 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28171 case $ac_abs_builddir in
28172 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28174 case $ac_top_srcdir in
28175 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28176 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28177 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28182 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28183 echo "$as_me: executing $ac_dest commands" >&6;}
28186 for ac_file in $CONFIG_FILES; do
28187 # Support "outfile[:infile[:infile...]]"
28189 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28191 # PO directories have a Makefile.in generated from Makefile.in.in.
28192 case "$ac_file" in */Makefile.in)
28193 # Adjust a relative srcdir.
28194 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28195 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28196 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28197 # In autoconf-2.13 it is called $ac_given_srcdir.
28198 # In autoconf-2.50 it is called $srcdir.
28199 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28200 case "$ac_given_srcdir" in
28201 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28202 /*) top_srcdir="$ac_given_srcdir" ;;
28203 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28205 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28206 rm -f "$ac_dir/POTFILES"
28207 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28208 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28209 POMAKEFILEDEPS="POTFILES.in"
28210 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
28211 # on $ac_dir but don't depend on user-specified configuration
28213 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28214 # The LINGUAS file contains the set of available languages.
28215 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28216 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28218 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28219 # Hide the ALL_LINGUAS assigment from automake.
28220 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28221 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28223 # The set of available languages was given in configure.in.
28224 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28226 case "$ac_given_srcdir" in
28228 *) srcdirpre='$(srcdir)/' ;;
28234 for lang in $ALL_LINGUAS; do
28235 POFILES="$POFILES $srcdirpre$lang.po"
28236 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28237 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28238 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28240 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28241 # environment variable.
28243 if test -n "$ALL_LINGUAS"; then
28244 for presentlang in $ALL_LINGUAS; do
28246 if test "%UNSET%" != "$LINGUAS"; then
28247 desiredlanguages="$LINGUAS"
28249 desiredlanguages="$ALL_LINGUAS"
28251 for desiredlang in $desiredlanguages; do
28252 # Use the presentlang catalog if desiredlang is
28253 # a. equal to presentlang, or
28254 # b. a variant of presentlang (because in this case,
28255 # presentlang can be used as a fallback for messages
28256 # which are not translated in the desiredlang catalog).
28257 case "$desiredlang" in
28258 "$presentlang"*) useit=yes;;
28261 if test $useit = yes; then
28262 INST_LINGUAS="$INST_LINGUAS $presentlang"
28267 if test -n "$INST_LINGUAS"; then
28268 for lang in $INST_LINGUAS; do
28269 CATALOGS="$CATALOGS $lang.gmo"
28272 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28273 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28274 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28275 if test -f "$f"; then
28277 *.orig | *.bak | *~) ;;
28278 *) cat "$f" >> "$ac_dir/Makefile" ;;
28287 # Makefile uses this timestamp file to record whether config.h is up to date.
28288 echo timestamp > stamp-h
28294 cat >>$CONFIG_STATUS <<\_ACEOF
28296 { (exit 0); exit 0; }
28298 chmod +x $CONFIG_STATUS
28299 ac_clean_files=$ac_clean_files_save
28302 # configure is writing to config.log, and then calls config.status.
28303 # config.status does its own redirection, appending to config.log.
28304 # Unfortunately, on DOS this fails, as config.log is still kept open
28305 # by configure, so config.status won't be able to write to it; its
28306 # output is simply discarded. So we exec the FD to /dev/null,
28307 # effectively closing config.log, so it can be properly (re)opened and
28308 # appended to by config.status. When coming back to configure, we
28309 # need to make the FD available again.
28310 if test "$no_create" != yes; then
28312 ac_config_status_args=
28313 test "$silent" = yes &&
28314 ac_config_status_args="$ac_config_status_args --quiet"
28316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28319 # would make configure fail if this is the last instruction.
28320 $ac_cs_success || { (exit 1); exit 1; }