2 # From configure.in for Bash 2.05b, version 2.144, from autoconf version 2.52.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52 for bash 2.05b.
6 # Report bugs to <bug-bash@gnu.org>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
13 # Avoid depending upon Character Ranges.
14 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17 as_cr_digits='0123456789'
18 as_cr_alnum=$as_cr_Letters$as_cr_digits
20 # Sed expression to map a string onto a valid variable name.
21 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23 # Sed expression to map a string onto a valid CPP name.
24 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
26 # Be Bourne compatible
27 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Name of the executable.
35 as_me=`echo "$0" |sed 's,.*[\\/],,'`
37 if expr a : '\(a\)' >/dev/null 2>&1; then
43 rm -f conf$$ conf$$.exe conf$$.file
45 if ln -s conf$$.file conf$$ 2>/dev/null; then
46 # We could just check for DJGPP; but this test a) works b) is more generic
47 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48 if test -f conf$$.exe; then
49 # Don't use ln at all; we don't have any links
54 elif ln conf$$.file conf$$ 2>/dev/null; then
59 rm -f conf$$ conf$$.exe conf$$.file
61 as_executable_p="test -f"
63 # Support unset when possible.
64 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
71 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
72 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
73 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
74 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
75 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
76 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
77 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
78 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
81 # We need space, tab and new line, in precisely that order.
87 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
90 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
91 # so uname gets run too.
92 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
99 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : ${ac_max_here_lines=38}
110 ac_unique_file="shell.h"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datadir='${prefix}/share'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${prefix}/info'
184 mandir='${prefix}/man'
186 # Identity of this package.
188 PACKAGE_TARNAME='bash'
189 PACKAGE_VERSION='2.05b'
190 PACKAGE_STRING='bash 2.05b'
191 PACKAGE_BUGREPORT='bug-bash@gnu.org'
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -disable-* | --disable-*)
236 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
237 # Reject names that are not valid shell variable names.
238 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
239 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
240 { (exit 1); exit 1; }; }
241 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
242 eval "enable_$ac_feature=no" ;;
244 -enable-* | --enable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
252 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
255 eval "enable_$ac_feature='$ac_optarg'" ;;
257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
259 | --exec | --exe | --ex)
260 ac_prev=exec_prefix ;;
261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
263 | --exec=* | --exe=* | --ex=*)
264 exec_prefix=$ac_optarg ;;
266 -gas | --gas | --ga | --g)
267 # Obsolete; use --with-gas.
270 -help | --help | --hel | --he | -h)
272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
273 ac_init_help=recursive ;;
274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
275 ac_init_help=short ;;
277 -host | --host | --hos | --ho)
278 ac_prev=host_alias ;;
279 -host=* | --host=* | --hos=* | --ho=*)
280 host_alias=$ac_optarg ;;
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev=includedir ;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
287 includedir=$ac_optarg ;;
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
292 infodir=$ac_optarg ;;
294 -libdir | --libdir | --libdi | --libd)
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev=libexecdir ;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
304 libexecdir=$ac_optarg ;;
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev=localstatedir ;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
313 localstatedir=$ac_optarg ;;
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
321 # Obsolete; use --without-fp.
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev=oldincludedir ;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
339 oldincludedir=$ac_optarg ;;
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev=program_prefix ;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
351 program_prefix=$ac_optarg ;;
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev=program_suffix ;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
358 program_suffix=$ac_optarg ;;
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev=program_transform_name ;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
375 program_transform_name=$ac_optarg ;;
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
385 sbindir=$ac_optarg ;;
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
391 ac_prev=sharedstatedir ;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
396 sharedstatedir=$ac_optarg ;;
398 -site | --site | --sit)
400 -site=* | --site=* | --sit=*)
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev=sysconfdir ;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
413 sysconfdir=$ac_optarg ;;
415 -target | --target | --targe | --targ | --tar | --ta | --t)
416 ac_prev=target_alias ;;
417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
418 target_alias=$ac_optarg ;;
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
423 -version | --version | --versio | --versi | --vers | -V)
427 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
428 # Reject names that are not valid shell variable names.
429 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
437 eval "with_$ac_package='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
441 # Reject names that are not valid shell variable names.
442 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
443 { echo "$as_me: error: invalid package name: $ac_package" >&2
444 { (exit 1); exit 1; }; }
445 ac_package=`echo $ac_package | sed 's/-/_/g'`
446 eval "with_$ac_package=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes=$ac_optarg ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries=$ac_optarg ;;
466 -*) { echo "$as_me: error: unrecognized option: $ac_option
467 Try \`$0 --help' for more information." >&2
468 { (exit 1); exit 1; }; }
472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
473 # Reject names that are not valid shell variable names.
474 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
475 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
476 { (exit 1); exit 1; }; }
477 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
478 eval "$ac_envvar='$ac_optarg'"
482 # FIXME: should be removed in autoconf 3.0.
483 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
485 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
486 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
492 if test -n "$ac_prev"; then
493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
494 { echo "$as_me: error: missing argument to $ac_option" >&2
495 { (exit 1); exit 1; }; }
498 # Be sure to have absolute paths.
499 for ac_var in exec_prefix prefix
501 eval ac_val=$`echo $ac_var`
503 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
504 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
505 { (exit 1); exit 1; }; };;
509 # Be sure to have absolute paths.
510 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
511 localstatedir libdir includedir oldincludedir infodir mandir
513 eval ac_val=$`echo $ac_var`
515 [\\/$]* | ?:[\\/]* ) ;;
516 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
517 { (exit 1); exit 1; }; };;
521 # There might be people who depend on the old broken behavior: `$host'
522 # used to hold the argument of --host etc.
527 # FIXME: should be removed in autoconf 3.0.
528 if test "x$host_alias" != x; then
529 if test "x$build_alias" = x; then
530 cross_compiling=maybe
531 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
532 If a cross compiler is detected then cross compile mode will be used." >&2
533 elif test "x$build_alias" != "x$host_alias"; then
539 test -n "$host_alias" && ac_tool_prefix=$host_alias-
541 test "$silent" = yes && exec 6>/dev/null
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
560 { (exit 1); exit 1; }; }
562 { echo "$as_me: error: cannot find sources in $srcdir" >&2
563 { (exit 1); exit 1; }; }
566 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
567 ac_env_build_alias_set=${build_alias+set}
568 ac_env_build_alias_value=$build_alias
569 ac_cv_env_build_alias_set=${build_alias+set}
570 ac_cv_env_build_alias_value=$build_alias
571 ac_env_host_alias_set=${host_alias+set}
572 ac_env_host_alias_value=$host_alias
573 ac_cv_env_host_alias_set=${host_alias+set}
574 ac_cv_env_host_alias_value=$host_alias
575 ac_env_target_alias_set=${target_alias+set}
576 ac_env_target_alias_value=$target_alias
577 ac_cv_env_target_alias_set=${target_alias+set}
578 ac_cv_env_target_alias_value=$target_alias
579 ac_env_CC_set=${CC+set}
581 ac_cv_env_CC_set=${CC+set}
582 ac_cv_env_CC_value=$CC
583 ac_env_CFLAGS_set=${CFLAGS+set}
584 ac_env_CFLAGS_value=$CFLAGS
585 ac_cv_env_CFLAGS_set=${CFLAGS+set}
586 ac_cv_env_CFLAGS_value=$CFLAGS
587 ac_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_env_LDFLAGS_value=$LDFLAGS
589 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
590 ac_cv_env_LDFLAGS_value=$LDFLAGS
591 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_env_CPPFLAGS_value=$CPPFLAGS
593 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
594 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
595 ac_env_CPP_set=${CPP+set}
596 ac_env_CPP_value=$CPP
597 ac_cv_env_CPP_set=${CPP+set}
598 ac_cv_env_CPP_value=$CPP
601 # Report the --help message.
603 if test "$ac_init_help" = "long"; then
604 # Omit some internal or obsolete options to make the list less imposing.
605 # This message is too long to be a string in the A/UX 3.1 sh.
607 \`configure' configures bash 2.05b to adapt to many kinds of systems.
609 Usage: $0 [OPTION]... [VAR=VALUE]...
611 To assign environment variables (e.g., CC, CFLAGS...), specify them as
612 VAR=VALUE. See below for descriptions of some of the useful variables.
614 Defaults for the options are specified in brackets.
617 -h, --help display this help and exit
618 --help=short display options specific to this package
619 --help=recursive display the short help of all the included packages
620 -V, --version display version information and exit
621 -q, --quiet, --silent do not print \`checking...' messages
622 --cache-file=FILE cache test results in FILE [disabled]
623 -C, --config-cache alias for \`--cache-file=config.cache'
624 -n, --no-create do not create output files
625 --srcdir=DIR find the sources in DIR [configure dir or \`..']
630 Installation directories:
631 --prefix=PREFIX install architecture-independent files in PREFIX
633 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
636 By default, \`make install' will install all the files in
637 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
638 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
639 for instance \`--prefix=\$HOME'.
641 For better control, use the options below.
643 Fine tuning of the installation directories:
644 --bindir=DIR user executables [EPREFIX/bin]
645 --sbindir=DIR system admin executables [EPREFIX/sbin]
646 --libexecdir=DIR program executables [EPREFIX/libexec]
647 --datadir=DIR read-only architecture-independent data [PREFIX/share]
648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
650 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
651 --libdir=DIR object code libraries [EPREFIX/lib]
652 --includedir=DIR C header files [PREFIX/include]
653 --oldincludedir=DIR C header files for non-gcc [/usr/include]
654 --infodir=DIR info documentation [PREFIX/info]
655 --mandir=DIR man documentation [PREFIX/man]
661 --build=BUILD configure for building on BUILD [guessed]
662 --host=HOST build programs to run on HOST [BUILD]
666 if test -n "$ac_init_help"; then
667 case $ac_init_help in
668 short | recursive ) echo "Configuration of bash 2.05b:";;
673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
675 --enable-minimal-config a minimal sh-like configuration
676 --enable-alias enable shell aliases
677 --enable-arith-for-command
678 enable arithmetic for command
679 --enable-array-variables
680 include shell array variables
681 --enable-bang-history turn on csh-style history substitution
682 --enable-brace-expansion
683 include brace expansion
684 --enable-command-timing enable the time reserved word and command timing
685 --enable-cond-command enable the conditional command
686 --enable-directory-stack
687 enable builtins pushd/popd/dirs
688 --enable-disabled-builtins
689 allow disabled builtins to still be invoked
690 --enable-dparen-arithmetic
691 include ((...)) command
692 --enable-extended-glob include ksh-style extended pattern matching
693 --enable-help-builtin include the help builtin
694 --enable-history turn on command history
695 --enable-job-control enable job control features
696 --enable-net-redirections
697 enable /dev/tcp/host/port redirection
698 --enable-process-substitution
699 enable process substitution
700 --enable-progcomp enable programmable completion and the complete
702 --enable-prompt-string-decoding
703 turn on escape character decoding in prompts
704 --enable-readline turn on command line editing
705 --enable-restricted enable a restricted shell
706 --enable-select include select command
707 --enable-separate-helpfiles
708 use external files for help builtin documentation
709 --enable-usg-echo-default
710 a synonym for --enable-xpg-echo-default
711 --enable-xpg-echo-default
712 make the echo builtin expand escape sequences by
714 --enable-mem-scramble scramble memory on calls to malloc and free
715 --enable-profiling allow profiling with gprof
716 --enable-static-link link bash statically, for use as a root shell
717 --disable-largefile omit support for large files
720 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
721 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
722 --with-afs if you are running AFS
723 --with-bash-malloc use the Bash version of malloc
724 --with-curses use the curses library instead of the termcap
726 --with-gnu-malloc synonym for --with-bash-malloc
727 --with-installed-readline
728 use a version of the readline library that is
730 --with-purecov configure to postprocess with pure coverage
731 --with-purify configure to postprocess with purify
733 Some influential environment variables:
734 CC C compiler command
735 CFLAGS C compiler flags
736 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
737 nonstandard directory <lib dir>
738 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
739 headers in a nonstandard directory <include dir>
742 Use these variables to override the choices made by `configure' or to help
743 it to find libraries and programs with nonstandard names/locations.
745 Report bugs to <bug-bash@gnu.org>.
749 if test "$ac_init_help" = "recursive"; then
750 # If there are subdirs, report their specific --help.
752 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
754 # A "../" for each directory in /$ac_subdir.
755 ac_dots=`echo $ac_subdir |
756 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
759 .) # No --srcdir option. We are building in place.
760 ac_sub_srcdir=$srcdir ;;
761 [\\/]* | ?:[\\/]* ) # Absolute path.
762 ac_sub_srcdir=$srcdir/$ac_subdir ;;
764 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
767 # Check for guested configure; otherwise get Cygnus style configure.
768 if test -f $ac_sub_srcdir/configure.gnu; then
770 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
771 elif test -f $ac_sub_srcdir/configure; then
773 $SHELL $ac_sub_srcdir/configure --help=recursive
774 elif test -f $ac_sub_srcdir/configure.ac ||
775 test -f $ac_sub_srcdir/configure.in; then
779 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
785 test -n "$ac_init_help" && exit 0
786 if $ac_init_version; then
789 generated by GNU Autoconf 2.52
791 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
792 Free Software Foundation, Inc.
793 This configure script is free software; the Free Software Foundation
794 gives unlimited permission to copy, distribute and modify it.
800 This file contains any messages produced by compilers while
801 running configure, to aid debugging if configure makes a mistake.
803 It was created by bash $as_me 2.05b, which was
804 generated by GNU Autoconf 2.52. Invocation command line was
815 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
816 uname -m = `(uname -m) 2>/dev/null || echo unknown`
817 uname -r = `(uname -r) 2>/dev/null || echo unknown`
818 uname -s = `(uname -s) 2>/dev/null || echo unknown`
819 uname -v = `(uname -v) 2>/dev/null || echo unknown`
821 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
822 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
824 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
825 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
826 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
827 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
828 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
829 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
830 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
844 # Keep a trace of the command line.
845 # Strip out --no-create and --no-recursion so they do not pile up.
846 # Also quote any args containing shell meta-characters.
852 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
853 | --no-cr | --no-c) ;;
854 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
855 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
856 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
857 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
858 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
860 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
863 # Get rid of the leading space.
866 # When interrupted or exit'd, cleanup temporary files, and complete
867 # config.log. We remove comments because anyway the quotes in there
868 # would cause problems or look ugly.
870 # Save into config.log some information that might help in debugging.
872 echo "## ----------------- ##" >&5
873 echo "## Cache variables. ##" >&5
874 echo "## ----------------- ##" >&5
876 # The following way of writing the cache mishandles newlines in values,
879 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
882 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
887 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
891 sed "/^$/d" confdefs.h >conftest.log
892 if test -s conftest.log; then
894 echo "## ------------ ##" >&5
895 echo "## confdefs.h. ##" >&5
896 echo "## ------------ ##" >&5
901 test "$ac_signal" != 0 &&
902 echo "$as_me: caught signal $ac_signal" >&5
903 echo "$as_me: exit $exit_status" >&5
904 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
907 for ac_signal in 1 2 13 15; do
908 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
913 rm -rf conftest* confdefs.h
914 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
917 # Let the site file select an alternate cache file if it wants to.
918 # Prefer explicitly selected file to automatically selected ones.
919 if test -z "$CONFIG_SITE"; then
920 if test "x$prefix" != xNONE; then
921 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
923 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
926 for ac_site_file in $CONFIG_SITE; do
927 if test -r "$ac_site_file"; then
928 { echo "$as_me:928: loading site script $ac_site_file" >&5
929 echo "$as_me: loading site script $ac_site_file" >&6;}
930 cat "$ac_site_file" >&5
935 if test -r "$cache_file"; then
936 # Some versions of bash will fail to source /dev/null (special
937 # files actually), so we avoid doing that.
938 if test -f "$cache_file"; then
939 { echo "$as_me:939: loading cache $cache_file" >&5
940 echo "$as_me: loading cache $cache_file" >&6;}
942 [\\/]* | ?:[\\/]* ) . $cache_file;;
947 { echo "$as_me:947: creating cache $cache_file" >&5
948 echo "$as_me: creating cache $cache_file" >&6;}
952 # Check that the precious variables saved in the cache have kept the same
954 ac_cache_corrupted=false
955 for ac_var in `(set) 2>&1 |
956 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
958 eval ac_new_set=\$ac_env_${ac_var}_set
959 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
960 eval ac_new_val="\$ac_env_${ac_var}_value"
961 case $ac_old_set,$ac_new_set in
963 { echo "$as_me:963: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
965 ac_cache_corrupted=: ;;
967 { echo "$as_me:967: error: \`$ac_var' was not set in the previous run" >&5
968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
969 ac_cache_corrupted=: ;;
972 if test "x$ac_old_val" != "x$ac_new_val"; then
973 { echo "$as_me:973: error: \`$ac_var' has changed since the previous run:" >&5
974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
975 { echo "$as_me:975: former value: $ac_old_val" >&5
976 echo "$as_me: former value: $ac_old_val" >&2;}
977 { echo "$as_me:977: current value: $ac_new_val" >&5
978 echo "$as_me: current value: $ac_new_val" >&2;}
982 # Pass precious variables to config.status. It doesn't matter if
983 # we pass some twice (in addition to the command line arguments).
984 if test "$ac_new_set" = set; then
986 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
987 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
988 ac_configure_args="$ac_configure_args '$ac_arg'"
990 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
995 if $ac_cache_corrupted; then
996 { echo "$as_me:996: error: changes in the environment can compromise the build" >&5
997 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
998 { { echo "$as_me:998: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
999 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1000 { (exit 1); exit 1; }; }
1004 ac_cpp='$CPP $CPPFLAGS'
1005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1009 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1010 *c*,-n*) ECHO_N= ECHO_C='
1012 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1013 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1015 echo "#! $SHELL" >conftest.sh
1016 echo "exit 0" >>conftest.sh
1017 chmod +x conftest.sh
1018 if { (echo "$as_me:1018: PATH=\".;.\"; conftest.sh") >&5
1019 (PATH=".;."; conftest.sh) 2>&5
1021 echo "$as_me:1021: \$? = $ac_status" >&5
1022 (exit $ac_status); }; then
1023 ac_path_separator=';'
1027 PATH_SEPARATOR="$ac_path_separator"
1031 for ac_dir in ./support $srcdir/./support; do
1032 if test -f $ac_dir/install-sh; then
1034 ac_install_sh="$ac_aux_dir/install-sh -c"
1036 elif test -f $ac_dir/install.sh; then
1038 ac_install_sh="$ac_aux_dir/install.sh -c"
1040 elif test -f $ac_dir/shtool; then
1042 ac_install_sh="$ac_aux_dir/shtool install -c"
1046 if test -z "$ac_aux_dir"; then
1047 { { echo "$as_me:1047: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1048 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1049 { (exit 1); exit 1; }; }
1051 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1052 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1053 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1055 ac_config_headers="$ac_config_headers config.h"
1060 case "$RELSTATUS" in
1061 alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1062 *) DEBUG= MALLOC_DEBUG= ;;
1065 # Make sure we can run config.sub.
1066 $ac_config_sub sun4 >/dev/null 2>&1 ||
1067 { { echo "$as_me:1067: error: cannot run $ac_config_sub" >&5
1068 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1069 { (exit 1); exit 1; }; }
1071 echo "$as_me:1071: checking build system type" >&5
1072 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1073 if test "${ac_cv_build+set}" = set; then
1074 echo $ECHO_N "(cached) $ECHO_C" >&6
1076 ac_cv_build_alias=$build_alias
1077 test -z "$ac_cv_build_alias" &&
1078 ac_cv_build_alias=`$ac_config_guess`
1079 test -z "$ac_cv_build_alias" &&
1080 { { echo "$as_me:1080: error: cannot guess build type; you must specify one" >&5
1081 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1082 { (exit 1); exit 1; }; }
1083 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1084 { { echo "$as_me:1084: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1085 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1086 { (exit 1); exit 1; }; }
1089 echo "$as_me:1089: result: $ac_cv_build" >&5
1090 echo "${ECHO_T}$ac_cv_build" >&6
1092 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1093 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1094 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096 echo "$as_me:1096: checking host system type" >&5
1097 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1098 if test "${ac_cv_host+set}" = set; then
1099 echo $ECHO_N "(cached) $ECHO_C" >&6
1101 ac_cv_host_alias=$host_alias
1102 test -z "$ac_cv_host_alias" &&
1103 ac_cv_host_alias=$ac_cv_build_alias
1104 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1105 { { echo "$as_me:1105: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1106 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1107 { (exit 1); exit 1; }; }
1110 echo "$as_me:1110: result: $ac_cv_host" >&5
1111 echo "${ECHO_T}$ac_cv_host" >&6
1113 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1114 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1115 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1122 opt_with_installed_readline=no
1126 case "${host_cpu}-${host_os}" in
1127 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1128 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1129 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1130 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1131 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
1132 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1133 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1134 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
1135 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
1136 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
1137 *-aix*) opt_bash_malloc=no ;; # AIX machines
1138 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
1139 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1140 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1141 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
1142 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1143 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2
1144 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1145 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1146 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
1147 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1148 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
1151 # memory scrambling on free()
1152 case "${host_os}" in
1153 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
1154 *) opt_memscramble=yes ;;
1157 # Check whether --with-afs or --without-afs was given.
1158 if test "${with_afs+set}" = set; then
1163 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1164 if test "${with_bash_malloc+set}" = set; then
1165 withval="$with_bash_malloc"
1166 opt_bash_malloc=$withval
1169 # Check whether --with-curses or --without-curses was given.
1170 if test "${with_curses+set}" = set; then
1171 withval="$with_curses"
1175 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1176 if test "${with_gnu_malloc+set}" = set; then
1177 withval="$with_gnu_malloc"
1178 opt_bash_malloc=$withval
1181 # Check whether --with-installed-readline or --without-installed-readline was given.
1182 if test "${with_installed_readline+set}" = set; then
1183 withval="$with_installed_readline"
1184 opt_with_installed_readline=$withval
1187 # Check whether --with-purecov or --without-purecov was given.
1188 if test "${with_purecov+set}" = set; then
1189 withval="$with_purecov"
1190 opt_purecov=$withval
1193 # Check whether --with-purify or --without-purify was given.
1194 if test "${with_purify+set}" = set; then
1195 withval="$with_purify"
1199 if test "$opt_bash_malloc" = yes; then
1200 MALLOC_TARGET=malloc
1203 MALLOC_LIB='-lmalloc'
1204 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1205 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1206 MALLOC_DEP='$(MALLOC_LIBRARY)'
1208 cat >>confdefs.h <<\EOF
1209 #define USING_BASH_MALLOC 1
1219 if test "$opt_purify" = yes; then
1221 cat >>confdefs.h <<\EOF
1222 #define DISABLE_MALLOC_WRAPPERS 1
1229 if test "$opt_purecov" = yes; then
1230 PURIFY="${PURIFY}purecov"
1233 if test "$opt_afs" = yes; then
1234 cat >>confdefs.h <<\EOF
1240 if test "$opt_curses" = yes; then
1244 opt_minimal_config=no
1250 opt_bang_history=yes
1253 opt_process_subst=yes
1254 opt_prompt_decoding=yes
1257 opt_array_variables=yes
1258 opt_dparen_arith=yes
1259 opt_extended_glob=yes
1260 opt_brace_expansion=yes
1261 opt_disabled_builtins=no
1262 opt_command_timing=yes
1264 opt_cond_command=yes
1265 opt_arith_for_command=yes
1268 opt_separate_help=no
1273 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1274 if test "${enable_minimal_config+set}" = set; then
1275 enableval="$enable_minimal_config"
1276 opt_minimal_config=$enableval
1279 if test $opt_minimal_config = yes; then
1280 opt_job_control=no opt_alias=no opt_readline=no
1281 opt_history=no opt_bang_history=no opt_dirstack=no
1282 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1283 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1284 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1285 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1286 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1289 # Check whether --enable-alias or --disable-alias was given.
1290 if test "${enable_alias+set}" = set; then
1291 enableval="$enable_alias"
1292 opt_alias=$enableval
1294 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1295 if test "${enable_arith_for_command+set}" = set; then
1296 enableval="$enable_arith_for_command"
1297 opt_arith_for_command=$enableval
1299 # Check whether --enable-array-variables or --disable-array-variables was given.
1300 if test "${enable_array_variables+set}" = set; then
1301 enableval="$enable_array_variables"
1302 opt_array_variables=$enableval
1304 # Check whether --enable-bang-history or --disable-bang-history was given.
1305 if test "${enable_bang_history+set}" = set; then
1306 enableval="$enable_bang_history"
1307 opt_bang_history=$enableval
1309 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1310 if test "${enable_brace_expansion+set}" = set; then
1311 enableval="$enable_brace_expansion"
1312 opt_brace_expansion=$enableval
1314 # Check whether --enable-command-timing or --disable-command-timing was given.
1315 if test "${enable_command_timing+set}" = set; then
1316 enableval="$enable_command_timing"
1317 opt_command_timing=$enableval
1319 # Check whether --enable-cond-command or --disable-cond-command was given.
1320 if test "${enable_cond_command+set}" = set; then
1321 enableval="$enable_cond_command"
1322 opt_cond_command=$enableval
1324 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1325 if test "${enable_directory_stack+set}" = set; then
1326 enableval="$enable_directory_stack"
1327 opt_dirstack=$enableval
1329 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1330 if test "${enable_disabled_builtins+set}" = set; then
1331 enableval="$enable_disabled_builtins"
1332 opt_disabled_builtins=$enableval
1334 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1335 if test "${enable_dparen_arithmetic+set}" = set; then
1336 enableval="$enable_dparen_arithmetic"
1337 opt_dparen_arith=$enableval
1339 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1340 if test "${enable_extended_glob+set}" = set; then
1341 enableval="$enable_extended_glob"
1342 opt_extended_glob=$enableval
1344 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1345 if test "${enable_help_builtin+set}" = set; then
1346 enableval="$enable_help_builtin"
1349 # Check whether --enable-history or --disable-history was given.
1350 if test "${enable_history+set}" = set; then
1351 enableval="$enable_history"
1352 opt_history=$enableval
1354 # Check whether --enable-job-control or --disable-job-control was given.
1355 if test "${enable_job_control+set}" = set; then
1356 enableval="$enable_job_control"
1357 opt_job_control=$enableval
1359 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1360 if test "${enable_net_redirections+set}" = set; then
1361 enableval="$enable_net_redirections"
1362 opt_net_redirs=$enableval
1364 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1365 if test "${enable_process_substitution+set}" = set; then
1366 enableval="$enable_process_substitution"
1367 opt_process_subst=$enableval
1369 # Check whether --enable-progcomp or --disable-progcomp was given.
1370 if test "${enable_progcomp+set}" = set; then
1371 enableval="$enable_progcomp"
1372 opt_progcomp=$enableval
1374 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1375 if test "${enable_prompt_string_decoding+set}" = set; then
1376 enableval="$enable_prompt_string_decoding"
1377 opt_prompt_decoding=$enableval
1379 # Check whether --enable-readline or --disable-readline was given.
1380 if test "${enable_readline+set}" = set; then
1381 enableval="$enable_readline"
1382 opt_readline=$enableval
1384 # Check whether --enable-restricted or --disable-restricted was given.
1385 if test "${enable_restricted+set}" = set; then
1386 enableval="$enable_restricted"
1387 opt_restricted=$enableval
1389 # Check whether --enable-select or --disable-select was given.
1390 if test "${enable_select+set}" = set; then
1391 enableval="$enable_select"
1392 opt_select=$enableval
1394 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1395 if test "${enable_separate_helpfiles+set}" = set; then
1396 enableval="$enable_separate_helpfiles"
1397 opt_separate_help=$enableval
1399 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1400 if test "${enable_usg_echo_default+set}" = set; then
1401 enableval="$enable_usg_echo_default"
1402 opt_xpg_echo=$enableval
1404 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1405 if test "${enable_xpg_echo_default+set}" = set; then
1406 enableval="$enable_xpg_echo_default"
1407 opt_xpg_echo=$enableval
1410 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1411 if test "${enable_mem_scramble+set}" = set; then
1412 enableval="$enable_mem_scramble"
1413 opt_memscramble=$enableval
1415 # Check whether --enable-profiling or --disable-profiling was given.
1416 if test "${enable_profiling+set}" = set; then
1417 enableval="$enable_profiling"
1418 opt_profiling=$enableval
1420 # Check whether --enable-static-link or --disable-static-link was given.
1421 if test "${enable_static_link+set}" = set; then
1422 enableval="$enable_static_link"
1423 opt_static_link=$enableval
1426 if test $opt_alias = yes; then
1427 cat >>confdefs.h <<\EOF
1432 if test $opt_dirstack = yes; then
1433 cat >>confdefs.h <<\EOF
1434 #define PUSHD_AND_POPD 1
1438 if test $opt_restricted = yes; then
1439 cat >>confdefs.h <<\EOF
1440 #define RESTRICTED_SHELL 1
1444 if test $opt_process_subst = yes; then
1445 cat >>confdefs.h <<\EOF
1446 #define PROCESS_SUBSTITUTION 1
1450 if test $opt_prompt_decoding = yes; then
1451 cat >>confdefs.h <<\EOF
1452 #define PROMPT_STRING_DECODE 1
1456 if test $opt_select = yes; then
1457 cat >>confdefs.h <<\EOF
1458 #define SELECT_COMMAND 1
1462 if test $opt_help = yes; then
1463 cat >>confdefs.h <<\EOF
1464 #define HELP_BUILTIN 1
1468 if test $opt_array_variables = yes; then
1469 cat >>confdefs.h <<\EOF
1470 #define ARRAY_VARS 1
1474 if test $opt_dparen_arith = yes; then
1475 cat >>confdefs.h <<\EOF
1476 #define DPAREN_ARITHMETIC 1
1480 if test $opt_brace_expansion = yes; then
1481 cat >>confdefs.h <<\EOF
1482 #define BRACE_EXPANSION 1
1486 if test $opt_disabled_builtins = yes; then
1487 cat >>confdefs.h <<\EOF
1488 #define DISABLED_BUILTINS 1
1492 if test $opt_command_timing = yes; then
1493 cat >>confdefs.h <<\EOF
1494 #define COMMAND_TIMING 1
1498 if test $opt_xpg_echo = yes ; then
1499 cat >>confdefs.h <<\EOF
1500 #define DEFAULT_ECHO_TO_XPG 1
1504 if test $opt_extended_glob = yes ; then
1505 cat >>confdefs.h <<\EOF
1506 #define EXTENDED_GLOB 1
1510 if test $opt_cond_command = yes ; then
1511 cat >>confdefs.h <<\EOF
1512 #define COND_COMMAND 1
1516 if test $opt_arith_for_command = yes; then
1517 cat >>confdefs.h <<\EOF
1518 #define ARITH_FOR_COMMAND 1
1522 if test $opt_net_redirs = yes; then
1523 cat >>confdefs.h <<\EOF
1524 #define NETWORK_REDIRECTIONS 1
1528 if test $opt_progcomp = yes; then
1529 cat >>confdefs.h <<\EOF
1530 #define PROGRAMMABLE_COMPLETION 1
1535 if test $opt_memscramble = yes; then
1536 cat >>confdefs.h <<\EOF
1537 #define MEMSCRAMBLE 1
1542 if test "$opt_minimal_config" = yes; then
1543 TESTSCRIPT=run-minimal
1548 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
1549 if test "$opt_separate_help" != no; then
1550 if test "$opt_separate_help" = "yes" ; then
1551 HELPDIR='${datadir}/bash'
1553 HELPDIR=$opt_separate_help
1555 HELPDIRDEFINE='-H ${HELPDIR}'
1556 HELPINSTALL='install-help'
1560 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
1564 ac_cpp='$CPP $CPPFLAGS'
1565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1568 if test -n "$ac_tool_prefix"; then
1569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1571 echo "$as_me:1571: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_CC+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 if test -n "$CC"; then
1577 ac_cv_prog_CC="$CC" # Let the user override the test.
1579 ac_save_IFS=$IFS; IFS=$ac_path_separator
1581 for ac_dir in $ac_dummy; do
1583 test -z "$ac_dir" && ac_dir=.
1584 $as_executable_p "$ac_dir/$ac_word" || continue
1585 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1586 echo "$as_me:1586: found $ac_dir/$ac_word" >&5
1593 if test -n "$CC"; then
1594 echo "$as_me:1594: result: $CC" >&5
1595 echo "${ECHO_T}$CC" >&6
1597 echo "$as_me:1597: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1602 if test -z "$ac_cv_prog_CC"; then
1604 # Extract the first word of "gcc", so it can be a program name with args.
1605 set dummy gcc; ac_word=$2
1606 echo "$as_me:1606: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$ac_ct_CC"; then
1612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614 ac_save_IFS=$IFS; IFS=$ac_path_separator
1616 for ac_dir in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir=.
1619 $as_executable_p "$ac_dir/$ac_word" || continue
1620 ac_cv_prog_ac_ct_CC="gcc"
1621 echo "$as_me:1621: found $ac_dir/$ac_word" >&5
1627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1628 if test -n "$ac_ct_CC"; then
1629 echo "$as_me:1629: result: $ac_ct_CC" >&5
1630 echo "${ECHO_T}$ac_ct_CC" >&6
1632 echo "$as_me:1632: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1641 if test -z "$CC"; then
1642 if test -n "$ac_tool_prefix"; then
1643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1644 set dummy ${ac_tool_prefix}cc; ac_word=$2
1645 echo "$as_me:1645: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$CC"; then
1651 ac_cv_prog_CC="$CC" # Let the user override the test.
1653 ac_save_IFS=$IFS; IFS=$ac_path_separator
1655 for ac_dir in $ac_dummy; do
1657 test -z "$ac_dir" && ac_dir=.
1658 $as_executable_p "$ac_dir/$ac_word" || continue
1659 ac_cv_prog_CC="${ac_tool_prefix}cc"
1660 echo "$as_me:1660: found $ac_dir/$ac_word" >&5
1667 if test -n "$CC"; then
1668 echo "$as_me:1668: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1671 echo "$as_me:1671: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1676 if test -z "$ac_cv_prog_CC"; then
1678 # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:1680: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$ac_ct_CC"; then
1686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688 ac_save_IFS=$IFS; IFS=$ac_path_separator
1690 for ac_dir in $ac_dummy; do
1692 test -z "$ac_dir" && ac_dir=.
1693 $as_executable_p "$ac_dir/$ac_word" || continue
1694 ac_cv_prog_ac_ct_CC="cc"
1695 echo "$as_me:1695: found $ac_dir/$ac_word" >&5
1701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702 if test -n "$ac_ct_CC"; then
1703 echo "$as_me:1703: result: $ac_ct_CC" >&5
1704 echo "${ECHO_T}$ac_ct_CC" >&6
1706 echo "$as_me:1706: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1716 if test -z "$CC"; then
1717 # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:1719: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1728 ac_save_IFS=$IFS; IFS=$ac_path_separator
1730 for ac_dir in $ac_dummy; do
1732 test -z "$ac_dir" && ac_dir=.
1733 $as_executable_p "$ac_dir/$ac_word" || continue
1734 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1735 ac_prog_rejected=yes
1739 echo "$as_me:1739: found $ac_dir/$ac_word" >&5
1743 if test $ac_prog_rejected = yes; then
1744 # We found a bogon in the path, so make sure we never use it.
1745 set dummy $ac_cv_prog_CC
1747 if test $# != 0; then
1748 # We chose a different compiler from the bogus one.
1749 # However, it has the same basename, so the bogon will be chosen
1750 # first if we set CC to just the basename; use the full file name.
1752 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1760 if test -n "$CC"; then
1761 echo "$as_me:1761: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1764 echo "$as_me:1764: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1769 if test -z "$CC"; then
1770 if test -n "$ac_tool_prefix"; then
1773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1775 echo "$as_me:1775: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_CC+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 if test -n "$CC"; then
1781 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 ac_save_IFS=$IFS; IFS=$ac_path_separator
1785 for ac_dir in $ac_dummy; do
1787 test -z "$ac_dir" && ac_dir=.
1788 $as_executable_p "$ac_dir/$ac_word" || continue
1789 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1790 echo "$as_me:1790: found $ac_dir/$ac_word" >&5
1797 if test -n "$CC"; then
1798 echo "$as_me:1798: result: $CC" >&5
1799 echo "${ECHO_T}$CC" >&6
1801 echo "$as_me:1801: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1805 test -n "$CC" && break
1808 if test -z "$CC"; then
1812 # Extract the first word of "$ac_prog", so it can be a program name with args.
1813 set dummy $ac_prog; ac_word=$2
1814 echo "$as_me:1814: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test -n "$ac_ct_CC"; then
1820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1822 ac_save_IFS=$IFS; IFS=$ac_path_separator
1824 for ac_dir in $ac_dummy; do
1826 test -z "$ac_dir" && ac_dir=.
1827 $as_executable_p "$ac_dir/$ac_word" || continue
1828 ac_cv_prog_ac_ct_CC="$ac_prog"
1829 echo "$as_me:1829: found $ac_dir/$ac_word" >&5
1835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1836 if test -n "$ac_ct_CC"; then
1837 echo "$as_me:1837: result: $ac_ct_CC" >&5
1838 echo "${ECHO_T}$ac_ct_CC" >&6
1840 echo "$as_me:1840: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1844 test -n "$ac_ct_CC" && break
1852 test -z "$CC" && { { echo "$as_me:1852: error: no acceptable cc found in \$PATH" >&5
1853 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1854 { (exit 1); exit 1; }; }
1856 # Provide some information about the compiler.
1857 echo "$as_me:1857:" \
1858 "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:1860: \"$ac_compiler --version </dev/null >&5\"") >&5
1861 (eval $ac_compiler --version </dev/null >&5) 2>&5
1863 echo "$as_me:1863: \$? = $ac_status" >&5
1864 (exit $ac_status); }
1865 { (eval echo "$as_me:1865: \"$ac_compiler -v </dev/null >&5\"") >&5
1866 (eval $ac_compiler -v </dev/null >&5) 2>&5
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); }
1870 { (eval echo "$as_me:1870: \"$ac_compiler -V </dev/null >&5\"") >&5
1871 (eval $ac_compiler -V </dev/null >&5) 2>&5
1873 echo "$as_me:1873: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1888 ac_clean_files_save=$ac_clean_files
1889 ac_clean_files="$ac_clean_files a.out a.exe"
1890 # Try to create an executable without -o first, disregard a.out.
1891 # It will help us diagnose broken compilers, and finding out an intuition
1893 echo "$as_me:1893: checking for C compiler default output" >&5
1894 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1895 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1896 if { (eval echo "$as_me:1896: \"$ac_link_default\"") >&5
1897 (eval $ac_link_default) 2>&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); }; then
1901 # Find the output, starting from the most likely. This scheme is
1902 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1904 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1905 ls a.out conftest 2>/dev/null;
1906 ls a.* conftest.* 2>/dev/null`; do
1908 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1909 a.out ) # We found the default executable, but exeext='' is most
1912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1913 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1920 echo "$as_me: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1922 { { echo "$as_me:1922: error: C compiler cannot create executables" >&5
1923 echo "$as_me: error: C compiler cannot create executables" >&2;}
1924 { (exit 77); exit 77; }; }
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:1928: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1931 # Check the compiler produces executables we can run. If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:1933: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938 if { ac_try='./$ac_file'
1939 { (eval echo "$as_me:1939: \"$ac_try\"") >&5
1942 echo "$as_me:1942: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1946 if test "$cross_compiling" = maybe; then
1949 { { echo "$as_me:1949: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:1957: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:1964: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:1966: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:1969: checking for executable suffix" >&5
1970 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1971 if { (eval echo "$as_me:1971: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:1974: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1982 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 { { echo "$as_me:1990: error: cannot compute EXEEXT: cannot compile and link" >&5
1991 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1992 { (exit 1); exit 1; }; }
1995 rm -f conftest$ac_cv_exeext
1996 echo "$as_me:1996: result: $ac_cv_exeext" >&5
1997 echo "${ECHO_T}$ac_cv_exeext" >&6
1999 rm -f conftest.$ac_ext
2000 EXEEXT=$ac_cv_exeext
2002 echo "$as_me:2002: checking for object suffix" >&5
2003 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2004 if test "${ac_cv_objext+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2019 rm -f conftest.o conftest.obj
2020 if { (eval echo "$as_me:2020: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>&5
2023 echo "$as_me:2023: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2033 echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 { { echo "$as_me:2035: error: cannot compute OBJEXT: cannot compile" >&5
2036 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2037 { (exit 1); exit 1; }; }
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042 echo "$as_me:2042: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2046 echo "$as_me:2046: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 cat >conftest.$ac_ext <<_ACEOF
2052 #line 2052 "configure"
2053 #include "confdefs.h"
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest.$ac_objext'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2088 echo "$as_me:2088: result: $ac_cv_c_compiler_gnu" >&5
2089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2090 GCC=`test $ac_compiler_gnu = yes && echo yes`
2091 ac_test_CFLAGS=${CFLAGS+set}
2092 ac_save_CFLAGS=$CFLAGS
2094 echo "$as_me:2094: checking whether $CC accepts -g" >&5
2095 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_g+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #line 2100 "configure"
2101 #include "confdefs.h"
2111 rm -f conftest.$ac_objext
2112 if { (eval echo "$as_me:2112: \"$ac_compile\"") >&5
2113 (eval $ac_compile) 2>&5
2115 echo "$as_me:2115: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:2118: \"$ac_try\"") >&5
2121 echo "$as_me:2121: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2125 echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2129 rm -f conftest.$ac_objext conftest.$ac_ext
2131 echo "$as_me:2131: result: $ac_cv_prog_cc_g" >&5
2132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2133 if test "$ac_test_CFLAGS" = set; then
2134 CFLAGS=$ac_save_CFLAGS
2135 elif test $ac_cv_prog_cc_g = yes; then
2136 if test "$GCC" = yes; then
2142 if test "$GCC" = yes; then
2148 # Some people use a C++ compiler to compile C. Since we use `exit',
2149 # in C++ we need to declare it. In case someone uses the same compiler
2150 # for both compiling C and C++ we need to have the C++ compiler decide
2151 # the declaration of exit, since it's the most demanding environment.
2152 cat >conftest.$ac_ext <<_ACEOF
2157 rm -f conftest.$ac_objext
2158 if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>&5
2161 echo "$as_me:2161: \$? = $ac_status" >&5
2162 (exit $ac_status); } &&
2163 { ac_try='test -s conftest.$ac_objext'
2164 { (eval echo "$as_me:2164: \"$ac_try\"") >&5
2167 echo "$as_me:2167: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2169 for ac_declaration in \
2171 '#include <stdlib.h>' \
2172 'extern "C" void std::exit (int) throw (); using std::exit;' \
2173 'extern "C" void std::exit (int); using std::exit;' \
2174 'extern "C" void exit (int) throw ();' \
2175 'extern "C" void exit (int);' \
2178 cat >conftest.$ac_ext <<_ACEOF
2179 #line 2179 "configure"
2180 #include "confdefs.h"
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:2192: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2195 echo "$as_me:2195: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:2198: \"$ac_try\"") >&5
2201 echo "$as_me:2201: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2205 echo "$as_me: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2209 rm -f conftest.$ac_objext conftest.$ac_ext
2210 cat >conftest.$ac_ext <<_ACEOF
2211 #line 2211 "configure"
2212 #include "confdefs.h"
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:2223: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>&5
2226 echo "$as_me:2226: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:2229: \"$ac_try\"") >&5
2232 echo "$as_me:2232: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2236 echo "$as_me: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2239 rm -f conftest.$ac_objext conftest.$ac_ext
2242 if test -n "$ac_declaration"; then
2243 echo '#ifdef __cplusplus' >>confdefs.h
2244 echo $ac_declaration >>confdefs.h
2245 echo '#endif' >>confdefs.h
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 rm -f conftest.$ac_objext conftest.$ac_ext
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259 echo "$as_me:2259: checking for POSIXized ISC" >&5
2260 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2261 if test -d /etc/conf/kconfig.d &&
2262 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2264 echo "$as_me:2264: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6
2266 ISC=yes # If later tests want to check for ISC.
2268 cat >>confdefs.h <<\EOF
2269 #define _POSIX_SOURCE 1
2272 if test "$GCC" = yes; then
2278 echo "$as_me:2278: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288 echo "$as_me:2288: checking how to run the C preprocessor" >&5
2289 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2290 # On Suns, sometimes $CPP names a directory.
2291 if test -n "$CPP" && test -d "$CPP"; then
2294 if test -z "$CPP"; then
2295 if test "${ac_cv_prog_CPP+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 # Double quotes because CPP needs to be expanded
2299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2302 for ac_c_preproc_warn_flag in '' yes
2304 # Use a header file that comes with gcc, so configuring glibc
2305 # with a fresh cross-compiler works.
2306 # On the NeXT, cc -E runs the code through the compiler's parser,
2307 # not just through cpp. "Syntax error" is here to catch this case.
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line 2309 "configure"
2310 #include "confdefs.h"
2314 if { (eval echo "$as_me:2314: \"$ac_cpp conftest.$ac_ext\"") >&5
2315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2317 egrep -v '^ *\+' conftest.er1 >conftest.err
2319 cat conftest.err >&5
2320 echo "$as_me:2320: \$? = $ac_status" >&5
2321 (exit $ac_status); } >/dev/null; then
2322 if test -s conftest.err; then
2323 ac_cpp_err=$ac_c_preproc_warn_flag
2330 if test -z "$ac_cpp_err"; then
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 # Broken: fails on valid input.
2338 rm -f conftest.err conftest.$ac_ext
2340 # OK, works on sane cases. Now check whether non-existent headers
2341 # can be detected and how.
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2345 #include <ac_nonexistent.h>
2347 if { (eval echo "$as_me:2347: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 egrep -v '^ *\+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:2353: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2363 if test -z "$ac_cpp_err"; then
2364 # Broken: success on invalid input.
2367 echo "$as_me: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 # Passes both tests.
2373 rm -f conftest.err conftest.$ac_ext
2376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2377 rm -f conftest.err conftest.$ac_ext
2378 if $ac_preproc_ok; then
2390 echo "$as_me:2390: result: $CPP" >&5
2391 echo "${ECHO_T}$CPP" >&6
2393 for ac_c_preproc_warn_flag in '' yes
2395 # Use a header file that comes with gcc, so configuring glibc
2396 # with a fresh cross-compiler works.
2397 # On the NeXT, cc -E runs the code through the compiler's parser,
2398 # not just through cpp. "Syntax error" is here to catch this case.
2399 cat >conftest.$ac_ext <<_ACEOF
2400 #line 2400 "configure"
2401 #include "confdefs.h"
2405 if { (eval echo "$as_me:2405: \"$ac_cpp conftest.$ac_ext\"") >&5
2406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2408 egrep -v '^ *\+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:2411: \$? = $ac_status" >&5
2412 (exit $ac_status); } >/dev/null; then
2413 if test -s conftest.err; then
2414 ac_cpp_err=$ac_c_preproc_warn_flag
2421 if test -z "$ac_cpp_err"; then
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 # Broken: fails on valid input.
2429 rm -f conftest.err conftest.$ac_ext
2431 # OK, works on sane cases. Now check whether non-existent headers
2432 # can be detected and how.
2433 cat >conftest.$ac_ext <<_ACEOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2436 #include <ac_nonexistent.h>
2438 if { (eval echo "$as_me:2438: \"$ac_cpp conftest.$ac_ext\"") >&5
2439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2441 egrep -v '^ *\+' conftest.er1 >conftest.err
2443 cat conftest.err >&5
2444 echo "$as_me:2444: \$? = $ac_status" >&5
2445 (exit $ac_status); } >/dev/null; then
2446 if test -s conftest.err; then
2447 ac_cpp_err=$ac_c_preproc_warn_flag
2454 if test -z "$ac_cpp_err"; then
2455 # Broken: success on invalid input.
2458 echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 # Passes both tests.
2464 rm -f conftest.err conftest.$ac_ext
2467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2468 rm -f conftest.err conftest.$ac_ext
2469 if $ac_preproc_ok; then
2472 { { echo "$as_me:2472: error: C preprocessor \"$CPP\" fails sanity check" >&5
2473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2474 { (exit 1); exit 1; }; }
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 echo "$as_me:2483: checking for minix/config.h" >&5
2484 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2485 if test "${ac_cv_header_minix_config_h+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2491 #include <minix/config.h>
2493 if { (eval echo "$as_me:2493: \"$ac_cpp conftest.$ac_ext\"") >&5
2494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496 egrep -v '^ *\+' conftest.er1 >conftest.err
2498 cat conftest.err >&5
2499 echo "$as_me:2499: \$? = $ac_status" >&5
2500 (exit $ac_status); } >/dev/null; then
2501 if test -s conftest.err; then
2502 ac_cpp_err=$ac_c_preproc_warn_flag
2509 if test -z "$ac_cpp_err"; then
2510 ac_cv_header_minix_config_h=yes
2512 echo "$as_me: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 ac_cv_header_minix_config_h=no
2516 rm -f conftest.err conftest.$ac_ext
2518 echo "$as_me:2518: result: $ac_cv_header_minix_config_h" >&5
2519 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2520 if test $ac_cv_header_minix_config_h = yes; then
2526 if test "$MINIX" = yes; then
2528 cat >>confdefs.h <<\EOF
2529 #define _POSIX_SOURCE 1
2532 cat >>confdefs.h <<\EOF
2533 #define _POSIX_1_SOURCE 2
2536 cat >>confdefs.h <<\EOF
2543 *cygwin* ) CYGWIN=yes;;
2548 *mingw32* ) MINGW32=yes;;
2552 # Check whether --enable-largefile or --disable-largefile was given.
2553 if test "${enable_largefile+set}" = set; then
2554 enableval="$enable_largefile"
2557 if test "$enable_largefile" != no; then
2559 echo "$as_me:2559: checking for special C compiler options needed for large files" >&5
2560 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2561 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 ac_cv_sys_largefile_CC=no
2565 if test "$GCC" != yes; then
2568 # IRIX 6.2 and later do not support large files by default,
2569 # so use the C compiler's -n32 option if that helps.
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line 2571 "configure"
2572 #include "confdefs.h"
2573 #include <sys/types.h>
2574 /* Check that off_t can represent 2**63 - 1 correctly.
2575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2576 since some C++ compilers masquerading as C compilers
2577 incorrectly reject 9223372036854775807. */
2578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2580 && LARGE_OFF_T % 2147483647 == 1)
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:2591: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>&5
2594 echo "$as_me:2594: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:2597: \"$ac_try\"") >&5
2600 echo "$as_me:2600: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2607 rm -f conftest.$ac_objext
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:2610: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>&5
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:2616: \"$ac_try\"") >&5
2619 echo "$as_me:2619: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_cv_sys_largefile_CC=' -n32'; break
2623 echo "$as_me: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 rm -f conftest.$ac_objext
2630 rm -f conftest.$ac_ext
2633 echo "$as_me:2633: result: $ac_cv_sys_largefile_CC" >&5
2634 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2635 if test "$ac_cv_sys_largefile_CC" != no; then
2636 CC=$CC$ac_cv_sys_largefile_CC
2639 echo "$as_me:2639: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2640 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2641 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 ac_cv_sys_file_offset_bits=no
2646 cat >conftest.$ac_ext <<_ACEOF
2647 #line 2647 "configure"
2648 #include "confdefs.h"
2649 #include <sys/types.h>
2650 /* Check that off_t can represent 2**63 - 1 correctly.
2651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2652 since some C++ compilers masquerading as C compilers
2653 incorrectly reject 9223372036854775807. */
2654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2656 && LARGE_OFF_T % 2147483647 == 1)
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:2667: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2670 echo "$as_me:2670: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:2673: \"$ac_try\"") >&5
2676 echo "$as_me:2676: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2680 echo "$as_me: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2683 rm -f conftest.$ac_objext conftest.$ac_ext
2684 cat >conftest.$ac_ext <<_ACEOF
2685 #line 2685 "configure"
2686 #include "confdefs.h"
2687 #define _FILE_OFFSET_BITS 64
2688 #include <sys/types.h>
2689 /* Check that off_t can represent 2**63 - 1 correctly.
2690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2691 since some C++ compilers masquerading as C compilers
2692 incorrectly reject 9223372036854775807. */
2693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2695 && LARGE_OFF_T % 2147483647 == 1)
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:2706: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>&5
2709 echo "$as_me:2709: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:2712: \"$ac_try\"") >&5
2715 echo "$as_me:2715: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 ac_cv_sys_file_offset_bits=64; break
2719 echo "$as_me: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2726 echo "$as_me:2726: result: $ac_cv_sys_file_offset_bits" >&5
2727 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2728 if test "$ac_cv_sys_file_offset_bits" != no; then
2730 cat >>confdefs.h <<EOF
2731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2736 echo "$as_me:2736: checking for _LARGE_FILES value needed for large files" >&5
2737 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2738 if test "${ac_cv_sys_large_files+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 ac_cv_sys_large_files=no
2743 cat >conftest.$ac_ext <<_ACEOF
2744 #line 2744 "configure"
2745 #include "confdefs.h"
2746 #include <sys/types.h>
2747 /* Check that off_t can represent 2**63 - 1 correctly.
2748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2749 since some C++ compilers masquerading as C compilers
2750 incorrectly reject 9223372036854775807. */
2751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2753 && LARGE_OFF_T % 2147483647 == 1)
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:2764: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>&5
2767 echo "$as_me:2767: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -s conftest.$ac_objext'
2770 { (eval echo "$as_me:2770: \"$ac_try\"") >&5
2773 echo "$as_me:2773: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2777 echo "$as_me: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2780 rm -f conftest.$ac_objext conftest.$ac_ext
2781 cat >conftest.$ac_ext <<_ACEOF
2782 #line 2782 "configure"
2783 #include "confdefs.h"
2784 #define _LARGE_FILES 1
2785 #include <sys/types.h>
2786 /* Check that off_t can represent 2**63 - 1 correctly.
2787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2788 since some C++ compilers masquerading as C compilers
2789 incorrectly reject 9223372036854775807. */
2790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2792 && LARGE_OFF_T % 2147483647 == 1)
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:2803: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>&5
2806 echo "$as_me:2806: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:2809: \"$ac_try\"") >&5
2812 echo "$as_me:2812: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 ac_cv_sys_large_files=1; break
2816 echo "$as_me: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2823 echo "$as_me:2823: result: $ac_cv_sys_large_files" >&5
2824 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2825 if test "$ac_cv_sys_large_files" != no; then
2827 cat >>confdefs.h <<EOF
2828 #define _LARGE_FILES $ac_cv_sys_large_files
2835 SIGNAMES_H=lsignames.h
2837 if test "x$cross_compiling" = "xyes"; then
2840 cross_cache=${srcdir}/cross-build/cygwin32.cache
2841 SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
2844 cross_cache=${srcdir}/cross-build/x86-beos.cache
2845 SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
2847 *) echo "configure: cross-compiling for $host is not supported" >&2
2850 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2851 echo "loading cross-build cache file ${cross_cache}"
2857 if test -z "$CC_FOR_BUILD"; then
2858 if test "x$cross_compiling" = "xno"; then
2859 CC_FOR_BUILD='$(CC)'
2865 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
2867 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
2869 if test "$opt_profiling" = "yes"; then
2873 *) opt_static_link=yes ;;
2875 DEBUG= MALLOC_DEBUG=
2878 if test "$opt_static_link" = yes; then
2879 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
2880 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
2884 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
2889 test -z "$CPPFLAGS_FOR_BUILD" && CPPFLAGS_FOR_BUILD="$CPPFLAGS"
2890 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
2892 if test $ac_cv_c_compiler_gnu = yes; then
2893 echo "$as_me:2893: checking whether $CC needs -traditional" >&5
2894 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2895 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 ac_pattern="Autoconf.*'x'"
2899 cat >conftest.$ac_ext <<_ACEOF
2900 #line 2900 "configure"
2901 #include "confdefs.h"
2905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2906 egrep "$ac_pattern" >/dev/null 2>&1; then
2907 ac_cv_prog_gcc_traditional=yes
2909 ac_cv_prog_gcc_traditional=no
2913 if test $ac_cv_prog_gcc_traditional = no; then
2914 cat >conftest.$ac_ext <<_ACEOF
2915 #line 2915 "configure"
2916 #include "confdefs.h"
2920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2921 egrep "$ac_pattern" >/dev/null 2>&1; then
2922 ac_cv_prog_gcc_traditional=yes
2928 echo "$as_me:2928: result: $ac_cv_prog_gcc_traditional" >&5
2929 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2930 if test $ac_cv_prog_gcc_traditional = yes; then
2931 CC="$CC -traditional"
2935 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
2937 # If the user specified --with-installed-readline=PREFIX and PREFIX
2938 # is not `yes', set ac_cv_rl_prefix to PREFIX
2939 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
2941 if test "X$bash_cv_termcap_lib" = "X"; then
2944 echo "$as_me:2944: checking which library has the termcap functions" >&5
2945 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
2948 if test "${bash_cv_termcap_lib+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 echo "$as_me:2951: checking for tgetent in -ltermcap" >&5
2952 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
2953 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 ac_check_lib_save_LIBS=$LIBS
2957 LIBS="-ltermcap $LIBS"
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line 2959 "configure"
2960 #include "confdefs.h"
2962 /* Override any gcc2 internal prototype to avoid an error. */
2966 /* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */
2977 rm -f conftest.$ac_objext conftest$ac_exeext
2978 if { (eval echo "$as_me:2978: \"$ac_link\"") >&5
2979 (eval $ac_link) 2>&5
2981 echo "$as_me:2981: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -s conftest$ac_exeext'
2984 { (eval echo "$as_me:2984: \"$ac_try\"") >&5
2987 echo "$as_me:2987: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 ac_cv_lib_termcap_tgetent=yes
2991 echo "$as_me: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2993 ac_cv_lib_termcap_tgetent=no
2995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2996 LIBS=$ac_check_lib_save_LIBS
2998 echo "$as_me:2998: result: $ac_cv_lib_termcap_tgetent" >&5
2999 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3000 if test $ac_cv_lib_termcap_tgetent = yes; then
3001 bash_cv_termcap_lib=libtermcap
3003 echo "$as_me:3003: checking for tgetent in -ltinfo" >&5
3004 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
3005 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 ac_check_lib_save_LIBS=$LIBS
3009 LIBS="-ltinfo $LIBS"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line 3011 "configure"
3012 #include "confdefs.h"
3014 /* Override any gcc2 internal prototype to avoid an error. */
3018 /* We use char because int might match the return type of a gcc2
3019 builtin and then its argument prototype would still apply. */
3029 rm -f conftest.$ac_objext conftest$ac_exeext
3030 if { (eval echo "$as_me:3030: \"$ac_link\"") >&5
3031 (eval $ac_link) 2>&5
3033 echo "$as_me:3033: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -s conftest$ac_exeext'
3036 { (eval echo "$as_me:3036: \"$ac_try\"") >&5
3039 echo "$as_me:3039: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 ac_cv_lib_tinfo_tgetent=yes
3043 echo "$as_me: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 ac_cv_lib_tinfo_tgetent=no
3047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3048 LIBS=$ac_check_lib_save_LIBS
3050 echo "$as_me:3050: result: $ac_cv_lib_tinfo_tgetent" >&5
3051 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
3052 if test $ac_cv_lib_tinfo_tgetent = yes; then
3053 bash_cv_termcap_lib=libtinfo
3055 echo "$as_me:3055: checking for tgetent in -lcurses" >&5
3056 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
3057 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 ac_check_lib_save_LIBS=$LIBS
3061 LIBS="-lcurses $LIBS"
3062 cat >conftest.$ac_ext <<_ACEOF
3063 #line 3063 "configure"
3064 #include "confdefs.h"
3066 /* Override any gcc2 internal prototype to avoid an error. */
3070 /* We use char because int might match the return type of a gcc2
3071 builtin and then its argument prototype would still apply. */
3081 rm -f conftest.$ac_objext conftest$ac_exeext
3082 if { (eval echo "$as_me:3082: \"$ac_link\"") >&5
3083 (eval $ac_link) 2>&5
3085 echo "$as_me:3085: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -s conftest$ac_exeext'
3088 { (eval echo "$as_me:3088: \"$ac_try\"") >&5
3091 echo "$as_me:3091: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 ac_cv_lib_curses_tgetent=yes
3095 echo "$as_me: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 ac_cv_lib_curses_tgetent=no
3099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3100 LIBS=$ac_check_lib_save_LIBS
3102 echo "$as_me:3102: result: $ac_cv_lib_curses_tgetent" >&5
3103 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
3104 if test $ac_cv_lib_curses_tgetent = yes; then
3105 bash_cv_termcap_lib=libcurses
3107 echo "$as_me:3107: checking for tgetent in -lncurses" >&5
3108 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
3109 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 ac_check_lib_save_LIBS=$LIBS
3113 LIBS="-lncurses $LIBS"
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line 3115 "configure"
3116 #include "confdefs.h"
3118 /* Override any gcc2 internal prototype to avoid an error. */
3122 /* We use char because int might match the return type of a gcc2
3123 builtin and then its argument prototype would still apply. */
3133 rm -f conftest.$ac_objext conftest$ac_exeext
3134 if { (eval echo "$as_me:3134: \"$ac_link\"") >&5
3135 (eval $ac_link) 2>&5
3137 echo "$as_me:3137: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -s conftest$ac_exeext'
3140 { (eval echo "$as_me:3140: \"$ac_try\"") >&5
3143 echo "$as_me:3143: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_lib_ncurses_tgetent=yes
3147 echo "$as_me: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3149 ac_cv_lib_ncurses_tgetent=no
3151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3152 LIBS=$ac_check_lib_save_LIBS
3154 echo "$as_me:3154: result: $ac_cv_lib_ncurses_tgetent" >&5
3155 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
3156 if test $ac_cv_lib_ncurses_tgetent = yes; then
3157 bash_cv_termcap_lib=libncurses
3159 bash_cv_termcap_lib=gnutermcap
3170 if test "X$_bash_needmsg" = "Xyes"; then
3171 echo "$as_me:3171: checking which library has the termcap functions" >&5
3172 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
3174 echo "$as_me:3174: result: using $bash_cv_termcap_lib" >&5
3175 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
3176 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
3177 LDFLAGS="$LDFLAGS -L./lib/termcap"
3178 TERMCAP_LIB="./lib/termcap/libtermcap.a"
3179 TERMCAP_DEP="./lib/termcap/libtermcap.a"
3180 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
3181 TERMCAP_LIB=-ltermcap
3183 elif test $bash_cv_termcap_lib = libtinfo; then
3186 elif test $bash_cv_termcap_lib = libncurses; then
3187 TERMCAP_LIB=-lncurses
3190 TERMCAP_LIB=-lcurses
3194 echo "$as_me:3194: checking version of installed readline library" >&5
3195 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
3197 # What a pain in the ass this is.
3199 # save cpp and ld options
3200 _save_CFLAGS="$CFLAGS"
3201 _save_LDFLAGS="$LDFLAGS"
3204 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
3205 # allows the caller to do something like $_rl_prefix=$withval if the user
3206 # specifies --with-installed-readline=PREFIX as an argument to configure
3208 if test -z "$ac_cv_rl_prefix"; then
3209 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
3212 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
3213 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
3215 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
3216 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
3217 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
3219 if test "$cross_compiling" = yes; then
3220 ac_cv_rl_version='4.2'
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line 3223 "configure"
3224 #include "confdefs.h"
3227 #include <readline/readline.h>
3232 fp = fopen("conftest.rlv", "w");
3233 if (fp == 0) exit(1);
3234 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
3240 rm -f conftest$ac_exeext
3241 if { (eval echo "$as_me:3241: \"$ac_link\"") >&5
3242 (eval $ac_link) 2>&5
3244 echo "$as_me:3244: \$? = $ac_status" >&5
3245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3246 { (eval echo "$as_me:3246: \"$ac_try\"") >&5
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_rl_version=`cat conftest.rlv`
3253 echo "$as_me: program exited with status $ac_status" >&5
3254 echo "$as_me: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3256 ac_cv_rl_version='0.0'
3258 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3261 CFLAGS="$_save_CFLAGS"
3262 LDFLAGS="$_save_LDFLAGS"
3269 case "$ac_cv_rl_version" in
3270 2*|3*|4*|5*|6*|7*|8*|9*)
3271 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
3272 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
3278 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
3279 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
3285 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
3286 [0-9]) _RL_MINOR=0$RL_MINOR ;;
3290 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
3292 # Readline versions greater than 4.2 have these defines in readline.h
3294 if test $ac_cv_rl_version = '0.0' ; then
3295 { echo "$as_me:3295: WARNING: Could not test version of installed readline library." >&5
3296 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
3297 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
3298 # set these for use by the caller
3299 RL_PREFIX=$ac_cv_rl_prefix
3300 RL_LIBDIR=$ac_cv_rl_libdir
3301 RL_INCLUDEDIR=$ac_cv_rl_includedir
3302 echo "$as_me:3302: result: $ac_cv_rl_version" >&5
3303 echo "${ECHO_T}$ac_cv_rl_version" >&6
3306 cat >>confdefs.h <<EOF
3307 #define RL_READLINE_VERSION $RL_VERSION
3310 cat >>confdefs.h <<EOF
3311 #define RL_VERSION_MAJOR $RL_MAJOR
3314 cat >>confdefs.h <<EOF
3315 #define RL_VERSION_MINOR $RL_MINOR
3318 # set these for use by the caller
3319 RL_PREFIX=$ac_cv_rl_prefix
3320 RL_LIBDIR=$ac_cv_rl_libdir
3321 RL_INCLUDEDIR=$ac_cv_rl_includedir
3323 echo "$as_me:3323: result: $ac_cv_rl_version" >&5
3324 echo "${ECHO_T}$ac_cv_rl_version" >&6
3328 case "$ac_cv_rl_version" in
3329 4.[3-9]*|5*|6*|7*|8*|9*) ;;
3330 *) opt_with_installed_readline=no
3331 { echo "$as_me:3331: WARNING: installed readline library is too old to be linked with bash" >&5
3332 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
3333 { echo "$as_me:3333: WARNING: using private bash version" >&5
3334 echo "$as_me: WARNING: using private bash version" >&2;}
3339 if test $opt_readline = yes; then
3340 cat >>confdefs.h <<\EOF
3344 READLINE_LIB=-lreadline
3345 if test "$opt_with_installed_readline" != "no" ; then
3346 case "$RL_INCLUDEDIR" in
3348 *) RL_INCLUDE='-I${RL_INCLUDEDIR}'
3352 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3353 READLINE_DEP='$(READLINE_LIBRARY)'
3356 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3357 READLINE_LIB= READLINE_DEP=
3359 if test $opt_history = yes || test $opt_bang_history = yes; then
3360 if test $opt_history = yes; then
3361 cat >>confdefs.h <<\EOF
3366 if test $opt_bang_history = yes; then
3367 cat >>confdefs.h <<\EOF
3368 #define BANG_HISTORY 1
3372 HISTORY_LIB=-lhistory
3373 if test "$opt_with_installed_readline" != "no"; then
3374 HIST_LIBDIR=$RL_LIBDIR
3376 case "$RL_INCLUDEDIR" in
3378 *) RL_INCLUDE='-I${RL_INCLUDEDIR}'
3381 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3382 HISTORY_DEP='$(HISTORY_LIBRARY)'
3385 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3386 HISTORY_LIB= HISTORY_DEP=
3389 # Find a good install program. We prefer a C program (faster),
3390 # so one script is as good as another. But avoid the broken or
3391 # incompatible versions:
3392 # SysV /etc/install, /usr/sbin/install
3393 # SunOS /usr/etc/install
3394 # IRIX /sbin/install
3396 # AmigaOS /C/install, which installs bootblocks on floppy discs
3397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3400 # ./install, which can be erroneously created by make from ./install.sh.
3401 echo "$as_me:3401: checking for a BSD compatible install" >&5
3402 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3403 if test -z "$INSTALL"; then
3404 if test "${ac_cv_path_install+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 ac_save_IFS=$IFS; IFS=$ac_path_separator
3408 for ac_dir in $PATH; do
3410 # Account for people who put trailing slashes in PATH elements.
3412 / | ./ | .// | /cC/* \
3413 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3416 # OSF1 and SCO ODT 3.0 have their own names for install.
3417 # Don't use installbsd from OSF since it installs stuff as root
3419 for ac_prog in ginstall scoinst install; do
3420 if $as_executable_p "$ac_dir/$ac_prog"; then
3421 if test $ac_prog = install &&
3422 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3423 # AIX install. It has an incompatible calling convention.
3425 elif test $ac_prog = install &&
3426 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3427 # program-specific install script used by HP pwplus--don't use.
3430 ac_cv_path_install="$ac_dir/$ac_prog -c"
3440 if test "${ac_cv_path_install+set}" = set; then
3441 INSTALL=$ac_cv_path_install
3443 # As a last resort, use the slow shell script. We don't cache a
3444 # path for INSTALL within a source directory, because that will
3445 # break other packages using the cache if that directory is
3446 # removed, or if the path is relative.
3447 INSTALL=$ac_install_sh
3450 echo "$as_me:3450: result: $INSTALL" >&5
3451 echo "${ECHO_T}$INSTALL" >&6
3453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3454 # It thinks the first close brace ends the variable substitution.
3455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3461 # Extract the first word of "ar", so it can be a program name with args.
3462 set dummy ar; ac_word=$2
3463 echo "$as_me:3463: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3465 if test "${ac_cv_prog_AR+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 if test -n "$AR"; then
3469 ac_cv_prog_AR="$AR" # Let the user override the test.
3471 ac_save_IFS=$IFS; IFS=$ac_path_separator
3473 for ac_dir in $ac_dummy; do
3475 test -z "$ac_dir" && ac_dir=.
3476 $as_executable_p "$ac_dir/$ac_word" || continue
3478 echo "$as_me:3478: found $ac_dir/$ac_word" >&5
3482 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3486 if test -n "$AR"; then
3487 echo "$as_me:3487: result: $AR" >&5
3488 echo "${ECHO_T}$AR" >&6
3490 echo "$as_me:3490: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3494 test -n "$ARFLAGS" || ARFLAGS="cr"
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3498 echo "$as_me:3498: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_RANLIB+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 if test -n "$RANLIB"; then
3504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3506 ac_save_IFS=$IFS; IFS=$ac_path_separator
3508 for ac_dir in $ac_dummy; do
3510 test -z "$ac_dir" && ac_dir=.
3511 $as_executable_p "$ac_dir/$ac_word" || continue
3512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3513 echo "$as_me:3513: found $ac_dir/$ac_word" >&5
3519 RANLIB=$ac_cv_prog_RANLIB
3520 if test -n "$RANLIB"; then
3521 echo "$as_me:3521: result: $RANLIB" >&5
3522 echo "${ECHO_T}$RANLIB" >&6
3524 echo "$as_me:3524: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3529 if test -z "$ac_cv_prog_RANLIB"; then
3530 ac_ct_RANLIB=$RANLIB
3531 # Extract the first word of "ranlib", so it can be a program name with args.
3532 set dummy ranlib; ac_word=$2
3533 echo "$as_me:3533: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if test -n "$ac_ct_RANLIB"; then
3539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3541 ac_save_IFS=$IFS; IFS=$ac_path_separator
3543 for ac_dir in $ac_dummy; do
3545 test -z "$ac_dir" && ac_dir=.
3546 $as_executable_p "$ac_dir/$ac_word" || continue
3547 ac_cv_prog_ac_ct_RANLIB="ranlib"
3548 echo "$as_me:3548: found $ac_dir/$ac_word" >&5
3552 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3555 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3556 if test -n "$ac_ct_RANLIB"; then
3557 echo "$as_me:3557: result: $ac_ct_RANLIB" >&5
3558 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3560 echo "$as_me:3560: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3564 RANLIB=$ac_ct_RANLIB
3566 RANLIB="$ac_cv_prog_RANLIB"
3569 for ac_prog in 'bison -y' byacc
3571 # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 echo "$as_me:3573: checking for $ac_word" >&5
3574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3575 if test "${ac_cv_prog_YACC+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 if test -n "$YACC"; then
3579 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3581 ac_save_IFS=$IFS; IFS=$ac_path_separator
3583 for ac_dir in $ac_dummy; do
3585 test -z "$ac_dir" && ac_dir=.
3586 $as_executable_p "$ac_dir/$ac_word" || continue
3587 ac_cv_prog_YACC="$ac_prog"
3588 echo "$as_me:3588: found $ac_dir/$ac_word" >&5
3594 YACC=$ac_cv_prog_YACC
3595 if test -n "$YACC"; then
3596 echo "$as_me:3596: result: $YACC" >&5
3597 echo "${ECHO_T}$YACC" >&6
3599 echo "$as_me:3599: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3603 test -n "$YACC" && break
3605 test -n "$YACC" || YACC="yacc"
3607 echo "$as_me:3607: checking whether ${MAKE-make} sets \${MAKE}" >&5
3608 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3609 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3610 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 cat >conftest.make <<\EOF
3615 @echo 'ac_maketemp="${MAKE}"'
3617 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3618 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3619 if test -n "$ac_maketemp"; then
3620 eval ac_cv_prog_make_${ac_make}_set=yes
3622 eval ac_cv_prog_make_${ac_make}_set=no
3626 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3627 echo "$as_me:3627: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6
3631 echo "$as_me:3631: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3633 SET_MAKE="MAKE=${MAKE-make}"
3637 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
3638 *) MAKE_SHELL=/bin/sh ;;
3641 cat >>confdefs.h <<\EOF
3642 #define _GNU_SOURCE 1
3645 echo "$as_me:3645: checking for $CC option to accept ANSI C" >&5
3646 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3647 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 ac_cv_prog_cc_stdc=no
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line 3653 "configure"
3654 #include "confdefs.h"
3657 #include <sys/types.h>
3658 #include <sys/stat.h>
3659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660 struct buf { int x; };
3661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662 static char *e (p, i)
3668 static char *f (char * (*g) (char **, int), char **p, ...)
3673 s = g (p, va_arg (v,int));
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 # Don't try gcc -ansi; that turns off useful extensions and
3692 # breaks some systems' header files.
3693 # AIX -qlanglvl=ansi
3694 # Ultrix and OSF/1 -std1
3695 # HP-UX 10.20 and later -Ae
3696 # HP-UX older versions -Aa -D_HPUX_SOURCE
3697 # SVR4 -Xc -D__EXTENSIONS__
3698 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700 CC="$ac_save_CC $ac_arg"
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:3702: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>&5
3705 echo "$as_me:3705: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -s conftest.$ac_objext'
3708 { (eval echo "$as_me:3708: \"$ac_try\"") >&5
3711 echo "$as_me:3711: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3713 ac_cv_prog_cc_stdc=$ac_arg
3716 echo "$as_me: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 rm -f conftest.$ac_objext
3721 rm -f conftest.$ac_ext conftest.$ac_objext
3726 case "x$ac_cv_prog_cc_stdc" in
3728 echo "$as_me:3728: result: none needed" >&5
3729 echo "${ECHO_T}none needed" >&6 ;;
3731 echo "$as_me:3731: result: $ac_cv_prog_cc_stdc" >&5
3732 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3733 CC="$CC $ac_cv_prog_cc_stdc" ;;
3736 echo "$as_me:3736: checking for an ANSI C-conforming const" >&5
3737 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3738 if test "${ac_cv_c_const+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line 3742 "configure"
3743 #include "confdefs.h"
3748 /* FIXME: Include the comments suggested by Paul. */
3750 /* Ultrix mips cc rejects this. */
3751 typedef int charset[2];
3753 /* SunOS 4.1.1 cc rejects this. */
3754 char const *const *ccp;
3756 /* NEC SVR4.0.2 mips cc rejects this. */
3757 struct point {int x, y;};
3758 static struct point const zero = {0,0};
3759 /* AIX XL C 1.02.0.0 rejects this.
3760 It does not let you subtract one const X* pointer from another in
3761 an arm of an if-expression whose if-part is not a constant
3763 const char *g = "string";
3764 ccp = &g + (g ? g-g : 0);
3765 /* HPUX 7.0 cc rejects these. */
3768 ccp = (char const *const *) p;
3769 { /* SCO 3.2v4 cc rejects this. */
3771 char const *s = 0 ? (char *) 0 : (char const *) 0;
3775 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3777 const int *foo = &x[0];
3780 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3781 typedef const int *iptr;
3785 { /* AIX XL C 1.02.0.0 rejects this saying
3786 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3787 struct s { int j; const int *ap[3]; };
3788 struct s *b; b->j = 5;
3790 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3799 rm -f conftest.$ac_objext
3800 if { (eval echo "$as_me:3800: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>&5
3803 echo "$as_me:3803: \$? = $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:3806: \"$ac_try\"") >&5
3809 echo "$as_me:3809: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3813 echo "$as_me: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3817 rm -f conftest.$ac_objext conftest.$ac_ext
3819 echo "$as_me:3819: result: $ac_cv_c_const" >&5
3820 echo "${ECHO_T}$ac_cv_c_const" >&6
3821 if test $ac_cv_c_const = no; then
3823 cat >>confdefs.h <<\EOF
3829 echo "$as_me:3829: checking for inline" >&5
3830 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3831 if test "${ac_cv_c_inline+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 for ac_kw in inline __inline__ __inline; do
3836 cat >conftest.$ac_ext <<_ACEOF
3837 #line 3837 "configure"
3838 #include "confdefs.h"
3840 static $ac_kw int static_foo () {return 0; }
3841 $ac_kw int foo () {return 0; }
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:3846: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>&5
3849 echo "$as_me:3849: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (eval echo "$as_me:3852: \"$ac_try\"") >&5
3855 echo "$as_me:3855: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_cv_c_inline=$ac_kw; break
3859 echo "$as_me: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3862 rm -f conftest.$ac_objext conftest.$ac_ext
3866 echo "$as_me:3866: result: $ac_cv_c_inline" >&5
3867 echo "${ECHO_T}$ac_cv_c_inline" >&6
3868 case $ac_cv_c_inline in
3871 cat >>confdefs.h <<\EOF
3875 *) cat >>confdefs.h <<EOF
3876 #define inline $ac_cv_c_inline
3881 echo "$as_me:3881: checking whether byte ordering is bigendian" >&5
3882 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3883 if test "${ac_cv_c_bigendian+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 ac_cv_c_bigendian=unknown
3887 # See if sys/param.h defines the BYTE_ORDER macro.
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line 3889 "configure"
3890 #include "confdefs.h"
3891 #include <sys/types.h>
3892 #include <sys/param.h>
3897 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:3906: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>&5
3909 echo "$as_me:3909: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -s conftest.$ac_objext'
3912 { (eval echo "$as_me:3912: \"$ac_try\"") >&5
3915 echo "$as_me:3915: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 # It does; now see whether it defined to BIG_ENDIAN or not.
3918 cat >conftest.$ac_ext <<_ACEOF
3919 #line 3919 "configure"
3920 #include "confdefs.h"
3921 #include <sys/types.h>
3922 #include <sys/param.h>
3927 #if BYTE_ORDER != BIG_ENDIAN
3935 rm -f conftest.$ac_objext
3936 if { (eval echo "$as_me:3936: \"$ac_compile\"") >&5
3937 (eval $ac_compile) 2>&5
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:3942: \"$ac_try\"") >&5
3945 echo "$as_me:3945: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_c_bigendian=yes
3949 echo "$as_me: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3951 ac_cv_c_bigendian=no
3953 rm -f conftest.$ac_objext conftest.$ac_ext
3955 echo "$as_me: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3958 rm -f conftest.$ac_objext conftest.$ac_ext
3959 if test $ac_cv_c_bigendian = unknown; then
3960 if test "$cross_compiling" = yes; then
3961 { { echo "$as_me:3961: error: cannot run test program while cross compiling" >&5
3962 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3963 { (exit 1); exit 1; }; }
3965 cat >conftest.$ac_ext <<_ACEOF
3966 #line 3966 "configure"
3967 #include "confdefs.h"
3971 /* Are we little or big endian? From Harbison&Steele. */
3975 char c[sizeof (long)];
3978 exit (u.c[sizeof (long) - 1] == 1);
3981 rm -f conftest$ac_exeext
3982 if { (eval echo "$as_me:3982: \"$ac_link\"") >&5
3983 (eval $ac_link) 2>&5
3985 echo "$as_me:3985: \$? = $ac_status" >&5
3986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3987 { (eval echo "$as_me:3987: \"$ac_try\"") >&5
3990 echo "$as_me:3990: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_c_bigendian=no
3994 echo "$as_me: program exited with status $ac_status" >&5
3995 echo "$as_me: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3997 ac_cv_c_bigendian=yes
3999 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4003 echo "$as_me:4003: result: $ac_cv_c_bigendian" >&5
4004 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4005 if test $ac_cv_c_bigendian = yes; then
4007 cat >>confdefs.h <<\EOF
4008 #define WORDS_BIGENDIAN 1
4013 echo "$as_me:4013: checking for preprocessor stringizing operator" >&5
4014 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
4015 if test "${ac_cv_c_stringize+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4019 #line 4019 "configure"
4020 #include "confdefs.h"
4023 char *s = x(teststring);
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026 egrep "#teststring" >/dev/null 2>&1; then
4027 ac_cv_c_stringize=no
4029 ac_cv_c_stringize=yes
4034 echo "$as_me:4034: result: $ac_cv_c_stringize" >&5
4035 echo "${ECHO_T}$ac_cv_c_stringize" >&6
4036 if test $ac_cv_c_stringize = yes; then
4038 cat >>confdefs.h <<\EOF
4039 #define HAVE_STRINGIZE 1
4044 echo "$as_me:4044: checking for long double" >&5
4045 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4046 if test "${ac_cv_c_long_double+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test "$GCC" = yes; then
4050 ac_cv_c_long_double=yes
4052 if test "$cross_compiling" = yes; then
4053 { { echo "$as_me:4053: error: cannot run test program while cross compiling" >&5
4054 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4055 { (exit 1); exit 1; }; }
4057 cat >conftest.$ac_ext <<_ACEOF
4058 #line 4058 "configure"
4059 #include "confdefs.h"
4063 /* The Stardent Vistra knows sizeof(long double), but does not
4065 long double foo = 0.0;
4066 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4067 exit (sizeof (long double) < sizeof (double));
4070 rm -f conftest$ac_exeext
4071 if { (eval echo "$as_me:4071: \"$ac_link\"") >&5
4072 (eval $ac_link) 2>&5
4074 echo "$as_me:4074: \$? = $ac_status" >&5
4075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4076 { (eval echo "$as_me:4076: \"$ac_try\"") >&5
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 ac_cv_c_long_double=yes
4083 echo "$as_me: program exited with status $ac_status" >&5
4084 echo "$as_me: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 ac_cv_c_long_double=no
4088 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4092 echo "$as_me:4092: result: $ac_cv_c_long_double" >&5
4093 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4094 if test $ac_cv_c_long_double = yes; then
4096 cat >>confdefs.h <<\EOF
4097 #define HAVE_LONG_DOUBLE 1
4102 echo "$as_me:4102: checking for function prototypes" >&5
4103 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4104 if test "$ac_cv_prog_cc_stdc" != no; then
4105 echo "$as_me:4105: result: yes" >&5
4106 echo "${ECHO_T}yes" >&6
4108 cat >>confdefs.h <<\EOF
4109 #define PROTOTYPES 1
4113 echo "$as_me:4113: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 echo "$as_me:4117: checking for ANSI C header files" >&5
4118 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4119 if test "${ac_cv_header_stdc+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 cat >conftest.$ac_ext <<_ACEOF
4123 #line 4123 "configure"
4124 #include "confdefs.h"
4131 if { (eval echo "$as_me:4131: \"$ac_cpp conftest.$ac_ext\"") >&5
4132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4134 egrep -v '^ *\+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:4137: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null; then
4139 if test -s conftest.err; then
4140 ac_cpp_err=$ac_c_preproc_warn_flag
4147 if test -z "$ac_cpp_err"; then
4148 ac_cv_header_stdc=yes
4150 echo "$as_me: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 ac_cv_header_stdc=no
4154 rm -f conftest.err conftest.$ac_ext
4156 if test $ac_cv_header_stdc = yes; then
4157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4158 cat >conftest.$ac_ext <<_ACEOF
4159 #line 4159 "configure"
4160 #include "confdefs.h"
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165 egrep "memchr" >/dev/null 2>&1; then
4168 ac_cv_header_stdc=no
4174 if test $ac_cv_header_stdc = yes; then
4175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4176 cat >conftest.$ac_ext <<_ACEOF
4177 #line 4177 "configure"
4178 #include "confdefs.h"
4182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183 egrep "free" >/dev/null 2>&1; then
4186 ac_cv_header_stdc=no
4192 if test $ac_cv_header_stdc = yes; then
4193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4194 if test "$cross_compiling" = yes; then
4197 cat >conftest.$ac_ext <<_ACEOF
4198 #line 4198 "configure"
4199 #include "confdefs.h"
4201 #if ((' ' & 0x0FF) == 0x020)
4202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:4224: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:4227: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:4229: \"$ac_try\"") >&5
4232 echo "$as_me:4232: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4239 ac_cv_header_stdc=no
4241 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4245 echo "$as_me:4245: result: $ac_cv_header_stdc" >&5
4246 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4247 if test $ac_cv_header_stdc = yes; then
4249 cat >>confdefs.h <<\EOF
4250 #define STDC_HEADERS 1
4255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4258 inttypes.h stdint.h unistd.h
4260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4261 echo "$as_me:4261: checking for $ac_header" >&5
4262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 cat >conftest.$ac_ext <<_ACEOF
4267 #line 4267 "configure"
4268 #include "confdefs.h"
4269 $ac_includes_default
4270 #include <$ac_header>
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:4273: \"$ac_compile\"") >&5
4274 (eval $ac_compile) 2>&5
4276 echo "$as_me:4276: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:4279: \"$ac_try\"") >&5
4282 echo "$as_me:4282: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 eval "$as_ac_Header=yes"
4286 echo "$as_me: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4288 eval "$as_ac_Header=no"
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4292 echo "$as_me:4292: result: `eval echo '${'$as_ac_Header'}'`" >&5
4293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295 cat >>confdefs.h <<EOF
4296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4302 echo "$as_me:4302: checking whether char is unsigned" >&5
4303 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
4304 if test "${ac_cv_c_char_unsigned+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4308 #line 4308 "configure"
4309 #include "confdefs.h"
4310 $ac_includes_default
4314 int _array_ [1 - 2 * !(((char) -1) < 0)]
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:4320: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>&5
4323 echo "$as_me:4323: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:4326: \"$ac_try\"") >&5
4329 echo "$as_me:4329: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 ac_cv_c_char_unsigned=no
4333 echo "$as_me: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4335 ac_cv_c_char_unsigned=yes
4337 rm -f conftest.$ac_objext conftest.$ac_ext
4339 echo "$as_me:4339: result: $ac_cv_c_char_unsigned" >&5
4340 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
4341 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4342 cat >>confdefs.h <<\EOF
4343 #define __CHAR_UNSIGNED__ 1
4349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4350 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4351 echo "$as_me:4351: checking for $ac_hdr that defines DIR" >&5
4352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line 4357 "configure"
4358 #include "confdefs.h"
4359 #include <sys/types.h>
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:4372: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>&5
4375 echo "$as_me:4375: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:4378: \"$ac_try\"") >&5
4381 echo "$as_me:4381: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 eval "$as_ac_Header=yes"
4385 echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 eval "$as_ac_Header=no"
4389 rm -f conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:4391: result: `eval echo '${'$as_ac_Header'}'`" >&5
4392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4394 cat >>confdefs.h <<EOF
4395 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4398 ac_header_dirent=$ac_hdr; break
4402 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4403 if test $ac_header_dirent = dirent.h; then
4404 echo "$as_me:4404: checking for opendir in -ldir" >&5
4405 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
4406 if test "${ac_cv_lib_dir_opendir+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 ac_check_lib_save_LIBS=$LIBS
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line 4412 "configure"
4413 #include "confdefs.h"
4415 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:4431: \"$ac_link\"") >&5
4432 (eval $ac_link) 2>&5
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest$ac_exeext'
4437 { (eval echo "$as_me:4437: \"$ac_try\"") >&5
4440 echo "$as_me:4440: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_lib_dir_opendir=yes
4444 echo "$as_me: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 ac_cv_lib_dir_opendir=no
4448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4449 LIBS=$ac_check_lib_save_LIBS
4451 echo "$as_me:4451: result: $ac_cv_lib_dir_opendir" >&5
4452 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
4453 if test $ac_cv_lib_dir_opendir = yes; then
4458 echo "$as_me:4458: checking for opendir in -lx" >&5
4459 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
4460 if test "${ac_cv_lib_x_opendir+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 ac_check_lib_save_LIBS=$LIBS
4465 cat >conftest.$ac_ext <<_ACEOF
4466 #line 4466 "configure"
4467 #include "confdefs.h"
4469 /* Override any gcc2 internal prototype to avoid an error. */
4473 /* We use char because int might match the return type of a gcc2
4474 builtin and then its argument prototype would still apply. */
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (eval echo "$as_me:4485: \"$ac_link\"") >&5
4486 (eval $ac_link) 2>&5
4488 echo "$as_me:4488: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -s conftest$ac_exeext'
4491 { (eval echo "$as_me:4491: \"$ac_try\"") >&5
4494 echo "$as_me:4494: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 ac_cv_lib_x_opendir=yes
4498 echo "$as_me: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 ac_cv_lib_x_opendir=no
4502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4503 LIBS=$ac_check_lib_save_LIBS
4505 echo "$as_me:4505: result: $ac_cv_lib_x_opendir" >&5
4506 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
4507 if test $ac_cv_lib_x_opendir = yes; then
4513 echo "$as_me:4513: checking whether time.h and sys/time.h may both be included" >&5
4514 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4515 if test "${ac_cv_header_time+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 cat >conftest.$ac_ext <<_ACEOF
4519 #line 4519 "configure"
4520 #include "confdefs.h"
4521 #include <sys/types.h>
4522 #include <sys/time.h>
4528 if ((struct tm *) 0)
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:4535: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>&5
4538 echo "$as_me:4538: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:4541: \"$ac_try\"") >&5
4544 echo "$as_me:4544: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_header_time=yes
4548 echo "$as_me: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 ac_cv_header_time=no
4552 rm -f conftest.$ac_objext conftest.$ac_ext
4554 echo "$as_me:4554: result: $ac_cv_header_time" >&5
4555 echo "${ECHO_T}$ac_cv_header_time" >&6
4556 if test $ac_cv_header_time = yes; then
4558 cat >>confdefs.h <<\EOF
4559 #define TIME_WITH_SYS_TIME 1
4564 for ac_header in inttypes.h
4566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 echo "$as_me:4567: checking for $ac_header" >&5
4568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line 4573 "configure"
4574 #include "confdefs.h"
4575 #include <$ac_header>
4577 if { (eval echo "$as_me:4577: \"$ac_cpp conftest.$ac_ext\"") >&5
4578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4580 egrep -v '^ *\+' conftest.er1 >conftest.err
4582 cat conftest.err >&5
4583 echo "$as_me:4583: \$? = $ac_status" >&5
4584 (exit $ac_status); } >/dev/null; then
4585 if test -s conftest.err; then
4586 ac_cpp_err=$ac_c_preproc_warn_flag
4593 if test -z "$ac_cpp_err"; then
4594 eval "$as_ac_Header=yes"
4596 echo "$as_me: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4598 eval "$as_ac_Header=no"
4600 rm -f conftest.err conftest.$ac_ext
4602 echo "$as_me:4602: result: `eval echo '${'$as_ac_Header'}'`" >&5
4603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4605 cat >>confdefs.h <<EOF
4606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4612 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
4613 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
4614 stddef.h stdint.h netdb.h grp.h strings.h
4616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4617 echo "$as_me:4617: checking for $ac_header" >&5
4618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 cat >conftest.$ac_ext <<_ACEOF
4623 #line 4623 "configure"
4624 #include "confdefs.h"
4625 #include <$ac_header>
4627 if { (eval echo "$as_me:4627: \"$ac_cpp conftest.$ac_ext\"") >&5
4628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630 egrep -v '^ *\+' conftest.er1 >conftest.err
4632 cat conftest.err >&5
4633 echo "$as_me:4633: \$? = $ac_status" >&5
4634 (exit $ac_status); } >/dev/null; then
4635 if test -s conftest.err; then
4636 ac_cpp_err=$ac_c_preproc_warn_flag
4643 if test -z "$ac_cpp_err"; then
4644 eval "$as_ac_Header=yes"
4646 echo "$as_me: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4648 eval "$as_ac_Header=no"
4650 rm -f conftest.err conftest.$ac_ext
4652 echo "$as_me:4652: result: `eval echo '${'$as_ac_Header'}'`" >&5
4653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4655 cat >>confdefs.h <<EOF
4656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4662 for ac_header in sys/ptem.h sys/pte.h sys/stream.h sys/select.h sys/file.h \
4663 sys/resource.h sys/param.h sys/socket.h \
4664 sys/time.h sys/times.h sys/wait.h
4666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4667 echo "$as_me:4667: checking for $ac_header" >&5
4668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 cat >conftest.$ac_ext <<_ACEOF
4673 #line 4673 "configure"
4674 #include "confdefs.h"
4675 #include <$ac_header>
4677 if { (eval echo "$as_me:4677: \"$ac_cpp conftest.$ac_ext\"") >&5
4678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4680 egrep -v '^ *\+' conftest.er1 >conftest.err
4682 cat conftest.err >&5
4683 echo "$as_me:4683: \$? = $ac_status" >&5
4684 (exit $ac_status); } >/dev/null; then
4685 if test -s conftest.err; then
4686 ac_cpp_err=$ac_c_preproc_warn_flag
4693 if test -z "$ac_cpp_err"; then
4694 eval "$as_ac_Header=yes"
4696 echo "$as_me: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 eval "$as_ac_Header=no"
4700 rm -f conftest.err conftest.$ac_ext
4702 echo "$as_me:4702: result: `eval echo '${'$as_ac_Header'}'`" >&5
4703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4705 cat >>confdefs.h <<EOF
4706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4712 for ac_header in netinet/in.h arpa/inet.h
4714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715 echo "$as_me:4715: checking for $ac_header" >&5
4716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line 4721 "configure"
4722 #include "confdefs.h"
4723 #include <$ac_header>
4725 if { (eval echo "$as_me:4725: \"$ac_cpp conftest.$ac_ext\"") >&5
4726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4728 egrep -v '^ *\+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 echo "$as_me:4731: \$? = $ac_status" >&5
4732 (exit $ac_status); } >/dev/null; then
4733 if test -s conftest.err; then
4734 ac_cpp_err=$ac_c_preproc_warn_flag
4741 if test -z "$ac_cpp_err"; then
4742 eval "$as_ac_Header=yes"
4744 echo "$as_me: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 eval "$as_ac_Header=no"
4748 rm -f conftest.err conftest.$ac_ext
4750 echo "$as_me:4750: result: `eval echo '${'$as_ac_Header'}'`" >&5
4751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4753 cat >>confdefs.h <<EOF
4754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4760 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4761 # for constant arguments. Useless!
4762 echo "$as_me:4762: checking for working alloca.h" >&5
4763 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4764 if test "${ac_cv_working_alloca_h+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 cat >conftest.$ac_ext <<_ACEOF
4768 #line 4768 "configure"
4769 #include "confdefs.h"
4774 char *p = (char *) alloca (2 * sizeof (int));
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:4780: \"$ac_link\"") >&5
4781 (eval $ac_link) 2>&5
4783 echo "$as_me:4783: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -s conftest$ac_exeext'
4786 { (eval echo "$as_me:4786: \"$ac_try\"") >&5
4789 echo "$as_me:4789: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_cv_working_alloca_h=yes
4793 echo "$as_me: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4795 ac_cv_working_alloca_h=no
4797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4799 echo "$as_me:4799: result: $ac_cv_working_alloca_h" >&5
4800 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4801 if test $ac_cv_working_alloca_h = yes; then
4803 cat >>confdefs.h <<\EOF
4804 #define HAVE_ALLOCA_H 1
4809 echo "$as_me:4809: checking for alloca" >&5
4810 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4811 if test "${ac_cv_func_alloca_works+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 cat >conftest.$ac_ext <<_ACEOF
4815 #line 4815 "configure"
4816 #include "confdefs.h"
4818 # define alloca __builtin_alloca
4821 # include <malloc.h>
4822 # define alloca _alloca
4825 # include <alloca.h>
4830 # ifndef alloca /* predefined by HP cc +Olibcalls */
4841 char *p = (char *) alloca (1);
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (eval echo "$as_me:4847: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>&5
4850 echo "$as_me:4850: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try='test -s conftest$ac_exeext'
4853 { (eval echo "$as_me:4853: \"$ac_try\"") >&5
4856 echo "$as_me:4856: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_func_alloca_works=yes
4860 echo "$as_me: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4862 ac_cv_func_alloca_works=no
4864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4866 echo "$as_me:4866: result: $ac_cv_func_alloca_works" >&5
4867 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4869 if test $ac_cv_func_alloca_works = yes; then
4871 cat >>confdefs.h <<\EOF
4872 #define HAVE_ALLOCA 1
4876 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4877 # that cause trouble. Some versions do not even contain alloca or
4878 # contain a buggy version. If you still want to use their alloca,
4879 # use ar to extract alloca.o from them instead of compiling alloca.c.
4881 ALLOCA=alloca.$ac_objext
4883 cat >>confdefs.h <<\EOF
4887 echo "$as_me:4887: checking whether \`alloca.c' needs Cray hooks" >&5
4888 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4889 if test "${ac_cv_os_cray+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line 4893 "configure"
4894 #include "confdefs.h"
4895 #if defined(CRAY) && ! defined(CRAY2)
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903 egrep "webecray" >/dev/null 2>&1; then
4911 echo "$as_me:4911: result: $ac_cv_os_cray" >&5
4912 echo "${ECHO_T}$ac_cv_os_cray" >&6
4913 if test $ac_cv_os_cray = yes; then
4914 for ac_func in _getb67 GETB67 getb67; do
4915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4916 echo "$as_me:4916: checking for $ac_func" >&5
4917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4918 if eval "test \"\${$as_ac_var+set}\" = set"; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 cat >conftest.$ac_ext <<_ACEOF
4922 #line 4922 "configure"
4923 #include "confdefs.h"
4924 /* System header to define __stub macros and hopefully few prototypes,
4925 which can conflict with char $ac_func (); below. */
4927 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4939 /* The GNU C library defines this for functions which it implements
4940 to always fail with ENOSYS. Some functions are actually named
4941 something starting with __ and the normal name is an alias. */
4942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4952 rm -f conftest.$ac_objext conftest$ac_exeext
4953 if { (eval echo "$as_me:4953: \"$ac_link\"") >&5
4954 (eval $ac_link) 2>&5
4956 echo "$as_me:4956: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -s conftest$ac_exeext'
4959 { (eval echo "$as_me:4959: \"$ac_try\"") >&5
4962 echo "$as_me:4962: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 eval "$as_ac_var=yes"
4966 echo "$as_me: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4968 eval "$as_ac_var=no"
4970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4972 echo "$as_me:4972: result: `eval echo '${'$as_ac_var'}'`" >&5
4973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4974 if test `eval echo '${'$as_ac_var'}'` = yes; then
4976 cat >>confdefs.h <<EOF
4977 #define CRAY_STACKSEG_END $ac_func
4986 echo "$as_me:4986: checking stack direction for C alloca" >&5
4987 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4988 if test "${ac_cv_c_stack_direction+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test "$cross_compiling" = yes; then
4992 ac_cv_c_stack_direction=0
4994 cat >conftest.$ac_ext <<_ACEOF
4995 #line 4995 "configure"
4996 #include "confdefs.h"
4998 find_stack_direction ()
5000 static char *addr = 0;
5005 return find_stack_direction ();
5008 return (&dummy > addr) ? 1 : -1;
5014 exit (find_stack_direction () < 0);
5017 rm -f conftest$ac_exeext
5018 if { (eval echo "$as_me:5018: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>&5
5021 echo "$as_me:5021: \$? = $ac_status" >&5
5022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5023 { (eval echo "$as_me:5023: \"$ac_try\"") >&5
5026 echo "$as_me:5026: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 ac_cv_c_stack_direction=1
5030 echo "$as_me: program exited with status $ac_status" >&5
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5033 ac_cv_c_stack_direction=-1
5035 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5038 echo "$as_me:5038: result: $ac_cv_c_stack_direction" >&5
5039 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5041 cat >>confdefs.h <<EOF
5042 #define STACK_DIRECTION $ac_cv_c_stack_direction
5047 echo "$as_me:5047: checking whether getpgrp takes no argument" >&5
5048 echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6
5049 if test "${ac_cv_func_getpgrp_void+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 # Use it with a single arg.
5053 cat >conftest.$ac_ext <<_ACEOF
5054 #line 5054 "configure"
5055 #include "confdefs.h"
5056 $ac_includes_default
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:5066: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>&5
5069 echo "$as_me:5069: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -s conftest.$ac_objext'
5072 { (eval echo "$as_me:5072: \"$ac_try\"") >&5
5075 echo "$as_me:5075: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 ac_func_getpgrp_1=yes
5079 echo "$as_me: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5081 ac_func_getpgrp_1=no
5083 rm -f conftest.$ac_objext conftest.$ac_ext
5084 # Use it with no arg.
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line 5086 "configure"
5087 #include "confdefs.h"
5088 $ac_includes_default
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:5098: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>&5
5101 echo "$as_me:5101: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:5104: \"$ac_try\"") >&5
5107 echo "$as_me:5107: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_func_getpgrp_0=yes
5111 echo "$as_me: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5113 ac_func_getpgrp_0=no
5115 rm -f conftest.$ac_objext conftest.$ac_ext
5116 # If both static checks agree, we are done.
5117 case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in
5118 yes:no) ac_cv_func_getpgrp_void=yes;;
5119 no:yes) ac_cv_func_getpgrp_void=false;;
5120 *) if test "$cross_compiling" = yes; then
5121 { { echo "$as_me:5121: error: cannot check getpgrp if cross compiling" >&5
5122 echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;}
5123 { (exit 1); exit 1; }; }
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line 5126 "configure"
5127 #include "confdefs.h"
5128 $ac_includes_default
5131 * If this system has a BSD-style getpgrp(),
5132 * which takes a pid argument, exit unsuccessfully.
5134 * Snarfed from Chet Ramey's bash pgrp.c test program
5138 int pg1, pg2, pg3, pg4;
5139 int ng, np, s, child;
5147 pg3 = getpgrp (pid);
5150 /* If all of these values are the same, it's pretty sure that we're
5151 on a system that ignores getpgrp's first argument. */
5152 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
5158 else if (child == 0)
5161 /* If this is Sys V, this will not work; pgrp will be set to np
5162 because setpgrp just changes a pgrp to be the same as the
5165 ng = getpgrp (0); /* Same result for Sys V and BSD */
5179 rm -f conftest$ac_exeext
5180 if { (eval echo "$as_me:5180: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>&5
5183 echo "$as_me:5183: \$? = $ac_status" >&5
5184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5185 { (eval echo "$as_me:5185: \"$ac_try\"") >&5
5188 echo "$as_me:5188: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_func_getpgrp_void=yes
5192 echo "$as_me: program exited with status $ac_status" >&5
5193 echo "$as_me: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 ac_cv_func_getpgrp_void=no
5197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5199 esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1
5202 echo "$as_me:5202: result: $ac_cv_func_getpgrp_void" >&5
5203 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
5204 if test $ac_cv_func_getpgrp_void = yes; then
5206 cat >>confdefs.h <<\EOF
5207 #define GETPGRP_VOID 1
5212 echo "$as_me:5212: checking whether setvbuf arguments are reversed" >&5
5213 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
5214 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 if test "$cross_compiling" = yes; then
5218 { { echo "$as_me:5218: error: cannot run test program while cross compiling" >&5
5219 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5220 { (exit 1); exit 1; }; }
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line 5223 "configure"
5224 #include "confdefs.h"
5226 /* If setvbuf has the reversed format, exit 0. */
5230 /* This call has the arguments reversed.
5231 A reversed system may check and see that the address of main
5232 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
5233 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
5236 exit(0); /* Non-reversed systems segv here. */
5239 rm -f conftest$ac_exeext
5240 if { (eval echo "$as_me:5240: \"$ac_link\"") >&5
5241 (eval $ac_link) 2>&5
5243 echo "$as_me:5243: \$? = $ac_status" >&5
5244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5245 { (eval echo "$as_me:5245: \"$ac_try\"") >&5
5248 echo "$as_me:5248: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_cv_func_setvbuf_reversed=yes
5252 echo "$as_me: program exited with status $ac_status" >&5
5253 echo "$as_me: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 ac_cv_func_setvbuf_reversed=no
5257 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5259 rm -f core core.* *.core
5261 echo "$as_me:5261: result: $ac_cv_func_setvbuf_reversed" >&5
5262 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
5263 if test $ac_cv_func_setvbuf_reversed = yes; then
5265 cat >>confdefs.h <<\EOF
5266 #define SETVBUF_REVERSED 1
5271 for ac_func in vprintf
5273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5274 echo "$as_me:5274: checking for $ac_func" >&5
5275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5276 if eval "test \"\${$as_ac_var+set}\" = set"; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 cat >conftest.$ac_ext <<_ACEOF
5280 #line 5280 "configure"
5281 #include "confdefs.h"
5282 /* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func (); below. */
5285 /* Override any gcc2 internal prototype to avoid an error. */
5289 /* We use char because int might match the return type of a gcc2
5290 builtin and then its argument prototype would still apply. */
5297 /* The GNU C library defines this for functions which it implements
5298 to always fail with ENOSYS. Some functions are actually named
5299 something starting with __ and the normal name is an alias. */
5300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5310 rm -f conftest.$ac_objext conftest$ac_exeext
5311 if { (eval echo "$as_me:5311: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>&5
5314 echo "$as_me:5314: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -s conftest$ac_exeext'
5317 { (eval echo "$as_me:5317: \"$ac_try\"") >&5
5320 echo "$as_me:5320: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5322 eval "$as_ac_var=yes"
5324 echo "$as_me: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 eval "$as_ac_var=no"
5328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5330 echo "$as_me:5330: result: `eval echo '${'$as_ac_var'}'`" >&5
5331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5332 if test `eval echo '${'$as_ac_var'}'` = yes; then
5333 cat >>confdefs.h <<EOF
5334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5337 echo "$as_me:5337: checking for _doprnt" >&5
5338 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5339 if test "${ac_cv_func__doprnt+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 cat >conftest.$ac_ext <<_ACEOF
5343 #line 5343 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char _doprnt (); below. */
5348 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5360 /* The GNU C library defines this for functions which it implements
5361 to always fail with ENOSYS. Some functions are actually named
5362 something starting with __ and the normal name is an alias. */
5363 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5373 rm -f conftest.$ac_objext conftest$ac_exeext
5374 if { (eval echo "$as_me:5374: \"$ac_link\"") >&5
5375 (eval $ac_link) 2>&5
5377 echo "$as_me:5377: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -s conftest$ac_exeext'
5380 { (eval echo "$as_me:5380: \"$ac_try\"") >&5
5383 echo "$as_me:5383: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 ac_cv_func__doprnt=yes
5387 echo "$as_me: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5389 ac_cv_func__doprnt=no
5391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5393 echo "$as_me:5393: result: $ac_cv_func__doprnt" >&5
5394 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5395 if test $ac_cv_func__doprnt = yes; then
5397 cat >>confdefs.h <<\EOF
5398 #define HAVE_DOPRNT 1
5406 echo "$as_me:5406: checking for working strcoll" >&5
5407 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
5408 if test "${ac_cv_func_strcoll_works+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 if test "$cross_compiling" = yes; then
5412 ac_cv_func_strcoll_works=no
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line 5415 "configure"
5416 #include "confdefs.h"
5417 $ac_includes_default
5421 exit (strcoll ("abc", "def") >= 0 ||
5422 strcoll ("ABC", "DEF") >= 0 ||
5423 strcoll ("123", "456") >= 0)
5428 rm -f conftest$ac_exeext
5429 if { (eval echo "$as_me:5429: \"$ac_link\"") >&5
5430 (eval $ac_link) 2>&5
5432 echo "$as_me:5432: \$? = $ac_status" >&5
5433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5434 { (eval echo "$as_me:5434: \"$ac_try\"") >&5
5437 echo "$as_me:5437: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_cv_func_strcoll_works=yes
5441 echo "$as_me: program exited with status $ac_status" >&5
5442 echo "$as_me: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 ac_cv_func_strcoll_works=no
5446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5449 echo "$as_me:5449: result: $ac_cv_func_strcoll_works" >&5
5450 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
5451 if test $ac_cv_func_strcoll_works = yes; then
5453 cat >>confdefs.h <<\EOF
5454 #define HAVE_STRCOLL 1
5459 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
5460 MALLOC_TARGET=alloca
5463 MALLOC_LIB='-lmalloc'
5464 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
5465 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
5466 MALLOC_DEP='$(MALLOC_LIBRARY)'
5469 if test "$ac_cv_func_vprintf" = no; then
5470 echo "$as_me:5470: checking for declaration of vprintf in stdio.h" >&5
5471 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
5472 cat >conftest.$ac_ext <<_ACEOF
5473 #line 5473 "configure"
5474 #include "confdefs.h"
5478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5479 egrep "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
5480 ac_cv_func_vprintf=yes
5484 echo "$as_me:5484: result: $ac_cv_func_vprintf" >&5
5485 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
5486 if test $ac_cv_func_vprintf = yes; then
5487 cat >>confdefs.h <<\EOF
5488 #define HAVE_VPRINTF 1
5494 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
5495 LIBOBJS="$LIBOBJS vprint.$ac_objext"
5498 echo "$as_me:5498: checking return type of signal handlers" >&5
5499 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5500 if test "${ac_cv_type_signal+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 cat >conftest.$ac_ext <<_ACEOF
5504 #line 5504 "configure"
5505 #include "confdefs.h"
5506 #include <sys/types.h>
5512 extern "C" void (*signal (int, void (*)(int)))(int);
5514 void (*signal ()) ();
5525 rm -f conftest.$ac_objext
5526 if { (eval echo "$as_me:5526: \"$ac_compile\"") >&5
5527 (eval $ac_compile) 2>&5
5529 echo "$as_me:5529: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -s conftest.$ac_objext'
5532 { (eval echo "$as_me:5532: \"$ac_try\"") >&5
5535 echo "$as_me:5535: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_cv_type_signal=void
5539 echo "$as_me: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5541 ac_cv_type_signal=int
5543 rm -f conftest.$ac_objext conftest.$ac_ext
5545 echo "$as_me:5545: result: $ac_cv_type_signal" >&5
5546 echo "${ECHO_T}$ac_cv_type_signal" >&6
5548 cat >>confdefs.h <<EOF
5549 #define RETSIGTYPE $ac_cv_type_signal
5552 echo "$as_me:5552: checking for __setostype" >&5
5553 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
5554 if test "${ac_cv_func___setostype+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 cat >conftest.$ac_ext <<_ACEOF
5558 #line 5558 "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char __setostype (); below. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5569 char __setostype ();
5575 /* The GNU C library defines this for functions which it implements
5576 to always fail with ENOSYS. Some functions are actually named
5577 something starting with __ and the normal name is an alias. */
5578 #if defined (__stub___setostype) || defined (__stub_____setostype)
5588 rm -f conftest.$ac_objext conftest$ac_exeext
5589 if { (eval echo "$as_me:5589: \"$ac_link\"") >&5
5590 (eval $ac_link) 2>&5
5592 echo "$as_me:5592: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -s conftest$ac_exeext'
5595 { (eval echo "$as_me:5595: \"$ac_try\"") >&5
5598 echo "$as_me:5598: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_cv_func___setostype=yes
5602 echo "$as_me: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5604 ac_cv_func___setostype=no
5606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5608 echo "$as_me:5608: result: $ac_cv_func___setostype" >&5
5609 echo "${ECHO_T}$ac_cv_func___setostype" >&6
5610 if test $ac_cv_func___setostype = yes; then
5611 cat >>confdefs.h <<\EOF
5612 #define HAVE_SETOSTYPE 1
5617 echo "$as_me:5617: checking for wait3" >&5
5618 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
5619 if test "${ac_cv_func_wait3+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line 5623 "configure"
5624 #include "confdefs.h"
5625 /* System header to define __stub macros and hopefully few prototypes,
5626 which can conflict with char wait3 (); below. */
5628 /* Override any gcc2 internal prototype to avoid an error. */
5632 /* We use char because int might match the return type of a gcc2
5633 builtin and then its argument prototype would still apply. */
5640 /* The GNU C library defines this for functions which it implements
5641 to always fail with ENOSYS. Some functions are actually named
5642 something starting with __ and the normal name is an alias. */
5643 #if defined (__stub_wait3) || defined (__stub___wait3)
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:5654: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5657 echo "$as_me:5657: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -s conftest$ac_exeext'
5660 { (eval echo "$as_me:5660: \"$ac_try\"") >&5
5663 echo "$as_me:5663: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_cv_func_wait3=yes
5667 echo "$as_me: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5673 echo "$as_me:5673: result: $ac_cv_func_wait3" >&5
5674 echo "${ECHO_T}$ac_cv_func_wait3" >&6
5675 if test $ac_cv_func_wait3 = yes; then
5676 cat >>confdefs.h <<\EOF
5677 #define HAVE_WAIT3 1
5682 echo "$as_me:5682: checking for isinf" >&5
5683 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
5684 if test "${ac_cv_func_isinf+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 cat >conftest.$ac_ext <<_ACEOF
5688 #line 5688 "configure"
5689 #include "confdefs.h"
5690 /* System header to define __stub macros and hopefully few prototypes,
5691 which can conflict with char isinf (); below. */
5693 /* Override any gcc2 internal prototype to avoid an error. */
5697 /* We use char because int might match the return type of a gcc2
5698 builtin and then its argument prototype would still apply. */
5705 /* The GNU C library defines this for functions which it implements
5706 to always fail with ENOSYS. Some functions are actually named
5707 something starting with __ and the normal name is an alias. */
5708 #if defined (__stub_isinf) || defined (__stub___isinf)
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (eval echo "$as_me:5719: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>&5
5722 echo "$as_me:5722: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest$ac_exeext'
5725 { (eval echo "$as_me:5725: \"$ac_try\"") >&5
5728 echo "$as_me:5728: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_func_isinf=yes
5732 echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5738 echo "$as_me:5738: result: $ac_cv_func_isinf" >&5
5739 echo "${ECHO_T}$ac_cv_func_isinf" >&6
5740 if test $ac_cv_func_isinf = yes; then
5741 cat >>confdefs.h <<\EOF
5742 #define HAVE_ISINF_IN_LIBC 1
5747 echo "$as_me:5747: checking for mkfifo" >&5
5748 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
5749 if test "${ac_cv_func_mkfifo+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 cat >conftest.$ac_ext <<_ACEOF
5753 #line 5753 "configure"
5754 #include "confdefs.h"
5755 /* System header to define __stub macros and hopefully few prototypes,
5756 which can conflict with char mkfifo (); below. */
5758 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:5784: \"$ac_link\"") >&5
5785 (eval $ac_link) 2>&5
5787 echo "$as_me:5787: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -s conftest$ac_exeext'
5790 { (eval echo "$as_me:5790: \"$ac_try\"") >&5
5793 echo "$as_me:5793: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_cv_func_mkfifo=yes
5797 echo "$as_me: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 ac_cv_func_mkfifo=no
5801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5803 echo "$as_me:5803: result: $ac_cv_func_mkfifo" >&5
5804 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
5805 if test $ac_cv_func_mkfifo = yes; then
5806 cat >>confdefs.h <<\EOF
5807 #define HAVE_MKFIFO 1
5811 cat >>confdefs.h <<\EOF
5812 #define MKFIFO_MISSING 1
5817 for ac_func in dup2 select getdtablesize getgroups gethostname \
5818 setdtablesize getpagesize killpg lstat getpeername sbrk \
5819 getrlimit getrusage gettimeofday waitpid tcgetpgrp \
5822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5823 echo "$as_me:5823: checking for $ac_func" >&5
5824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5825 if eval "test \"\${$as_ac_var+set}\" = set"; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 cat >conftest.$ac_ext <<_ACEOF
5829 #line 5829 "configure"
5830 #include "confdefs.h"
5831 /* System header to define __stub macros and hopefully few prototypes,
5832 which can conflict with char $ac_func (); below. */
5834 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */
5846 /* The GNU C library defines this for functions which it implements
5847 to always fail with ENOSYS. Some functions are actually named
5848 something starting with __ and the normal name is an alias. */
5849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:5860: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>&5
5863 echo "$as_me:5863: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -s conftest$ac_exeext'
5866 { (eval echo "$as_me:5866: \"$ac_try\"") >&5
5869 echo "$as_me:5869: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 eval "$as_ac_var=yes"
5873 echo "$as_me: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5875 eval "$as_ac_var=no"
5877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5879 echo "$as_me:5879: result: `eval echo '${'$as_ac_var'}'`" >&5
5880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5881 if test `eval echo '${'$as_ac_var'}'` = yes; then
5882 cat >>confdefs.h <<EOF
5883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5889 for ac_func in rename
5891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5892 echo "$as_me:5892: checking for $ac_func" >&5
5893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5894 if eval "test \"\${$as_ac_var+set}\" = set"; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 cat >conftest.$ac_ext <<_ACEOF
5898 #line 5898 "configure"
5899 #include "confdefs.h"
5900 /* System header to define __stub macros and hopefully few prototypes,
5901 which can conflict with char $ac_func (); below. */
5903 /* Override any gcc2 internal prototype to avoid an error. */
5907 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */
5915 /* The GNU C library defines this for functions which it implements
5916 to always fail with ENOSYS. Some functions are actually named
5917 something starting with __ and the normal name is an alias. */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:5929: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5932 echo "$as_me:5932: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -s conftest$ac_exeext'
5935 { (eval echo "$as_me:5935: \"$ac_try\"") >&5
5938 echo "$as_me:5938: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 eval "$as_ac_var=yes"
5942 echo "$as_me: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5944 eval "$as_ac_var=no"
5946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5948 echo "$as_me:5948: result: `eval echo '${'$as_ac_var'}'`" >&5
5949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5950 if test `eval echo '${'$as_ac_var'}'` = yes; then
5951 cat >>confdefs.h <<EOF
5952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5956 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5960 for ac_func in bcopy bzero confstr sysconf pathconf setenv putenv unsetenv \
5961 setlinebuf setvbuf setlocale strchr tcgetattr uname \
5962 ulimit tzset siginterrupt memmove ttyname times \
5963 getaddrinfo gethostbyname getservbyname getservent inet_aton \
5964 vsnprintf snprintf vasprintf asprintf fnmatch
5966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5967 echo "$as_me:5967: checking for $ac_func" >&5
5968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5969 if eval "test \"\${$as_ac_var+set}\" = set"; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line 5973 "configure"
5974 #include "confdefs.h"
5975 /* System header to define __stub macros and hopefully few prototypes,
5976 which can conflict with char $ac_func (); below. */
5978 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5990 /* The GNU C library defines this for functions which it implements
5991 to always fail with ENOSYS. Some functions are actually named
5992 something starting with __ and the normal name is an alias. */
5993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (eval echo "$as_me:6004: \"$ac_link\"") >&5
6005 (eval $ac_link) 2>&5
6007 echo "$as_me:6007: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -s conftest$ac_exeext'
6010 { (eval echo "$as_me:6010: \"$ac_try\"") >&5
6013 echo "$as_me:6013: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 eval "$as_ac_var=yes"
6017 echo "$as_me: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6019 eval "$as_ac_var=no"
6021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6023 echo "$as_me:6023: result: `eval echo '${'$as_ac_var'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6025 if test `eval echo '${'$as_ac_var'}'` = yes; then
6026 cat >>confdefs.h <<EOF
6027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6033 for ac_func in isascii isblank isgraph isprint isspace isxdigit
6035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6036 echo "$as_me:6036: checking for $ac_func" >&5
6037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6038 if eval "test \"\${$as_ac_var+set}\" = set"; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 cat >conftest.$ac_ext <<_ACEOF
6042 #line 6042 "configure"
6043 #include "confdefs.h"
6044 /* System header to define __stub macros and hopefully few prototypes,
6045 which can conflict with char $ac_func (); below. */
6047 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */
6059 /* The GNU C library defines this for functions which it implements
6060 to always fail with ENOSYS. Some functions are actually named
6061 something starting with __ and the normal name is an alias. */
6062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (eval echo "$as_me:6073: \"$ac_link\"") >&5
6074 (eval $ac_link) 2>&5
6076 echo "$as_me:6076: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -s conftest$ac_exeext'
6079 { (eval echo "$as_me:6079: \"$ac_try\"") >&5
6082 echo "$as_me:6082: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 eval "$as_ac_var=yes"
6086 echo "$as_me: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 eval "$as_ac_var=no"
6090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6092 echo "$as_me:6092: result: `eval echo '${'$as_ac_var'}'`" >&5
6093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6094 if test `eval echo '${'$as_ac_var'}'` = yes; then
6095 cat >>confdefs.h <<EOF
6096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6102 for ac_func in getcwd strcasecmp strerror strftime strpbrk memset
6104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6105 echo "$as_me:6105: checking for $ac_func" >&5
6106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_var+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line 6111 "configure"
6112 #include "confdefs.h"
6113 /* System header to define __stub macros and hopefully few prototypes,
6114 which can conflict with char $ac_func (); below. */
6116 /* Override any gcc2 internal prototype to avoid an error. */
6120 /* We use char because int might match the return type of a gcc2
6121 builtin and then its argument prototype would still apply. */
6128 /* The GNU C library defines this for functions which it implements
6129 to always fail with ENOSYS. Some functions are actually named
6130 something starting with __ and the normal name is an alias. */
6131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6141 rm -f conftest.$ac_objext conftest$ac_exeext
6142 if { (eval echo "$as_me:6142: \"$ac_link\"") >&5
6143 (eval $ac_link) 2>&5
6145 echo "$as_me:6145: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -s conftest$ac_exeext'
6148 { (eval echo "$as_me:6148: \"$ac_try\"") >&5
6151 echo "$as_me:6151: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 eval "$as_ac_var=yes"
6155 echo "$as_me: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6157 eval "$as_ac_var=no"
6159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6161 echo "$as_me:6161: result: `eval echo '${'$as_ac_var'}'`" >&5
6162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6163 if test `eval echo '${'$as_ac_var'}'` = yes; then
6164 cat >>confdefs.h <<EOF
6165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6169 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6173 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
6175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6176 echo "$as_me:6176: checking for $ac_func" >&5
6177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6178 if eval "test \"\${$as_ac_var+set}\" = set"; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 cat >conftest.$ac_ext <<_ACEOF
6182 #line 6182 "configure"
6183 #include "confdefs.h"
6184 /* System header to define __stub macros and hopefully few prototypes,
6185 which can conflict with char $ac_func (); below. */
6187 /* Override any gcc2 internal prototype to avoid an error. */
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6199 /* The GNU C library defines this for functions which it implements
6200 to always fail with ENOSYS. Some functions are actually named
6201 something starting with __ and the normal name is an alias. */
6202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6212 rm -f conftest.$ac_objext conftest$ac_exeext
6213 if { (eval echo "$as_me:6213: \"$ac_link\"") >&5
6214 (eval $ac_link) 2>&5
6216 echo "$as_me:6216: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -s conftest$ac_exeext'
6219 { (eval echo "$as_me:6219: \"$ac_try\"") >&5
6222 echo "$as_me:6222: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 eval "$as_ac_var=yes"
6226 echo "$as_me: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 eval "$as_ac_var=no"
6230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6232 echo "$as_me:6232: result: `eval echo '${'$as_ac_var'}'`" >&5
6233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6234 if test `eval echo '${'$as_ac_var'}'` = yes; then
6235 cat >>confdefs.h <<EOF
6236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6240 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6244 echo "$as_me:6244: checking whether confstr is declared" >&5
6245 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
6246 if test "${ac_cv_have_decl_confstr+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 cat >conftest.$ac_ext <<_ACEOF
6250 #line 6250 "configure"
6251 #include "confdefs.h"
6252 $ac_includes_default
6257 char *p = (char *) confstr;
6264 rm -f conftest.$ac_objext
6265 if { (eval echo "$as_me:6265: \"$ac_compile\"") >&5
6266 (eval $ac_compile) 2>&5
6268 echo "$as_me:6268: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -s conftest.$ac_objext'
6271 { (eval echo "$as_me:6271: \"$ac_try\"") >&5
6274 echo "$as_me:6274: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_have_decl_confstr=yes
6278 echo "$as_me: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6280 ac_cv_have_decl_confstr=no
6282 rm -f conftest.$ac_objext conftest.$ac_ext
6284 echo "$as_me:6284: result: $ac_cv_have_decl_confstr" >&5
6285 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
6286 if test $ac_cv_have_decl_confstr = yes; then
6288 cat >>confdefs.h <<EOF
6289 #define HAVE_DECL_CONFSTR 1
6293 cat >>confdefs.h <<EOF
6294 #define HAVE_DECL_CONFSTR 0
6299 echo "$as_me:6299: checking whether printf is declared" >&5
6300 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
6301 if test "${ac_cv_have_decl_printf+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 cat >conftest.$ac_ext <<_ACEOF
6305 #line 6305 "configure"
6306 #include "confdefs.h"
6307 $ac_includes_default
6312 char *p = (char *) printf;
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:6320: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>&5
6323 echo "$as_me:6323: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:6326: \"$ac_try\"") >&5
6329 echo "$as_me:6329: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_cv_have_decl_printf=yes
6333 echo "$as_me: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6335 ac_cv_have_decl_printf=no
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6339 echo "$as_me:6339: result: $ac_cv_have_decl_printf" >&5
6340 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
6341 if test $ac_cv_have_decl_printf = yes; then
6343 cat >>confdefs.h <<EOF
6344 #define HAVE_DECL_PRINTF 1
6348 cat >>confdefs.h <<EOF
6349 #define HAVE_DECL_PRINTF 0
6354 echo "$as_me:6354: checking whether sbrk is declared" >&5
6355 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
6356 if test "${ac_cv_have_decl_sbrk+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line 6360 "configure"
6361 #include "confdefs.h"
6362 $ac_includes_default
6367 char *p = (char *) sbrk;
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:6375: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6378 echo "$as_me:6378: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:6381: \"$ac_try\"") >&5
6384 echo "$as_me:6384: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_have_decl_sbrk=yes
6388 echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6390 ac_cv_have_decl_sbrk=no
6392 rm -f conftest.$ac_objext conftest.$ac_ext
6394 echo "$as_me:6394: result: $ac_cv_have_decl_sbrk" >&5
6395 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
6396 if test $ac_cv_have_decl_sbrk = yes; then
6398 cat >>confdefs.h <<EOF
6399 #define HAVE_DECL_SBRK 1
6403 cat >>confdefs.h <<EOF
6404 #define HAVE_DECL_SBRK 0
6409 echo "$as_me:6409: checking whether strcpy is declared" >&5
6410 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
6411 if test "${ac_cv_have_decl_strcpy+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6415 #line 6415 "configure"
6416 #include "confdefs.h"
6417 $ac_includes_default
6422 char *p = (char *) strcpy;
6429 rm -f conftest.$ac_objext
6430 if { (eval echo "$as_me:6430: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>&5
6433 echo "$as_me:6433: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:6436: \"$ac_try\"") >&5
6439 echo "$as_me:6439: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 ac_cv_have_decl_strcpy=yes
6443 echo "$as_me: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6445 ac_cv_have_decl_strcpy=no
6447 rm -f conftest.$ac_objext conftest.$ac_ext
6449 echo "$as_me:6449: result: $ac_cv_have_decl_strcpy" >&5
6450 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
6451 if test $ac_cv_have_decl_strcpy = yes; then
6453 cat >>confdefs.h <<EOF
6454 #define HAVE_DECL_STRCPY 1
6458 cat >>confdefs.h <<EOF
6459 #define HAVE_DECL_STRCPY 0
6464 echo "$as_me:6464: checking whether strsignal is declared" >&5
6465 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
6466 if test "${ac_cv_have_decl_strsignal+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 cat >conftest.$ac_ext <<_ACEOF
6470 #line 6470 "configure"
6471 #include "confdefs.h"
6472 $ac_includes_default
6477 char *p = (char *) strsignal;
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:6485: \"$ac_compile\"") >&5
6486 (eval $ac_compile) 2>&5
6488 echo "$as_me:6488: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:6491: \"$ac_try\"") >&5
6494 echo "$as_me:6494: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_have_decl_strsignal=yes
6498 echo "$as_me: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6500 ac_cv_have_decl_strsignal=no
6502 rm -f conftest.$ac_objext conftest.$ac_ext
6504 echo "$as_me:6504: result: $ac_cv_have_decl_strsignal" >&5
6505 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
6506 if test $ac_cv_have_decl_strsignal = yes; then
6508 cat >>confdefs.h <<EOF
6509 #define HAVE_DECL_STRSIGNAL 1
6513 cat >>confdefs.h <<EOF
6514 #define HAVE_DECL_STRSIGNAL 0
6519 echo "$as_me:6519: checking whether strtold is declared" >&5
6520 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
6521 if test "${ac_cv_have_decl_strtold+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line 6525 "configure"
6526 #include "confdefs.h"
6527 $ac_includes_default
6532 char *p = (char *) strtold;
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:6540: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:6543: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:6546: \"$ac_try\"") >&5
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_have_decl_strtold=yes
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 ac_cv_have_decl_strtold=no
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6559 echo "$as_me:6559: result: $ac_cv_have_decl_strtold" >&5
6560 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
6561 if test $ac_cv_have_decl_strtold = yes; then
6563 cat >>confdefs.h <<EOF
6564 #define HAVE_DECL_STRTOLD 1
6568 cat >>confdefs.h <<EOF
6569 #define HAVE_DECL_STRTOLD 0
6574 echo "$as_me:6574: checking for declaration of strtoimax" >&5
6575 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
6576 if test "${bash_cv_decl_strtoimax+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 cat >conftest.$ac_ext <<_ACEOF
6580 #line 6580 "configure"
6581 #include "confdefs.h"
6584 # include <stdlib.h>
6587 # include <inttypes.h>
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:6599: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6602 echo "$as_me:6602: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:6605: \"$ac_try\"") >&5
6608 echo "$as_me:6608: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 bash_cv_decl_strtoimax=yes
6612 echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 bash_cv_decl_strtoimax=no
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6618 echo "$as_me:6618: result: $bash_cv_decl_strtoimax" >&5
6619 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
6620 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6621 if test $bash_cv_decl_strtoimax = yes; then
6622 cat >>confdefs.h <<EOF
6623 #define $bash_tr_func 1
6627 cat >>confdefs.h <<EOF
6628 #define $bash_tr_func 0
6633 echo "$as_me:6633: checking for declaration of strtol" >&5
6634 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
6635 if test "${bash_cv_decl_strtol+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line 6639 "configure"
6640 #include "confdefs.h"
6643 # include <stdlib.h>
6646 # include <inttypes.h>
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:6658: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>&5
6661 echo "$as_me:6661: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -s conftest$ac_exeext'
6664 { (eval echo "$as_me:6664: \"$ac_try\"") >&5
6667 echo "$as_me:6667: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 bash_cv_decl_strtol=yes
6671 echo "$as_me: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6673 bash_cv_decl_strtol=no
6675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677 echo "$as_me:6677: result: $bash_cv_decl_strtol" >&5
6678 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
6679 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6680 if test $bash_cv_decl_strtol = yes; then
6681 cat >>confdefs.h <<EOF
6682 #define $bash_tr_func 1
6686 cat >>confdefs.h <<EOF
6687 #define $bash_tr_func 0
6692 echo "$as_me:6692: checking for declaration of strtoll" >&5
6693 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
6694 if test "${bash_cv_decl_strtoll+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 cat >conftest.$ac_ext <<_ACEOF
6698 #line 6698 "configure"
6699 #include "confdefs.h"
6702 # include <stdlib.h>
6705 # include <inttypes.h>
6716 rm -f conftest.$ac_objext conftest$ac_exeext
6717 if { (eval echo "$as_me:6717: \"$ac_link\"") >&5
6718 (eval $ac_link) 2>&5
6720 echo "$as_me:6720: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -s conftest$ac_exeext'
6723 { (eval echo "$as_me:6723: \"$ac_try\"") >&5
6726 echo "$as_me:6726: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 bash_cv_decl_strtoll=yes
6730 echo "$as_me: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6732 bash_cv_decl_strtoll=no
6734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6736 echo "$as_me:6736: result: $bash_cv_decl_strtoll" >&5
6737 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
6738 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6739 if test $bash_cv_decl_strtoll = yes; then
6740 cat >>confdefs.h <<EOF
6741 #define $bash_tr_func 1
6745 cat >>confdefs.h <<EOF
6746 #define $bash_tr_func 0
6751 echo "$as_me:6751: checking for declaration of strtoul" >&5
6752 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
6753 if test "${bash_cv_decl_strtoul+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 cat >conftest.$ac_ext <<_ACEOF
6757 #line 6757 "configure"
6758 #include "confdefs.h"
6761 # include <stdlib.h>
6764 # include <inttypes.h>
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:6776: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6779 echo "$as_me:6779: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:6782: \"$ac_try\"") >&5
6785 echo "$as_me:6785: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 bash_cv_decl_strtoul=yes
6789 echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 bash_cv_decl_strtoul=no
6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6795 echo "$as_me:6795: result: $bash_cv_decl_strtoul" >&5
6796 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
6797 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6798 if test $bash_cv_decl_strtoul = yes; then
6799 cat >>confdefs.h <<EOF
6800 #define $bash_tr_func 1
6804 cat >>confdefs.h <<EOF
6805 #define $bash_tr_func 0
6810 echo "$as_me:6810: checking for declaration of strtoull" >&5
6811 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
6812 if test "${bash_cv_decl_strtoull+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 cat >conftest.$ac_ext <<_ACEOF
6816 #line 6816 "configure"
6817 #include "confdefs.h"
6820 # include <stdlib.h>
6823 # include <inttypes.h>
6834 rm -f conftest.$ac_objext conftest$ac_exeext
6835 if { (eval echo "$as_me:6835: \"$ac_link\"") >&5
6836 (eval $ac_link) 2>&5
6838 echo "$as_me:6838: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -s conftest$ac_exeext'
6841 { (eval echo "$as_me:6841: \"$ac_try\"") >&5
6844 echo "$as_me:6844: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 bash_cv_decl_strtoull=yes
6848 echo "$as_me: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 bash_cv_decl_strtoull=no
6852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6854 echo "$as_me:6854: result: $bash_cv_decl_strtoull" >&5
6855 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
6856 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6857 if test $bash_cv_decl_strtoull = yes; then
6858 cat >>confdefs.h <<EOF
6859 #define $bash_tr_func 1
6863 cat >>confdefs.h <<EOF
6864 #define $bash_tr_func 0
6869 echo "$as_me:6869: checking for declaration of strtoumax" >&5
6870 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
6871 if test "${bash_cv_decl_strtoumax+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line 6875 "configure"
6876 #include "confdefs.h"
6879 # include <stdlib.h>
6882 # include <inttypes.h>
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:6894: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>&5
6897 echo "$as_me:6897: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:6900: \"$ac_try\"") >&5
6903 echo "$as_me:6903: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 bash_cv_decl_strtoumax=yes
6907 echo "$as_me: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6909 bash_cv_decl_strtoumax=no
6911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6913 echo "$as_me:6913: result: $bash_cv_decl_strtoumax" >&5
6914 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
6915 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6916 if test $bash_cv_decl_strtoumax = yes; then
6917 cat >>confdefs.h <<EOF
6918 #define $bash_tr_func 1
6922 cat >>confdefs.h <<EOF
6923 #define $bash_tr_func 0
6928 for ac_header in sys/time.h unistd.h
6930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6931 echo "$as_me:6931: checking for $ac_header" >&5
6932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 cat >conftest.$ac_ext <<_ACEOF
6937 #line 6937 "configure"
6938 #include "confdefs.h"
6939 #include <$ac_header>
6941 if { (eval echo "$as_me:6941: \"$ac_cpp conftest.$ac_ext\"") >&5
6942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6944 egrep -v '^ *\+' conftest.er1 >conftest.err
6946 cat conftest.err >&5
6947 echo "$as_me:6947: \$? = $ac_status" >&5
6948 (exit $ac_status); } >/dev/null; then
6949 if test -s conftest.err; then
6950 ac_cpp_err=$ac_c_preproc_warn_flag
6957 if test -z "$ac_cpp_err"; then
6958 eval "$as_ac_Header=yes"
6960 echo "$as_me: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6962 eval "$as_ac_Header=no"
6964 rm -f conftest.err conftest.$ac_ext
6966 echo "$as_me:6966: result: `eval echo '${'$as_ac_Header'}'`" >&5
6967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6969 cat >>confdefs.h <<EOF
6970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6976 for ac_func in alarm
6978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6979 echo "$as_me:6979: checking for $ac_func" >&5
6980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6981 if eval "test \"\${$as_ac_var+set}\" = set"; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line 6985 "configure"
6986 #include "confdefs.h"
6987 /* System header to define __stub macros and hopefully few prototypes,
6988 which can conflict with char $ac_func (); below. */
6990 /* Override any gcc2 internal prototype to avoid an error. */
6994 /* We use char because int might match the return type of a gcc2
6995 builtin and then its argument prototype would still apply. */
7002 /* The GNU C library defines this for functions which it implements
7003 to always fail with ENOSYS. Some functions are actually named
7004 something starting with __ and the normal name is an alias. */
7005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:7016: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7019 echo "$as_me:7019: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:7022: \"$ac_try\"") >&5
7025 echo "$as_me:7025: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 eval "$as_ac_var=yes"
7029 echo "$as_me: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7031 eval "$as_ac_var=no"
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7035 echo "$as_me:7035: result: `eval echo '${'$as_ac_var'}'`" >&5
7036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7037 if test `eval echo '${'$as_ac_var'}'` = yes; then
7038 cat >>confdefs.h <<EOF
7039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7045 echo "$as_me:7045: checking for working mktime" >&5
7046 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
7047 if test "${ac_cv_func_working_mktime+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 if test "$cross_compiling" = yes; then
7051 ac_cv_func_working_mktime=no
7053 cat >conftest.$ac_ext <<_ACEOF
7054 #line 7054 "configure"
7055 #include "confdefs.h"
7056 /* Test program from Paul Eggert and Tony Leneis. */
7057 #if TIME_WITH_SYS_TIME
7058 # include <sys/time.h>
7061 # if HAVE_SYS_TIME_H
7062 # include <sys/time.h>
7069 # include <unistd.h>
7073 # define alarm(X) /* empty */
7076 /* Work around redefinition to rpl_putenv by other config tests. */
7079 static time_t time_t_max;
7081 /* Values we'll use to set the TZ environment variable. */
7082 static const char *const tz_strings[] = {
7083 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
7084 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
7086 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
7088 /* Fail if mktime fails to convert a date in the spring-forward gap.
7089 Based on a problem report from Andreas Jaeger. */
7091 spring_forward_gap ()
7093 /* glibc (up to about 1998-10-07) failed this test. */
7096 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
7097 instead of "TZ=America/Vancouver" in order to detect the bug even
7098 on systems that don't support the Olson extension, or don't have the
7099 full zoneinfo tables installed. */
7100 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
7109 if (mktime (&tm) == (time_t)-1)
7118 if ((lt = localtime (&now)) && mktime (lt) != now)
7120 now = time_t_max - now;
7121 if ((lt = localtime (&now)) && mktime (lt) != now)
7128 /* Based on code from Ariel Faigon. */
7138 if (tm.tm_mon != 2 || tm.tm_mday != 31)
7148 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
7150 if (now != (time_t) -1)
7152 struct tm *lt = localtime (&now);
7154 && lt->tm_year == tm.tm_year
7155 && lt->tm_mon == tm.tm_mon
7156 && lt->tm_mday == tm.tm_mday
7157 && lt->tm_hour == tm.tm_hour
7158 && lt->tm_min == tm.tm_min
7159 && lt->tm_sec == tm.tm_sec
7160 && lt->tm_yday == tm.tm_yday
7161 && lt->tm_wday == tm.tm_wday
7162 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
7163 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
7174 /* This test makes some buggy mktime implementations loop.
7175 Give up after 60 seconds; a mktime slower than that
7176 isn't worth using anyway. */
7179 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
7182 delta = time_t_max / 997; /* a suitable prime number */
7183 for (i = 0; i < N_STRINGS; i++)
7186 putenv (tz_strings[i]);
7188 for (t = 0; t <= time_t_max - delta; t += delta)
7190 mktime_test ((time_t) 60 * 60);
7191 mktime_test ((time_t) 60 * 60 * 24);
7193 for (j = 1; 0 < j; j *= 2)
7195 bigtime_test (j - 1);
7198 spring_forward_gap ();
7202 rm -f conftest$ac_exeext
7203 if { (eval echo "$as_me:7203: \"$ac_link\"") >&5
7204 (eval $ac_link) 2>&5
7206 echo "$as_me:7206: \$? = $ac_status" >&5
7207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7208 { (eval echo "$as_me:7208: \"$ac_try\"") >&5
7211 echo "$as_me:7211: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 ac_cv_func_working_mktime=yes
7215 echo "$as_me: program exited with status $ac_status" >&5
7216 echo "$as_me: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 ac_cv_func_working_mktime=no
7220 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7223 echo "$as_me:7223: result: $ac_cv_func_working_mktime" >&5
7224 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
7225 if test $ac_cv_func_working_mktime = no; then
7226 LIBOBJS="$LIBOBJS mktime.$ac_objext"
7229 for ac_header in libintl.h
7231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7232 echo "$as_me:7232: checking for $ac_header" >&5
7233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 cat >conftest.$ac_ext <<_ACEOF
7238 #line 7238 "configure"
7239 #include "confdefs.h"
7240 #include <$ac_header>
7242 if { (eval echo "$as_me:7242: \"$ac_cpp conftest.$ac_ext\"") >&5
7243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7245 egrep -v '^ *\+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:7248: \$? = $ac_status" >&5
7249 (exit $ac_status); } >/dev/null; then
7250 if test -s conftest.err; then
7251 ac_cpp_err=$ac_c_preproc_warn_flag
7258 if test -z "$ac_cpp_err"; then
7259 eval "$as_ac_Header=yes"
7261 echo "$as_me: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7263 eval "$as_ac_Header=no"
7265 rm -f conftest.err conftest.$ac_ext
7267 echo "$as_me:7267: result: `eval echo '${'$as_ac_Header'}'`" >&5
7268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7270 cat >>confdefs.h <<EOF
7271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277 for ac_func in gettext textdomain bindtextdomain
7279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7280 echo "$as_me:7280: checking for $ac_func" >&5
7281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7282 if eval "test \"\${$as_ac_var+set}\" = set"; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 cat >conftest.$ac_ext <<_ACEOF
7286 #line 7286 "configure"
7287 #include "confdefs.h"
7288 /* System header to define __stub macros and hopefully few prototypes,
7289 which can conflict with char $ac_func (); below. */
7291 /* Override any gcc2 internal prototype to avoid an error. */
7295 /* We use char because int might match the return type of a gcc2
7296 builtin and then its argument prototype would still apply. */
7303 /* The GNU C library defines this for functions which it implements
7304 to always fail with ENOSYS. Some functions are actually named
7305 something starting with __ and the normal name is an alias. */
7306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (eval echo "$as_me:7317: \"$ac_link\"") >&5
7318 (eval $ac_link) 2>&5
7320 echo "$as_me:7320: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -s conftest$ac_exeext'
7323 { (eval echo "$as_me:7323: \"$ac_try\"") >&5
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 eval "$as_ac_var=yes"
7330 echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 eval "$as_ac_var=no"
7334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7336 echo "$as_me:7336: result: `eval echo '${'$as_ac_var'}'`" >&5
7337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7338 if test `eval echo '${'$as_ac_var'}'` = yes; then
7339 cat >>confdefs.h <<EOF
7340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7346 if test "$ac_cv_func_bindtextdomain" = "no"; then
7348 echo "$as_me:7348: checking for bindtextdomain in -lintl" >&5
7349 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7350 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_check_lib_save_LIBS=$LIBS
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line 7356 "configure"
7357 #include "confdefs.h"
7359 /* Override any gcc2 internal prototype to avoid an error. */
7363 /* We use char because int might match the return type of a gcc2
7364 builtin and then its argument prototype would still apply. */
7365 char bindtextdomain ();
7374 rm -f conftest.$ac_objext conftest$ac_exeext
7375 if { (eval echo "$as_me:7375: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>&5
7378 echo "$as_me:7378: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -s conftest$ac_exeext'
7381 { (eval echo "$as_me:7381: \"$ac_try\"") >&5
7384 echo "$as_me:7384: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 ac_cv_lib_intl_bindtextdomain=yes
7388 echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 ac_cv_lib_intl_bindtextdomain=no
7392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7393 LIBS=$ac_check_lib_save_LIBS
7395 echo "$as_me:7395: result: $ac_cv_lib_intl_bindtextdomain" >&5
7396 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7397 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7398 cat >>confdefs.h <<EOF
7399 #define HAVE_LIBINTL 1
7406 if test "$ac_cv_lib_intl" = "yes"; then
7408 for ac_func in gettext textdomain bindtextdomain
7410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 echo "$as_me:7411: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7413 if eval "test \"\${$as_ac_var+set}\" = set"; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line 7417 "configure"
7418 #include "confdefs.h"
7419 /* System header to define __stub macros and hopefully few prototypes,
7420 which can conflict with char $ac_func (); below. */
7422 /* Override any gcc2 internal prototype to avoid an error. */
7426 /* We use char because int might match the return type of a gcc2
7427 builtin and then its argument prototype would still apply. */
7434 /* The GNU C library defines this for functions which it implements
7435 to always fail with ENOSYS. Some functions are actually named
7436 something starting with __ and the normal name is an alias. */
7437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (eval echo "$as_me:7448: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>&5
7451 echo "$as_me:7451: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:7454: \"$ac_try\"") >&5
7457 echo "$as_me:7457: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 eval "$as_ac_var=yes"
7461 echo "$as_me: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7463 eval "$as_ac_var=no"
7465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7467 echo "$as_me:7467: result: `eval echo '${'$as_ac_var'}'`" >&5
7468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7469 if test `eval echo '${'$as_ac_var'}'` = yes; then
7470 cat >>confdefs.h <<EOF
7471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7480 for ac_header in wctype.h
7482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483 echo "$as_me:7483: checking for $ac_header" >&5
7484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line 7489 "configure"
7490 #include "confdefs.h"
7491 #include <$ac_header>
7493 if { (eval echo "$as_me:7493: \"$ac_cpp conftest.$ac_ext\"") >&5
7494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7496 egrep -v '^ *\+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:7499: \$? = $ac_status" >&5
7500 (exit $ac_status); } >/dev/null; then
7501 if test -s conftest.err; then
7502 ac_cpp_err=$ac_c_preproc_warn_flag
7509 if test -z "$ac_cpp_err"; then
7510 eval "$as_ac_Header=yes"
7512 echo "$as_me: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7514 eval "$as_ac_Header=no"
7516 rm -f conftest.err conftest.$ac_ext
7518 echo "$as_me:7518: result: `eval echo '${'$as_ac_Header'}'`" >&5
7519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7521 cat >>confdefs.h <<EOF
7522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528 for ac_header in wchar.h
7530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531 echo "$as_me:7531: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line 7537 "configure"
7538 #include "confdefs.h"
7539 #include <$ac_header>
7541 if { (eval echo "$as_me:7541: \"$ac_cpp conftest.$ac_ext\"") >&5
7542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7544 egrep -v '^ *\+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 echo "$as_me:7547: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev/null; then
7549 if test -s conftest.err; then
7550 ac_cpp_err=$ac_c_preproc_warn_flag
7557 if test -z "$ac_cpp_err"; then
7558 eval "$as_ac_Header=yes"
7560 echo "$as_me: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7562 eval "$as_ac_Header=no"
7564 rm -f conftest.err conftest.$ac_ext
7566 echo "$as_me:7566: result: `eval echo '${'$as_ac_Header'}'`" >&5
7567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7569 cat >>confdefs.h <<EOF
7570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7576 for ac_header in langinfo.h
7578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7579 echo "$as_me:7579: checking for $ac_header" >&5
7580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 cat >conftest.$ac_ext <<_ACEOF
7585 #line 7585 "configure"
7586 #include "confdefs.h"
7587 #include <$ac_header>
7589 if { (eval echo "$as_me:7589: \"$ac_cpp conftest.$ac_ext\"") >&5
7590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7592 egrep -v '^ *\+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 echo "$as_me:7595: \$? = $ac_status" >&5
7596 (exit $ac_status); } >/dev/null; then
7597 if test -s conftest.err; then
7598 ac_cpp_err=$ac_c_preproc_warn_flag
7605 if test -z "$ac_cpp_err"; then
7606 eval "$as_ac_Header=yes"
7608 echo "$as_me: failed program was:" >&5
7609 cat conftest.$ac_ext >&5
7610 eval "$as_ac_Header=no"
7612 rm -f conftest.err conftest.$ac_ext
7614 echo "$as_me:7614: result: `eval echo '${'$as_ac_Header'}'`" >&5
7615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7617 cat >>confdefs.h <<EOF
7618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7624 echo "$as_me:7624: checking for mbsrtowcs" >&5
7625 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
7626 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7630 #line 7630 "configure"
7631 #include "confdefs.h"
7632 /* System header to define __stub macros and hopefully few prototypes,
7633 which can conflict with char mbsrtowcs (); below. */
7635 /* Override any gcc2 internal prototype to avoid an error. */
7639 /* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7647 /* The GNU C library defines this for functions which it implements
7648 to always fail with ENOSYS. Some functions are actually named
7649 something starting with __ and the normal name is an alias. */
7650 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (eval echo "$as_me:7661: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>&5
7664 echo "$as_me:7664: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (eval echo "$as_me:7667: \"$ac_try\"") >&5
7670 echo "$as_me:7670: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_cv_func_mbsrtowcs=yes
7674 echo "$as_me: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7676 ac_cv_func_mbsrtowcs=no
7678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680 echo "$as_me:7680: result: $ac_cv_func_mbsrtowcs" >&5
7681 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
7682 if test $ac_cv_func_mbsrtowcs = yes; then
7683 cat >>confdefs.h <<\EOF
7684 #define HAVE_MBSRTOWCS 1
7689 echo "$as_me:7689: checking for wcwidth" >&5
7690 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
7691 if test "${ac_cv_func_wcwidth+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 cat >conftest.$ac_ext <<_ACEOF
7695 #line 7695 "configure"
7696 #include "confdefs.h"
7697 /* System header to define __stub macros and hopefully few prototypes,
7698 which can conflict with char wcwidth (); below. */
7700 /* Override any gcc2 internal prototype to avoid an error. */
7704 /* We use char because int might match the return type of a gcc2
7705 builtin and then its argument prototype would still apply. */
7712 /* The GNU C library defines this for functions which it implements
7713 to always fail with ENOSYS. Some functions are actually named
7714 something starting with __ and the normal name is an alias. */
7715 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:7726: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>&5
7729 echo "$as_me:7729: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -s conftest$ac_exeext'
7732 { (eval echo "$as_me:7732: \"$ac_try\"") >&5
7735 echo "$as_me:7735: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 ac_cv_func_wcwidth=yes
7739 echo "$as_me: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7741 ac_cv_func_wcwidth=no
7743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7745 echo "$as_me:7745: result: $ac_cv_func_wcwidth" >&5
7746 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
7747 if test $ac_cv_func_wcwidth = yes; then
7748 cat >>confdefs.h <<\EOF
7749 #define HAVE_WCWIDTH 1
7754 echo "$as_me:7754: checking for mbstate_t" >&5
7755 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
7756 if test "${bash_cv_have_mbstate_t+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 if test "$cross_compiling" = yes; then
7760 { { echo "$as_me:7760: error: cannot run test program while cross compiling" >&5
7761 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7762 { (exit 1); exit 1; }; }
7764 cat >conftest.$ac_ext <<_ACEOF
7765 #line 7765 "configure"
7766 #include "confdefs.h"
7776 rm -f conftest$ac_exeext
7777 if { (eval echo "$as_me:7777: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>&5
7780 echo "$as_me:7780: \$? = $ac_status" >&5
7781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7782 { (eval echo "$as_me:7782: \"$ac_try\"") >&5
7785 echo "$as_me:7785: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 bash_cv_have_mbstate_t=yes
7789 echo "$as_me: program exited with status $ac_status" >&5
7790 echo "$as_me: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7792 bash_cv_have_mbstate_t=no
7794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7797 echo "$as_me:7797: result: $bash_cv_have_mbstate_t" >&5
7798 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
7799 if test $bash_cv_have_mbstate_t = yes; then
7800 cat >>confdefs.h <<\EOF
7801 #define HAVE_MBSTATE_T 1
7806 echo "$as_me:7806: checking for nl_langinfo and CODESET" >&5
7807 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7808 if test "${bash_cv_langinfo_codeset+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7812 #line 7812 "configure"
7813 #include "confdefs.h"
7814 #include <langinfo.h>
7818 char* cs = nl_langinfo(CODESET);
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:7824: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>&5
7827 echo "$as_me:7827: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (eval echo "$as_me:7830: \"$ac_try\"") >&5
7833 echo "$as_me:7833: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 bash_cv_langinfo_codeset=yes
7837 echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 bash_cv_langinfo_codeset=no
7841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7843 echo "$as_me:7843: result: $bash_cv_langinfo_codeset" >&5
7844 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
7845 if test $bash_cv_langinfo_codeset = yes; then
7846 cat >>confdefs.h <<\EOF
7847 #define HAVE_LANGINFO_CODESET 1
7852 if test "$opt_static_link" != yes; then
7854 echo "$as_me:7854: checking for dlopen in -ldl" >&5
7855 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 ac_check_lib_save_LIBS=$LIBS
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line 7862 "configure"
7863 #include "confdefs.h"
7865 /* Override any gcc2 internal prototype to avoid an error. */
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:7884: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:7887: \"$ac_try\"") >&5
7890 echo "$as_me:7890: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_lib_dl_dlopen=yes
7894 echo "$as_me: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7896 ac_cv_lib_dl_dlopen=no
7898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7899 LIBS=$ac_check_lib_save_LIBS
7901 echo "$as_me:7901: result: $ac_cv_lib_dl_dlopen" >&5
7902 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7903 if test $ac_cv_lib_dl_dlopen = yes; then
7904 cat >>confdefs.h <<EOF
7905 #define HAVE_LIBDL 1
7912 for ac_func in dlopen dlclose dlsym
7914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7915 echo "$as_me:7915: checking for $ac_func" >&5
7916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7917 if eval "test \"\${$as_ac_var+set}\" = set"; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.$ac_ext <<_ACEOF
7921 #line 7921 "configure"
7922 #include "confdefs.h"
7923 /* System header to define __stub macros and hopefully few prototypes,
7924 which can conflict with char $ac_func (); below. */
7926 /* Override any gcc2 internal prototype to avoid an error. */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7938 /* The GNU C library defines this for functions which it implements
7939 to always fail with ENOSYS. Some functions are actually named
7940 something starting with __ and the normal name is an alias. */
7941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (eval echo "$as_me:7952: \"$ac_link\"") >&5
7953 (eval $ac_link) 2>&5
7955 echo "$as_me:7955: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (eval echo "$as_me:7958: \"$ac_try\"") >&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 eval "$as_ac_var=yes"
7965 echo "$as_me: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 eval "$as_ac_var=no"
7969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7971 echo "$as_me:7971: result: `eval echo '${'$as_ac_var'}'`" >&5
7972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7973 if test `eval echo '${'$as_ac_var'}'` = yes; then
7974 cat >>confdefs.h <<EOF
7975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7983 echo "$as_me:7983: checking for sys_siglist declaration in signal.h or unistd.h" >&5
7984 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
7985 if test "${ac_cv_decl_sys_siglist+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.$ac_ext <<_ACEOF
7989 #line 7989 "configure"
7990 #include "confdefs.h"
7991 #include <sys/types.h>
7993 /* NetBSD declares sys_siglist in unistd.h. */
7995 # include <unistd.h>
8001 char *msg = *(sys_siglist + 1);
8006 rm -f conftest.$ac_objext
8007 if { (eval echo "$as_me:8007: \"$ac_compile\"") >&5
8008 (eval $ac_compile) 2>&5
8010 echo "$as_me:8010: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:8013: \"$ac_try\"") >&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_decl_sys_siglist=yes
8020 echo "$as_me: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 ac_cv_decl_sys_siglist=no
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8026 echo "$as_me:8026: result: $ac_cv_decl_sys_siglist" >&5
8027 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
8028 if test $ac_cv_decl_sys_siglist = yes; then
8030 cat >>confdefs.h <<\EOF
8031 #define SYS_SIGLIST_DECLARED 1
8036 if test "$ac_cv_func_inet_aton" != 'yes'; then
8038 echo "$as_me:8038: checking for inet_aton" >&5
8039 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8040 if test "${bash_cv_func_inet_aton+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line 8044 "configure"
8045 #include "confdefs.h"
8047 #include <sys/types.h>
8048 #include <netinet/in.h>
8049 #include <arpa/inet.h>
8054 inet_aton("127.0.0.1", &ap);
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:8060: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>&5
8063 echo "$as_me:8063: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -s conftest$ac_exeext'
8066 { (eval echo "$as_me:8066: \"$ac_try\"") >&5
8069 echo "$as_me:8069: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 bash_cv_func_inet_aton=yes
8073 echo "$as_me: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8075 bash_cv_func_inet_aton=no
8077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8079 echo "$as_me:8079: result: $bash_cv_func_inet_aton" >&5
8080 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
8081 if test $bash_cv_func_inet_aton = yes; then
8082 cat >>confdefs.h <<\EOF
8083 #define HAVE_INET_ATON 1
8087 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8094 echo "$as_me:8094: checking for getpwent in -lsun" >&5
8095 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
8096 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 ac_check_lib_save_LIBS=$LIBS
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line 8102 "configure"
8103 #include "confdefs.h"
8105 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (eval echo "$as_me:8121: \"$ac_link\"") >&5
8122 (eval $ac_link) 2>&5
8124 echo "$as_me:8124: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -s conftest$ac_exeext'
8127 { (eval echo "$as_me:8127: \"$ac_try\"") >&5
8130 echo "$as_me:8130: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_cv_lib_sun_getpwent=yes
8134 echo "$as_me: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 ac_cv_lib_sun_getpwent=no
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 LIBS=$ac_check_lib_save_LIBS
8141 echo "$as_me:8141: result: $ac_cv_lib_sun_getpwent" >&5
8142 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
8143 if test $ac_cv_lib_sun_getpwent = yes; then
8144 cat >>confdefs.h <<EOF
8145 #define HAVE_LIBSUN 1
8154 if test "$ac_cv_func_getpeername" = no; then
8156 if test "X$bash_cv_have_socklib" = "X"; then
8159 echo "$as_me:8159: checking for socket library" >&5
8160 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
8163 if test "${bash_cv_have_socklib+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 echo "$as_me:8166: checking for getpeername in -lsocket" >&5
8167 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
8168 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 ac_check_lib_save_LIBS=$LIBS
8172 LIBS="-lsocket -lnsl $LIBS"
8173 cat >conftest.$ac_ext <<_ACEOF
8174 #line 8174 "configure"
8175 #include "confdefs.h"
8177 /* Override any gcc2 internal prototype to avoid an error. */
8181 /* We use char because int might match the return type of a gcc2
8182 builtin and then its argument prototype would still apply. */
8183 char getpeername ();
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (eval echo "$as_me:8193: \"$ac_link\"") >&5
8194 (eval $ac_link) 2>&5
8196 echo "$as_me:8196: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -s conftest$ac_exeext'
8199 { (eval echo "$as_me:8199: \"$ac_try\"") >&5
8202 echo "$as_me:8202: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 ac_cv_lib_socket_getpeername=yes
8206 echo "$as_me: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8208 ac_cv_lib_socket_getpeername=no
8210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8211 LIBS=$ac_check_lib_save_LIBS
8213 echo "$as_me:8213: result: $ac_cv_lib_socket_getpeername" >&5
8214 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
8215 if test $ac_cv_lib_socket_getpeername = yes; then
8216 bash_cv_have_socklib=yes
8218 bash_cv_have_socklib=no
8223 if test "X$_bash_needmsg" = Xyes; then
8224 echo "$as_me:8224: result: $bash_cv_have_socklib" >&5
8225 echo "${ECHO_T}$bash_cv_have_socklib" >&6
8228 if test $bash_cv_have_socklib = yes; then
8229 # check for libnsl, add it to LIBS if present
8230 if test "X$bash_cv_have_libnsl" = "X"; then
8233 echo "$as_me:8233: checking for libnsl" >&5
8234 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
8237 if test "${bash_cv_have_libnsl+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 echo "$as_me:8240: checking for t_open in -lnsl" >&5
8241 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
8242 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 ac_check_lib_save_LIBS=$LIBS
8247 cat >conftest.$ac_ext <<_ACEOF
8248 #line 8248 "configure"
8249 #include "confdefs.h"
8251 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (eval echo "$as_me:8267: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>&5
8270 echo "$as_me:8270: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -s conftest$ac_exeext'
8273 { (eval echo "$as_me:8273: \"$ac_try\"") >&5
8276 echo "$as_me:8276: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_lib_nsl_t_open=yes
8280 echo "$as_me: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8282 ac_cv_lib_nsl_t_open=no
8284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8285 LIBS=$ac_check_lib_save_LIBS
8287 echo "$as_me:8287: result: $ac_cv_lib_nsl_t_open" >&5
8288 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
8289 if test $ac_cv_lib_nsl_t_open = yes; then
8290 bash_cv_have_libnsl=yes
8292 bash_cv_have_libnsl=no
8297 if test "X$_bash_needmsg" = Xyes; then
8298 echo "$as_me:8298: result: $bash_cv_have_libnsl" >&5
8299 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
8302 if test $bash_cv_have_libnsl = yes; then
8303 LIBS="-lsocket -lnsl $LIBS"
8305 LIBS="-lsocket $LIBS"
8307 cat >>confdefs.h <<\EOF
8308 #define HAVE_LIBSOCKET 1
8311 cat >>confdefs.h <<\EOF
8312 #define HAVE_GETPEERNAME 1
8318 if test "$ac_cv_func_gethostbyname" = no; then
8319 if test "X$bash_cv_have_gethostbyname" = "X"; then
8322 echo "$as_me:8322: checking for gethostbyname in socket library" >&5
8323 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
8326 if test "${bash_cv_have_gethostbyname+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line 8330 "configure"
8331 #include "confdefs.h"
8337 hp = gethostbyname("localhost");
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:8344: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>&5
8347 echo "$as_me:8347: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (eval echo "$as_me:8350: \"$ac_try\"") >&5
8353 echo "$as_me:8353: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 bash_cv_have_gethostbyname=yes
8357 echo "$as_me: failed program was:" >&5
8358 cat conftest.$ac_ext >&5
8359 bash_cv_have_gethostbyname=no
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8365 if test "X$_bash_needmsg" = Xyes; then
8366 echo "$as_me:8366: checking for gethostbyname in socket library" >&5
8367 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
8369 echo "$as_me:8369: result: $bash_cv_have_gethostbyname" >&5
8370 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
8371 if test "$bash_cv_have_gethostbyname" = yes; then
8372 cat >>confdefs.h <<\EOF
8373 #define HAVE_GETHOSTBYNAME 1
8380 echo "$as_me:8380: checking for uid_t in sys/types.h" >&5
8381 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8382 if test "${ac_cv_type_uid_t+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 cat >conftest.$ac_ext <<_ACEOF
8386 #line 8386 "configure"
8387 #include "confdefs.h"
8388 #include <sys/types.h>
8391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8392 egrep "uid_t" >/dev/null 2>&1; then
8393 ac_cv_type_uid_t=yes
8400 echo "$as_me:8400: result: $ac_cv_type_uid_t" >&5
8401 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8402 if test $ac_cv_type_uid_t = no; then
8404 cat >>confdefs.h <<\EOF
8408 cat >>confdefs.h <<\EOF
8414 echo "$as_me:8414: checking type of array argument to getgroups" >&5
8415 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
8416 if test "${ac_cv_type_getgroups+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 if test "$cross_compiling" = yes; then
8420 ac_cv_type_getgroups=cross
8422 cat >conftest.$ac_ext <<_ACEOF
8423 #line 8423 "configure"
8424 #include "confdefs.h"
8425 /* Thanks to Mike Rendell for this test. */
8426 #include <sys/types.h>
8429 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8436 union { gid_t gval; long lval; } val;
8439 for (i = 0; i < NGID; i++)
8440 gidset[i] = val.gval;
8441 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8443 /* Exit non-zero if getgroups seems to require an array of ints. This
8444 happens when gid_t is short but getgroups modifies an array of ints. */
8445 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8448 rm -f conftest$ac_exeext
8449 if { (eval echo "$as_me:8449: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>&5
8452 echo "$as_me:8452: \$? = $ac_status" >&5
8453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8454 { (eval echo "$as_me:8454: \"$ac_try\"") >&5
8457 echo "$as_me:8457: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_type_getgroups=gid_t
8461 echo "$as_me: program exited with status $ac_status" >&5
8462 echo "$as_me: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8464 ac_cv_type_getgroups=int
8466 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8468 if test $ac_cv_type_getgroups = cross; then
8469 cat >conftest.$ac_ext <<_ACEOF
8470 #line 8470 "configure"
8471 #include "confdefs.h"
8475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8476 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8477 ac_cv_type_getgroups=gid_t
8479 ac_cv_type_getgroups=int
8485 echo "$as_me:8485: result: $ac_cv_type_getgroups" >&5
8486 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
8488 cat >>confdefs.h <<EOF
8489 #define GETGROUPS_T $ac_cv_type_getgroups
8492 echo "$as_me:8492: checking for off_t" >&5
8493 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8494 if test "${ac_cv_type_off_t+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 cat >conftest.$ac_ext <<_ACEOF
8498 #line 8498 "configure"
8499 #include "confdefs.h"
8500 $ac_includes_default
8512 rm -f conftest.$ac_objext
8513 if { (eval echo "$as_me:8513: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>&5
8516 echo "$as_me:8516: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -s conftest.$ac_objext'
8519 { (eval echo "$as_me:8519: \"$ac_try\"") >&5
8522 echo "$as_me:8522: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_cv_type_off_t=yes
8526 echo "$as_me: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8530 rm -f conftest.$ac_objext conftest.$ac_ext
8532 echo "$as_me:8532: result: $ac_cv_type_off_t" >&5
8533 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8534 if test $ac_cv_type_off_t = yes; then
8538 cat >>confdefs.h <<EOF
8544 echo "$as_me:8544: checking for mode_t" >&5
8545 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
8546 if test "${ac_cv_type_mode_t+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8550 #line 8550 "configure"
8551 #include "confdefs.h"
8552 $ac_includes_default
8558 if (sizeof (mode_t))
8564 rm -f conftest.$ac_objext
8565 if { (eval echo "$as_me:8565: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>&5
8568 echo "$as_me:8568: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -s conftest.$ac_objext'
8571 { (eval echo "$as_me:8571: \"$ac_try\"") >&5
8574 echo "$as_me:8574: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8576 ac_cv_type_mode_t=yes
8578 echo "$as_me: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8580 ac_cv_type_mode_t=no
8582 rm -f conftest.$ac_objext conftest.$ac_ext
8584 echo "$as_me:8584: result: $ac_cv_type_mode_t" >&5
8585 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8586 if test $ac_cv_type_mode_t = yes; then
8590 cat >>confdefs.h <<EOF
8596 echo "$as_me:8596: checking for uid_t in sys/types.h" >&5
8597 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8598 if test "${ac_cv_type_uid_t+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8602 #line 8602 "configure"
8603 #include "confdefs.h"
8604 #include <sys/types.h>
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608 egrep "uid_t" >/dev/null 2>&1; then
8609 ac_cv_type_uid_t=yes
8616 echo "$as_me:8616: result: $ac_cv_type_uid_t" >&5
8617 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8618 if test $ac_cv_type_uid_t = no; then
8620 cat >>confdefs.h <<\EOF
8624 cat >>confdefs.h <<\EOF
8630 echo "$as_me:8630: checking for pid_t" >&5
8631 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8632 if test "${ac_cv_type_pid_t+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 cat >conftest.$ac_ext <<_ACEOF
8636 #line 8636 "configure"
8637 #include "confdefs.h"
8638 $ac_includes_default
8650 rm -f conftest.$ac_objext
8651 if { (eval echo "$as_me:8651: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>&5
8654 echo "$as_me:8654: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:8657: \"$ac_try\"") >&5
8660 echo "$as_me:8660: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_cv_type_pid_t=yes
8664 echo "$as_me: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8668 rm -f conftest.$ac_objext conftest.$ac_ext
8670 echo "$as_me:8670: result: $ac_cv_type_pid_t" >&5
8671 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8672 if test $ac_cv_type_pid_t = yes; then
8676 cat >>confdefs.h <<EOF
8682 echo "$as_me:8682: checking for size_t" >&5
8683 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8684 if test "${ac_cv_type_size_t+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line 8688 "configure"
8689 #include "confdefs.h"
8690 $ac_includes_default
8696 if (sizeof (size_t))
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:8703: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>&5
8706 echo "$as_me:8706: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (eval echo "$as_me:8709: \"$ac_try\"") >&5
8712 echo "$as_me:8712: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_type_size_t=yes
8716 echo "$as_me: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 ac_cv_type_size_t=no
8720 rm -f conftest.$ac_objext conftest.$ac_ext
8722 echo "$as_me:8722: result: $ac_cv_type_size_t" >&5
8723 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8724 if test $ac_cv_type_size_t = yes; then
8728 cat >>confdefs.h <<EOF
8729 #define size_t unsigned
8734 echo "$as_me:8734: checking for ssize_t" >&5
8735 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8736 if test "${ac_cv_type_ssize_t+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line 8740 "configure"
8741 #include "confdefs.h"
8742 $ac_includes_default
8748 if (sizeof (ssize_t))
8754 rm -f conftest.$ac_objext
8755 if { (eval echo "$as_me:8755: \"$ac_compile\"") >&5
8756 (eval $ac_compile) 2>&5
8758 echo "$as_me:8758: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:8761: \"$ac_try\"") >&5
8764 echo "$as_me:8764: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_type_ssize_t=yes
8768 echo "$as_me: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8770 ac_cv_type_ssize_t=no
8772 rm -f conftest.$ac_objext conftest.$ac_ext
8774 echo "$as_me:8774: result: $ac_cv_type_ssize_t" >&5
8775 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8776 if test $ac_cv_type_ssize_t = yes; then
8780 cat >>confdefs.h <<EOF
8786 echo "$as_me:8786: checking for time_t" >&5
8787 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
8788 if test "${ac_cv_type_time_t+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8792 #line 8792 "configure"
8793 #include "confdefs.h"
8794 $ac_includes_default
8800 if (sizeof (time_t))
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:8807: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>&5
8810 echo "$as_me:8810: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (eval echo "$as_me:8813: \"$ac_try\"") >&5
8816 echo "$as_me:8816: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_type_time_t=yes
8820 echo "$as_me: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 ac_cv_type_time_t=no
8824 rm -f conftest.$ac_objext conftest.$ac_ext
8826 echo "$as_me:8826: result: $ac_cv_type_time_t" >&5
8827 echo "${ECHO_T}$ac_cv_type_time_t" >&6
8828 if test $ac_cv_type_time_t = yes; then
8832 cat >>confdefs.h <<EOF
8838 echo "$as_me:8838: checking for long long" >&5
8839 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8840 if test "${bash_cv_type_long_long+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8844 #line 8844 "configure"
8845 #include "confdefs.h"
8847 long long ll = 1; int i = 63;
8852 long long llm = (long long) -1;
8853 return ll << i | ll >> i | llm / ll | llm % ll;
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:8860: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>&5
8863 echo "$as_me:8863: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:8866: \"$ac_try\"") >&5
8869 echo "$as_me:8869: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 bash_cv_type_long_long='long long'
8873 echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 bash_cv_type_long_long='long'
8877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8879 echo "$as_me:8879: result: $bash_cv_type_long_long" >&5
8880 echo "${ECHO_T}$bash_cv_type_long_long" >&6
8881 if test "$bash_cv_type_long_long" = 'long long'; then
8882 cat >>confdefs.h <<\EOF
8883 #define HAVE_LONG_LONG 1
8888 echo "$as_me:8888: checking for unsigned long long" >&5
8889 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8890 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 cat >conftest.$ac_ext <<_ACEOF
8894 #line 8894 "configure"
8895 #include "confdefs.h"
8897 unsigned long long ull = 1; int i = 63;
8902 unsigned long long ullmax = (unsigned long long) -1;
8903 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (eval echo "$as_me:8910: \"$ac_link\"") >&5
8911 (eval $ac_link) 2>&5
8913 echo "$as_me:8913: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (eval echo "$as_me:8916: \"$ac_try\"") >&5
8919 echo "$as_me:8919: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 bash_cv_type_unsigned_long_long='unsigned long long'
8923 echo "$as_me: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8925 bash_cv_type_unsigned_long_long='unsigned long'
8927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929 echo "$as_me:8929: result: $bash_cv_type_unsigned_long_long" >&5
8930 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
8931 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
8932 cat >>confdefs.h <<\EOF
8933 #define HAVE_UNSIGNED_LONG_LONG 1
8938 echo "$as_me:8938: checking return type of signal handlers" >&5
8939 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8940 if test "${ac_cv_type_signal+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 cat >conftest.$ac_ext <<_ACEOF
8944 #line 8944 "configure"
8945 #include "confdefs.h"
8946 #include <sys/types.h>
8952 extern "C" void (*signal (int, void (*)(int)))(int);
8954 void (*signal ()) ();
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:8966: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>&5
8969 echo "$as_me:8969: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -s conftest.$ac_objext'
8972 { (eval echo "$as_me:8972: \"$ac_try\"") >&5
8975 echo "$as_me:8975: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_type_signal=void
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_cv_type_signal=int
8983 rm -f conftest.$ac_objext conftest.$ac_ext
8985 echo "$as_me:8985: result: $ac_cv_type_signal" >&5
8986 echo "${ECHO_T}$ac_cv_type_signal" >&6
8988 cat >>confdefs.h <<EOF
8989 #define RETSIGTYPE $ac_cv_type_signal
8992 echo "$as_me:8992: checking for char" >&5
8993 echo $ECHO_N "checking for char... $ECHO_C" >&6
8994 if test "${ac_cv_type_char+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
8998 #line 8998 "configure"
8999 #include "confdefs.h"
9000 $ac_includes_default
9012 rm -f conftest.$ac_objext
9013 if { (eval echo "$as_me:9013: \"$ac_compile\"") >&5
9014 (eval $ac_compile) 2>&5
9016 echo "$as_me:9016: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -s conftest.$ac_objext'
9019 { (eval echo "$as_me:9019: \"$ac_try\"") >&5
9022 echo "$as_me:9022: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9030 rm -f conftest.$ac_objext conftest.$ac_ext
9032 echo "$as_me:9032: result: $ac_cv_type_char" >&5
9033 echo "${ECHO_T}$ac_cv_type_char" >&6
9035 echo "$as_me:9035: checking size of char" >&5
9036 echo $ECHO_N "checking size of char... $ECHO_C" >&6
9037 if test "${ac_cv_sizeof_char+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 if test "$ac_cv_type_char" = yes; then
9041 if test "$cross_compiling" = yes; then
9042 # Depending upon the size, compute the lo and hi bounds.
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line 9044 "configure"
9045 #include "confdefs.h"
9046 $ac_includes_default
9050 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:9056: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>&5
9059 echo "$as_me:9059: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -s conftest.$ac_objext'
9062 { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9072 $ac_includes_default
9076 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
9081 rm -f conftest.$ac_objext
9082 if { (eval echo "$as_me:9082: \"$ac_compile\"") >&5
9083 (eval $ac_compile) 2>&5
9085 echo "$as_me:9085: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -s conftest.$ac_objext'
9088 { (eval echo "$as_me:9088: \"$ac_try\"") >&5
9091 echo "$as_me:9091: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_hi=$ac_mid; break
9095 echo "$as_me: failed program was:" >&5
9096 cat conftest.$ac_ext >&5
9097 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9099 rm -f conftest.$ac_objext conftest.$ac_ext
9102 echo "$as_me: failed program was:" >&5
9103 cat conftest.$ac_ext >&5
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #line 9107 "configure"
9108 #include "confdefs.h"
9109 $ac_includes_default
9113 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
9118 rm -f conftest.$ac_objext
9119 if { (eval echo "$as_me:9119: \"$ac_compile\"") >&5
9120 (eval $ac_compile) 2>&5
9122 echo "$as_me:9122: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -s conftest.$ac_objext'
9125 { (eval echo "$as_me:9125: \"$ac_try\"") >&5
9128 echo "$as_me:9128: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_lo=$ac_mid; break
9132 echo "$as_me: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9136 rm -f conftest.$ac_objext conftest.$ac_ext
9139 rm -f conftest.$ac_objext conftest.$ac_ext
9140 # Binary search between lo and hi bounds.
9141 while test "x$ac_lo" != "x$ac_hi"; do
9142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9143 cat >conftest.$ac_ext <<_ACEOF
9144 #line 9144 "configure"
9145 #include "confdefs.h"
9146 $ac_includes_default
9150 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:9156: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>&5
9159 echo "$as_me:9159: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -s conftest.$ac_objext'
9162 { (eval echo "$as_me:9162: \"$ac_try\"") >&5
9165 echo "$as_me:9165: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9169 echo "$as_me: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 ac_lo=`expr $ac_mid + 1`
9173 rm -f conftest.$ac_objext conftest.$ac_ext
9175 ac_cv_sizeof_char=$ac_lo
9177 if test "$cross_compiling" = yes; then
9178 { { echo "$as_me:9178: error: cannot run test program while cross compiling" >&5
9179 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9180 { (exit 1); exit 1; }; }
9182 cat >conftest.$ac_ext <<_ACEOF
9183 #line 9183 "configure"
9184 #include "confdefs.h"
9185 $ac_includes_default
9189 FILE *f = fopen ("conftest.val", "w");
9192 fprintf (f, "%d", (sizeof (char)));
9198 rm -f conftest$ac_exeext
9199 if { (eval echo "$as_me:9199: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>&5
9202 echo "$as_me:9202: \$? = $ac_status" >&5
9203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9204 { (eval echo "$as_me:9204: \"$ac_try\"") >&5
9207 echo "$as_me:9207: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_cv_sizeof_char=`cat conftest.val`
9211 echo "$as_me: program exited with status $ac_status" >&5
9212 echo "$as_me: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9215 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9223 echo "$as_me:9223: result: $ac_cv_sizeof_char" >&5
9224 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
9225 cat >>confdefs.h <<EOF
9226 #define SIZEOF_CHAR $ac_cv_sizeof_char
9229 echo "$as_me:9229: checking for short" >&5
9230 echo $ECHO_N "checking for short... $ECHO_C" >&6
9231 if test "${ac_cv_type_short+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line 9235 "configure"
9236 #include "confdefs.h"
9237 $ac_includes_default
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:9250: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>&5
9253 echo "$as_me:9253: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -s conftest.$ac_objext'
9256 { (eval echo "$as_me:9256: \"$ac_try\"") >&5
9259 echo "$as_me:9259: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_type_short=yes
9263 echo "$as_me: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9267 rm -f conftest.$ac_objext conftest.$ac_ext
9269 echo "$as_me:9269: result: $ac_cv_type_short" >&5
9270 echo "${ECHO_T}$ac_cv_type_short" >&6
9272 echo "$as_me:9272: checking size of short" >&5
9273 echo $ECHO_N "checking size of short... $ECHO_C" >&6
9274 if test "${ac_cv_sizeof_short+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 if test "$ac_cv_type_short" = yes; then
9278 if test "$cross_compiling" = yes; then
9279 # Depending upon the size, compute the lo and hi bounds.
9280 cat >conftest.$ac_ext <<_ACEOF
9281 #line 9281 "configure"
9282 #include "confdefs.h"
9283 $ac_includes_default
9287 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:9293: \"$ac_compile\"") >&5
9294 (eval $ac_compile) 2>&5
9296 echo "$as_me:9296: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -s conftest.$ac_objext'
9299 { (eval echo "$as_me:9299: \"$ac_try\"") >&5
9302 echo "$as_me:9302: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9306 cat >conftest.$ac_ext <<_ACEOF
9307 #line 9307 "configure"
9308 #include "confdefs.h"
9309 $ac_includes_default
9313 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
9318 rm -f conftest.$ac_objext
9319 if { (eval echo "$as_me:9319: \"$ac_compile\"") >&5
9320 (eval $ac_compile) 2>&5
9322 echo "$as_me:9322: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:9325: \"$ac_try\"") >&5
9328 echo "$as_me:9328: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_hi=$ac_mid; break
9332 echo "$as_me: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9334 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9336 rm -f conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9343 cat >conftest.$ac_ext <<_ACEOF
9344 #line 9344 "configure"
9345 #include "confdefs.h"
9346 $ac_includes_default
9350 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:9356: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>&5
9359 echo "$as_me:9359: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -s conftest.$ac_objext'
9362 { (eval echo "$as_me:9362: \"$ac_try\"") >&5
9365 echo "$as_me:9365: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_lo=$ac_mid; break
9369 echo "$as_me: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9373 rm -f conftest.$ac_objext conftest.$ac_ext
9376 rm -f conftest.$ac_objext conftest.$ac_ext
9377 # Binary search between lo and hi bounds.
9378 while test "x$ac_lo" != "x$ac_hi"; do
9379 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9383 $ac_includes_default
9387 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:9393: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>&5
9396 echo "$as_me:9396: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -s conftest.$ac_objext'
9399 { (eval echo "$as_me:9399: \"$ac_try\"") >&5
9402 echo "$as_me:9402: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9406 echo "$as_me: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 ac_lo=`expr $ac_mid + 1`
9410 rm -f conftest.$ac_objext conftest.$ac_ext
9412 ac_cv_sizeof_short=$ac_lo
9414 if test "$cross_compiling" = yes; then
9415 { { echo "$as_me:9415: error: cannot run test program while cross compiling" >&5
9416 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9417 { (exit 1); exit 1; }; }
9419 cat >conftest.$ac_ext <<_ACEOF
9420 #line 9420 "configure"
9421 #include "confdefs.h"
9422 $ac_includes_default
9426 FILE *f = fopen ("conftest.val", "w");
9429 fprintf (f, "%d", (sizeof (short)));
9435 rm -f conftest$ac_exeext
9436 if { (eval echo "$as_me:9436: \"$ac_link\"") >&5
9437 (eval $ac_link) 2>&5
9439 echo "$as_me:9439: \$? = $ac_status" >&5
9440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9441 { (eval echo "$as_me:9441: \"$ac_try\"") >&5
9444 echo "$as_me:9444: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_sizeof_short=`cat conftest.val`
9448 echo "$as_me: program exited with status $ac_status" >&5
9449 echo "$as_me: failed program was:" >&5
9450 cat conftest.$ac_ext >&5
9452 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9457 ac_cv_sizeof_short=0
9460 echo "$as_me:9460: result: $ac_cv_sizeof_short" >&5
9461 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
9462 cat >>confdefs.h <<EOF
9463 #define SIZEOF_SHORT $ac_cv_sizeof_short
9466 echo "$as_me:9466: checking for int" >&5
9467 echo $ECHO_N "checking for int... $ECHO_C" >&6
9468 if test "${ac_cv_type_int+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9472 #line 9472 "configure"
9473 #include "confdefs.h"
9474 $ac_includes_default
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:9487: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>&5
9490 echo "$as_me:9490: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -s conftest.$ac_objext'
9493 { (eval echo "$as_me:9493: \"$ac_try\"") >&5
9496 echo "$as_me:9496: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9500 echo "$as_me: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9504 rm -f conftest.$ac_objext conftest.$ac_ext
9506 echo "$as_me:9506: result: $ac_cv_type_int" >&5
9507 echo "${ECHO_T}$ac_cv_type_int" >&6
9509 echo "$as_me:9509: checking size of int" >&5
9510 echo $ECHO_N "checking size of int... $ECHO_C" >&6
9511 if test "${ac_cv_sizeof_int+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 if test "$ac_cv_type_int" = yes; then
9515 if test "$cross_compiling" = yes; then
9516 # Depending upon the size, compute the lo and hi bounds.
9517 cat >conftest.$ac_ext <<_ACEOF
9518 #line 9518 "configure"
9519 #include "confdefs.h"
9520 $ac_includes_default
9524 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:9530: \"$ac_compile\"") >&5
9531 (eval $ac_compile) 2>&5
9533 echo "$as_me:9533: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:9536: \"$ac_try\"") >&5
9539 echo "$as_me:9539: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9543 cat >conftest.$ac_ext <<_ACEOF
9544 #line 9544 "configure"
9545 #include "confdefs.h"
9546 $ac_includes_default
9550 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:9556: \"$ac_compile\"") >&5
9557 (eval $ac_compile) 2>&5
9559 echo "$as_me:9559: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -s conftest.$ac_objext'
9562 { (eval echo "$as_me:9562: \"$ac_try\"") >&5
9565 echo "$as_me:9565: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_hi=$ac_mid; break
9569 echo "$as_me: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9573 rm -f conftest.$ac_objext conftest.$ac_ext
9576 echo "$as_me: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line 9581 "configure"
9582 #include "confdefs.h"
9583 $ac_includes_default
9587 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
9592 rm -f conftest.$ac_objext
9593 if { (eval echo "$as_me:9593: \"$ac_compile\"") >&5
9594 (eval $ac_compile) 2>&5
9596 echo "$as_me:9596: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -s conftest.$ac_objext'
9599 { (eval echo "$as_me:9599: \"$ac_try\"") >&5
9602 echo "$as_me:9602: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_lo=$ac_mid; break
9606 echo "$as_me: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9608 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9610 rm -f conftest.$ac_objext conftest.$ac_ext
9613 rm -f conftest.$ac_objext conftest.$ac_ext
9614 # Binary search between lo and hi bounds.
9615 while test "x$ac_lo" != "x$ac_hi"; do
9616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9617 cat >conftest.$ac_ext <<_ACEOF
9618 #line 9618 "configure"
9619 #include "confdefs.h"
9620 $ac_includes_default
9624 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
9629 rm -f conftest.$ac_objext
9630 if { (eval echo "$as_me:9630: \"$ac_compile\"") >&5
9631 (eval $ac_compile) 2>&5
9633 echo "$as_me:9633: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -s conftest.$ac_objext'
9636 { (eval echo "$as_me:9636: \"$ac_try\"") >&5
9639 echo "$as_me:9639: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9643 echo "$as_me: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 ac_lo=`expr $ac_mid + 1`
9647 rm -f conftest.$ac_objext conftest.$ac_ext
9649 ac_cv_sizeof_int=$ac_lo
9651 if test "$cross_compiling" = yes; then
9652 { { echo "$as_me:9652: error: cannot run test program while cross compiling" >&5
9653 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9654 { (exit 1); exit 1; }; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line 9657 "configure"
9658 #include "confdefs.h"
9659 $ac_includes_default
9663 FILE *f = fopen ("conftest.val", "w");
9666 fprintf (f, "%d", (sizeof (int)));
9672 rm -f conftest$ac_exeext
9673 if { (eval echo "$as_me:9673: \"$ac_link\"") >&5
9674 (eval $ac_link) 2>&5
9676 echo "$as_me:9676: \$? = $ac_status" >&5
9677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9678 { (eval echo "$as_me:9678: \"$ac_try\"") >&5
9681 echo "$as_me:9681: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_sizeof_int=`cat conftest.val`
9685 echo "$as_me: program exited with status $ac_status" >&5
9686 echo "$as_me: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9689 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:9697: result: $ac_cv_sizeof_int" >&5
9698 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9699 cat >>confdefs.h <<EOF
9700 #define SIZEOF_INT $ac_cv_sizeof_int
9703 echo "$as_me:9703: checking for long" >&5
9704 echo $ECHO_N "checking for long... $ECHO_C" >&6
9705 if test "${ac_cv_type_long+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9709 #line 9709 "configure"
9710 #include "confdefs.h"
9711 $ac_includes_default
9723 rm -f conftest.$ac_objext
9724 if { (eval echo "$as_me:9724: \"$ac_compile\"") >&5
9725 (eval $ac_compile) 2>&5
9727 echo "$as_me:9727: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (eval echo "$as_me:9730: \"$ac_try\"") >&5
9733 echo "$as_me:9733: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9737 echo "$as_me: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9741 rm -f conftest.$ac_objext conftest.$ac_ext
9743 echo "$as_me:9743: result: $ac_cv_type_long" >&5
9744 echo "${ECHO_T}$ac_cv_type_long" >&6
9746 echo "$as_me:9746: checking size of long" >&5
9747 echo $ECHO_N "checking size of long... $ECHO_C" >&6
9748 if test "${ac_cv_sizeof_long+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 if test "$ac_cv_type_long" = yes; then
9752 if test "$cross_compiling" = yes; then
9753 # Depending upon the size, compute the lo and hi bounds.
9754 cat >conftest.$ac_ext <<_ACEOF
9755 #line 9755 "configure"
9756 #include "confdefs.h"
9757 $ac_includes_default
9761 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:9767: \"$ac_compile\"") >&5
9768 (eval $ac_compile) 2>&5
9770 echo "$as_me:9770: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -s conftest.$ac_objext'
9773 { (eval echo "$as_me:9773: \"$ac_try\"") >&5
9776 echo "$as_me:9776: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9780 cat >conftest.$ac_ext <<_ACEOF
9781 #line 9781 "configure"
9782 #include "confdefs.h"
9783 $ac_includes_default
9787 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:9793: \"$ac_compile\"") >&5
9794 (eval $ac_compile) 2>&5
9796 echo "$as_me:9796: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -s conftest.$ac_objext'
9799 { (eval echo "$as_me:9799: \"$ac_try\"") >&5
9802 echo "$as_me:9802: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_hi=$ac_mid; break
9806 echo "$as_me: failed program was:" >&5
9807 cat conftest.$ac_ext >&5
9808 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9810 rm -f conftest.$ac_objext conftest.$ac_ext
9813 echo "$as_me: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9817 cat >conftest.$ac_ext <<_ACEOF
9818 #line 9818 "configure"
9819 #include "confdefs.h"
9820 $ac_includes_default
9824 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
9829 rm -f conftest.$ac_objext
9830 if { (eval echo "$as_me:9830: \"$ac_compile\"") >&5
9831 (eval $ac_compile) 2>&5
9833 echo "$as_me:9833: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:9836: \"$ac_try\"") >&5
9839 echo "$as_me:9839: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_lo=$ac_mid; break
9843 echo "$as_me: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9845 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9847 rm -f conftest.$ac_objext conftest.$ac_ext
9850 rm -f conftest.$ac_objext conftest.$ac_ext
9851 # Binary search between lo and hi bounds.
9852 while test "x$ac_lo" != "x$ac_hi"; do
9853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line 9855 "configure"
9856 #include "confdefs.h"
9857 $ac_includes_default
9861 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
9866 rm -f conftest.$ac_objext
9867 if { (eval echo "$as_me:9867: \"$ac_compile\"") >&5
9868 (eval $ac_compile) 2>&5
9870 echo "$as_me:9870: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -s conftest.$ac_objext'
9873 { (eval echo "$as_me:9873: \"$ac_try\"") >&5
9876 echo "$as_me:9876: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9880 echo "$as_me: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9882 ac_lo=`expr $ac_mid + 1`
9884 rm -f conftest.$ac_objext conftest.$ac_ext
9886 ac_cv_sizeof_long=$ac_lo
9888 if test "$cross_compiling" = yes; then
9889 { { echo "$as_me:9889: error: cannot run test program while cross compiling" >&5
9890 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9891 { (exit 1); exit 1; }; }
9893 cat >conftest.$ac_ext <<_ACEOF
9894 #line 9894 "configure"
9895 #include "confdefs.h"
9896 $ac_includes_default
9900 FILE *f = fopen ("conftest.val", "w");
9903 fprintf (f, "%d", (sizeof (long)));
9909 rm -f conftest$ac_exeext
9910 if { (eval echo "$as_me:9910: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>&5
9913 echo "$as_me:9913: \$? = $ac_status" >&5
9914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9915 { (eval echo "$as_me:9915: \"$ac_try\"") >&5
9918 echo "$as_me:9918: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_cv_sizeof_long=`cat conftest.val`
9922 echo "$as_me: program exited with status $ac_status" >&5
9923 echo "$as_me: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9926 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9934 echo "$as_me:9934: result: $ac_cv_sizeof_long" >&5
9935 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9936 cat >>confdefs.h <<EOF
9937 #define SIZEOF_LONG $ac_cv_sizeof_long
9940 echo "$as_me:9940: checking for char *" >&5
9941 echo $ECHO_N "checking for char *... $ECHO_C" >&6
9942 if test "${ac_cv_type_char_p+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 cat >conftest.$ac_ext <<_ACEOF
9946 #line 9946 "configure"
9947 #include "confdefs.h"
9948 $ac_includes_default
9954 if (sizeof (char *))
9960 rm -f conftest.$ac_objext
9961 if { (eval echo "$as_me:9961: \"$ac_compile\"") >&5
9962 (eval $ac_compile) 2>&5
9964 echo "$as_me:9964: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -s conftest.$ac_objext'
9967 { (eval echo "$as_me:9967: \"$ac_try\"") >&5
9970 echo "$as_me:9970: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_cv_type_char_p=yes
9974 echo "$as_me: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9976 ac_cv_type_char_p=no
9978 rm -f conftest.$ac_objext conftest.$ac_ext
9980 echo "$as_me:9980: result: $ac_cv_type_char_p" >&5
9981 echo "${ECHO_T}$ac_cv_type_char_p" >&6
9983 echo "$as_me:9983: checking size of char *" >&5
9984 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
9985 if test "${ac_cv_sizeof_char_p+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 if test "$ac_cv_type_char_p" = yes; then
9989 if test "$cross_compiling" = yes; then
9990 # Depending upon the size, compute the lo and hi bounds.
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line 9992 "configure"
9993 #include "confdefs.h"
9994 $ac_includes_default
9998 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:10004: \"$ac_compile\"") >&5
10005 (eval $ac_compile) 2>&5
10007 echo "$as_me:10007: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -s conftest.$ac_objext'
10010 { (eval echo "$as_me:10010: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:10013: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10017 cat >conftest.$ac_ext <<_ACEOF
10018 #line 10018 "configure"
10019 #include "confdefs.h"
10020 $ac_includes_default
10024 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
10029 rm -f conftest.$ac_objext
10030 if { (eval echo "$as_me:10030: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>&5
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -s conftest.$ac_objext'
10036 { (eval echo "$as_me:10036: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:10039: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_hi=$ac_mid; break
10043 echo "$as_me: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10047 rm -f conftest.$ac_objext conftest.$ac_ext
10050 echo "$as_me: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10054 cat >conftest.$ac_ext <<_ACEOF
10055 #line 10055 "configure"
10056 #include "confdefs.h"
10057 $ac_includes_default
10061 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
10066 rm -f conftest.$ac_objext
10067 if { (eval echo "$as_me:10067: \"$ac_compile\"") >&5
10068 (eval $ac_compile) 2>&5
10070 echo "$as_me:10070: \$? = $ac_status" >&5
10071 (exit $ac_status); } &&
10072 { ac_try='test -s conftest.$ac_objext'
10073 { (eval echo "$as_me:10073: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:10076: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_lo=$ac_mid; break
10080 echo "$as_me: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10082 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10084 rm -f conftest.$ac_objext conftest.$ac_ext
10087 rm -f conftest.$ac_objext conftest.$ac_ext
10088 # Binary search between lo and hi bounds.
10089 while test "x$ac_lo" != "x$ac_hi"; do
10090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line 10092 "configure"
10093 #include "confdefs.h"
10094 $ac_includes_default
10098 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
10103 rm -f conftest.$ac_objext
10104 if { (eval echo "$as_me:10104: \"$ac_compile\"") >&5
10105 (eval $ac_compile) 2>&5
10107 echo "$as_me:10107: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -s conftest.$ac_objext'
10110 { (eval echo "$as_me:10110: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10113 echo "$as_me:10113: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10117 echo "$as_me: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 ac_lo=`expr $ac_mid + 1`
10121 rm -f conftest.$ac_objext conftest.$ac_ext
10123 ac_cv_sizeof_char_p=$ac_lo
10125 if test "$cross_compiling" = yes; then
10126 { { echo "$as_me:10126: error: cannot run test program while cross compiling" >&5
10127 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10128 { (exit 1); exit 1; }; }
10130 cat >conftest.$ac_ext <<_ACEOF
10131 #line 10131 "configure"
10132 #include "confdefs.h"
10133 $ac_includes_default
10137 FILE *f = fopen ("conftest.val", "w");
10140 fprintf (f, "%d", (sizeof (char *)));
10146 rm -f conftest$ac_exeext
10147 if { (eval echo "$as_me:10147: \"$ac_link\"") >&5
10148 (eval $ac_link) 2>&5
10150 echo "$as_me:10150: \$? = $ac_status" >&5
10151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10152 { (eval echo "$as_me:10152: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:10155: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_sizeof_char_p=`cat conftest.val`
10159 echo "$as_me: program exited with status $ac_status" >&5
10160 echo "$as_me: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10163 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10168 ac_cv_sizeof_char_p=0
10171 echo "$as_me:10171: result: $ac_cv_sizeof_char_p" >&5
10172 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
10173 cat >>confdefs.h <<EOF
10174 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
10177 echo "$as_me:10177: checking for double" >&5
10178 echo $ECHO_N "checking for double... $ECHO_C" >&6
10179 if test "${ac_cv_type_double+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10183 #line 10183 "configure"
10184 #include "confdefs.h"
10185 $ac_includes_default
10191 if (sizeof (double))
10197 rm -f conftest.$ac_objext
10198 if { (eval echo "$as_me:10198: \"$ac_compile\"") >&5
10199 (eval $ac_compile) 2>&5
10201 echo "$as_me:10201: \$? = $ac_status" >&5
10202 (exit $ac_status); } &&
10203 { ac_try='test -s conftest.$ac_objext'
10204 { (eval echo "$as_me:10204: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10207 echo "$as_me:10207: \$? = $ac_status" >&5
10208 (exit $ac_status); }; }; then
10209 ac_cv_type_double=yes
10211 echo "$as_me: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 ac_cv_type_double=no
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10217 echo "$as_me:10217: result: $ac_cv_type_double" >&5
10218 echo "${ECHO_T}$ac_cv_type_double" >&6
10220 echo "$as_me:10220: checking size of double" >&5
10221 echo $ECHO_N "checking size of double... $ECHO_C" >&6
10222 if test "${ac_cv_sizeof_double+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 if test "$ac_cv_type_double" = yes; then
10226 if test "$cross_compiling" = yes; then
10227 # Depending upon the size, compute the lo and hi bounds.
10228 cat >conftest.$ac_ext <<_ACEOF
10229 #line 10229 "configure"
10230 #include "confdefs.h"
10231 $ac_includes_default
10235 int _array_ [1 - 2 * !((sizeof (double)) >= 0)]
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:10241: \"$ac_compile\"") >&5
10242 (eval $ac_compile) 2>&5
10244 echo "$as_me:10244: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try='test -s conftest.$ac_objext'
10247 { (eval echo "$as_me:10247: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10250 echo "$as_me:10250: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line 10255 "configure"
10256 #include "confdefs.h"
10257 $ac_includes_default
10261 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
10266 rm -f conftest.$ac_objext
10267 if { (eval echo "$as_me:10267: \"$ac_compile\"") >&5
10268 (eval $ac_compile) 2>&5
10270 echo "$as_me:10270: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:10273: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:10276: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_hi=$ac_mid; break
10280 echo "$as_me: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10284 rm -f conftest.$ac_objext conftest.$ac_ext
10287 echo "$as_me: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10291 cat >conftest.$ac_ext <<_ACEOF
10292 #line 10292 "configure"
10293 #include "confdefs.h"
10294 $ac_includes_default
10298 int _array_ [1 - 2 * !((sizeof (double)) >= $ac_mid)]
10303 rm -f conftest.$ac_objext
10304 if { (eval echo "$as_me:10304: \"$ac_compile\"") >&5
10305 (eval $ac_compile) 2>&5
10307 echo "$as_me:10307: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -s conftest.$ac_objext'
10310 { (eval echo "$as_me:10310: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:10313: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_lo=$ac_mid; break
10317 echo "$as_me: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10319 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10321 rm -f conftest.$ac_objext conftest.$ac_ext
10324 rm -f conftest.$ac_objext conftest.$ac_ext
10325 # Binary search between lo and hi bounds.
10326 while test "x$ac_lo" != "x$ac_hi"; do
10327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10331 $ac_includes_default
10335 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:10341: \"$ac_compile\"") >&5
10342 (eval $ac_compile) 2>&5
10344 echo "$as_me:10344: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:10347: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:10350: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10354 echo "$as_me: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10356 ac_lo=`expr $ac_mid + 1`
10358 rm -f conftest.$ac_objext conftest.$ac_ext
10360 ac_cv_sizeof_double=$ac_lo
10362 if test "$cross_compiling" = yes; then
10363 { { echo "$as_me:10363: error: cannot run test program while cross compiling" >&5
10364 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10365 { (exit 1); exit 1; }; }
10367 cat >conftest.$ac_ext <<_ACEOF
10368 #line 10368 "configure"
10369 #include "confdefs.h"
10370 $ac_includes_default
10374 FILE *f = fopen ("conftest.val", "w");
10377 fprintf (f, "%d", (sizeof (double)));
10383 rm -f conftest$ac_exeext
10384 if { (eval echo "$as_me:10384: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10387 echo "$as_me:10387: \$? = $ac_status" >&5
10388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10389 { (eval echo "$as_me:10389: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:10392: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_sizeof_double=`cat conftest.val`
10396 echo "$as_me: program exited with status $ac_status" >&5
10397 echo "$as_me: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10400 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10405 ac_cv_sizeof_double=0
10408 echo "$as_me:10408: result: $ac_cv_sizeof_double" >&5
10409 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
10410 cat >>confdefs.h <<EOF
10411 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
10414 echo "$as_me:10414: checking for long long" >&5
10415 echo $ECHO_N "checking for long long... $ECHO_C" >&6
10416 if test "${ac_cv_type_long_long+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line 10420 "configure"
10421 #include "confdefs.h"
10422 $ac_includes_default
10426 if ((long long *) 0)
10428 if (sizeof (long long))
10434 rm -f conftest.$ac_objext
10435 if { (eval echo "$as_me:10435: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>&5
10438 echo "$as_me:10438: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -s conftest.$ac_objext'
10441 { (eval echo "$as_me:10441: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:10444: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_cv_type_long_long=yes
10448 echo "$as_me: failed program was:" >&5
10449 cat conftest.$ac_ext >&5
10450 ac_cv_type_long_long=no
10452 rm -f conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me:10454: result: $ac_cv_type_long_long" >&5
10455 echo "${ECHO_T}$ac_cv_type_long_long" >&6
10457 echo "$as_me:10457: checking size of long long" >&5
10458 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
10459 if test "${ac_cv_sizeof_long_long+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 if test "$ac_cv_type_long_long" = yes; then
10463 if test "$cross_compiling" = yes; then
10464 # Depending upon the size, compute the lo and hi bounds.
10465 cat >conftest.$ac_ext <<_ACEOF
10466 #line 10466 "configure"
10467 #include "confdefs.h"
10468 $ac_includes_default
10472 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
10477 rm -f conftest.$ac_objext
10478 if { (eval echo "$as_me:10478: \"$ac_compile\"") >&5
10479 (eval $ac_compile) 2>&5
10481 echo "$as_me:10481: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -s conftest.$ac_objext'
10484 { (eval echo "$as_me:10484: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:10487: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10491 cat >conftest.$ac_ext <<_ACEOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10494 $ac_includes_default
10498 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:10504: \"$ac_compile\"") >&5
10505 (eval $ac_compile) 2>&5
10507 echo "$as_me:10507: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:10510: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:10513: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_hi=$ac_mid; break
10517 echo "$as_me: failed program was:" >&5
10518 cat conftest.$ac_ext >&5
10519 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10521 rm -f conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10528 cat >conftest.$ac_ext <<_ACEOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10531 $ac_includes_default
10535 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
10540 rm -f conftest.$ac_objext
10541 if { (eval echo "$as_me:10541: \"$ac_compile\"") >&5
10542 (eval $ac_compile) 2>&5
10544 echo "$as_me:10544: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -s conftest.$ac_objext'
10547 { (eval echo "$as_me:10547: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10550 echo "$as_me:10550: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_lo=$ac_mid; break
10554 echo "$as_me: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10556 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10558 rm -f conftest.$ac_objext conftest.$ac_ext
10561 rm -f conftest.$ac_objext conftest.$ac_ext
10562 # Binary search between lo and hi bounds.
10563 while test "x$ac_lo" != "x$ac_hi"; do
10564 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10565 cat >conftest.$ac_ext <<_ACEOF
10566 #line 10566 "configure"
10567 #include "confdefs.h"
10568 $ac_includes_default
10572 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:10578: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10581 echo "$as_me:10581: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (eval echo "$as_me:10584: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10587 echo "$as_me:10587: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10591 echo "$as_me: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10593 ac_lo=`expr $ac_mid + 1`
10595 rm -f conftest.$ac_objext conftest.$ac_ext
10597 ac_cv_sizeof_long_long=$ac_lo
10599 if test "$cross_compiling" = yes; then
10600 { { echo "$as_me:10600: error: cannot run test program while cross compiling" >&5
10601 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10602 { (exit 1); exit 1; }; }
10604 cat >conftest.$ac_ext <<_ACEOF
10605 #line 10605 "configure"
10606 #include "confdefs.h"
10607 $ac_includes_default
10611 FILE *f = fopen ("conftest.val", "w");
10614 fprintf (f, "%d", (sizeof (long long)));
10620 rm -f conftest$ac_exeext
10621 if { (eval echo "$as_me:10621: \"$ac_link\"") >&5
10622 (eval $ac_link) 2>&5
10624 echo "$as_me:10624: \$? = $ac_status" >&5
10625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10626 { (eval echo "$as_me:10626: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:10629: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_sizeof_long_long=`cat conftest.val`
10633 echo "$as_me: program exited with status $ac_status" >&5
10634 echo "$as_me: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10642 ac_cv_sizeof_long_long=0
10645 echo "$as_me:10645: result: $ac_cv_sizeof_long_long" >&5
10646 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10647 cat >>confdefs.h <<EOF
10648 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10651 echo "$as_me:10651: checking for u_int" >&5
10652 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
10653 if test "${ac_cv_type_u_int+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 cat >conftest.$ac_ext <<_ACEOF
10657 #line 10657 "configure"
10658 #include "confdefs.h"
10659 $ac_includes_default
10665 if (sizeof (u_int))
10671 rm -f conftest.$ac_objext
10672 if { (eval echo "$as_me:10672: \"$ac_compile\"") >&5
10673 (eval $ac_compile) 2>&5
10675 echo "$as_me:10675: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -s conftest.$ac_objext'
10678 { (eval echo "$as_me:10678: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10681 echo "$as_me:10681: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 ac_cv_type_u_int=yes
10685 echo "$as_me: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10687 ac_cv_type_u_int=no
10689 rm -f conftest.$ac_objext conftest.$ac_ext
10691 echo "$as_me:10691: result: $ac_cv_type_u_int" >&5
10692 echo "${ECHO_T}$ac_cv_type_u_int" >&6
10693 if test $ac_cv_type_u_int = yes; then
10697 cat >>confdefs.h <<EOF
10698 #define u_int unsigned int
10703 echo "$as_me:10703: checking for u_long" >&5
10704 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
10705 if test "${ac_cv_type_u_long+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 cat >conftest.$ac_ext <<_ACEOF
10709 #line 10709 "configure"
10710 #include "confdefs.h"
10711 $ac_includes_default
10717 if (sizeof (u_long))
10723 rm -f conftest.$ac_objext
10724 if { (eval echo "$as_me:10724: \"$ac_compile\"") >&5
10725 (eval $ac_compile) 2>&5
10727 echo "$as_me:10727: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -s conftest.$ac_objext'
10730 { (eval echo "$as_me:10730: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10733 echo "$as_me:10733: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_type_u_long=yes
10737 echo "$as_me: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 ac_cv_type_u_long=no
10741 rm -f conftest.$ac_objext conftest.$ac_ext
10743 echo "$as_me:10743: result: $ac_cv_type_u_long" >&5
10744 echo "${ECHO_T}$ac_cv_type_u_long" >&6
10745 if test $ac_cv_type_u_long = yes; then
10749 cat >>confdefs.h <<EOF
10750 #define u_long unsigned long
10755 if test "$ac_cv_sizeof_short" = 2; then
10756 echo "$as_me:10756: checking for bits16_t" >&5
10757 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10758 if test "${ac_cv_type_bits16_t+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 cat >conftest.$ac_ext <<_ACEOF
10762 #line 10762 "configure"
10763 #include "confdefs.h"
10764 $ac_includes_default
10768 if ((bits16_t *) 0)
10770 if (sizeof (bits16_t))
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:10777: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>&5
10780 echo "$as_me:10780: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -s conftest.$ac_objext'
10783 { (eval echo "$as_me:10783: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:10786: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_type_bits16_t=yes
10790 echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 ac_cv_type_bits16_t=no
10794 rm -f conftest.$ac_objext conftest.$ac_ext
10796 echo "$as_me:10796: result: $ac_cv_type_bits16_t" >&5
10797 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10798 if test $ac_cv_type_bits16_t = yes; then
10802 cat >>confdefs.h <<EOF
10803 #define bits16_t short
10808 elif test "$ac_cv_sizeof_char" = 2; then
10809 echo "$as_me:10809: checking for bits16_t" >&5
10810 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10811 if test "${ac_cv_type_bits16_t+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 cat >conftest.$ac_ext <<_ACEOF
10815 #line 10815 "configure"
10816 #include "confdefs.h"
10817 $ac_includes_default
10821 if ((bits16_t *) 0)
10823 if (sizeof (bits16_t))
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:10830: \"$ac_compile\"") >&5
10831 (eval $ac_compile) 2>&5
10833 echo "$as_me:10833: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
10835 { ac_try='test -s conftest.$ac_objext'
10836 { (eval echo "$as_me:10836: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:10839: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 ac_cv_type_bits16_t=yes
10843 echo "$as_me: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 ac_cv_type_bits16_t=no
10847 rm -f conftest.$ac_objext conftest.$ac_ext
10849 echo "$as_me:10849: result: $ac_cv_type_bits16_t" >&5
10850 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10851 if test $ac_cv_type_bits16_t = yes; then
10855 cat >>confdefs.h <<EOF
10856 #define bits16_t char
10862 echo "$as_me:10862: checking for bits16_t" >&5
10863 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10864 if test "${ac_cv_type_bits16_t+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10868 #line 10868 "configure"
10869 #include "confdefs.h"
10870 $ac_includes_default
10874 if ((bits16_t *) 0)
10876 if (sizeof (bits16_t))
10882 rm -f conftest.$ac_objext
10883 if { (eval echo "$as_me:10883: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>&5
10886 echo "$as_me:10886: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:10889: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:10892: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_type_bits16_t=yes
10896 echo "$as_me: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 ac_cv_type_bits16_t=no
10900 rm -f conftest.$ac_objext conftest.$ac_ext
10902 echo "$as_me:10902: result: $ac_cv_type_bits16_t" >&5
10903 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10904 if test $ac_cv_type_bits16_t = yes; then
10908 cat >>confdefs.h <<EOF
10909 #define bits16_t short
10916 if test "$ac_cv_sizeof_short" = 2; then
10917 echo "$as_me:10917: checking for u_bits16_t" >&5
10918 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10919 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line 10923 "configure"
10924 #include "confdefs.h"
10925 $ac_includes_default
10929 if ((u_bits16_t *) 0)
10931 if (sizeof (u_bits16_t))
10937 rm -f conftest.$ac_objext
10938 if { (eval echo "$as_me:10938: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>&5
10941 echo "$as_me:10941: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -s conftest.$ac_objext'
10944 { (eval echo "$as_me:10944: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:10947: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 ac_cv_type_u_bits16_t=yes
10951 echo "$as_me: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 ac_cv_type_u_bits16_t=no
10955 rm -f conftest.$ac_objext conftest.$ac_ext
10957 echo "$as_me:10957: result: $ac_cv_type_u_bits16_t" >&5
10958 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10959 if test $ac_cv_type_u_bits16_t = yes; then
10963 cat >>confdefs.h <<EOF
10964 #define u_bits16_t unsigned short
10969 elif test "$ac_cv_sizeof_char" = 2; then
10970 echo "$as_me:10970: checking for u_bits16_t" >&5
10971 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10972 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10976 #line 10976 "configure"
10977 #include "confdefs.h"
10978 $ac_includes_default
10982 if ((u_bits16_t *) 0)
10984 if (sizeof (u_bits16_t))
10990 rm -f conftest.$ac_objext
10991 if { (eval echo "$as_me:10991: \"$ac_compile\"") >&5
10992 (eval $ac_compile) 2>&5
10994 echo "$as_me:10994: \$? = $ac_status" >&5
10995 (exit $ac_status); } &&
10996 { ac_try='test -s conftest.$ac_objext'
10997 { (eval echo "$as_me:10997: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:11000: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 ac_cv_type_u_bits16_t=yes
11004 echo "$as_me: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11006 ac_cv_type_u_bits16_t=no
11008 rm -f conftest.$ac_objext conftest.$ac_ext
11010 echo "$as_me:11010: result: $ac_cv_type_u_bits16_t" >&5
11011 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
11012 if test $ac_cv_type_u_bits16_t = yes; then
11016 cat >>confdefs.h <<EOF
11017 #define u_bits16_t unsigned char
11023 echo "$as_me:11023: checking for u_bits16_t" >&5
11024 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
11025 if test "${ac_cv_type_u_bits16_t+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 cat >conftest.$ac_ext <<_ACEOF
11029 #line 11029 "configure"
11030 #include "confdefs.h"
11031 $ac_includes_default
11035 if ((u_bits16_t *) 0)
11037 if (sizeof (u_bits16_t))
11043 rm -f conftest.$ac_objext
11044 if { (eval echo "$as_me:11044: \"$ac_compile\"") >&5
11045 (eval $ac_compile) 2>&5
11047 echo "$as_me:11047: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -s conftest.$ac_objext'
11050 { (eval echo "$as_me:11050: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:11053: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_type_u_bits16_t=yes
11057 echo "$as_me: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11059 ac_cv_type_u_bits16_t=no
11061 rm -f conftest.$ac_objext conftest.$ac_ext
11063 echo "$as_me:11063: result: $ac_cv_type_u_bits16_t" >&5
11064 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
11065 if test $ac_cv_type_u_bits16_t = yes; then
11069 cat >>confdefs.h <<EOF
11070 #define u_bits16_t unsigned short
11077 if test "$ac_cv_sizeof_int" = 4; then
11078 echo "$as_me:11078: checking for bits32_t" >&5
11079 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
11080 if test "${ac_cv_type_bits32_t+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 cat >conftest.$ac_ext <<_ACEOF
11084 #line 11084 "configure"
11085 #include "confdefs.h"
11086 $ac_includes_default
11090 if ((bits32_t *) 0)
11092 if (sizeof (bits32_t))
11098 rm -f conftest.$ac_objext
11099 if { (eval echo "$as_me:11099: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>&5
11102 echo "$as_me:11102: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (eval echo "$as_me:11105: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:11108: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_cv_type_bits32_t=yes
11112 echo "$as_me: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 ac_cv_type_bits32_t=no
11116 rm -f conftest.$ac_objext conftest.$ac_ext
11118 echo "$as_me:11118: result: $ac_cv_type_bits32_t" >&5
11119 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
11120 if test $ac_cv_type_bits32_t = yes; then
11124 cat >>confdefs.h <<EOF
11125 #define bits32_t int
11130 elif test "$ac_cv_sizeof_long" = 4; then
11131 echo "$as_me:11131: checking for bits32_t" >&5
11132 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
11133 if test "${ac_cv_type_bits32_t+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 cat >conftest.$ac_ext <<_ACEOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11139 $ac_includes_default
11143 if ((bits32_t *) 0)
11145 if (sizeof (bits32_t))
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:11152: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>&5
11155 echo "$as_me:11155: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -s conftest.$ac_objext'
11158 { (eval echo "$as_me:11158: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:11161: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_type_bits32_t=yes
11165 echo "$as_me: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11167 ac_cv_type_bits32_t=no
11169 rm -f conftest.$ac_objext conftest.$ac_ext
11171 echo "$as_me:11171: result: $ac_cv_type_bits32_t" >&5
11172 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
11173 if test $ac_cv_type_bits32_t = yes; then
11177 cat >>confdefs.h <<EOF
11178 #define bits32_t long
11184 echo "$as_me:11184: checking for bits32_t" >&5
11185 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
11186 if test "${ac_cv_type_bits32_t+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 cat >conftest.$ac_ext <<_ACEOF
11190 #line 11190 "configure"
11191 #include "confdefs.h"
11192 $ac_includes_default
11196 if ((bits32_t *) 0)
11198 if (sizeof (bits32_t))
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:11205: \"$ac_compile\"") >&5
11206 (eval $ac_compile) 2>&5
11208 echo "$as_me:11208: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -s conftest.$ac_objext'
11211 { (eval echo "$as_me:11211: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:11214: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 ac_cv_type_bits32_t=yes
11218 echo "$as_me: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 ac_cv_type_bits32_t=no
11222 rm -f conftest.$ac_objext conftest.$ac_ext
11224 echo "$as_me:11224: result: $ac_cv_type_bits32_t" >&5
11225 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
11226 if test $ac_cv_type_bits32_t = yes; then
11230 cat >>confdefs.h <<EOF
11231 #define bits32_t int
11238 if test "$ac_cv_sizeof_int" = 4; then
11239 echo "$as_me:11239: checking for u_bits32_t" >&5
11240 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
11241 if test "${ac_cv_type_u_bits32_t+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 cat >conftest.$ac_ext <<_ACEOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11247 $ac_includes_default
11251 if ((u_bits32_t *) 0)
11253 if (sizeof (u_bits32_t))
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:11260: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>&5
11263 echo "$as_me:11263: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:11266: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:11269: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_type_u_bits32_t=yes
11273 echo "$as_me: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11275 ac_cv_type_u_bits32_t=no
11277 rm -f conftest.$ac_objext conftest.$ac_ext
11279 echo "$as_me:11279: result: $ac_cv_type_u_bits32_t" >&5
11280 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
11281 if test $ac_cv_type_u_bits32_t = yes; then
11285 cat >>confdefs.h <<EOF
11286 #define u_bits32_t unsigned int
11291 elif test "$ac_cv_sizeof_long" = 4; then
11292 echo "$as_me:11292: checking for u_bits32_t" >&5
11293 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
11294 if test "${ac_cv_type_u_bits32_t+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11298 #line 11298 "configure"
11299 #include "confdefs.h"
11300 $ac_includes_default
11304 if ((u_bits32_t *) 0)
11306 if (sizeof (u_bits32_t))
11312 rm -f conftest.$ac_objext
11313 if { (eval echo "$as_me:11313: \"$ac_compile\"") >&5
11314 (eval $ac_compile) 2>&5
11316 echo "$as_me:11316: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -s conftest.$ac_objext'
11319 { (eval echo "$as_me:11319: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:11322: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_cv_type_u_bits32_t=yes
11326 echo "$as_me: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 ac_cv_type_u_bits32_t=no
11330 rm -f conftest.$ac_objext conftest.$ac_ext
11332 echo "$as_me:11332: result: $ac_cv_type_u_bits32_t" >&5
11333 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
11334 if test $ac_cv_type_u_bits32_t = yes; then
11338 cat >>confdefs.h <<EOF
11339 #define u_bits32_t unsigned long
11345 echo "$as_me:11345: checking for u_bits32_t" >&5
11346 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
11347 if test "${ac_cv_type_u_bits32_t+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 cat >conftest.$ac_ext <<_ACEOF
11351 #line 11351 "configure"
11352 #include "confdefs.h"
11353 $ac_includes_default
11357 if ((u_bits32_t *) 0)
11359 if (sizeof (u_bits32_t))
11365 rm -f conftest.$ac_objext
11366 if { (eval echo "$as_me:11366: \"$ac_compile\"") >&5
11367 (eval $ac_compile) 2>&5
11369 echo "$as_me:11369: \$? = $ac_status" >&5
11370 (exit $ac_status); } &&
11371 { ac_try='test -s conftest.$ac_objext'
11372 { (eval echo "$as_me:11372: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11375 echo "$as_me:11375: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
11377 ac_cv_type_u_bits32_t=yes
11379 echo "$as_me: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11381 ac_cv_type_u_bits32_t=no
11383 rm -f conftest.$ac_objext conftest.$ac_ext
11385 echo "$as_me:11385: result: $ac_cv_type_u_bits32_t" >&5
11386 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
11387 if test $ac_cv_type_u_bits32_t = yes; then
11391 cat >>confdefs.h <<EOF
11392 #define u_bits32_t unsigned int
11399 if test "$ac_cv_sizeof_char_p" = 8; then
11400 echo "$as_me:11400: checking for bits64_t" >&5
11401 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11402 if test "${ac_cv_type_bits64_t+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line 11406 "configure"
11407 #include "confdefs.h"
11408 $ac_includes_default
11412 if ((bits64_t *) 0)
11414 if (sizeof (bits64_t))
11420 rm -f conftest.$ac_objext
11421 if { (eval echo "$as_me:11421: \"$ac_compile\"") >&5
11422 (eval $ac_compile) 2>&5
11424 echo "$as_me:11424: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -s conftest.$ac_objext'
11427 { (eval echo "$as_me:11427: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:11430: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_type_bits64_t=yes
11434 echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 ac_cv_type_bits64_t=no
11438 rm -f conftest.$ac_objext conftest.$ac_ext
11440 echo "$as_me:11440: result: $ac_cv_type_bits64_t" >&5
11441 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11442 if test $ac_cv_type_bits64_t = yes; then
11446 cat >>confdefs.h <<EOF
11447 #define bits64_t char *
11452 elif test "$ac_cv_sizeof_double" = 8; then
11453 echo "$as_me:11453: checking for bits64_t" >&5
11454 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11455 if test "${ac_cv_type_bits64_t+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11459 #line 11459 "configure"
11460 #include "confdefs.h"
11461 $ac_includes_default
11465 if ((bits64_t *) 0)
11467 if (sizeof (bits64_t))
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:11474: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11477 echo "$as_me:11477: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (eval echo "$as_me:11480: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11483 echo "$as_me:11483: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_cv_type_bits64_t=yes
11487 echo "$as_me: failed program was:" >&5
11488 cat conftest.$ac_ext >&5
11489 ac_cv_type_bits64_t=no
11491 rm -f conftest.$ac_objext conftest.$ac_ext
11493 echo "$as_me:11493: result: $ac_cv_type_bits64_t" >&5
11494 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11495 if test $ac_cv_type_bits64_t = yes; then
11499 cat >>confdefs.h <<EOF
11500 #define bits64_t double
11505 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
11506 echo "$as_me:11506: checking for bits64_t" >&5
11507 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11508 if test "${ac_cv_type_bits64_t+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 cat >conftest.$ac_ext <<_ACEOF
11512 #line 11512 "configure"
11513 #include "confdefs.h"
11514 $ac_includes_default
11518 if ((bits64_t *) 0)
11520 if (sizeof (bits64_t))
11526 rm -f conftest.$ac_objext
11527 if { (eval echo "$as_me:11527: \"$ac_compile\"") >&5
11528 (eval $ac_compile) 2>&5
11530 echo "$as_me:11530: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -s conftest.$ac_objext'
11533 { (eval echo "$as_me:11533: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11536 echo "$as_me:11536: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
11538 ac_cv_type_bits64_t=yes
11540 echo "$as_me: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11542 ac_cv_type_bits64_t=no
11544 rm -f conftest.$ac_objext conftest.$ac_ext
11546 echo "$as_me:11546: result: $ac_cv_type_bits64_t" >&5
11547 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11548 if test $ac_cv_type_bits64_t = yes; then
11552 cat >>confdefs.h <<EOF
11553 #define bits64_t long long
11558 elif test "$ac_cv_sizeof_long" = 8; then
11559 echo "$as_me:11559: checking for bits64_t" >&5
11560 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11561 if test "${ac_cv_type_bits64_t+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 cat >conftest.$ac_ext <<_ACEOF
11565 #line 11565 "configure"
11566 #include "confdefs.h"
11567 $ac_includes_default
11571 if ((bits64_t *) 0)
11573 if (sizeof (bits64_t))
11579 rm -f conftest.$ac_objext
11580 if { (eval echo "$as_me:11580: \"$ac_compile\"") >&5
11581 (eval $ac_compile) 2>&5
11583 echo "$as_me:11583: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
11585 { ac_try='test -s conftest.$ac_objext'
11586 { (eval echo "$as_me:11586: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:11589: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 ac_cv_type_bits64_t=yes
11593 echo "$as_me: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11595 ac_cv_type_bits64_t=no
11597 rm -f conftest.$ac_objext conftest.$ac_ext
11599 echo "$as_me:11599: result: $ac_cv_type_bits64_t" >&5
11600 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11601 if test $ac_cv_type_bits64_t = yes; then
11605 cat >>confdefs.h <<EOF
11606 #define bits64_t long
11612 echo "$as_me:11612: checking for bits64_t" >&5
11613 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11614 if test "${ac_cv_type_bits64_t+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 cat >conftest.$ac_ext <<_ACEOF
11618 #line 11618 "configure"
11619 #include "confdefs.h"
11620 $ac_includes_default
11624 if ((bits64_t *) 0)
11626 if (sizeof (bits64_t))
11632 rm -f conftest.$ac_objext
11633 if { (eval echo "$as_me:11633: \"$ac_compile\"") >&5
11634 (eval $ac_compile) 2>&5
11636 echo "$as_me:11636: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -s conftest.$ac_objext'
11639 { (eval echo "$as_me:11639: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:11642: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_cv_type_bits64_t=yes
11646 echo "$as_me: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11648 ac_cv_type_bits64_t=no
11650 rm -f conftest.$ac_objext conftest.$ac_ext
11652 echo "$as_me:11652: result: $ac_cv_type_bits64_t" >&5
11653 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11654 if test $ac_cv_type_bits64_t = yes; then
11658 cat >>confdefs.h <<EOF
11659 #define bits64_t double
11666 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
11667 echo "$as_me:11667: checking for ptrdiff_t" >&5
11668 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11669 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line 11673 "configure"
11674 #include "confdefs.h"
11675 $ac_includes_default
11679 if ((ptrdiff_t *) 0)
11681 if (sizeof (ptrdiff_t))
11687 rm -f conftest.$ac_objext
11688 if { (eval echo "$as_me:11688: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>&5
11691 echo "$as_me:11691: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -s conftest.$ac_objext'
11694 { (eval echo "$as_me:11694: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11697 echo "$as_me:11697: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699 ac_cv_type_ptrdiff_t=yes
11701 echo "$as_me: failed program was:" >&5
11702 cat conftest.$ac_ext >&5
11703 ac_cv_type_ptrdiff_t=no
11705 rm -f conftest.$ac_objext conftest.$ac_ext
11707 echo "$as_me:11707: result: $ac_cv_type_ptrdiff_t" >&5
11708 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11709 if test $ac_cv_type_ptrdiff_t = yes; then
11713 cat >>confdefs.h <<EOF
11714 #define ptrdiff_t int
11719 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
11720 echo "$as_me:11720: checking for ptrdiff_t" >&5
11721 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11722 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 cat >conftest.$ac_ext <<_ACEOF
11726 #line 11726 "configure"
11727 #include "confdefs.h"
11728 $ac_includes_default
11732 if ((ptrdiff_t *) 0)
11734 if (sizeof (ptrdiff_t))
11740 rm -f conftest.$ac_objext
11741 if { (eval echo "$as_me:11741: \"$ac_compile\"") >&5
11742 (eval $ac_compile) 2>&5
11744 echo "$as_me:11744: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -s conftest.$ac_objext'
11747 { (eval echo "$as_me:11747: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11750 echo "$as_me:11750: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_cv_type_ptrdiff_t=yes
11754 echo "$as_me: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11756 ac_cv_type_ptrdiff_t=no
11758 rm -f conftest.$ac_objext conftest.$ac_ext
11760 echo "$as_me:11760: result: $ac_cv_type_ptrdiff_t" >&5
11761 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11762 if test $ac_cv_type_ptrdiff_t = yes; then
11766 cat >>confdefs.h <<EOF
11767 #define ptrdiff_t long
11772 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
11773 echo "$as_me:11773: checking for ptrdiff_t" >&5
11774 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11775 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 cat >conftest.$ac_ext <<_ACEOF
11779 #line 11779 "configure"
11780 #include "confdefs.h"
11781 $ac_includes_default
11785 if ((ptrdiff_t *) 0)
11787 if (sizeof (ptrdiff_t))
11793 rm -f conftest.$ac_objext
11794 if { (eval echo "$as_me:11794: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>&5
11797 echo "$as_me:11797: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:11800: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:11803: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_type_ptrdiff_t=yes
11807 echo "$as_me: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 ac_cv_type_ptrdiff_t=no
11811 rm -f conftest.$ac_objext conftest.$ac_ext
11813 echo "$as_me:11813: result: $ac_cv_type_ptrdiff_t" >&5
11814 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11815 if test $ac_cv_type_ptrdiff_t = yes; then
11819 cat >>confdefs.h <<EOF
11820 #define ptrdiff_t long long
11826 echo "$as_me:11826: checking for ptrdiff_t" >&5
11827 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11828 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 cat >conftest.$ac_ext <<_ACEOF
11832 #line 11832 "configure"
11833 #include "confdefs.h"
11834 $ac_includes_default
11838 if ((ptrdiff_t *) 0)
11840 if (sizeof (ptrdiff_t))
11846 rm -f conftest.$ac_objext
11847 if { (eval echo "$as_me:11847: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>&5
11850 echo "$as_me:11850: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (eval echo "$as_me:11853: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11856 echo "$as_me:11856: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 ac_cv_type_ptrdiff_t=yes
11860 echo "$as_me: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 ac_cv_type_ptrdiff_t=no
11864 rm -f conftest.$ac_objext conftest.$ac_ext
11866 echo "$as_me:11866: result: $ac_cv_type_ptrdiff_t" >&5
11867 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11868 if test $ac_cv_type_ptrdiff_t = yes; then
11872 cat >>confdefs.h <<EOF
11873 #define ptrdiff_t int
11880 echo "$as_me:11880: checking whether stat file-mode macros are broken" >&5
11881 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11882 if test "${ac_cv_header_stat_broken+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 cat >conftest.$ac_ext <<_ACEOF
11886 #line 11886 "configure"
11887 #include "confdefs.h"
11888 #include <sys/types.h>
11889 #include <sys/stat.h>
11891 #if defined(S_ISBLK) && defined(S_IFDIR)
11892 # if S_ISBLK (S_IFDIR)
11897 #if defined(S_ISBLK) && defined(S_IFCHR)
11898 # if S_ISBLK (S_IFCHR)
11903 #if defined(S_ISLNK) && defined(S_IFREG)
11904 # if S_ISLNK (S_IFREG)
11909 #if defined(S_ISSOCK) && defined(S_IFREG)
11910 # if S_ISSOCK (S_IFREG)
11916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11917 egrep "You lose" >/dev/null 2>&1; then
11918 ac_cv_header_stat_broken=yes
11920 ac_cv_header_stat_broken=no
11925 echo "$as_me:11925: result: $ac_cv_header_stat_broken" >&5
11926 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11927 if test $ac_cv_header_stat_broken = yes; then
11929 cat >>confdefs.h <<\EOF
11930 #define STAT_MACROS_BROKEN 1
11935 echo "$as_me:11935: checking whether #! works in shell scripts" >&5
11936 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
11937 if test "${ac_cv_sys_interpreter+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
11945 if test $? -ne 69; then
11946 ac_cv_sys_interpreter=yes
11948 ac_cv_sys_interpreter=no
11952 echo "$as_me:11952: result: $ac_cv_sys_interpreter" >&5
11953 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
11954 interpval=$ac_cv_sys_interpreter
11956 if test $ac_cv_sys_interpreter = yes; then
11957 cat >>confdefs.h <<\EOF
11958 #define HAVE_HASH_BANG_EXEC 1
11963 if test "$ac_cv_func_lstat" = "no"; then
11964 echo "$as_me:11964: checking for lstat" >&5
11965 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
11966 if test "${bash_cv_func_lstat+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 cat >conftest.$ac_ext <<_ACEOF
11970 #line 11970 "configure"
11971 #include "confdefs.h"
11973 #include <sys/types.h>
11974 #include <sys/stat.h>
11979 lstat(".",(struct stat *)0);
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (eval echo "$as_me:11985: \"$ac_link\"") >&5
11986 (eval $ac_link) 2>&5
11988 echo "$as_me:11988: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (eval echo "$as_me:11991: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:11994: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 bash_cv_func_lstat=yes
11998 echo "$as_me: failed program was:" >&5
11999 cat conftest.$ac_ext >&5
12000 bash_cv_func_lstat=no
12002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12004 echo "$as_me:12004: result: $bash_cv_func_lstat" >&5
12005 echo "${ECHO_T}$bash_cv_func_lstat" >&6
12006 if test $bash_cv_func_lstat = yes; then
12007 cat >>confdefs.h <<\EOF
12008 #define HAVE_LSTAT 1
12015 echo "$as_me:12015: checking if dup2 fails to clear the close-on-exec flag" >&5
12016 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
12017 if test "${bash_cv_dup2_broken+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 if test "$cross_compiling" = yes; then
12021 { echo "$as_me:12021: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
12022 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
12023 bash_cv_dup2_broken=no
12025 cat >conftest.$ac_ext <<_ACEOF
12026 #line 12026 "configure"
12027 #include "confdefs.h"
12029 #include <sys/types.h>
12034 fd1 = open("/dev/null", 2);
12035 if (fcntl(fd1, 2, 1) < 0)
12037 fd2 = dup2(fd1, 1);
12040 fl = fcntl(fd2, 1, 0);
12041 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
12046 rm -f conftest$ac_exeext
12047 if { (eval echo "$as_me:12047: \"$ac_link\"") >&5
12048 (eval $ac_link) 2>&5
12050 echo "$as_me:12050: \$? = $ac_status" >&5
12051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12052 { (eval echo "$as_me:12052: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:12055: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 bash_cv_dup2_broken=yes
12059 echo "$as_me: program exited with status $ac_status" >&5
12060 echo "$as_me: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12062 bash_cv_dup2_broken=no
12064 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12069 echo "$as_me:12069: result: $bash_cv_dup2_broken" >&5
12070 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
12071 if test $bash_cv_dup2_broken = yes; then
12072 cat >>confdefs.h <<\EOF
12073 #define DUP2_BROKEN 1
12078 echo "$as_me:12078: checking whether pgrps need synchronization" >&5
12079 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
12080 if test "${bash_cv_pgrp_pipe+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 if test "$cross_compiling" = yes; then
12084 { echo "$as_me:12084: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
12085 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
12086 bash_cv_pgrp_pipe=no
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line 12089 "configure"
12090 #include "confdefs.h"
12092 #ifdef HAVE_UNISTD_H
12093 # include <unistd.h>
12097 # ifdef GETPGRP_VOID
12098 # define getpgID() getpgrp()
12100 # define getpgID() getpgrp(0)
12101 # define setpgid(x,y) setpgrp(x,y)
12103 int pid1, pid2, fds[2];
12107 switch (pid1 = fork()) {
12111 setpgid(0, getpid());
12114 setpgid(pid1, pid1);
12116 sleep(2); /* let first child die */
12121 switch (pid2 = fork()) {
12126 ok = getpgID() == pid1;
12127 write(fds[1], &ok, 1);
12130 setpgid(pid2, pid1);
12133 if (read(fds[0], &ok, 1) != 1)
12141 rm -f conftest$ac_exeext
12142 if { (eval echo "$as_me:12142: \"$ac_link\"") >&5
12143 (eval $ac_link) 2>&5
12145 echo "$as_me:12145: \$? = $ac_status" >&5
12146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12147 { (eval echo "$as_me:12147: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12150 echo "$as_me:12150: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 bash_cv_pgrp_pipe=no
12154 echo "$as_me: program exited with status $ac_status" >&5
12155 echo "$as_me: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 bash_cv_pgrp_pipe=yes
12159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me:12164: result: $bash_cv_pgrp_pipe" >&5
12165 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
12166 if test $bash_cv_pgrp_pipe = yes; then
12167 cat >>confdefs.h <<\EOF
12168 #define PGRP_PIPE 1
12173 echo "$as_me:12173: checking for type of signal functions" >&5
12174 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12175 if test "${bash_cv_signal_vintage+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 cat >conftest.$ac_ext <<_ACEOF
12180 #line 12180 "configure"
12181 #include "confdefs.h"
12182 #include <signal.h>
12188 struct sigaction sa;
12189 sigemptyset(&ss); sigsuspend(&ss);
12190 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12191 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:12198: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>&5
12201 echo "$as_me:12201: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (eval echo "$as_me:12204: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12207 echo "$as_me:12207: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 bash_cv_signal_vintage=posix
12211 echo "$as_me: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12214 cat >conftest.$ac_ext <<_ACEOF
12215 #line 12215 "configure"
12216 #include "confdefs.h"
12217 #include <signal.h>
12222 int mask = sigmask(SIGINT);
12223 sigsetmask(mask); sigblock(mask); sigpause(mask);
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (eval echo "$as_me:12230: \"$ac_link\"") >&5
12231 (eval $ac_link) 2>&5
12233 echo "$as_me:12233: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:12236: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:12239: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 bash_cv_signal_vintage=4.2bsd
12243 echo "$as_me: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12246 cat >conftest.$ac_ext <<_ACEOF
12247 #line 12247 "configure"
12248 #include "confdefs.h"
12250 #include <signal.h>
12251 RETSIGTYPE foo() { }
12256 int mask = sigmask(SIGINT);
12257 sigset(SIGINT, foo); sigrelse(SIGINT);
12258 sighold(SIGINT); sigpause(SIGINT);
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (eval echo "$as_me:12265: \"$ac_link\"") >&5
12266 (eval $ac_link) 2>&5
12268 echo "$as_me:12268: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -s conftest$ac_exeext'
12271 { (eval echo "$as_me:12271: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12274 echo "$as_me:12274: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 bash_cv_signal_vintage=svr3
12278 echo "$as_me: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12280 bash_cv_signal_vintage=v7
12283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12293 echo "$as_me:12293: result: $bash_cv_signal_vintage" >&5
12294 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12295 if test "$bash_cv_signal_vintage" = posix; then
12296 cat >>confdefs.h <<\EOF
12297 #define HAVE_POSIX_SIGNALS 1
12300 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12301 cat >>confdefs.h <<\EOF
12302 #define HAVE_BSD_SIGNALS 1
12305 elif test "$bash_cv_signal_vintage" = svr3; then
12306 cat >>confdefs.h <<\EOF
12307 #define HAVE_USG_SIGHOLD 1
12312 echo "$as_me:12312: checking for sys_errlist and sys_nerr" >&5
12313 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
12314 if test "${bash_cv_sys_errlist+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12318 #line 12318 "configure"
12319 #include "confdefs.h"
12324 extern char *sys_errlist[];
12325 extern int sys_nerr;
12326 char *msg = sys_errlist[sys_nerr - 1];
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (eval echo "$as_me:12332: \"$ac_link\"") >&5
12333 (eval $ac_link) 2>&5
12335 echo "$as_me:12335: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (eval echo "$as_me:12338: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:12341: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 bash_cv_sys_errlist=yes
12345 echo "$as_me: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 bash_cv_sys_errlist=no
12349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12351 echo "$as_me:12351: result: $bash_cv_sys_errlist" >&5
12352 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
12353 if test $bash_cv_sys_errlist = yes; then
12354 cat >>confdefs.h <<\EOF
12355 #define HAVE_SYS_ERRLIST 1
12360 echo "$as_me:12360: checking for sys_siglist in system C library" >&5
12361 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
12362 if test "${bash_cv_sys_siglist+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 if test "$cross_compiling" = yes; then
12366 { echo "$as_me:12366: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
12367 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
12368 bash_cv_sys_siglist=no
12370 cat >conftest.$ac_ext <<_ACEOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12374 #include <sys/types.h>
12375 #include <signal.h>
12376 #ifdef HAVE_UNISTD_H
12377 #include <unistd.h>
12379 #ifndef SYS_SIGLIST_DECLARED
12380 extern char *sys_siglist[];
12384 char *msg = sys_siglist[2];
12388 rm -f conftest$ac_exeext
12389 if { (eval echo "$as_me:12389: \"$ac_link\"") >&5
12390 (eval $ac_link) 2>&5
12392 echo "$as_me:12392: \$? = $ac_status" >&5
12393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12394 { (eval echo "$as_me:12394: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:12397: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 bash_cv_sys_siglist=yes
12401 echo "$as_me: program exited with status $ac_status" >&5
12402 echo "$as_me: failed program was:" >&5
12403 cat conftest.$ac_ext >&5
12404 bash_cv_sys_siglist=no
12406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12410 echo "$as_me:12410: result: $bash_cv_sys_siglist" >&5
12411 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
12412 if test $bash_cv_sys_siglist = yes; then
12413 cat >>confdefs.h <<\EOF
12414 #define HAVE_SYS_SIGLIST 1
12419 echo "$as_me:12419: checking for _sys_siglist in signal.h or unistd.h" >&5
12420 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
12421 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12425 #line 12425 "configure"
12426 #include "confdefs.h"
12428 #include <sys/types.h>
12429 #include <signal.h>
12430 #ifdef HAVE_UNISTD_H
12431 #include <unistd.h>
12436 char *msg = _sys_siglist[2];
12441 rm -f conftest.$ac_objext
12442 if { (eval echo "$as_me:12442: \"$ac_compile\"") >&5
12443 (eval $ac_compile) 2>&5
12445 echo "$as_me:12445: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -s conftest.$ac_objext'
12448 { (eval echo "$as_me:12448: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:12451: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 bash_cv_decl_under_sys_siglist=yes
12455 echo "$as_me: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12457 bash_cv_decl_under_sys_siglist=no
12459 rm -f conftest.$ac_objext conftest.$ac_ext
12461 echo "$as_me:12461: result: $bash_cv_decl_under_sys_siglist" >&5
12462 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
12463 if test $bash_cv_decl_under_sys_siglist = yes; then
12464 cat >>confdefs.h <<\EOF
12465 #define UNDER_SYS_SIGLIST_DECLARED 1
12470 echo "$as_me:12470: checking for _sys_siglist in system C library" >&5
12471 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
12472 if test "${bash_cv_under_sys_siglist+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 if test "$cross_compiling" = yes; then
12476 { echo "$as_me:12476: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
12477 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
12478 bash_cv_under_sys_siglist=no
12480 cat >conftest.$ac_ext <<_ACEOF
12481 #line 12481 "configure"
12482 #include "confdefs.h"
12484 #include <sys/types.h>
12485 #include <signal.h>
12486 #ifdef HAVE_UNISTD_H
12487 #include <unistd.h>
12489 #ifndef UNDER_SYS_SIGLIST_DECLARED
12490 extern char *_sys_siglist[];
12494 char *msg = (char *)_sys_siglist[2];
12498 rm -f conftest$ac_exeext
12499 if { (eval echo "$as_me:12499: \"$ac_link\"") >&5
12500 (eval $ac_link) 2>&5
12502 echo "$as_me:12502: \$? = $ac_status" >&5
12503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12504 { (eval echo "$as_me:12504: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 echo "$as_me:12507: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 bash_cv_under_sys_siglist=yes
12511 echo "$as_me: program exited with status $ac_status" >&5
12512 echo "$as_me: failed program was:" >&5
12513 cat conftest.$ac_ext >&5
12514 bash_cv_under_sys_siglist=no
12516 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12520 echo "$as_me:12520: result: $bash_cv_under_sys_siglist" >&5
12521 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
12522 if test $bash_cv_under_sys_siglist = yes; then
12523 cat >>confdefs.h <<\EOF
12524 #define HAVE_UNDER_SYS_SIGLIST 1
12529 echo "$as_me:12529: checking whether signal handlers are of type void" >&5
12530 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
12531 if test "${bash_cv_void_sighandler+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line 12535 "configure"
12536 #include "confdefs.h"
12537 #include <sys/types.h>
12538 #include <signal.h>
12545 void (*signal ()) ();
12554 rm -f conftest.$ac_objext
12555 if { (eval echo "$as_me:12555: \"$ac_compile\"") >&5
12556 (eval $ac_compile) 2>&5
12558 echo "$as_me:12558: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -s conftest.$ac_objext'
12561 { (eval echo "$as_me:12561: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12564 echo "$as_me:12564: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 bash_cv_void_sighandler=yes
12568 echo "$as_me: failed program was:" >&5
12569 cat conftest.$ac_ext >&5
12570 bash_cv_void_sighandler=no
12572 rm -f conftest.$ac_objext conftest.$ac_ext
12574 echo "$as_me:12574: result: $bash_cv_void_sighandler" >&5
12575 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
12576 if test $bash_cv_void_sighandler = yes; then
12577 cat >>confdefs.h <<\EOF
12578 #define VOID_SIGHANDLER 1
12583 echo "$as_me:12583: checking for clock_t" >&5
12584 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12585 if test "${bash_cv_type_clock_t+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 cat >conftest.$ac_ext <<_ACEOF
12589 #line 12589 "configure"
12590 #include "confdefs.h"
12591 #include <sys/types.h>
12593 #include <stdlib.h>
12594 #include <stddef.h>
12596 #if HAVE_INTTYPES_H
12597 #include <inttypes.h>
12599 #include <sys/times.h>
12602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12603 egrep "clock_t" >/dev/null 2>&1; then
12604 bash_cv_type_clock_t=yes
12606 bash_cv_type_clock_t=no
12612 echo "$as_me:12612: result: $bash_cv_type_clock_t" >&5
12613 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
12615 if test $bash_cv_type_clock_t = no; then
12616 cat >>confdefs.h <<EOF
12617 #define clock_t long
12622 echo "$as_me:12622: checking for sigset_t" >&5
12623 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
12624 if test "${bash_cv_type_sigset_t+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 cat >conftest.$ac_ext <<_ACEOF
12628 #line 12628 "configure"
12629 #include "confdefs.h"
12630 #include <sys/types.h>
12632 #include <stdlib.h>
12633 #include <stddef.h>
12635 #if HAVE_INTTYPES_H
12636 #include <inttypes.h>
12638 #include <signal.h>
12641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12642 egrep "sigset_t" >/dev/null 2>&1; then
12643 bash_cv_type_sigset_t=yes
12645 bash_cv_type_sigset_t=no
12651 echo "$as_me:12651: result: $bash_cv_type_sigset_t" >&5
12652 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
12654 if test $bash_cv_type_sigset_t = no; then
12655 cat >>confdefs.h <<EOF
12656 #define sigset_t int
12661 echo "$as_me:12661: checking for quad_t" >&5
12662 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
12663 if test "${bash_cv_type_quad_t+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 cat >conftest.$ac_ext <<_ACEOF
12667 #line 12667 "configure"
12668 #include "confdefs.h"
12669 #include <sys/types.h>
12671 #include <stdlib.h>
12672 #include <stddef.h>
12674 #if HAVE_INTTYPES_H
12675 #include <inttypes.h>
12679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12680 egrep "quad_t" >/dev/null 2>&1; then
12681 bash_cv_type_quad_t=yes
12683 bash_cv_type_quad_t=no
12689 echo "$as_me:12689: result: $bash_cv_type_quad_t" >&5
12690 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
12691 if test $bash_cv_type_quad_t = yes; then
12692 cat >>confdefs.h <<\EOF
12693 #define HAVE_QUAD_T 1
12697 if test $bash_cv_type_quad_t = no; then
12698 cat >>confdefs.h <<EOF
12699 #define quad_t long
12704 echo "$as_me:12704: checking for intmax_t" >&5
12705 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
12706 if test "${bash_cv_type_intmax_t+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 cat >conftest.$ac_ext <<_ACEOF
12710 #line 12710 "configure"
12711 #include "confdefs.h"
12712 #include <sys/types.h>
12714 #include <stdlib.h>
12715 #include <stddef.h>
12717 #if HAVE_INTTYPES_H
12718 #include <inttypes.h>
12722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12723 egrep "intmax_t" >/dev/null 2>&1; then
12724 bash_cv_type_intmax_t=yes
12726 bash_cv_type_intmax_t=no
12732 echo "$as_me:12732: result: $bash_cv_type_intmax_t" >&5
12733 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
12735 if test $bash_cv_type_intmax_t = no; then
12736 cat >>confdefs.h <<EOF
12737 #define intmax_t $bash_cv_type_long_long
12742 echo "$as_me:12742: checking for uintmax_t" >&5
12743 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12744 if test "${bash_cv_type_uintmax_t+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 cat >conftest.$ac_ext <<_ACEOF
12748 #line 12748 "configure"
12749 #include "confdefs.h"
12750 #include <sys/types.h>
12752 #include <stdlib.h>
12753 #include <stddef.h>
12755 #if HAVE_INTTYPES_H
12756 #include <inttypes.h>
12760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12761 egrep "uintmax_t" >/dev/null 2>&1; then
12762 bash_cv_type_uintmax_t=yes
12764 bash_cv_type_uintmax_t=no
12770 echo "$as_me:12770: result: $bash_cv_type_uintmax_t" >&5
12771 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
12773 if test $bash_cv_type_uintmax_t = no; then
12774 cat >>confdefs.h <<EOF
12775 #define uintmax_t $bash_cv_type_unsigned_long_long
12780 if test "$ac_cv_header_sys_socket_h" = "yes"; then
12782 echo "$as_me:12782: checking for socklen_t" >&5
12783 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12784 if test "${bash_cv_type_socklen_t+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.$ac_ext <<_ACEOF
12788 #line 12788 "configure"
12789 #include "confdefs.h"
12790 #include <sys/types.h>
12792 #include <stdlib.h>
12793 #include <stddef.h>
12795 #if HAVE_INTTYPES_H
12796 #include <inttypes.h>
12798 #include <sys/socket.h>
12801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12802 egrep "socklen_t" >/dev/null 2>&1; then
12803 bash_cv_type_socklen_t=yes
12805 bash_cv_type_socklen_t=no
12811 echo "$as_me:12811: result: $bash_cv_type_socklen_t" >&5
12812 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
12813 if test $bash_cv_type_socklen_t = yes; then
12814 cat >>confdefs.h <<\EOF
12815 #define HAVE_SOCKLEN_T 1
12819 if test $bash_cv_type_socklen_t = no; then
12820 cat >>confdefs.h <<EOF
12821 #define socklen_t int
12827 echo "$as_me:12827: checking for size and type of struct rlimit fields" >&5
12828 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
12829 if test "${bash_cv_type_rlimit+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 cat >conftest.$ac_ext <<_ACEOF
12833 #line 12833 "configure"
12834 #include "confdefs.h"
12835 #include <sys/types.h>
12836 #include <sys/resource.h>
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:12846: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>&5
12849 echo "$as_me:12849: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -s conftest.$ac_objext'
12852 { (eval echo "$as_me:12852: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:12855: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 bash_cv_type_rlimit=rlim_t
12859 echo "$as_me: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12862 if test "$cross_compiling" = yes; then
12863 { echo "$as_me:12863: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
12864 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
12865 bash_cv_type_rlimit=long
12867 cat >conftest.$ac_ext <<_ACEOF
12868 #line 12868 "configure"
12869 #include "confdefs.h"
12871 #include <sys/types.h>
12872 #include <sys/time.h>
12873 #include <sys/resource.h>
12878 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
12884 rm -f conftest$ac_exeext
12885 if { (eval echo "$as_me:12885: \"$ac_link\"") >&5
12886 (eval $ac_link) 2>&5
12888 echo "$as_me:12888: \$? = $ac_status" >&5
12889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12890 { (eval echo "$as_me:12890: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:12893: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 bash_cv_type_rlimit=quad_t
12897 echo "$as_me: program exited with status $ac_status" >&5
12898 echo "$as_me: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12900 bash_cv_type_rlimit=long
12902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12905 rm -f conftest.$ac_objext conftest.$ac_ext
12909 echo "$as_me:12909: result: $bash_cv_type_rlimit" >&5
12910 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
12911 if test $bash_cv_type_rlimit = quad_t; then
12912 cat >>confdefs.h <<\EOF
12913 #define RLIMTYPE quad_t
12916 elif test $bash_cv_type_rlimit = rlim_t; then
12917 cat >>confdefs.h <<\EOF
12918 #define RLIMTYPE rlim_t
12923 echo "$as_me:12923: checking for struct termios.c_line" >&5
12924 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
12925 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 cat >conftest.$ac_ext <<_ACEOF
12929 #line 12929 "configure"
12930 #include "confdefs.h"
12932 #include <sys/types.h>
12933 #include <termios.h>
12938 static struct termios ac_aggr;
12939 if (ac_aggr.c_line)
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:12946: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>&5
12949 echo "$as_me:12949: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -s conftest.$ac_objext'
12952 { (eval echo "$as_me:12952: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:12955: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 ac_cv_member_struct_termios_c_line=yes
12959 echo "$as_me: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12961 ac_cv_member_struct_termios_c_line=no
12963 rm -f conftest.$ac_objext conftest.$ac_ext
12965 echo "$as_me:12965: result: $ac_cv_member_struct_termios_c_line" >&5
12966 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
12967 if test $ac_cv_member_struct_termios_c_line = yes; then
12968 cat >>confdefs.h <<\EOF
12969 #define TERMIOS_LDISC 1
12974 echo "$as_me:12974: checking for struct termio.c_line" >&5
12975 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
12976 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 cat >conftest.$ac_ext <<_ACEOF
12980 #line 12980 "configure"
12981 #include "confdefs.h"
12983 #include <sys/types.h>
12984 #include <termio.h>
12989 static struct termio ac_aggr;
12990 if (ac_aggr.c_line)
12996 rm -f conftest.$ac_objext
12997 if { (eval echo "$as_me:12997: \"$ac_compile\"") >&5
12998 (eval $ac_compile) 2>&5
13000 echo "$as_me:13000: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -s conftest.$ac_objext'
13003 { (eval echo "$as_me:13003: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:13006: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 ac_cv_member_struct_termio_c_line=yes
13010 echo "$as_me: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 ac_cv_member_struct_termio_c_line=no
13014 rm -f conftest.$ac_objext conftest.$ac_ext
13016 echo "$as_me:13016: result: $ac_cv_member_struct_termio_c_line" >&5
13017 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
13018 if test $ac_cv_member_struct_termio_c_line = yes; then
13019 cat >>confdefs.h <<\EOF
13020 #define TERMIO_LDISC 1
13025 echo "$as_me:13025: checking if struct dirent has a d_ino member" >&5
13026 echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
13027 if test "${bash_cv_dirent_has_dino+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 cat >conftest.$ac_ext <<_ACEOF
13031 #line 13031 "configure"
13032 #include "confdefs.h"
13035 #include <sys/types.h>
13036 #ifdef HAVE_UNISTD_H
13037 # include <unistd.h>
13038 #endif /* HAVE_UNISTD_H */
13039 #if defined(HAVE_DIRENT_H)
13040 # include <dirent.h>
13042 # define dirent direct
13043 # ifdef HAVE_SYS_NDIR_H
13044 # include <sys/ndir.h>
13045 # endif /* SYSNDIR */
13046 # ifdef HAVE_SYS_DIR_H
13047 # include <sys/dir.h>
13048 # endif /* SYSDIR */
13049 # ifdef HAVE_NDIR_H
13052 #endif /* HAVE_DIRENT_H */
13058 struct dirent d; int z; z = d.d_ino;
13064 rm -f conftest.$ac_objext
13065 if { (eval echo "$as_me:13065: \"$ac_compile\"") >&5
13066 (eval $ac_compile) 2>&5
13068 echo "$as_me:13068: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:13071: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13074 echo "$as_me:13074: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 bash_cv_dirent_has_dino=yes
13078 echo "$as_me: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 bash_cv_dirent_has_dino=no
13082 rm -f conftest.$ac_objext conftest.$ac_ext
13085 echo "$as_me:13085: result: $bash_cv_dirent_has_dino" >&5
13086 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
13087 if test $bash_cv_dirent_has_dino = yes; then
13088 cat >>confdefs.h <<\EOF
13089 #define STRUCT_DIRENT_HAS_D_INO 1
13094 echo "$as_me:13094: checking if struct dirent has a d_fileno member" >&5
13095 echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
13096 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 cat >conftest.$ac_ext <<_ACEOF
13100 #line 13100 "configure"
13101 #include "confdefs.h"
13104 #include <sys/types.h>
13105 #ifdef HAVE_UNISTD_H
13106 # include <unistd.h>
13107 #endif /* HAVE_UNISTD_H */
13108 #if defined(HAVE_DIRENT_H)
13109 # include <dirent.h>
13111 # define dirent direct
13112 # ifdef HAVE_SYS_NDIR_H
13113 # include <sys/ndir.h>
13114 # endif /* SYSNDIR */
13115 # ifdef HAVE_SYS_DIR_H
13116 # include <sys/dir.h>
13117 # endif /* SYSDIR */
13118 # ifdef HAVE_NDIR_H
13121 #endif /* HAVE_DIRENT_H */
13127 struct dirent d; int z; z = d.d_fileno;
13133 rm -f conftest.$ac_objext
13134 if { (eval echo "$as_me:13134: \"$ac_compile\"") >&5
13135 (eval $ac_compile) 2>&5
13137 echo "$as_me:13137: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -s conftest.$ac_objext'
13140 { (eval echo "$as_me:13140: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 echo "$as_me:13143: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 bash_cv_dirent_has_d_fileno=yes
13147 echo "$as_me: failed program was:" >&5
13148 cat conftest.$ac_ext >&5
13149 bash_cv_dirent_has_d_fileno=no
13151 rm -f conftest.$ac_objext conftest.$ac_ext
13154 echo "$as_me:13154: result: $bash_cv_dirent_has_d_fileno" >&5
13155 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
13156 if test $bash_cv_dirent_has_d_fileno = yes; then
13157 cat >>confdefs.h <<\EOF
13158 #define STRUCT_DIRENT_HAS_D_FILENO 1
13163 echo "$as_me:13163: checking for struct winsize in sys/ioctl.h and termios.h" >&5
13164 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
13165 if test "${bash_cv_struct_winsize_header+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 cat >conftest.$ac_ext <<_ACEOF
13169 #line 13169 "configure"
13170 #include "confdefs.h"
13171 #include <sys/types.h>
13172 #include <sys/ioctl.h>
13181 rm -f conftest.$ac_objext
13182 if { (eval echo "$as_me:13182: \"$ac_compile\"") >&5
13183 (eval $ac_compile) 2>&5
13185 echo "$as_me:13185: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -s conftest.$ac_objext'
13188 { (eval echo "$as_me:13188: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13191 echo "$as_me:13191: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 bash_cv_struct_winsize_header=ioctl_h
13195 echo "$as_me: failed program was:" >&5
13196 cat conftest.$ac_ext >&5
13197 cat >conftest.$ac_ext <<_ACEOF
13198 #line 13198 "configure"
13199 #include "confdefs.h"
13200 #include <sys/types.h>
13201 #include <termios.h>
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:13211: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>&5
13214 echo "$as_me:13214: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -s conftest.$ac_objext'
13217 { (eval echo "$as_me:13217: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:13220: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 bash_cv_struct_winsize_header=termios_h
13224 echo "$as_me: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 bash_cv_struct_winsize_header=other
13228 rm -f conftest.$ac_objext conftest.$ac_ext
13231 rm -f conftest.$ac_objext conftest.$ac_ext
13234 if test $bash_cv_struct_winsize_header = ioctl_h; then
13235 echo "$as_me:13235: result: sys/ioctl.h" >&5
13236 echo "${ECHO_T}sys/ioctl.h" >&6
13237 cat >>confdefs.h <<\EOF
13238 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
13241 elif test $bash_cv_struct_winsize_header = termios_h; then
13242 echo "$as_me:13242: result: termios.h" >&5
13243 echo "${ECHO_T}termios.h" >&6
13244 cat >>confdefs.h <<\EOF
13245 #define STRUCT_WINSIZE_IN_TERMIOS 1
13249 echo "$as_me:13249: result: not found" >&5
13250 echo "${ECHO_T}not found" >&6
13253 echo "$as_me:13253: checking for struct timeval in sys/time.h and time.h" >&5
13254 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
13255 if test "${bash_cv_struct_timeval+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 cat >conftest.$ac_ext <<_ACEOF
13260 #line 13260 "configure"
13261 #include "confdefs.h"
13262 #include <sys/time.h>
13265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13266 egrep "struct timeval" >/dev/null 2>&1; then
13267 bash_cv_struct_timeval=yes
13269 cat >conftest.$ac_ext <<_ACEOF
13270 #line 13270 "configure"
13271 #include "confdefs.h"
13275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13276 egrep "struct timeval" >/dev/null 2>&1; then
13277 bash_cv_struct_timeval=yes
13279 bash_cv_struct_timeval=no
13288 echo "$as_me:13288: result: $bash_cv_struct_timeval" >&5
13289 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
13290 if test $bash_cv_struct_timeval = yes; then
13291 cat >>confdefs.h <<\EOF
13292 #define HAVE_TIMEVAL 1
13297 echo "$as_me:13297: checking for struct stat.st_blocks" >&5
13298 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13299 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 cat >conftest.$ac_ext <<_ACEOF
13303 #line 13303 "configure"
13304 #include "confdefs.h"
13305 $ac_includes_default
13309 static struct stat ac_aggr;
13310 if (ac_aggr.st_blocks)
13316 rm -f conftest.$ac_objext
13317 if { (eval echo "$as_me:13317: \"$ac_compile\"") >&5
13318 (eval $ac_compile) 2>&5
13320 echo "$as_me:13320: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:13323: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13326 echo "$as_me:13326: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_cv_member_struct_stat_st_blocks=yes
13330 echo "$as_me: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 ac_cv_member_struct_stat_st_blocks=no
13334 rm -f conftest.$ac_objext conftest.$ac_ext
13336 echo "$as_me:13336: result: $ac_cv_member_struct_stat_st_blocks" >&5
13337 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13338 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13340 cat >>confdefs.h <<EOF
13341 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13346 echo "$as_me:13346: checking whether struct tm is in sys/time.h or time.h" >&5
13347 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13348 if test "${ac_cv_struct_tm+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 cat >conftest.$ac_ext <<_ACEOF
13352 #line 13352 "configure"
13353 #include "confdefs.h"
13354 #include <sys/types.h>
13360 struct tm *tp; tp->tm_sec;
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:13366: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>&5
13369 echo "$as_me:13369: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -s conftest.$ac_objext'
13372 { (eval echo "$as_me:13372: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:13375: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 ac_cv_struct_tm=time.h
13379 echo "$as_me: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 ac_cv_struct_tm=sys/time.h
13383 rm -f conftest.$ac_objext conftest.$ac_ext
13385 echo "$as_me:13385: result: $ac_cv_struct_tm" >&5
13386 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13387 if test $ac_cv_struct_tm = sys/time.h; then
13389 cat >>confdefs.h <<\EOF
13390 #define TM_IN_SYS_TIME 1
13395 echo "$as_me:13395: checking for struct tm.tm_zone" >&5
13396 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13397 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 cat >conftest.$ac_ext <<_ACEOF
13401 #line 13401 "configure"
13402 #include "confdefs.h"
13403 #include <sys/types.h>
13404 #include <$ac_cv_struct_tm>
13409 static struct tm ac_aggr;
13410 if (ac_aggr.tm_zone)
13416 rm -f conftest.$ac_objext
13417 if { (eval echo "$as_me:13417: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>&5
13420 echo "$as_me:13420: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (eval echo "$as_me:13423: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13426 echo "$as_me:13426: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_cv_member_struct_tm_tm_zone=yes
13430 echo "$as_me: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13432 ac_cv_member_struct_tm_tm_zone=no
13434 rm -f conftest.$ac_objext conftest.$ac_ext
13436 echo "$as_me:13436: result: $ac_cv_member_struct_tm_tm_zone" >&5
13437 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13438 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13440 cat >>confdefs.h <<EOF
13441 #define HAVE_STRUCT_TM_TM_ZONE 1
13446 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13448 cat >>confdefs.h <<\EOF
13449 #define HAVE_TM_ZONE 1
13453 echo "$as_me:13453: checking for tzname" >&5
13454 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13455 if test "${ac_cv_var_tzname+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 cat >conftest.$ac_ext <<_ACEOF
13459 #line 13459 "configure"
13460 #include "confdefs.h"
13462 #ifndef tzname /* For SGI. */
13463 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:13475: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>&5
13478 echo "$as_me:13478: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -s conftest$ac_exeext'
13481 { (eval echo "$as_me:13481: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13484 echo "$as_me:13484: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_var_tzname=yes
13488 echo "$as_me: failed program was:" >&5
13489 cat conftest.$ac_ext >&5
13490 ac_cv_var_tzname=no
13492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13494 echo "$as_me:13494: result: $ac_cv_var_tzname" >&5
13495 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13496 if test $ac_cv_var_tzname = yes; then
13498 cat >>confdefs.h <<\EOF
13499 #define HAVE_TZNAME 1
13505 echo "$as_me:13505: checking for the existence of strsignal" >&5
13506 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
13507 if test "${bash_cv_have_strsignal+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13511 #line 13511 "configure"
13512 #include "confdefs.h"
13513 #include <sys/types.h>
13514 #include <signal.h>
13518 char *s = (char *)strsignal(2);
13523 rm -f conftest.$ac_objext conftest$ac_exeext
13524 if { (eval echo "$as_me:13524: \"$ac_link\"") >&5
13525 (eval $ac_link) 2>&5
13527 echo "$as_me:13527: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -s conftest$ac_exeext'
13530 { (eval echo "$as_me:13530: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13533 echo "$as_me:13533: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 bash_cv_have_strsignal=yes
13537 echo "$as_me: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 bash_cv_have_strsignal=no
13541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13544 echo "$as_me:13544: result: $bash_cv_have_strsignal" >&5
13545 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
13546 if test $bash_cv_have_strsignal = yes; then
13547 cat >>confdefs.h <<\EOF
13548 #define HAVE_STRSIGNAL 1
13553 echo "$as_me:13553: checking if opendir() opens non-directories" >&5
13554 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
13555 if test "${bash_cv_opendir_not_robust+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 if test "$cross_compiling" = yes; then
13559 { echo "$as_me:13559: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
13560 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
13561 bash_cv_opendir_not_robust=no
13564 cat >conftest.$ac_ext <<_ACEOF
13565 #line 13565 "configure"
13566 #include "confdefs.h"
13569 #include <sys/types.h>
13571 #ifdef HAVE_UNISTD_H
13572 # include <unistd.h>
13573 #endif /* HAVE_UNISTD_H */
13574 #if defined(HAVE_DIRENT_H)
13575 # include <dirent.h>
13577 # define dirent direct
13578 # ifdef HAVE_SYS_NDIR_H
13579 # include <sys/ndir.h>
13580 # endif /* SYSNDIR */
13581 # ifdef HAVE_SYS_DIR_H
13582 # include <sys/dir.h>
13583 # endif /* SYSDIR */
13584 # ifdef HAVE_NDIR_H
13587 #endif /* HAVE_DIRENT_H */
13592 err = mkdir("/tmp/bash-aclocal", 0700);
13597 unlink("/tmp/bash-aclocal/not_a_directory");
13598 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
13599 write(fd, "\n", 1);
13601 dir = opendir("/tmp/bash-aclocal/not_a_directory");
13602 unlink("/tmp/bash-aclocal/not_a_directory");
13603 rmdir("/tmp/bash-aclocal");
13607 rm -f conftest$ac_exeext
13608 if { (eval echo "$as_me:13608: \"$ac_link\"") >&5
13609 (eval $ac_link) 2>&5
13611 echo "$as_me:13611: \$? = $ac_status" >&5
13612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13613 { (eval echo "$as_me:13613: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:13616: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 bash_cv_opendir_not_robust=yes
13620 echo "$as_me: program exited with status $ac_status" >&5
13621 echo "$as_me: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 bash_cv_opendir_not_robust=no
13625 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13629 echo "$as_me:13629: result: $bash_cv_opendir_not_robust" >&5
13630 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
13631 if test $bash_cv_opendir_not_robust = yes; then
13632 cat >>confdefs.h <<\EOF
13633 #define OPENDIR_NOT_ROBUST 1
13638 echo "$as_me:13638: checking whether ulimit can substitute for getdtablesize" >&5
13639 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
13640 if test "${bash_cv_ulimit_maxfds+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 if test "$cross_compiling" = yes; then
13644 { echo "$as_me:13644: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
13645 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
13646 bash_cv_ulimit_maxfds=no
13649 cat >conftest.$ac_ext <<_ACEOF
13650 #line 13650 "configure"
13651 #include "confdefs.h"
13655 long maxfds = ulimit(4, 0L);
13656 exit (maxfds == -1L);
13660 rm -f conftest$ac_exeext
13661 if { (eval echo "$as_me:13661: \"$ac_link\"") >&5
13662 (eval $ac_link) 2>&5
13664 echo "$as_me:13664: \$? = $ac_status" >&5
13665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13666 { (eval echo "$as_me:13666: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:13669: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 bash_cv_ulimit_maxfds=yes
13673 echo "$as_me: program exited with status $ac_status" >&5
13674 echo "$as_me: failed program was:" >&5
13675 cat conftest.$ac_ext >&5
13676 bash_cv_ulimit_maxfds=no
13678 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13682 echo "$as_me:13682: result: $bash_cv_ulimit_maxfds" >&5
13683 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
13684 if test $bash_cv_ulimit_maxfds = yes; then
13685 cat >>confdefs.h <<\EOF
13686 #define ULIMIT_MAXFDS 1
13691 echo "$as_me:13691: checking to see if getenv can be redefined" >&5
13692 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
13693 if test "${bash_cv_getenv_redef+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 if test "$cross_compiling" = yes; then
13697 { echo "$as_me:13697: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
13698 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
13699 bash_cv_getenv_redef=yes
13702 cat >conftest.$ac_ext <<_ACEOF
13703 #line 13703 "configure"
13704 #include "confdefs.h"
13706 #ifdef HAVE_UNISTD_H
13707 # include <unistd.h>
13716 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
13720 #endif /* !__linux__ && !__bsdi__ && !convex */
13727 /* The next allows this program to run, but does not allow bash to link
13728 when it redefines getenv. I'm not really interested in figuring out
13733 s = getenv("ABCDE");
13734 exit(s == 0); /* force optimizer to leave getenv in */
13738 rm -f conftest$ac_exeext
13739 if { (eval echo "$as_me:13739: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>&5
13742 echo "$as_me:13742: \$? = $ac_status" >&5
13743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13744 { (eval echo "$as_me:13744: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:13747: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 bash_cv_getenv_redef=yes
13751 echo "$as_me: program exited with status $ac_status" >&5
13752 echo "$as_me: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 bash_cv_getenv_redef=no
13756 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13760 echo "$as_me:13760: result: $bash_cv_getenv_redef" >&5
13761 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
13762 if test $bash_cv_getenv_redef = yes; then
13763 cat >>confdefs.h <<\EOF
13764 #define CAN_REDEFINE_GETENV 1
13769 if test "$ac_cv_func_getcwd" = "yes"; then
13770 echo "$as_me:13770: checking if getcwd() calls popen()" >&5
13771 echo $ECHO_N "checking if getcwd() calls popen()... $ECHO_C" >&6
13772 if test "${bash_cv_getcwd_calls_popen+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 if test "$cross_compiling" = yes; then
13776 { echo "$as_me:13776: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&5
13777 echo "$as_me: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&2;}
13778 bash_cv_getcwd_calls_popen=no
13781 cat >conftest.$ac_ext <<_ACEOF
13782 #line 13782 "configure"
13783 #include "confdefs.h"
13786 #ifdef HAVE_UNISTD_H
13787 #include <unistd.h>
13799 popen(command, type)
13800 const char *command;
13804 return (FILE *)NULL;
13807 FILE *_popen(command, type)
13808 const char *command;
13811 return (popen (command, type));
13833 exit (popen_called);
13837 rm -f conftest$ac_exeext
13838 if { (eval echo "$as_me:13838: \"$ac_link\"") >&5
13839 (eval $ac_link) 2>&5
13841 echo "$as_me:13841: \$? = $ac_status" >&5
13842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13843 { (eval echo "$as_me:13843: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:13846: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 bash_cv_getcwd_calls_popen=no
13850 echo "$as_me: program exited with status $ac_status" >&5
13851 echo "$as_me: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13853 bash_cv_getcwd_calls_popen=yes
13855 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13859 echo "$as_me:13859: result: $bash_cv_getcwd_calls_popen" >&5
13860 echo "${ECHO_T}$bash_cv_getcwd_calls_popen" >&6
13861 if test $bash_cv_getcwd_calls_popen = yes; then
13862 cat >>confdefs.h <<\EOF
13863 #define GETCWD_BROKEN 1
13866 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
13871 echo "$as_me:13871: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
13872 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
13873 if test "${bash_cv_func_sigsetjmp+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 if test "$cross_compiling" = yes; then
13877 { echo "$as_me:13877: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
13878 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
13879 bash_cv_func_sigsetjmp=missing
13882 cat >conftest.$ac_ext <<_ACEOF
13883 #line 13883 "configure"
13884 #include "confdefs.h"
13886 #ifdef HAVE_UNISTD_H
13887 #include <unistd.h>
13889 #include <sys/types.h>
13890 #include <signal.h>
13891 #include <setjmp.h>
13895 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
13900 sigset_t set, oset;
13905 sigemptyset(&oset);
13906 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
13907 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
13910 code = sigsetjmp(xx, 1);
13912 exit(0); /* could get sigmask and compare to oset here. */
13915 sigaddset(&set, SIGINT);
13916 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
13918 /* and siglongjmp */
13919 siglongjmp(xx, 10);
13924 rm -f conftest$ac_exeext
13925 if { (eval echo "$as_me:13925: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>&5
13928 echo "$as_me:13928: \$? = $ac_status" >&5
13929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13930 { (eval echo "$as_me:13930: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13933 echo "$as_me:13933: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 bash_cv_func_sigsetjmp=present
13937 echo "$as_me: program exited with status $ac_status" >&5
13938 echo "$as_me: failed program was:" >&5
13939 cat conftest.$ac_ext >&5
13940 bash_cv_func_sigsetjmp=missing
13942 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13946 echo "$as_me:13946: result: $bash_cv_func_sigsetjmp" >&5
13947 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
13948 if test $bash_cv_func_sigsetjmp = present; then
13949 cat >>confdefs.h <<\EOF
13950 #define HAVE_POSIX_SIGSETJMP 1
13955 echo "$as_me:13955: checking whether or not strcoll and strcmp differ" >&5
13956 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
13957 if test "${bash_cv_func_strcoll_broken+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 if test "$cross_compiling" = yes; then
13961 { echo "$as_me:13961: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
13962 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
13963 bash_cv_func_strcoll_broken=no
13966 cat >conftest.$ac_ext <<_ACEOF
13967 #line 13967 "configure"
13968 #include "confdefs.h"
13971 #if defined (HAVE_LOCALE_H)
13972 #include <locale.h>
13980 char *deflocale, *defcoll;
13982 #ifdef HAVE_SETLOCALE
13983 deflocale = setlocale(LC_ALL, "");
13984 defcoll = setlocale(LC_COLLATE, "");
13987 #ifdef HAVE_STRCOLL
13988 /* These two values are taken from tests/glob-test. */
13989 r1 = strcoll("abd", "aXd");
13993 r2 = strcmp("abd", "aXd");
13995 /* These two should both be greater than 0. It is permissible for
13996 a system to return different values, as long as the sign is the
13999 /* Exit with 1 (failure) if these two values are both > 0, since
14000 this tests whether strcoll(3) is broken with respect to strcmp(3)
14001 in the default locale. */
14002 exit (r1 > 0 && r2 > 0);
14006 rm -f conftest$ac_exeext
14007 if { (eval echo "$as_me:14007: \"$ac_link\"") >&5
14008 (eval $ac_link) 2>&5
14010 echo "$as_me:14010: \$? = $ac_status" >&5
14011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14012 { (eval echo "$as_me:14012: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14015 echo "$as_me:14015: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 bash_cv_func_strcoll_broken=yes
14019 echo "$as_me: program exited with status $ac_status" >&5
14020 echo "$as_me: failed program was:" >&5
14021 cat conftest.$ac_ext >&5
14022 bash_cv_func_strcoll_broken=no
14024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14028 echo "$as_me:14028: result: $bash_cv_func_strcoll_broken" >&5
14029 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
14030 if test $bash_cv_func_strcoll_broken = yes; then
14031 cat >>confdefs.h <<\EOF
14032 #define STRCOLL_BROKEN 1
14037 if test "$ac_cv_func_putenv" = "yes"; then
14039 echo "$as_me:14039: checking for standard-conformant putenv declaration" >&5
14040 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
14041 if test "${bash_cv_std_putenv+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14045 #line 14045 "configure"
14046 #include "confdefs.h"
14049 #include <stdlib.h>
14050 #include <stddef.h>
14058 extern int putenv (char *);
14060 extern int putenv ();
14066 return (putenv == 0);
14071 rm -f conftest.$ac_objext conftest$ac_exeext
14072 if { (eval echo "$as_me:14072: \"$ac_link\"") >&5
14073 (eval $ac_link) 2>&5
14075 echo "$as_me:14075: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (eval echo "$as_me:14078: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:14081: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 bash_cv_std_putenv=yes
14085 echo "$as_me: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 bash_cv_std_putenv=no
14090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14092 echo "$as_me:14092: result: $bash_cv_std_putenv" >&5
14093 echo "${ECHO_T}$bash_cv_std_putenv" >&6
14094 if test $bash_cv_std_putenv = yes; then
14095 cat >>confdefs.h <<\EOF
14096 #define HAVE_STD_PUTENV 1
14102 cat >>confdefs.h <<\EOF
14103 #define HAVE_STD_PUTENV 1
14107 if test "$ac_cv_func_unsetenv" = "yes"; then
14109 echo "$as_me:14109: checking for standard-conformant unsetenv declaration" >&5
14110 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
14111 if test "${bash_cv_std_unsetenv+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 cat >conftest.$ac_ext <<_ACEOF
14115 #line 14115 "configure"
14116 #include "confdefs.h"
14119 #include <stdlib.h>
14120 #include <stddef.h>
14128 extern int unsetenv (const char *);
14130 extern int unsetenv ();
14136 return (unsetenv == 0);
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:14142: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14145 echo "$as_me:14145: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:14148: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:14151: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 bash_cv_std_unsetenv=yes
14155 echo "$as_me: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14157 bash_cv_std_unsetenv=no
14160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14162 echo "$as_me:14162: result: $bash_cv_std_unsetenv" >&5
14163 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
14164 if test $bash_cv_std_unsetenv = yes; then
14165 cat >>confdefs.h <<\EOF
14166 #define HAVE_STD_UNSETENV 1
14172 cat >>confdefs.h <<\EOF
14173 #define HAVE_STD_UNSETENV 1
14178 echo "$as_me:14178: checking for printf floating point output in hex notation" >&5
14179 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
14180 if test "${bash_cv_printf_a_format+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 if test "$cross_compiling" = yes; then
14184 { echo "$as_me:14184: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
14185 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
14186 bash_cv_printf_a_format=no
14189 cat >conftest.$ac_ext <<_ACEOF
14190 #line 14190 "configure"
14191 #include "confdefs.h"
14194 #include <string.h>
14202 sprintf(abuf, "%A", y);
14203 exit(strchr(abuf, 'P') == (char *)0);
14207 rm -f conftest$ac_exeext
14208 if { (eval echo "$as_me:14208: \"$ac_link\"") >&5
14209 (eval $ac_link) 2>&5
14211 echo "$as_me:14211: \$? = $ac_status" >&5
14212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14213 { (eval echo "$as_me:14213: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:14216: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 bash_cv_printf_a_format=yes
14220 echo "$as_me: program exited with status $ac_status" >&5
14221 echo "$as_me: failed program was:" >&5
14222 cat conftest.$ac_ext >&5
14223 bash_cv_printf_a_format=no
14225 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14229 echo "$as_me:14229: result: $bash_cv_printf_a_format" >&5
14230 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
14231 if test $bash_cv_printf_a_format = yes; then
14232 cat >>confdefs.h <<\EOF
14233 #define HAVE_PRINTF_A_FORMAT 1
14238 echo "$as_me:14238: checking if signal handlers must be reinstalled when invoked" >&5
14239 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
14240 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 if test "$cross_compiling" = yes; then
14244 { echo "$as_me:14244: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
14245 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
14246 bash_cv_must_reinstall_sighandlers=no
14249 cat >conftest.$ac_ext <<_ACEOF
14250 #line 14250 "configure"
14251 #include "confdefs.h"
14253 #include <signal.h>
14254 #ifdef HAVE_UNISTD_H
14255 #include <unistd.h>
14258 typedef RETSIGTYPE sigfunc();
14262 #ifdef HAVE_POSIX_SIGNALS
14264 set_signal_handler(sig, handler)
14268 struct sigaction act, oact;
14269 act.sa_handler = handler;
14271 sigemptyset (&act.sa_mask);
14272 sigemptyset (&oact.sa_mask);
14273 sigaction (sig, &act, &oact);
14274 return (oact.sa_handler);
14277 #define set_signal_handler(s, h) signal(s, h)
14290 set_signal_handler(SIGINT, sigint);
14291 kill((int)getpid(), SIGINT);
14292 kill((int)getpid(), SIGINT);
14293 exit(nsigint != 2);
14297 rm -f conftest$ac_exeext
14298 if { (eval echo "$as_me:14298: \"$ac_link\"") >&5
14299 (eval $ac_link) 2>&5
14301 echo "$as_me:14301: \$? = $ac_status" >&5
14302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14303 { (eval echo "$as_me:14303: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14306 echo "$as_me:14306: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
14308 bash_cv_must_reinstall_sighandlers=no
14310 echo "$as_me: program exited with status $ac_status" >&5
14311 echo "$as_me: failed program was:" >&5
14312 cat conftest.$ac_ext >&5
14313 bash_cv_must_reinstall_sighandlers=yes
14315 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14319 echo "$as_me:14319: result: $bash_cv_must_reinstall_sighandlers" >&5
14320 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
14321 if test $bash_cv_must_reinstall_sighandlers = yes; then
14322 cat >>confdefs.h <<\EOF
14323 #define MUST_REINSTALL_SIGHANDLERS 1
14328 echo "$as_me:14328: checking for presence of necessary job control definitions" >&5
14329 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
14330 if test "${bash_cv_job_control_missing+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 if test "$cross_compiling" = yes; then
14334 { echo "$as_me:14334: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
14335 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
14336 bash_cv_job_control_missing=missing
14339 cat >conftest.$ac_ext <<_ACEOF
14340 #line 14340 "configure"
14341 #include "confdefs.h"
14343 #include <sys/types.h>
14344 #ifdef HAVE_SYS_WAIT_H
14345 #include <sys/wait.h>
14347 #ifdef HAVE_UNISTD_H
14348 #include <unistd.h>
14350 #include <signal.h>
14352 /* Add more tests in here as appropriate. */
14356 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
14360 /* signals and tty control. */
14361 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
14365 /* process control */
14366 #if !defined (WNOHANG) || !defined (WUNTRACED)
14370 /* Posix systems have tcgetpgrp and waitpid. */
14371 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
14375 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
14379 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
14380 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
14387 rm -f conftest$ac_exeext
14388 if { (eval echo "$as_me:14388: \"$ac_link\"") >&5
14389 (eval $ac_link) 2>&5
14391 echo "$as_me:14391: \$? = $ac_status" >&5
14392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14393 { (eval echo "$as_me:14393: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:14396: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 bash_cv_job_control_missing=present
14400 echo "$as_me: program exited with status $ac_status" >&5
14401 echo "$as_me: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 bash_cv_job_control_missing=missing
14405 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14409 echo "$as_me:14409: result: $bash_cv_job_control_missing" >&5
14410 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
14411 if test $bash_cv_job_control_missing = missing; then
14412 cat >>confdefs.h <<\EOF
14413 #define JOB_CONTROL_MISSING 1
14418 echo "$as_me:14418: checking for presence of named pipes" >&5
14419 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
14420 if test "${bash_cv_sys_named_pipes+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 if test "$cross_compiling" = yes; then
14424 { echo "$as_me:14424: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
14425 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
14426 bash_cv_sys_named_pipes=missing
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14433 #include <sys/types.h>
14434 #include <sys/stat.h>
14435 #ifdef HAVE_UNISTD_H
14436 #include <unistd.h>
14439 /* Add more tests in here as appropriate. */
14444 #if defined (HAVE_MKFIFO)
14448 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
14455 err = mkdir("/tmp/bash-aclocal", 0700);
14460 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
14462 rmdir ("/tmp/bash-aclocal");
14466 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
14467 rmdir ("/tmp/bash-aclocal");
14471 rm -f conftest$ac_exeext
14472 if { (eval echo "$as_me:14472: \"$ac_link\"") >&5
14473 (eval $ac_link) 2>&5
14475 echo "$as_me:14475: \$? = $ac_status" >&5
14476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14477 { (eval echo "$as_me:14477: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:14480: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 bash_cv_sys_named_pipes=present
14484 echo "$as_me: program exited with status $ac_status" >&5
14485 echo "$as_me: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14487 bash_cv_sys_named_pipes=missing
14489 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14493 echo "$as_me:14493: result: $bash_cv_sys_named_pipes" >&5
14494 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
14495 if test $bash_cv_sys_named_pipes = missing; then
14496 cat >>confdefs.h <<\EOF
14497 #define NAMED_PIPES_MISSING 1
14502 echo "$as_me:14502: checking POSIX termios" >&5
14503 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
14504 if test "${ac_cv_sys_posix_termios+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14507 cat >conftest.$ac_ext <<_ACEOF
14508 #line 14508 "configure"
14509 #include "confdefs.h"
14510 #include <sys/types.h>
14511 #include <unistd.h>
14512 #include <termios.h>
14516 /* SunOS 4.0.3 has termios.h but not the library calls. */
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (eval echo "$as_me:14523: \"$ac_link\"") >&5
14524 (eval $ac_link) 2>&5
14526 echo "$as_me:14526: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -s conftest$ac_exeext'
14529 { (eval echo "$as_me:14529: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14532 echo "$as_me:14532: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_cv_sys_posix_termios=yes
14536 echo "$as_me: failed program was:" >&5
14537 cat conftest.$ac_ext >&5
14538 ac_cv_sys_posix_termios=no
14540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14542 echo "$as_me:14542: result: $ac_cv_sys_posix_termios" >&5
14543 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
14545 if test $ac_cv_sys_posix_termios = yes; then
14546 echo "$as_me:14546: checking whether termios.h defines TIOCGWINSZ" >&5
14547 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
14548 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14552 #line 14552 "configure"
14553 #include "confdefs.h"
14554 #include <sys/types.h>
14555 #include <termios.h>
14561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14562 egrep "yes" >/dev/null 2>&1; then
14563 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14565 ac_cv_sys_tiocgwinsz_in_termios_h=no
14570 echo "$as_me:14570: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14571 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
14574 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14575 echo "$as_me:14575: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14576 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
14577 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 cat >conftest.$ac_ext <<_ACEOF
14581 #line 14581 "configure"
14582 #include "confdefs.h"
14583 #include <sys/types.h>
14584 #include <sys/ioctl.h>
14590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14591 egrep "yes" >/dev/null 2>&1; then
14592 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14594 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14599 echo "$as_me:14599: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14600 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
14602 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14604 cat >>confdefs.h <<\EOF
14605 #define GWINSZ_IN_SYS_IOCTL 1
14611 echo "$as_me:14611: checking for TIOCSTAT in sys/ioctl.h" >&5
14612 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
14613 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line 14617 "configure"
14618 #include "confdefs.h"
14619 #include <sys/types.h>
14620 #include <sys/ioctl.h>
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:14630: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>&5
14633 echo "$as_me:14633: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (eval echo "$as_me:14636: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:14639: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 bash_cv_tiocstat_in_ioctl=yes
14643 echo "$as_me: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14645 bash_cv_tiocstat_in_ioctl=no
14647 rm -f conftest.$ac_objext conftest.$ac_ext
14650 echo "$as_me:14650: result: $bash_cv_tiocstat_in_ioctl" >&5
14651 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
14652 if test $bash_cv_tiocstat_in_ioctl = yes; then
14653 cat >>confdefs.h <<\EOF
14654 #define TIOCSTAT_IN_SYS_IOCTL 1
14659 echo "$as_me:14659: checking for FIONREAD in sys/ioctl.h" >&5
14660 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
14661 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 cat >conftest.$ac_ext <<_ACEOF
14665 #line 14665 "configure"
14666 #include "confdefs.h"
14667 #include <sys/types.h>
14668 #include <sys/ioctl.h>
14677 rm -f conftest.$ac_objext
14678 if { (eval echo "$as_me:14678: \"$ac_compile\"") >&5
14679 (eval $ac_compile) 2>&5
14681 echo "$as_me:14681: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -s conftest.$ac_objext'
14684 { (eval echo "$as_me:14684: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14687 echo "$as_me:14687: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 bash_cv_fionread_in_ioctl=yes
14691 echo "$as_me: failed program was:" >&5
14692 cat conftest.$ac_ext >&5
14693 bash_cv_fionread_in_ioctl=no
14695 rm -f conftest.$ac_objext conftest.$ac_ext
14698 echo "$as_me:14698: result: $bash_cv_fionread_in_ioctl" >&5
14699 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
14700 if test $bash_cv_fionread_in_ioctl = yes; then
14701 cat >>confdefs.h <<\EOF
14702 #define FIONREAD_IN_SYS_IOCTL 1
14707 echo "$as_me:14707: checking for speed_t in sys/types.h" >&5
14708 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
14709 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 cat >conftest.$ac_ext <<_ACEOF
14713 #line 14713 "configure"
14714 #include "confdefs.h"
14715 #include <sys/types.h>
14724 rm -f conftest.$ac_objext
14725 if { (eval echo "$as_me:14725: \"$ac_compile\"") >&5
14726 (eval $ac_compile) 2>&5
14728 echo "$as_me:14728: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -s conftest.$ac_objext'
14731 { (eval echo "$as_me:14731: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:14734: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 bash_cv_speed_t_in_sys_types=yes
14738 echo "$as_me: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14740 bash_cv_speed_t_in_sys_types=no
14742 rm -f conftest.$ac_objext conftest.$ac_ext
14745 echo "$as_me:14745: result: $bash_cv_speed_t_in_sys_types" >&5
14746 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
14747 if test $bash_cv_speed_t_in_sys_types = yes; then
14748 cat >>confdefs.h <<\EOF
14749 #define SPEED_T_IN_SYS_TYPES 1
14754 echo "$as_me:14754: checking whether getpw functions are declared in pwd.h" >&5
14755 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
14756 if test "${bash_cv_getpw_declared+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14760 #line 14760 "configure"
14761 #include "confdefs.h"
14763 #include <sys/types.h>
14764 #ifdef HAVE_UNISTD_H
14765 # include <unistd.h>
14770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14771 egrep "getpwuid" >/dev/null 2>&1; then
14772 bash_cv_getpw_declared=yes
14774 bash_cv_getpw_declared=no
14780 echo "$as_me:14780: result: $bash_cv_getpw_declared" >&5
14781 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
14782 if test $bash_cv_getpw_declared = yes; then
14783 cat >>confdefs.h <<\EOF
14784 #define HAVE_GETPW_DECLS 1
14789 echo "$as_me:14789: checking for unusable real-time signals due to large values" >&5
14790 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
14791 if test "${bash_cv_unusable_rtsigs+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 if test "$cross_compiling" = yes; then
14795 { echo "$as_me:14795: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
14796 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
14797 bash_cv_unusable_rtsigs=yes
14800 cat >conftest.$ac_ext <<_ACEOF
14801 #line 14801 "configure"
14802 #include "confdefs.h"
14804 #include <sys/types.h>
14805 #include <signal.h>
14813 int n_sigs = 2 * NSIG;
14815 int rtmin = SIGRTMIN;
14820 exit(rtmin < n_sigs);
14823 rm -f conftest$ac_exeext
14824 if { (eval echo "$as_me:14824: \"$ac_link\"") >&5
14825 (eval $ac_link) 2>&5
14827 echo "$as_me:14827: \$? = $ac_status" >&5
14828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14829 { (eval echo "$as_me:14829: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:14832: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 bash_cv_unusable_rtsigs=yes
14836 echo "$as_me: program exited with status $ac_status" >&5
14837 echo "$as_me: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14839 bash_cv_unusable_rtsigs=no
14841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14845 echo "$as_me:14845: result: $bash_cv_unusable_rtsigs" >&5
14846 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
14847 if test $bash_cv_unusable_rtsigs = yes; then
14848 cat >>confdefs.h <<\EOF
14849 #define UNUSABLE_RT_SIGNALS 1
14854 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
14855 SIGLIST_O=siglist.o
14861 hpux*) echo "$as_me:14861: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
14862 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
14863 if test "${bash_cv_kernel_rlimit+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 cat >conftest.$ac_ext <<_ACEOF
14867 #line 14867 "configure"
14868 #include "confdefs.h"
14870 #include <sys/types.h>
14871 #include <sys/resource.h>
14884 rm -f conftest.$ac_objext
14885 if { (eval echo "$as_me:14885: \"$ac_compile\"") >&5
14886 (eval $ac_compile) 2>&5
14888 echo "$as_me:14888: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -s conftest.$ac_objext'
14891 { (eval echo "$as_me:14891: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 bash_cv_kernel_rlimit=no
14898 echo "$as_me: failed program was:" >&5
14899 cat conftest.$ac_ext >&5
14900 cat >conftest.$ac_ext <<_ACEOF
14901 #line 14901 "configure"
14902 #include "confdefs.h"
14904 #include <sys/types.h>
14906 #include <sys/resource.h>
14920 rm -f conftest.$ac_objext
14921 if { (eval echo "$as_me:14921: \"$ac_compile\"") >&5
14922 (eval $ac_compile) 2>&5
14924 echo "$as_me:14924: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:14927: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:14930: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 bash_cv_kernel_rlimit=yes
14934 echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 bash_cv_kernel_rlimit=no
14938 rm -f conftest.$ac_objext conftest.$ac_ext
14941 rm -f conftest.$ac_objext conftest.$ac_ext
14944 echo "$as_me:14944: result: $bash_cv_kernel_rlimit" >&5
14945 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
14946 if test $bash_cv_kernel_rlimit = yes; then
14947 cat >>confdefs.h <<\EOF
14948 #define RLIMIT_NEEDS_KERNEL 1
14955 if test "$opt_readline" = yes; then
14957 aix*) prefer_curses=yes ;;
14960 if test "X$bash_cv_termcap_lib" = "X"; then
14963 echo "$as_me:14963: checking which library has the termcap functions" >&5
14964 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
14967 if test "${bash_cv_termcap_lib+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 echo "$as_me:14970: checking for tgetent in -ltermcap" >&5
14971 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
14972 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 ac_check_lib_save_LIBS=$LIBS
14976 LIBS="-ltermcap $LIBS"
14977 cat >conftest.$ac_ext <<_ACEOF
14978 #line 14978 "configure"
14979 #include "confdefs.h"
14981 /* Override any gcc2 internal prototype to avoid an error. */
14985 /* We use char because int might match the return type of a gcc2
14986 builtin and then its argument prototype would still apply. */
14996 rm -f conftest.$ac_objext conftest$ac_exeext
14997 if { (eval echo "$as_me:14997: \"$ac_link\"") >&5
14998 (eval $ac_link) 2>&5
15000 echo "$as_me:15000: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (eval echo "$as_me:15003: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:15006: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_lib_termcap_tgetent=yes
15010 echo "$as_me: failed program was:" >&5
15011 cat conftest.$ac_ext >&5
15012 ac_cv_lib_termcap_tgetent=no
15014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_check_lib_save_LIBS
15017 echo "$as_me:15017: result: $ac_cv_lib_termcap_tgetent" >&5
15018 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
15019 if test $ac_cv_lib_termcap_tgetent = yes; then
15020 bash_cv_termcap_lib=libtermcap
15022 echo "$as_me:15022: checking for tgetent in -ltinfo" >&5
15023 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
15024 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 ac_check_lib_save_LIBS=$LIBS
15028 LIBS="-ltinfo $LIBS"
15029 cat >conftest.$ac_ext <<_ACEOF
15030 #line 15030 "configure"
15031 #include "confdefs.h"
15033 /* Override any gcc2 internal prototype to avoid an error. */
15037 /* We use char because int might match the return type of a gcc2
15038 builtin and then its argument prototype would still apply. */
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (eval echo "$as_me:15049: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>&5
15052 echo "$as_me:15052: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -s conftest$ac_exeext'
15055 { (eval echo "$as_me:15055: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15058 echo "$as_me:15058: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 ac_cv_lib_tinfo_tgetent=yes
15062 echo "$as_me: failed program was:" >&5
15063 cat conftest.$ac_ext >&5
15064 ac_cv_lib_tinfo_tgetent=no
15066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15067 LIBS=$ac_check_lib_save_LIBS
15069 echo "$as_me:15069: result: $ac_cv_lib_tinfo_tgetent" >&5
15070 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
15071 if test $ac_cv_lib_tinfo_tgetent = yes; then
15072 bash_cv_termcap_lib=libtinfo
15074 echo "$as_me:15074: checking for tgetent in -lcurses" >&5
15075 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
15076 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 ac_check_lib_save_LIBS=$LIBS
15080 LIBS="-lcurses $LIBS"
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #line 15082 "configure"
15083 #include "confdefs.h"
15085 /* Override any gcc2 internal prototype to avoid an error. */
15089 /* We use char because int might match the return type of a gcc2
15090 builtin and then its argument prototype would still apply. */
15100 rm -f conftest.$ac_objext conftest$ac_exeext
15101 if { (eval echo "$as_me:15101: \"$ac_link\"") >&5
15102 (eval $ac_link) 2>&5
15104 echo "$as_me:15104: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -s conftest$ac_exeext'
15107 { (eval echo "$as_me:15107: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:15110: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_lib_curses_tgetent=yes
15114 echo "$as_me: failed program was:" >&5
15115 cat conftest.$ac_ext >&5
15116 ac_cv_lib_curses_tgetent=no
15118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15119 LIBS=$ac_check_lib_save_LIBS
15121 echo "$as_me:15121: result: $ac_cv_lib_curses_tgetent" >&5
15122 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
15123 if test $ac_cv_lib_curses_tgetent = yes; then
15124 bash_cv_termcap_lib=libcurses
15126 echo "$as_me:15126: checking for tgetent in -lncurses" >&5
15127 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
15128 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lncurses $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15134 #line 15134 "configure"
15135 #include "confdefs.h"
15137 /* Override any gcc2 internal prototype to avoid an error. */
15141 /* We use char because int might match the return type of a gcc2
15142 builtin and then its argument prototype would still apply. */
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:15153: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>&5
15156 echo "$as_me:15156: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:15159: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:15162: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_lib_ncurses_tgetent=yes
15166 echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15168 ac_cv_lib_ncurses_tgetent=no
15170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15173 echo "$as_me:15173: result: $ac_cv_lib_ncurses_tgetent" >&5
15174 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
15175 if test $ac_cv_lib_ncurses_tgetent = yes; then
15176 bash_cv_termcap_lib=libncurses
15178 bash_cv_termcap_lib=gnutermcap
15189 if test "X$_bash_needmsg" = "Xyes"; then
15190 echo "$as_me:15190: checking which library has the termcap functions" >&5
15191 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
15193 echo "$as_me:15193: result: using $bash_cv_termcap_lib" >&5
15194 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
15195 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
15196 LDFLAGS="$LDFLAGS -L./lib/termcap"
15197 TERMCAP_LIB="./lib/termcap/libtermcap.a"
15198 TERMCAP_DEP="./lib/termcap/libtermcap.a"
15199 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
15200 TERMCAP_LIB=-ltermcap
15202 elif test $bash_cv_termcap_lib = libtinfo; then
15203 TERMCAP_LIB=-ltinfo
15205 elif test $bash_cv_termcap_lib = libncurses; then
15206 TERMCAP_LIB=-lncurses
15209 TERMCAP_LIB=-lcurses
15215 echo "$as_me:15215: checking whether /dev/fd is available" >&5
15216 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
15217 if test "${bash_cv_dev_fd+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 if test -d /dev/fd && test -r /dev/fd/0; then
15221 bash_cv_dev_fd=standard
15222 elif test -d /proc/self/fd && test -r /proc/self/fd/0; then
15223 bash_cv_dev_fd=whacky
15225 bash_cv_dev_fd=absent
15230 echo "$as_me:15230: result: $bash_cv_dev_fd" >&5
15231 echo "${ECHO_T}$bash_cv_dev_fd" >&6
15232 if test $bash_cv_dev_fd = "standard"; then
15233 cat >>confdefs.h <<\EOF
15234 #define HAVE_DEV_FD 1
15237 cat >>confdefs.h <<\EOF
15238 #define DEV_FD_PREFIX "/dev/fd/"
15241 elif test $bash_cv_dev_fd = "whacky"; then
15242 cat >>confdefs.h <<\EOF
15243 #define HAVE_DEV_FD 1
15246 cat >>confdefs.h <<\EOF
15247 #define DEV_FD_PREFIX "/proc/self/fd/"
15252 echo "$as_me:15252: checking whether /dev/stdin stdout stderr are available" >&5
15253 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
15254 if test "${bash_cv_dev_stdin+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 if test -d /dev/fd && test -r /dev/stdin; then
15258 bash_cv_dev_stdin=present
15259 elif test -d /proc/self/fd && test -r /dev/stdin; then
15260 bash_cv_dev_stdin=present
15262 bash_cv_dev_stdin=absent
15267 echo "$as_me:15267: result: $bash_cv_dev_stdin" >&5
15268 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
15269 if test $bash_cv_dev_stdin = "present"; then
15270 cat >>confdefs.h <<\EOF
15271 #define HAVE_DEV_STDIN 1
15276 echo "$as_me:15276: checking for default mail directory" >&5
15277 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
15278 if test "${bash_cv_mail_dir+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 if test -d /var/mail; then
15282 bash_cv_mail_dir=/var/mail
15283 elif test -d /var/spool/mail; then
15284 bash_cv_mail_dir=/var/spool/mail
15285 elif test -d /usr/mail; then
15286 bash_cv_mail_dir=/usr/mail
15287 elif test -d /usr/spool/mail; then
15288 bash_cv_mail_dir=/usr/spool/mail
15290 bash_cv_mail_dir=unknown
15295 echo "$as_me:15295: result: $bash_cv_mail_dir" >&5
15296 echo "${ECHO_T}$bash_cv_mail_dir" >&6
15297 cat >>confdefs.h <<EOF
15298 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
15301 if test "$bash_cv_job_control_missing" = missing; then
15305 if test "$opt_job_control" = yes; then
15306 cat >>confdefs.h <<\EOF
15307 #define JOB_CONTROL 1
15317 case "${host_os}" in
15318 sysv4.2*) cat >>confdefs.h <<\EOF
15322 cat >>confdefs.h <<\EOF
15326 sysv4*) cat >>confdefs.h <<\EOF
15330 sysv5*) cat >>confdefs.h <<\EOF
15334 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
15335 hpux*) LOCAL_CFLAGS=-DHPUX ;;
15336 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
15337 isc*) LOCAL_CFLAGS=-Disc386 ;;
15338 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
15339 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
15340 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
15341 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
15342 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
15343 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
15344 solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
15345 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
15346 linux*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
15347 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
15348 powerux*) LOCAL_LIBS="-lgen" ;;
15349 cygwin*) LOCAL_LIBS="-luser32" ;;
15350 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO" ;;
15353 case "${host_os}-${CC}" in
15354 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
15355 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
15356 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
15359 case "${host_os}" in
15361 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
15362 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
15364 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
15367 case "$host_cpu" in
15368 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
15371 case "$host_cpu-$host_os" in
15372 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
15375 case "$host_cpu-$host_vendor-$host_os" in
15376 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
15377 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
15381 # Shared object configuration section. These values are generated by
15382 # ${srcdir}/support/shobj-conf
15384 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
15386 echo "$as_me:15386: checking shared object configuration for loadable builtins" >&5
15387 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
15388 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
15390 echo "$as_me:15390: result: $SHOBJ_STATUS" >&5
15391 echo "${ECHO_T}$SHOBJ_STATUS" >&6
15394 # try to create a directory tree if the source is elsewhere
15395 # this should be packaged into a script accessible via ${srcdir}/support
15398 *) for d in doc tests support lib examples; do # dirs
15399 test -d $d || mkdir $d
15401 for ld in readline glob tilde malloc sh termcap; do # libdirs
15402 test -d lib/$ld || mkdir lib/$ld
15404 test -d examples/loadables || mkdir examples/loadables # loadable builtins
15405 test -d examples/loadables/perl || mkdir examples/loadables/perl
15411 #AC_SUBST(ALLOCA_SOURCE)
15412 #AC_SUBST(ALLOCA_OBJECT)
15414 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile examples/loadables/Makefile examples/loadables/perl/Makefile"
15415 ac_config_commands="$ac_config_commands default"
15416 cat >confcache <<\_ACEOF
15417 # This file is a shell script that caches the results of configure
15418 # tests run on this system so they can be shared between configure
15419 # scripts and configure runs, see configure's option --config-cache.
15420 # It is not useful on other systems. If it contains results you don't
15421 # want to keep, you may remove or edit it.
15423 # config.status only pays attention to the cache file if you give it
15424 # the --recheck option to rerun configure.
15426 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15428 # following values.
15432 # The following way of writing the cache mishandles newlines in values,
15433 # but we know of no workaround that is simple, portable, and efficient.
15434 # So, don't put newlines in cache variables' values.
15435 # Ultrix sh set writes to stderr and can't be redirected directly,
15436 # and sets the high bit in the cache file unless we assign to the vars.
15439 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15441 # `set' does not quote correctly, so add quotes (double-quote
15442 # substitution turns \\\\ into \\, and sed turns \\ into \).
15445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15448 # `set' quotes correctly as required by POSIX, so do not add quotes.
15450 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15459 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15461 if cmp -s $cache_file confcache; then :; else
15462 if test -w $cache_file; then
15463 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15464 cat confcache >$cache_file
15466 echo "not updating unwritable cache $cache_file"
15471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15472 # Let make expand exec_prefix.
15473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15477 # trailing colons and then remove the whole line if VPATH becomes empty
15478 # (actually we leave an empty line to preserve line numbers).
15479 if test "x$srcdir" = x.; then
15480 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15481 s/:*\$(srcdir):*/:/;
15482 s/:*\${srcdir}:*/:/;
15484 s/^\([^=]*=[ ]*\):*/\1/;
15490 DEFS=-DHAVE_CONFIG_H
15492 : ${CONFIG_STATUS=./config.status}
15493 ac_clean_files_save=$ac_clean_files
15494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15495 { echo "$as_me:15495: creating $CONFIG_STATUS" >&5
15496 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15497 cat >$CONFIG_STATUS <<_ACEOF
15499 # Generated automatically by configure.
15500 # Run this file to recreate the current configuration.
15501 # Compiler output produced by configure, useful for debugging
15502 # configure, is in config.log if it exists.
15505 SHELL=\${CONFIG_SHELL-$SHELL}
15506 ac_cs_invocation="\$0 \$@"
15510 cat >>$CONFIG_STATUS <<\_ACEOF
15511 # Be Bourne compatible
15512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15515 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15519 # Name of the executable.
15520 as_me=`echo "$0" |sed 's,.*[\\/],,'`
15522 if expr a : '\(a\)' >/dev/null 2>&1; then
15528 rm -f conf$$ conf$$.exe conf$$.file
15530 if ln -s conf$$.file conf$$ 2>/dev/null; then
15531 # We could just check for DJGPP; but this test a) works b) is more generic
15532 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15533 if test -f conf$$.exe; then
15534 # Don't use ln at all; we don't have any links
15539 elif ln conf$$.file conf$$ 2>/dev/null; then
15544 rm -f conf$$ conf$$.exe conf$$.file
15546 as_executable_p="test -f"
15548 # Support unset when possible.
15549 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15556 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
15557 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
15558 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
15559 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
15560 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
15561 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
15562 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
15563 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
15566 # We need space, tab and new line, in precisely that order.
15572 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
15578 # Files that config.status was made for.
15579 if test -n "$ac_config_files"; then
15580 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15583 if test -n "$ac_config_headers"; then
15584 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15587 if test -n "$ac_config_links"; then
15588 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15591 if test -n "$ac_config_commands"; then
15592 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15595 cat >>$CONFIG_STATUS <<\EOF
15598 \`$as_me' instantiates files from templates according to the
15599 current configuration.
15601 Usage: $0 [OPTIONS] [FILE]...
15603 -h, --help print this help, then exit
15604 -V, --version print version number, then exit
15605 -d, --debug don't remove temporary files
15606 --recheck update $as_me by reconfiguring in the same conditions
15607 --file=FILE[:TEMPLATE]
15608 instantiate the configuration file FILE
15609 --header=FILE[:TEMPLATE]
15610 instantiate the configuration header FILE
15612 Configuration files:
15615 Configuration headers:
15618 Configuration commands:
15621 Report bugs to <bug-autoconf@gnu.org>."
15624 cat >>$CONFIG_STATUS <<EOF
15626 bash config.status 2.05b
15627 configured by $0, generated by GNU Autoconf 2.52,
15628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15630 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15631 Free Software Foundation, Inc.
15632 This config.status script is free software; the Free Software Foundation
15633 gives unlimited permission to copy, distribute and modify it."
15638 cat >>$CONFIG_STATUS <<\EOF
15639 # If no file are specified by the user, then we need to provide default
15640 # value. By we need to know if files were specified by the user.
15646 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15647 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15649 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15653 *) # This is not an option, so the user has probably given explicit
15655 ac_need_defaults=false;;
15659 # Handling of the options.
15661 cat >>$CONFIG_STATUS <<EOF
15662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15663 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15664 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15666 cat >>$CONFIG_STATUS <<\EOF
15667 --version | --vers* | -V )
15668 echo "$ac_cs_version"; exit 0 ;;
15670 # Conflict between --help and --header
15671 { { echo "$as_me:15671: error: ambiguous option: $1
15672 Try \`$0 --help' for more information." >&5
15673 echo "$as_me: error: ambiguous option: $1
15674 Try \`$0 --help' for more information." >&2;}
15675 { (exit 1); exit 1; }; };;
15676 --help | --hel | -h )
15677 echo "$ac_cs_usage"; exit 0 ;;
15678 --debug | --d* | -d )
15680 --file | --fil | --fi | --f )
15682 CONFIG_FILES="$CONFIG_FILES $1"
15683 ac_need_defaults=false;;
15684 --header | --heade | --head | --hea )
15686 CONFIG_HEADERS="$CONFIG_HEADERS $1"
15687 ac_need_defaults=false;;
15689 # This is an error.
15690 -*) { { echo "$as_me:15690: error: unrecognized option: $1
15691 Try \`$0 --help' for more information." >&5
15692 echo "$as_me: error: unrecognized option: $1
15693 Try \`$0 --help' for more information." >&2;}
15694 { (exit 1); exit 1; }; } ;;
15696 *) ac_config_targets="$ac_config_targets $1" ;;
15705 ## ----------------------- ##
15706 ## Running config.status. ##
15707 ## ----------------------- ##
15709 This file was extended by $as_me (bash 2.05b) 2.52, executed with
15710 CONFIG_FILES = $CONFIG_FILES
15711 CONFIG_HEADERS = $CONFIG_HEADERS
15712 CONFIG_LINKS = $CONFIG_LINKS
15713 CONFIG_COMMANDS = $CONFIG_COMMANDS
15714 > $ac_cs_invocation
15715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15720 cat >>$CONFIG_STATUS <<\EOF
15721 for ac_config_target in $ac_config_targets
15723 case "$ac_config_target" in
15724 # Handling of arguments.
15725 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15726 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
15727 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
15728 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
15729 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
15730 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
15731 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
15732 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
15733 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15734 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
15735 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
15736 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
15737 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15738 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15739 *) { { echo "$as_me:15739: error: invalid argument: $ac_config_target" >&5
15740 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15741 { (exit 1); exit 1; }; };;
15745 # If the user did not use the arguments to specify the items to instantiate,
15746 # then the envvar interface is used. Set only those that are not.
15747 # We use the long form for the default assignment because of an extremely
15748 # bizarre bug on SunOS 4.1.3.
15749 if $ac_need_defaults; then
15750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15755 # Create a temporary directory, and hook for its removal unless debugging.
15758 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15759 trap '{ (exit 1); exit 1; }' 1 2 13 15
15762 # Create a (secure) tmp directory for tmp files.
15765 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15766 test -n "$tmp" && test -d "$tmp"
15769 tmp=$TMPDIR/cs$$-$RANDOM
15770 (umask 077 && mkdir $tmp)
15773 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15774 { (exit 1); exit 1; }
15779 cat >>$CONFIG_STATUS <<EOF
15782 # CONFIG_FILES section.
15785 # No need to generate the scripts if there are no CONFIG_FILES.
15786 # This happens for instance when ./config.status config.h
15787 if test -n "\$CONFIG_FILES"; then
15788 # Protect against being on the right side of a sed subst in config.status.
15789 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15790 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15791 s,@SHELL@,$SHELL,;t t
15792 s,@exec_prefix@,$exec_prefix,;t t
15793 s,@prefix@,$prefix,;t t
15794 s,@program_transform_name@,$program_transform_name,;t t
15795 s,@bindir@,$bindir,;t t
15796 s,@sbindir@,$sbindir,;t t
15797 s,@libexecdir@,$libexecdir,;t t
15798 s,@datadir@,$datadir,;t t
15799 s,@sysconfdir@,$sysconfdir,;t t
15800 s,@sharedstatedir@,$sharedstatedir,;t t
15801 s,@localstatedir@,$localstatedir,;t t
15802 s,@libdir@,$libdir,;t t
15803 s,@includedir@,$includedir,;t t
15804 s,@oldincludedir@,$oldincludedir,;t t
15805 s,@infodir@,$infodir,;t t
15806 s,@mandir@,$mandir,;t t
15807 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15808 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15809 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15810 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15811 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15812 s,@build_alias@,$build_alias,;t t
15813 s,@host_alias@,$host_alias,;t t
15814 s,@target_alias@,$target_alias,;t t
15815 s,@ECHO_C@,$ECHO_C,;t t
15816 s,@ECHO_N@,$ECHO_N,;t t
15817 s,@ECHO_T@,$ECHO_T,;t t
15818 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15819 s,@DEFS@,$DEFS,;t t
15820 s,@LIBS@,$LIBS,;t t
15821 s,@build@,$build,;t t
15822 s,@build_cpu@,$build_cpu,;t t
15823 s,@build_vendor@,$build_vendor,;t t
15824 s,@build_os@,$build_os,;t t
15825 s,@host@,$host,;t t
15826 s,@host_cpu@,$host_cpu,;t t
15827 s,@host_vendor@,$host_vendor,;t t
15828 s,@host_os@,$host_os,;t t
15829 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
15830 s,@PURIFY@,$PURIFY,;t t
15831 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
15832 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
15833 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
15834 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
15835 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
15836 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
15837 s,@htmldir@,$htmldir,;t t
15838 s,@HELPDIR@,$HELPDIR,;t t
15839 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
15840 s,@HELPINSTALL@,$HELPINSTALL,;t t
15842 s,@CFLAGS@,$CFLAGS,;t t
15843 s,@LDFLAGS@,$LDFLAGS,;t t
15844 s,@CPPFLAGS@,$CPPFLAGS,;t t
15845 s,@ac_ct_CC@,$ac_ct_CC,;t t
15846 s,@EXEEXT@,$EXEEXT,;t t
15847 s,@OBJEXT@,$OBJEXT,;t t
15849 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
15850 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15851 s,@STATIC_LD@,$STATIC_LD,;t t
15852 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
15853 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
15854 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
15855 s,@RL_VERSION@,$RL_VERSION,;t t
15856 s,@RL_MAJOR@,$RL_MAJOR,;t t
15857 s,@RL_MINOR@,$RL_MINOR,;t t
15858 s,@READLINE_LIB@,$READLINE_LIB,;t t
15859 s,@READLINE_DEP@,$READLINE_DEP,;t t
15860 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
15861 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
15862 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
15863 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
15864 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
15865 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
15866 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15867 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15868 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15870 s,@RANLIB@,$RANLIB,;t t
15871 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15872 s,@YACC@,$YACC,;t t
15873 s,@SET_MAKE@,$SET_MAKE,;t t
15874 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
15875 s,@ALLOCA@,$ALLOCA,;t t
15876 s,@LIBOBJS@,$LIBOBJS,;t t
15877 s,@SIGLIST_O@,$SIGLIST_O,;t t
15878 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
15879 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
15880 s,@JOBS_O@,$JOBS_O,;t t
15881 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
15882 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
15883 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
15884 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
15885 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
15886 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
15887 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
15888 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
15889 s,@incdir@,$incdir,;t t
15890 s,@BUILD_DIR@,$BUILD_DIR,;t t
15891 s,@ARFLAGS@,$ARFLAGS,;t t
15892 s,@BASHVERS@,$BASHVERS,;t t
15893 s,@RELSTATUS@,$RELSTATUS,;t t
15894 s,@DEBUG@,$DEBUG,;t t
15895 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
15896 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
15897 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
15898 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
15899 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
15904 cat >>$CONFIG_STATUS <<\EOF
15905 # Split the substitutions into bite-sized pieces for seds with
15906 # small command number limits, like on Digital OSF/1 and HP-UX.
15907 ac_max_sed_lines=48
15908 ac_sed_frag=1 # Number of current file.
15909 ac_beg=1 # First line for current file.
15910 ac_end=$ac_max_sed_lines # Line after last line for current file.
15913 while $ac_more_lines; do
15914 if test $ac_beg -gt 1; then
15915 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15917 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15919 if test ! -s $tmp/subs.frag; then
15920 ac_more_lines=false
15922 # The purpose of the label and of the branching condition is to
15923 # speed up the sed processing (if there are no `@' at all, there
15924 # is no need to browse any of the substitutions).
15925 # These are the two extra sed commands mentioned above.
15927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15928 if test -z "$ac_sed_cmds"; then
15929 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15931 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15933 ac_sed_frag=`expr $ac_sed_frag + 1`
15935 ac_end=`expr $ac_end + $ac_max_sed_lines`
15938 if test -z "$ac_sed_cmds"; then
15941 fi # test -n "$CONFIG_FILES"
15944 cat >>$CONFIG_STATUS <<\EOF
15945 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15946 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15948 - | *:- | *:-:* ) # input from stdin
15950 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15951 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15952 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15954 * ) ac_file_in=$ac_file.in ;;
15957 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15958 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15959 X"$ac_file" : 'X\(//\)[^/]' \| \
15960 X"$ac_file" : 'X\(//\)$' \| \
15961 X"$ac_file" : 'X\(/\)' \| \
15962 . : '\(.\)' 2>/dev/null ||
15964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15966 /^X\(\/\/\)$/{ s//\1/; q; }
15967 /^X\(\/\).*/{ s//\1/; q; }
15969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15970 { case "$ac_dir" in
15971 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15975 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15976 case $as_mkdir_dir in
15977 # Skip DOS drivespec
15978 ?:) as_incr_dir=$as_mkdir_dir ;;
15980 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15981 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15986 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
15987 # A "../" for each directory in $ac_dir_suffix.
15988 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
15990 ac_dir_suffix= ac_dots=
15995 if test -z "$ac_dots"; then
15998 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
16000 [\\/]* | ?:[\\/]* )
16001 ac_srcdir=$srcdir$ac_dir_suffix;
16002 ac_top_srcdir=$srcdir ;;
16003 *) # Relative path.
16004 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
16005 ac_top_srcdir=$ac_dots$srcdir ;;
16009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16010 *) ac_INSTALL=$ac_dots$INSTALL ;;
16013 if test x"$ac_file" != x-; then
16014 { echo "$as_me:16014: creating $ac_file" >&5
16015 echo "$as_me: creating $ac_file" >&6;}
16018 # Let's still pretend it is `configure' which instantiates (i.e., don't
16019 # use $as_me), people would be surprised to read:
16020 # /* config.h. Generated automatically by config.status. */
16021 configure_input="Generated automatically from `echo $ac_file_in |
16022 sed 's,.*/,,'` by configure."
16024 # First look for the input files in the build tree, otherwise in the
16026 ac_file_inputs=`IFS=:
16027 for f in $ac_file_in; do
16029 -) echo $tmp/stdin ;;
16031 # Absolute (can't be DOS-style, as IFS=:)
16032 test -f "$f" || { { echo "$as_me:16032: error: cannot find input file: $f" >&5
16033 echo "$as_me: error: cannot find input file: $f" >&2;}
16034 { (exit 1); exit 1; }; }
16037 if test -f "$f"; then
16040 elif test -f "$srcdir/$f"; then
16045 { { echo "$as_me:16045: error: cannot find input file: $f" >&5
16046 echo "$as_me: error: cannot find input file: $f" >&2;}
16047 { (exit 1); exit 1; }; }
16050 done` || { (exit 1); exit 1; }
16052 cat >>$CONFIG_STATUS <<EOF
16056 cat >>$CONFIG_STATUS <<\EOF
16058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16059 s,@configure_input@,$configure_input,;t t
16060 s,@srcdir@,$ac_srcdir,;t t
16061 s,@top_srcdir@,$ac_top_srcdir,;t t
16062 s,@INSTALL@,$ac_INSTALL,;t t
16063 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16065 if test x"$ac_file" != x-; then
16066 mv $tmp/out $ac_file
16074 cat >>$CONFIG_STATUS <<\EOF
16077 # CONFIG_HEADER section.
16080 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16081 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16083 # ac_d sets the value in "#define NAME VALUE" lines.
16084 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16085 ac_dB='[ ].*$,\1#\2'
16088 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16089 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16090 ac_uB='$,\1#\2define\3'
16094 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16097 - | *:- | *:-:* ) # input from stdin
16099 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16101 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16102 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16103 * ) ac_file_in=$ac_file.in ;;
16106 test x"$ac_file" != x- && { echo "$as_me:16106: creating $ac_file" >&5
16107 echo "$as_me: creating $ac_file" >&6;}
16109 # First look for the input files in the build tree, otherwise in the
16111 ac_file_inputs=`IFS=:
16112 for f in $ac_file_in; do
16114 -) echo $tmp/stdin ;;
16116 # Absolute (can't be DOS-style, as IFS=:)
16117 test -f "$f" || { { echo "$as_me:16117: error: cannot find input file: $f" >&5
16118 echo "$as_me: error: cannot find input file: $f" >&2;}
16119 { (exit 1); exit 1; }; }
16122 if test -f "$f"; then
16125 elif test -f "$srcdir/$f"; then
16130 { { echo "$as_me:16130: error: cannot find input file: $f" >&5
16131 echo "$as_me: error: cannot find input file: $f" >&2;}
16132 { (exit 1); exit 1; }; }
16135 done` || { (exit 1); exit 1; }
16136 # Remove the trailing spaces.
16137 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16141 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16142 # `conftest.undefs', that substitutes the proper values into
16143 # config.h.in to produce config.h. The first handles `#define'
16144 # templates, and the second `#undef' templates.
16145 # And first: Protect against being on the right side of a sed subst in
16146 # config.status. Protect against being in an unquoted here document
16147 # in config.status.
16148 rm -f conftest.defines conftest.undefs
16149 # Using a here document instead of a string reduces the quoting nightmare.
16150 # Putting comments in sed scripts is not portable.
16152 # `end' is used to avoid that the second main sed command (meant for
16153 # 0-ary CPP macros) applies to n-ary macro definitions.
16154 # See the Autoconf documentation for `clear'.
16155 cat >confdef2sed.sed <<\EOF
16160 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
16162 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16165 # If some macros were called several times there might be several times
16166 # the same #defines, which is useless. Nevertheless, we may not want to
16167 # sort them, since we want the *last* AC-DEFINE to be honored.
16168 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16169 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16170 rm -f confdef2sed.sed
16172 # This sed command replaces #undef with comments. This is necessary, for
16173 # example, in the case of _POSIX_SOURCE, which is predefined and required
16174 # on some systems where configure will not decide to define it.
16175 cat >>conftest.undefs <<\EOF
16176 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16179 # Break up conftest.defines because some shells have a limit on the size
16180 # of here documents, and old seds have small limits too (100 cmds).
16181 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16182 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16183 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16184 echo ' :' >>$CONFIG_STATUS
16185 rm -f conftest.tail
16186 while grep . conftest.defines >/dev/null
16188 # Write a limited-size here document to $tmp/defines.sed.
16189 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16190 # Speed up: don't consider the non `#define' lines.
16191 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16192 # Work around the forget-to-reset-the-flag bug.
16193 echo 't clr' >>$CONFIG_STATUS
16194 echo ': clr' >>$CONFIG_STATUS
16195 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16197 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16199 mv $tmp/out $tmp/in
16201 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16202 rm -f conftest.defines
16203 mv conftest.tail conftest.defines
16205 rm -f conftest.defines
16206 echo ' fi # egrep' >>$CONFIG_STATUS
16207 echo >>$CONFIG_STATUS
16209 # Break up conftest.undefs because some shells have a limit on the size
16210 # of here documents, and old seds have small limits too (100 cmds).
16211 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16212 rm -f conftest.tail
16213 while grep . conftest.undefs >/dev/null
16215 # Write a limited-size here document to $tmp/undefs.sed.
16216 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16217 # Speed up: don't consider the non `#undef'
16218 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16219 # Work around the forget-to-reset-the-flag bug.
16220 echo 't clr' >>$CONFIG_STATUS
16221 echo ': clr' >>$CONFIG_STATUS
16222 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16224 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16226 mv $tmp/out $tmp/in
16228 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16229 rm -f conftest.undefs
16230 mv conftest.tail conftest.undefs
16232 rm -f conftest.undefs
16234 cat >>$CONFIG_STATUS <<\EOF
16235 # Let's still pretend it is `configure' which instantiates (i.e., don't
16236 # use $as_me), people would be surprised to read:
16237 # /* config.h. Generated automatically by config.status. */
16238 if test x"$ac_file" = x-; then
16239 echo "/* Generated automatically by configure. */" >$tmp/config.h
16241 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
16243 cat $tmp/in >>$tmp/config.h
16245 if test x"$ac_file" != x-; then
16246 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16247 { echo "$as_me:16247: $ac_file is unchanged" >&5
16248 echo "$as_me: $ac_file is unchanged" >&6;}
16250 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16251 X"$ac_file" : 'X\(//\)[^/]' \| \
16252 X"$ac_file" : 'X\(//\)$' \| \
16253 X"$ac_file" : 'X\(/\)' \| \
16254 . : '\(.\)' 2>/dev/null ||
16256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16258 /^X\(\/\/\)$/{ s//\1/; q; }
16259 /^X\(\/\).*/{ s//\1/; q; }
16261 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16262 { case "$ac_dir" in
16263 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16267 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16268 case $as_mkdir_dir in
16269 # Skip DOS drivespec
16270 ?:) as_incr_dir=$as_mkdir_dir ;;
16272 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16273 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16280 mv $tmp/config.h $ac_file
16284 rm -f $tmp/config.h
16288 cat >>$CONFIG_STATUS <<\EOF
16291 # CONFIG_COMMANDS section.
16293 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16294 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16295 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16299 # Makefile uses this timestamp file to record whether config.h is up to date.
16300 echo timestamp > stamp-h
16306 cat >>$CONFIG_STATUS <<\EOF
16308 { (exit 0); exit 0; }
16310 chmod +x $CONFIG_STATUS
16311 ac_clean_files=$ac_clean_files_save
16313 # configure is writing to config.log, and then calls config.status.
16314 # config.status does its own redirection, appending to config.log.
16315 # Unfortunately, on DOS this fails, as config.log is still kept open
16316 # by configure, so config.status won't be able to write to it; its
16317 # output is simply discarded. So we exec the FD to /dev/null,
16318 # effectively closing config.log, so it can be properly (re)opened and
16319 # appended to by config.status. When coming back to configure, we
16320 # need to make the FD available again.
16321 if test "$no_create" != yes; then
16324 $SHELL $CONFIG_STATUS || ac_cs_success=false
16326 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16327 # would make configure fail if this is the last instruction.
16328 $ac_cs_success || { (exit 1); exit 1; }